/* ==========================================================================
   متغيرات الألوان (Variables) – لتسهيل التعديل لاحقاً
   ========================================================================== */
:root {
  --primary: #00287a;          /* أزرق هيونداي الرسمي الغامق */
  --primary-dark: #001d5c;
  --primary-light: #1e40af;
  --accent: #60a5fa;           /* أزرق فاتح للهوفر والتأثيرات */
  --accent-glow: #93c5fd;
  --text-dark: #0f172a;
  --text-light: #e2e8f0;
  --card-bg: rgba(0, 40, 122, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 40, 122, 0.18);
  --blur: blur(10px);
}

/* ==========================================================================
   1. الإعدادات العامة + خلفية أغمق شوية للفخامة
   ========================================================================== */
body,
.app-inner.flex.flex-col.min-h-full,
section.s-block.s-block--fixed-banner.wide-placeholder,
salla-slider#photos-0-slider {
    background-color: #f8fafc !important;   /* رمادي فاتح ناعم بدل #F5F5F5 */
}

/* شريط التمرير – يتناسق مع الأزرق */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* حقول الإدخال */
input:focus, textarea:focus, select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 40, 122, 0.12) !important;
}

/* ==========================================================================
   2. الهيدر
   ========================================================================== */
.navbar-brand img {
    max-height: 60px;
    transition: transform 0.35s ease;
}
.navbar-brand img:hover { transform: scale(1.06); }

.main-nav-container.fixed-pinned .navbar-brand img { max-height: 55px !important; }

nav#mobile-menu .main-menu li.root-level > a {
    color: var(--primary);
    font-weight: 700;
}

/* أيقونات الهيدر */
.s-search-icon svg, .site-header .icon, .site-header i {
    fill: var(--primary) !important;
    color: var(--primary) !important;
}

/* ==========================================================================
   3. سلايدر الخدمات والأقسام العلوية + الأيقونات تحت البانر
   ========================================================================== */
.s-slider-block__item {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.s-slider-block__item:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 40, 122, 0.22);
    background: rgba(0, 40, 122, 0.10);
}

.s-slider-block__item i,
.s-slider-block__item svg,
.s-slider-block__item img {
    color: var(--primary) !important;
    fill: var(--primary) !important;
    font-size: 2.5rem !important;
    margin-bottom: 12px;
    transition: all 0.4s ease;
}

.s-slider-block__item:hover i,
.s-slider-block__item:hover svg {
    transform: scale(1.15) rotate(10deg);
    color: var(--accent) !important;
}

.s-slider-block__item img {
    max-width: 85px !important;
    filter: drop-shadow(0 4px 10px rgba(0,40,122,0.3));
}

.s-slider-block__item:hover img { transform: scale(1.18); }

.s-slider-block__item h3,
.s-slider-block__item a,
.s-slider-block__item span {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.s-slider-block__item:hover h3,
.s-slider-block__item:hover a {
    color: var(--primary) !important;
}

/* ==========================================================================
   4. بطاقات المنتجات + زر الإضافة للسلة (أهم جزء)
   ========================================================================== */
.s-product-card-vertical,
.s-product-card-entry {
    border: 1px solid rgba(0,40,122,0.12) !important;
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.45s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.s-product-card-vertical:hover,
.s-product-card-entry:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 40, 122, 0.18) !important;
    border-color: var(--primary) !important;
}

.s-product-card-image img {
    transition: transform 0.5s ease;
}

.s-product-card-vertical:hover .s-product-card-image img {
    transform: scale(1.08);
}

/* زر إضافة للسلة – gradient معدني + توهج */
.s-product-card-atc-btn,
.s-product-card-content button {
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary)) !important;
    background-size: 200% 100%;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    font-weight: 700;
    margin-top: 12px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    animation: gradientFlow 4s linear infinite;
    transition: all 0.3s;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.s-product-card-atc-btn:hover,
.s-product-card-content button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.4);
    background: linear-gradient(90deg, var(--accent), #3b82f6, var(--accent)) !important;
}

/* ==========================================================================
   5. قسم الميزات (الشحن – الدعم – الجودة)
   ========================================================================== */
.s-block--features__item {
    background: white;
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 30px 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
}

.s-block--features__item:hover {
    transform: translateY(-14px);
    box-shadow: 0 25px 50px rgba(0, 40, 122, 0.2);
}

.s-block--features__item .feature-icon {
    background: rgba(0, 40, 122, 0.08) !important;
    color: var(--primary) !important;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px;
    font-size: 2rem;
    transition: all 0.5s;
}

.s-block--features__item:hover .feature-icon {
    background: var(--primary) !important;
    color: white !important;
    transform: scale(1.1) rotate(360deg);
}

/* ==========================================================================
   6. الفوتر + زر الشراء الواسع
   ========================================================================== */
.store-footer {
    background: linear-gradient(to bottom, #ffffff, #f1f5f9) !important;
    border-top: 6px solid var(--primary);
    padding: 50px 0 30px;
}

.store-footer h3,
.store-footer .footer-title {
    color: var(--primary) !important;
    position: relative;
}

.store-footer h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.s-button-wide {
    background: linear-gradient(45deg, var(--primary), var(--primary-light), var(--primary)) !important;
    background-size: 300% 300%;
    animation: glowing 4s ease infinite;
    border-radius: 999px !important;
    padding: 16px 40px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 8px 25px rgba(0,40,122,0.3);
}

@keyframes glowing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   7. التعديلات على الأيقونات تحت البانر والسلايدر السفلي (التعديلات السابقة)
   ========================================================================== */
div[class*="block"] [class*="item"] a,
div[class*="quick"] [class*="item"],
div[class*="service"] [class*="item"],
div[class*="icon"] [class*="item"],
.s-block__item a {
    background: rgba(0, 40, 122, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid #60a5fa40 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0,40,122,0.15) !important;
    transition: all 0.4s ease !important;
}

div[class*="block"] [class*="item"] a:hover,
.s-block__item a:hover {
    transform: translateY(-10px) scale(1.04) !important;
    background: rgba(0, 40, 122, 0.22) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 16px 40px rgba(0,40,122,0.3) !important;
}

/* الأيقونات داخلها */
div[class*="block"] [class*="item"] i,
div[class*="block"] [class*="item"] svg,
.s-block__item i {
    color: #00287a !important;
    font-size: 2.8rem !important;
    transition: all 0.4s !important;
}

div[class*="block"] [class*="item"]:hover i,
.s-block__item:hover i {
    color: #60a5fa !important;
    transform: scale(1.2) rotate(8deg) !important;
}