/* Add custom CSS styles below *//* =================================================
   SALLA HEADER – OPTIMIZED FINAL VERSION
   Clean • Fast • Stable • Production Ready
================================================= */

/* ========== BASE STRUCTURE ========== */
.header-inner {
  position: relative;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  overflow: visible !important; /* يسمح للدروب داون بالظهور */
}

/* تأكيد عدم قص القوائم */
.header,
.store-header {
  overflow: visible !important;
}


/* ========== LIGHT MODE HEADER ========== */
.header-inner {
  background: linear-gradient(
    180deg,
    #7426e0 0%,
    #660dd3 55%,
    #5510a8 100%
  ) !important;
}

/* LIGHT MODE ICONS */
.header-inner i,
.header-inner svg {
  color: rgba(255,255,255,0.92);
  transition: color .2s ease;
}

.header-inner span,
.header-inner p {
  color: rgba(255,255,255,0.85);
}

.header-inner .header-btn:hover i,
.header-inner .header-btn:hover svg {
  color: #fff;
}

.header-inner .text-black {
  color: rgba(255,255,255,0.92) !important;
}

/* LIGHT MODE CART */
.header-inner .s-cart-summary-wrapper .header-btn {
  background: rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 6px 10px;
  transition: background .2s ease;
}

.header-inner .s-cart-summary-wrapper:hover .header-btn {
  background: rgba(255,255,255,0.22);
}

.header-inner .s-cart-summary-wrapper i,
.header-inner .s-cart-summary-wrapper svg {
  color: #fff;
}

.header-inner .s-cart-summary-count {
  background: #fff;
  color: #5510a8;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 6px;
}

/* ========== DARK MODE HEADER ========== */
html.dark .header-inner {
  background: linear-gradient(
    180deg,
    #222024 0%,
    #1a181c 100%
  ) !important;
  animation: headerGlow 6s ease-in-out infinite;
}

/* Glow Animation (Optimized) */
@keyframes headerGlow {
  0%,100% {
    box-shadow:
      inset 0 -1px 0 rgba(219,242,66,.25),
      0 6px 20px rgba(0,0,0,.6);
  }
  50% {
    box-shadow:
      inset 0 -2px 0 rgba(219,242,66,.65),
      0 6px 24px rgba(219,242,66,.15);
  }
}

/* DARK MODE ICONS */
html.dark .header-inner i,
html.dark .header-inner svg,
html.dark .header-inner span,
html.dark .header-inner p {
  color: rgba(255,255,255,.85);
}

/* DARK MODE CART ICON (VISIBLE & PREMIUM) */
html.dark .header-inner .s-cart-summary-wrapper i,
html.dark .header-inner .s-cart-summary-wrapper svg {
  color: #dbf242;
  filter: drop-shadow(0 0 3px rgba(219,242,66,.35));
}

html.dark .header-inner .s-cart-summary-wrapper:hover i,
html.dark .header-inner .s-cart-summary-wrapper:hover svg {
  filter: drop-shadow(0 0 7px rgba(219,242,66,.55));
}

/* DARK MODE CART COUNT */
html.dark .header-inner .s-cart-summary-count {
  background: #1a1c18;
  color: #dbf242;
  font-weight: 700;
}

/* ========== BOTTOM SEPARATOR ========== */
.header-inner::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.12);
}

html.dark .header-inner::after {
  background: rgba(255,255,255,.06);
}

/* ========== HIDE CART TOTAL ========== */
.header-inner .s-cart-summary-content {
  display: none !important;
}

/* ========== RTL ICON OFFSET ========== */
.header-container .justify-start { padding-right: 12px; }
.header-container .justify-end   { padding-left: 12px; }

/* ========== ACCESSIBILITY (PERFORMANCE SAFE) ========== */
@media (prefers-reduced-motion: reduce) {
  html.dark .header-inner { animation: none; }
}
/* =================================
   CART PAGE – REMOVE PRODUCT IMAGE BORDER
================================= */

/* إزالة الإطار من صور المنتجات في السلة */
.s-cart-item img,
.s-cart-summary img,
.cart-item img {
  border: none !important;
  box-shadow: none !important;
}


@media (max-width: 768px) {


/* =================================================
   MOBILE BOTTOM HEADER – FINAL STABLE VERSION
   Clean Base + Proper Light / Dark Separation
================================================= */



  /* ===============================
     BASE STRUCTURE (NO COLORS)
  ============================== */
  .bottom-header {
    position: fixed !important;
    bottom: 16px !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 9999 !important;

    height: 66px !important;
    padding: 0 !important;
    margin: 0 !important;

    border-radius: 20px !important;
    background: transparent !important;
  }

  body {
    padding-bottom: 110px !important;
  }

  /* ===============================
     INNER BAR (CAPSULE)
  ============================== */
  .bottom-header-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;

    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;

    border-radius: 20px !important;
  }

  .bottom-header-button {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* ===============================
     ICON WRAPPER
  ============================== */
  .bottom-header-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* إخفاء النص فقط */
  .bottom-header-icon > span {
    display: none !important;
  }

  /* ===============================
     ICONS BASE
  ============================== */
  .bottom-header-icon i,
  .bottom-header-icon svg {
    font-size: 22px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* البحث عنصر خاص */
  .bottom-header-search .search-btn {
    display: flex !important;
  }

  /* ===============================
     CART
  ============================== */
  .bottom-header .s-cart-summary-content {
    display: none !important; /* إخفاء مبلغ + عملة */
  }

  .bottom-header .s-cart-summary-count {
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 2px 6px !important;
  }

  /* =================================================
     LIGHT MODE
  ================================================= */
  body:not(.dark) .bottom-header-buttons {
    background-color: #f9fafb !important; /* فاتح */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
  }

  body:not(.dark) .bottom-header-icon i,
  body:not(.dark) .bottom-header-icon svg {
    color: #111827 !important; /* داكن */
  }

  body:not(.dark) .bottom-header-cart i,
  body:not(.dark) .bottom-header-cart svg {
    color: #660dd3 !important; /* بنفسجي الهوية */
  }

  body:not(.dark) .bottom-header .s-cart-summary-count {
    background-color: #660dd3 !important;
    color: #ffffff !important;
  }

  /* =================================================
     DARK MODE
  ================================================= */
  html.dark .bottom-header-buttons {
    background-color: #111111 !important; /* داكن */
    box-shadow: 0 14px 35px rgba(0,0,0,0.6) !important;
  }

  html.dark .bottom-header-icon i,
  html.dark .bottom-header-icon svg {
    color: #ffffff !important;
  }

  html.dark .bottom-header-cart i,
  html.dark .bottom-header-cart svg {
    color: #dbf242 !important; /* أخضر الهوية */
  }

  html.dark .bottom-header .s-cart-summary-count {
    background-color: #dbf242 !important;
    color: #111 !important;
  }

}
/* ===============================
   LAYOUT – CENTER GROUPED ICONS
============================== */
@media (max-width: 768px) {

  .bottom-header-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;  /* تجمع بالمنتصف */
    gap: 24px !important;                /* مسافة ثابتة بين الأيقونات */
    height: 100% !important;
    padding: 0 12px !important;          /* حماية من الأطراف */
    margin: 0 !important;
  }

  .bottom-header-button {
    flex: 0 0 auto !important;           /* لا يتمدد على كامل العرض */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .bottom-header-icon {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

}
/* FIX – User menu dropdown colors (LIGHT MODE) */
body:not(.dark) .s-user-menu-dropdown,
body:not(.dark) .s-user-menu-dropdown-list {
  background-color: #ffffff !important;
}

body:not(.dark) .s-user-menu-dropdown *,
body:not(.dark) .s-user-menu-dropdown-list * {
  color: #111827 !important;
  fill: #111827 !important;
  stroke: #111827 !important;
}

/* Logout item */
body:not(.dark) .s-user-menu-dropdown-item-logout,
body:not(.dark) .s-user-menu-dropdown-item-logout * {
  color: #dc2626 !important;
}

/* TRUST BADGES – TEXT COLOR WHITE */
.s-trust-badges-label,
.s-trust-badges-number {
  color: #ffffff !important;
}

/* 1. ضبط الحاوية لتكون شبكة (عنصرين في الصف) للجميع */
.s-contacts-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* عنصرين بالصف */
    gap: 10px !important; /* مسافة متساوية */
    padding: 15px 0 !important;
}

/* 2. تنسيق الزر وضبط المحاذاة الداخلية */
.s-contacts-item {
    display: flex !important;
    flex-direction: row-reverse !important; /* الأيقونة يمين والنص يسار */
    align-items: center !important; /* محاذاة عمودية في المنتصف */
    justify-content: flex-start !important; /* ترتيب العناصر من البداية */
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    min-height: 50px !important; /* توحيد ارتفاع الأزرار */
}

/* 3. تنسيق مربع الأيقونة */
.s-contacts-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 4px;
    margin-left: 10px; /* مسافة بين الأيقونة والنص */
    flex-shrink: 0; /* منع انضغاط الأيقونة */
}

.s-contacts-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: #ffffff !important;
}

/* 4. تنسيق النص وضمان عدم تداخله */
.s-contacts-item .unicode {
    font-size: 12px !important; /* تصغير الخط قليلاً ليناسب عنصرين بالصف */
    font-weight: 500 !important;
    direction: ltr !important;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* إضافة نقاط في حال كان النص طويلاً جداً */
    flex-grow: 1;
    text-align: right; /* محاذاة النص لليمين بجانب الأيقونة */
}

/* 5. تخصيص الجوال ليظل عنصرين بالصف */
@media (max-width: 768px) {
    .s-contacts-list {
        grid-template-columns: repeat(2, 1fr) !important; /* الحفاظ على عنصرين */
        gap: 8px !important;
    }
    .s-contacts-item .unicode {
        font-size: 11px !important; /* خط أصغر قليلاً للجوال لضمان التناسق */
    }
    .s-contacts-item {
        padding: 5px 8px !important;
    }
}

/* Hide bottom header ONLY on product page */
@media (max-width: 768px) {
  body.product-single .bottom-header {
    display: none !important;
  }

  body.product-single {
    padding-bottom: 40px !important;
  }
}
.menu-img, .sub-cat-icon{display:none}