@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600&display=swap');

/* SAPLING — CLEAN CSS */

:root {
  --sapling-navy: #0F203A;
  --sapling-beige: #EEDFC3;
}

/* MOBILE VIDEO */

@media (max-width: 767px) {
  .sapling-hero-video {
    position: relative !important;
    height: 85vw !important;
    max-height: 380px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .sapling-hero-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .sapling-hero-video h1 {
    font-size: 23px !important;
    line-height: 1.3 !important;
  }
}

/* MOVING MARQUEE */

#sapling-marquee {
  width: 100%;
  height: 35px;
  position: relative;
  z-index: 20;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
  direction: ltr;
  background: var(--sapling-beige);
  color: var(--sapling-navy);
}

#sapling-marquee .sapling-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  align-items: center;
  white-space: nowrap;
  animation: saplingMove 65s linear infinite;
}

#sapling-marquee .sapling-marquee-text {
  display: block;
  flex-shrink: 0;
  white-space: pre;
  font: 400 13px Georgia, serif;
  letter-spacing: .5px;
  color: var(--sapling-navy);
}

@keyframes saplingMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  #sapling-marquee .sapling-marquee-track {
    animation: none;
  }
}

/* UNIFIED HEADER */

header.yasmeen-store-header.sapling-one-active {
  position: relative !important;
  height: 72px !important;
  min-height: 72px !important;
  overflow: visible !important;
  background: var(--sapling-navy) !important;
  border: 0 !important;
  z-index: 80 !important;
}

/* Hide original rows only after new header activates */

header.sapling-one-active .yasmeen-top-navbar,
header.sapling-one-active #mainnav {
  display: none !important;
}

/* ONE HEADER ROW */

header.sapling-one-active .sapling-one-bar {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  width: 100%;
  height: 72px;
  padding: 0 max(24px,calc((100% - 1280px)/2 + 24px));
  background: var(--sapling-navy);
  color: var(--sapling-beige);
  overflow: visible;
}

/* LEFT ACTIONS */

header.sapling-one-active .sapling-one-left {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

/* CENTER BRAND */

header.sapling-one-active .sapling-one-name {
  grid-column: 2;
  justify-self: center;
  font-family: 'Cairo', sans-serif;
  font-size: 35px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  color: var(--sapling-beige) !important;
  white-space: nowrap;
}

/* RIGHT MENU */

header.sapling-one-active .sapling-one-menu-button {
  grid-column: 3;
  justify-self: end;
}

/* ICON CONTAINERS */

header.sapling-one-active .sapling-one-icon,
header.sapling-one-active .sapling-one-user,
header.sapling-one-active .sapling-one-cart {
  box-sizing: border-box;
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--sapling-beige);
}

header.sapling-one-active .sapling-one-icon {
  cursor: pointer;
}

/* SVG ICONS */

header.sapling-one-active .sapling-one-icon svg,
header.sapling-one-active .sapling-one-user-drawing svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* KEYBOARD ACCESSIBILITY */

header.sapling-one-active .sapling-one-icon:focus-visible,
header.sapling-one-active .sapling-one-name:focus-visible {
  outline: 2px solid var(--sapling-beige);
  outline-offset: 3px;
}

/* ACCOUNT COMPONENT */

header.sapling-one-active
.sapling-one-user salla-user-menu {
  position: absolute !important;
  inset: 0;
  width: 40px !important;
  height: 40px !important;
  transform: none !important;
  margin: 0 !important;
  opacity: 1 !important;
}

/* ACCOUNT ICON WITHOUT WHITE BACKGROUND */

header.sapling-one-active .sapling-one-user-drawing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sapling-navy);
  color: var(--sapling-beige);
  pointer-events: none;
  z-index: 2;
}

/* ORIGINAL SALLA CART */

header.sapling-one-active
.sapling-one-cart salla-cart-summary {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--sapling-beige) !important;
  background: transparent !important;
}

header.sapling-one-active
.sapling-one-cart .s-cart-summary-wrapper {
  width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  gap: 0 !important;
  color: var(--sapling-beige) !important;
}

/* BEIGE DROPDOWN PANELS */

header.sapling-one-active .sapling-one-categories,
header.sapling-one-active .sapling-one-search {
  box-sizing: border-box;
  display: none;
  position: absolute;
  top: 100%;
  right: max(16px,calc((100% - 1280px)/2 + 16px));
  width: 300px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  background: var(--sapling-beige);
  color: var(--sapling-navy);
  border: 1px solid #D5C3A7;
  box-shadow: 0 12px 30px rgba(15,32,58,.17);
  z-index: 120;
}

header.sapling-one-active .sapling-one-categories.is-open,
header.sapling-one-active .sapling-one-search.is-open {
  display: block;
}

/* CATEGORY LINKS */

header.sapling-one-active .sapling-one-categories a {
  display: block;
  padding: 15px 21px;
  color: var(--sapling-navy) !important;
  background: var(--sapling-beige);
  text-decoration: none !important;
  border-bottom: 1px solid rgba(15,32,58,.1);
  font: 400 14px 'Cairo', sans-serif;
  text-align: right;
}

header.sapling-one-active
.sapling-one-categories a:last-child {
  border-bottom: 0;
}

header.sapling-one-active .sapling-one-categories a:hover,
header.sapling-one-active
.sapling-one-categories a:focus-visible {
  background: #F8F0E2;
}

/* SEARCH DROPDOWN */

header.sapling-one-active .sapling-one-search {
  left: max(16px,calc((100% - 1280px)/2 + 16px));
  right: auto;
  padding: 12px;
}

header.sapling-one-active .sapling-one-search salla-search {
  display: block;
  width: 100%;
  min-height: 48px;
  --color-primary: var(--sapling-navy);
}

/* MOBILE */

@media (max-width: 1023px) {

  header.yasmeen-store-header.sapling-one-active {
    height: 64px !important;
    min-height: 64px !important;
  }

  header.sapling-one-active .sapling-one-bar {
    height: 64px;
    padding: 0 10px;
  }

  header.sapling-one-active .sapling-one-left {
    gap: 3px;
  }

  header.sapling-one-active .sapling-one-icon,
  header.sapling-one-active .sapling-one-user,
  header.sapling-one-active .sapling-one-cart {
    flex-basis: 36px;
    width: 36px;
    height: 40px;
  }

  header.sapling-one-active
  .sapling-one-user salla-user-menu,
  header.sapling-one-active
  .sapling-one-cart salla-cart-summary {
    width: 36px !important;
    max-width: 36px !important;
  }

  header.sapling-one-active .sapling-one-name {
    font-size: 28px;
  }

  header.sapling-one-active .sapling-one-categories {
    right: 8px;
  }

  header.sapling-one-active .sapling-one-search {
    left: 8px;
    width: min(300px,calc(100vw - 16px));
  }
}

/* SMALL MOBILE */

@media (max-width: 360px) {

  header.sapling-one-active .sapling-one-bar {
    padding: 0 5px;
  }

  header.sapling-one-active .sapling-one-left {
    gap: 1px;
  }

  header.sapling-one-active .sapling-one-icon,
  header.sapling-one-active .sapling-one-user,
  header.sapling-one-active .sapling-one-cart {
    flex-basis: 32px;
    width: 32px;
  }

  header.sapling-one-active .sapling-one-name {
    font-size: 24px;
  }
}
/* SAPLING — ACCOUNT AVATAR VISUAL FIX */

header.sapling-one-active
.sapling-one-user-drawing {
  left: 0 !important;
  right: auto !important;
  top: 0 !important;

  width: 56px !important;
  height: 40px !important;

  box-sizing: border-box !important;
  padding-left: 8.5px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  background: #0F203A !important;

  z-index: 10 !important;
  pointer-events: none !important;
}

@media (max-width: 1023px) {
  header.sapling-one-active
  .sapling-one-user-drawing {
    width: 48px !important;
    padding-left: 6.5px !important;
  }
}
/* SAPLING | ADD TO CART BUTTON */

.s-product-card-entry salla-add-product-button button.s-button-element {
    background-color: #0F203A !important;
    background: #0F203A !important;
    color: #EEDFC3 !important;
    border: 1px solid #0F203A !important;
    fill: #EEDFC3 !important;
}

/* لون النص والأيقونة */

.s-product-card-entry salla-add-product-button button.s-button-element span,
.s-product-card-entry salla-add-product-button button.s-button-element svg {
    color: #EEDFC3 !important;
    fill: #EEDFC3 !important;
}

/* لون الزر عند مرور الماوس */

.s-product-card-entry salla-add-product-button button.s-button-element:hover {
    background-color: #1C3455 !important;
    color: #EEDFC3 !important;
    border-color: #1C3455 !important;
}
/* الصفحات التعريفية */
.page-content,
.static-page,
.page-wrapper,
article {
    background-color: #EEDFC3 !important;
}

/* التذييل والشريط السفلي */
footer,
footer .bg-white,
.footer-bottom,
.footer-copyright,
.copyright,
.s-footer,
.s-footer-bottom {
    background-color: #EEDFC3 !important;
}
/* SAPLING | INFORMATION PAGES */

/* خلفية الصفحات التعريفية والسياسات */
.content--single-page,
.content.content--single-page,
.content--single-page.bg-white,
.s-information-page .bg-white {
    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
    box-shadow: none !important;
}

/* خلفية المحتوى الداخلي */
.content--single-page .content-entry {
    background-color: transparent !important;
}

/* الحفاظ على لون النص الكحلي */
.content--single-page {
    color: #0F203A !important;
}
/* ==========================================
   SAPLING | PRODUCT DETAILS
   Cream Background + Navy Text
   ========================================== */

/* 1. المربعات البيضاء داخل نموذج المنتج */
form:has(salla-product-options) .bg-white,
form:has(salla-product-options) section.bg-white,
form:has(salla-product-options) .sticky-product-bar {
    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
}

/* 2. حاوية خيارات المنتج */
salla-product-options,
.s-product-options-wrapper,
.s-product-options-option-container,
.s-product-options-option,
.s-product-options-option-content {
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
}

/* 3. عناوين الخيارات والنصوص */
salla-product-options label,
.s-product-options-option-label,
.s-product-options-option-content,
.s-product-options-option-content span,
.s-product-options-option-content p {
    color: #0F203A !important;
}

/* 4. أزرار الاختيارات */
salla-product-options button,
.s-product-options-option-content button {
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    border: 1px solid #0F203A !important;
}

/* 5. خانات الإدخال */
salla-product-options input,
salla-product-options select,
salla-product-options textarea {
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    border: 1px solid #0F203A !important;
}

/* 6. أقسام المرفقات والسعر والكمية */
form:has(salla-product-options) section.flex.bg-white,
form:has(salla-product-options) section.sticky-product-bar {
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
}

/* 7. عناوين أقسام المنتج */
form:has(salla-product-options) label,
form:has(salla-product-options) h3,
form:has(salla-product-options) h4 {
    color: #0F203A !important;
}

/* 8. المحافظة على زر الإضافة للسلة */
form:has(salla-product-options)
salla-add-product-button .s-button-element {
    background-color: #0F203A !important;
    color: #EEDFC3 !important;
    border-color: #0F203A !important;
}
/* =====================================
   SAPLING | CLEAN PRODUCT CHOICES
   ===================================== */

/* 1. الخيارات غير المحددة */
salla-product-options
.s-product-options-option-content
:is(label, button, [role="radio"], [role="checkbox"]) {
    background: #0F203A !important;
    background-color: #0F203A !important;
    color: #EEDFC3 !important;
    border: 1px solid #0F203A !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 6px !important;
}

/* 2. إزالة الخلفيات البيضاء الداخلية */
salla-product-options
.s-product-options-option-content
:is(label, button, [role="radio"], [role="checkbox"])
:is(span, div, p, strong, small) {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* 3. الخيار المحدد */
salla-product-options
.s-product-options-option-content
label:has(input:checked),

salla-product-options
.s-product-options-option-content
input:checked + label,

salla-product-options
.s-product-options-option-content
:is(label, button, [role="radio"], [role="checkbox"])
:is(.selected, .is-selected, .active, [aria-checked="true"], [aria-pressed="true"]) {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    border: 1px solid #0F203A !important;
    box-shadow: none !important;
}

/* 4. لون النص داخل الخيار المحدد */
salla-product-options
.s-product-options-option-content
label:has(input:checked) *,

salla-product-options
.s-product-options-option-content
input:checked + label *,

salla-product-options
.s-product-options-option-content
:is(.selected, .is-selected, .active, [aria-checked="true"])
:is(span, p, div) {
    color: #0F203A !important;
}
/* ======================================
   SAPLING | FINAL PRODUCT DETAILS
   ====================================== */

/* 1. قسم المرفقات والملاحظات */

form:has(salla-product-options)
> section.bg-white:not(.sticky-product-bar) {
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
}

/* 2. أزرار إرفاق ملف وإضافة ملاحظة */

form:has(salla-product-options)
> section.bg-white:not(.sticky-product-bar)
:is(button, a, [role="button"]) {
    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    border: 1px solid #0F203A !important;
    box-shadow: none !important;
    border-radius: 6px !important;
}

/* 3. النصوص والأيقونات داخل الأزرار */

form:has(salla-product-options)
> section.bg-white:not(.sticky-product-bar)
:is(button, a, [role="button"]) * {
    color: #0F203A !important;
}

/* 4. خلفية مكون الأقساط - تمارا */

salla-installment {
    display: block;
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    border-radius: 8px !important;
}

/* 5. عناصر تمارا الداخلية القابلة للتخصيص */

salla-installment > *,
salla-installment .bg-white,
salla-installment [class*="bg-white"] {
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
}
/* ==========================================
   SAPLING | PRODUCT FINAL TOUCHES
   ========================================== */

/* 1. زر القلب - المفضلة */

body:has(form.product-form)
salla-button.btn--wishlist .s-button-element,

body:has(form.product-form)
button.btn--wishlist {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    border: 1px solid #0F203A !important;
    box-shadow: none !important;
    border-radius: 50% !important;
}

/* لون أيقونة القلب */

body:has(form.product-form)
.btn--wishlist i,

body:has(form.product-form)
.btn--wishlist svg {

    color: #0F203A !important;
    stroke: currentColor !important;
}


/* 2. زر مشاركة المنتج */

body:has(form.product-form)
salla-social-share button,

body:has(form.product-form)
button.btn--share,

body:has(form.product-form)
.product-share button {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    border: 1px solid #0F203A !important;
    box-shadow: none !important;
    border-radius: 50% !important;
}

/* أيقونة المشاركة */

body:has(form.product-form)
salla-social-share button i,

body:has(form.product-form)
salla-social-share button svg,

body:has(form.product-form)
.btn--share i {

    color: #0F203A !important;
}


/* 3. الشريط السفلي لإضافة السلة */

body:has(form.product-form)
.sticky-product-bar,

body:has(form.product-form)
.product-sticky-bar,

body:has(form.product-form)
.sticky-add-to-cart {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    box-shadow: none !important;
}


/* 4. زر إضافة للسلة */

body:has(form.product-form)
.sticky-product-bar
salla-add-product-button .s-button-element {

    background: #0F203A !important;
    background-color: #0F203A !important;
    color: #EEDFC3 !important;
    border: 1px solid #0F203A !important;
    box-shadow: none !important;
}

/* كتابة وأيقونة زر الإضافة */

body:has(form.product-form)
.sticky-product-bar
salla-add-product-button .s-button-element * {

    color: #EEDFC3 !important;
}


/* 5. إبقاء النصوص في الشريط كحلية */

body:has(form.product-form)
.sticky-product-bar .form-label,

body:has(form.product-form)
.sticky-product-bar .total-price {

    color: #0F203A !important;
}
/* =====================================
   SAPLING | QUANTITY AND PURCHASE BADGE
   ===================================== */

/* الرقم الموجود وسط أزرار الكمية */
body:has(salla-product-options)
salla-quantity-input input.s-quantity-input-input {
    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
    color: #0F203A !important;
    -webkit-text-fill-color: #0F203A !important;
    border-color: #EEDFC3 !important;
    box-shadow: none !important;
}

/* الحاوية الداخلية للكمية */
body:has(salla-product-options)
salla-quantity-input .s-quantity-input-container {
    background-color: #EEDFC3 !important;
}

/* مربع تم شراؤه */
body:has(salla-product-options)
div.bg-white.inline-flex.text-sm {
    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;
    box-shadow: none !important;
}

/* المحافظة على النص الأحمر في عدد المبيعات */
body:has(salla-product-options)
div.bg-white.inline-flex.text-sm {
    border: 1px solid #0F203A !important;
}
/* =====================================================
   SAPLING | FINAL STOREFRONT REFINEMENTS
   Theme: Yasmeen
   Navy: #0F203A
   Cream: #EEDFC3

   Scope:
   1. Quantity input
   2. Purchased count
   3. Add-to-cart popup
   4. Cart page
   5. Coupon section
   6. Cart summary

   Does not modify checkout or Tamara Shadow DOM
   ===================================================== */


/* =====================================================
   01 | PRODUCT QUANTITY
   Remove remaining white borders
   ===================================================== */

body.product-single
.sticky-product-bar
salla-quantity-input {

    background-color: var(--sapling-beige) !important;
    border-color: rgba(15, 32, 58, 0.3) !important;
    box-shadow: none !important;
}


body.product-single
.sticky-product-bar
salla-quantity-input .s-quantity-input-container {

    background-color: var(--sapling-beige) !important;
    border: 0 !important;
    box-shadow: none !important;
}


body.product-single
.sticky-product-bar
salla-quantity-input input.s-quantity-input-input {

    background: var(--sapling-beige) !important;
    background-color: var(--sapling-beige) !important;

    color: var(--sapling-navy) !important;
    -webkit-text-fill-color: var(--sapling-navy) !important;

    border: 0 !important;
    box-shadow: none !important;
    outline-offset: 2px;
}


body.product-single
.sticky-product-bar
salla-quantity-input .s-quantity-input-button {

    background-color: var(--sapling-beige) !important;
    color: var(--sapling-navy) !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =====================================================
   02 | PURCHASE COUNT BADGE
   Keep original red text
   ===================================================== */

body.product-single
form.product-form + div.bg-white.inline-flex.text-sm {

    background-color: var(--sapling-beige) !important;

    border: 1px solid var(--sapling-navy) !important;
    box-shadow: none !important;
}


/* =====================================================
   03 | ADD TO CART SUCCESS POPUP
   Popup background and main content
   ===================================================== */

body.product-single
salla-add-product-toast.s-add-product-toast {

    background-color: var(--sapling-beige) !important;
    color: var(--sapling-navy) !important;
}


salla-add-product-toast
.s-add-product-toast__header,

salla-add-product-toast
.s-add-product-toast__body,

salla-add-product-toast
.s-add-product-toast__actions {

    background-color: var(--sapling-beige) !important;
    color: var(--sapling-navy) !important;
}


salla-add-product-toast
.s-add-product-toast__body
:is(p, span, strong, a) {

    color: var(--sapling-navy) !important;
}


/* Secondary outlined button */

salla-add-product-toast
.s-add-product-toast__actions
.s-button-outline {

    background-color: var(--sapling-beige) !important;
    color: var(--sapling-navy) !important;
    border-color: var(--sapling-navy) !important;
}


/* Preserve dark primary action */

salla-add-product-toast
.s-add-product-toast__actions
.s-button-primary {

    background-color: var(--sapling-navy) !important;
    color: var(--sapling-beige) !important;
}


/* =====================================================
   04 | CART PAGE BACKGROUND
   ===================================================== */

body.cart,
body.cart #app,
body.cart .app-inner,
body.cart .main-content {

    background-color: var(--sapling-beige) !important;
}


body.cart .shadow-default.bg-white,
body.cart #cart-gifting.bg-white {

    background-color: var(--sapling-beige) !important;
    color: var(--sapling-navy) !important;
}


/* =====================================================
   05 | CART COUPON SECTION
   ===================================================== */

body.cart
salla-cart-coupons,

body.cart
salla-cart-coupons .s-cart-coupons-wrapper,

body.cart
salla-cart-coupons .s-cart-coupons-input-section {

    background-color: var(--sapling-beige) !important;
    color: var(--sapling-navy) !important;
}


body.cart
salla-cart-coupons input:not([type="checkbox"]) {

    background-color: var(--sapling-beige) !important;

    color: var(--sapling-navy) !important;

    border-color: var(--sapling-navy) !important;

    box-shadow: none !important;
}


body.cart
salla-cart-coupons input::placeholder {

    color: rgba(15, 32, 58, 0.65) !important;
    opacity: 1;
}


/* =====================================================
   06 | CART SUMMARY
   ===================================================== */

body.cart
salla-cart-summary-card .s-cart-summary-card-sheet-wrap,

body.cart
salla-cart-summary-card .s-cart-summary-card-sheet,

body.cart
salla-cart-summary-card .s-cart-summary-card-bar,

body.cart
salla-cart-summary-card .s-cart-summary-card-line,

body.cart
salla-cart-summary-card .s-cart-summary-card-action {

    background-color: var(--sapling-beige) !important;
    color: var(--sapling-navy) !important;
}


/* Summary text */

body.cart
salla-cart-summary-card
.s-cart-summary-card-sheet
:is(h2, h3, p, span, strong) {

    color: var(--sapling-navy) !important;
}


/* Preserve main checkout button */

body.cart
salla-cart-summary-card
.s-button-primary {

    background-color: var(--sapling-navy) !important;
    color: var(--sapling-beige) !important;
}


/* =====================================================
   07 | INTERACTIVE ELEMENTS
   Keyboard accessibility
   ===================================================== */

body.product-single
.sticky-product-bar
salla-quantity-input
.s-quantity-input-button:focus-visible,

body.cart
salla-cart-coupons input:focus-visible {

    outline: 2px solid var(--sapling-navy) !important;
    outline-offset: 2px !important;
}


/* =====================================================
   END | SAPLING FINAL STOREFRONT REFINEMENTS
   ===================================================== */
/* ============================================
   SAPLING | FINAL VISUAL POLISH
   Theme: Yasmeen
   Navy: #0F203A
   Beige: #EEDFC3
   ============================================ */


/* ============================================
   1. PRODUCT IMAGE NAVIGATION ARROWS
   ============================================ */

/* خلفية أسهم التنقل */

body.product-single
salla-slider.yasmeen-images-slider
button.s-slider-nav-arrow {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;

    color: #0F203A !important;

    border: 1px solid #0F203A !important;

    box-shadow: none !important;
}


/* لون الأسهم الداخلية */

body.product-single
salla-slider.yasmeen-images-slider
.s-slider-nav-arrow svg {

    fill: #0F203A !important;
    color: #0F203A !important;
}


/* السهم غير المتاح */

body.product-single
salla-slider.yasmeen-images-slider
.s-slider-nav-arrow:disabled {

    opacity: 0.45 !important;
    cursor: not-allowed;
}


/* ============================================
   2. CART SUMMARY OUTER BACKGROUND
   ============================================ */

/* إزالة الخلفية البيضاء من المربع الأساسي */

body.cart
salla-cart-summary-card.s-cart-summary-card {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;

    color: #0F203A !important;

    box-shadow: none !important;

    border: none !important;
}


/* ============================================
   3. CART SUMMARY INNER BACKGROUNDS
   ============================================ */

body.cart
salla-cart-summary-card
.s-cart-summary-card-sheet-wrap,

body.cart
salla-cart-summary-card
.s-cart-summary-card-sheet,

body.cart
salla-cart-summary-card
.s-cart-summary-card-line,

body.cart
salla-cart-summary-card
.s-cart-summary-card-bar,

body.cart
salla-cart-summary-card
.s-cart-summary-card-action {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;

    color: #0F203A !important;
}


/* إزالة أي خلفية بيضاء داخل ملخص الطلب */

body.cart
salla-cart-summary-card .bg-white,

body.cart
salla-cart-summary-card .bg-gray-50 {

    background-color: #EEDFC3 !important;
}


/* فواصل ملخص الطلب */

body.cart
salla-cart-summary-card hr {

    background: transparent !important;

    border-color: rgba(15, 32, 58, 0.15) !important;
}


/* ============================================
   4. COUPON OUTER CONTAINER
   ============================================ */

/* إزالة المربع والظل المحيط بالكوبون */

body.cart
div.shadow-default.bg-white:has(> salla-cart-coupons) {

    background: transparent !important;
    background-color: transparent !important;

    box-shadow: none !important;

    border: none !important;
    border-radius: 0 !important;

    padding: 0 !important;
}


/* ============================================
   5. COUPON INNER CONTAINER
   ============================================ */

body.cart
salla-cart-coupons,

body.cart
salla-cart-coupons
.s-cart-coupons-wrapper,

body.cart
salla-cart-coupons
.s-cart-coupons-input-section {

    background: transparent !important;
    background-color: transparent !important;

    color: #0F203A !important;

    box-shadow: none !important;
    border: none !important;
}


/* إزالة الحشو الزائد من حاوية الكوبون */

body.cart
salla-cart-coupons
.s-cart-coupons-wrapper {

    padding: 0 !important;
}


/* حقل إدخال الكوبون */

body.cart
salla-cart-coupons input:not([type="checkbox"]) {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;

    color: #0F203A !important;

    border-color: #0F203A !important;
}


/* ============================================
   END | SAPLING FINAL VISUAL POLISH
 ============================================ */
/* ==================================================
   SAPLING | HEADER CORRECTION V2
   PROFILE MENU + CART + MOBILE FIX
   ================================================== */


/* ==========================================
   01 | REMOVE WRONG UNDERLINE
   ========================================== */

header.sapling-one-active
.sapling-one-user,

header.sapling-one-active
.sapling-one-user salla-user-menu,

header.sapling-one-active
.sapling-one-user .s-user-menu-wrapper,

header.sapling-one-active
.sapling-one-user .s-user-menu-trigger-slot,

header.sapling-one-active
.sapling-one-user .s-user-menu-trigger,

header.sapling-one-active
.sapling-one-user-drawing {

    border-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}


/* إزالة خطوط الزخرفة أسفل أيقونة الحساب */

header.sapling-one-active
.sapling-one-user
.s-user-menu-trigger::before,

header.sapling-one-active
.sapling-one-user
.s-user-menu-trigger::after,

header.sapling-one-active
.sapling-one-user
.s-user-menu-trigger-slot::before,

header.sapling-one-active
.sapling-one-user
.s-user-menu-trigger-slot::after {

    border-bottom: 0 !important;
    box-shadow: none !important;
}


/* إظهار تحديد واضح عند استخدام لوحة المفاتيح */

header.sapling-one-active
.sapling-one-user:focus-within
.s-user-menu-trigger:focus-visible {

    outline: 2px solid #EEDFC3 !important;
    outline-offset: 3px !important;
}


/* ==========================================
   02 | PROFILE MENU FULL BEIGE
   ========================================== */

/* خلفية القائمة الأساسية */

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler,

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler.opened {

    background: #EEDFC3 !important;
    background-color: #EEDFC3 !important;

    color: #0F203A !important;

    border: 1px solid #D5C3A7 !important;

    box-shadow: 0 8px 24px rgba(15,32,58,0.12) !important;

    overflow: hidden;
}


/* تغيير جميع الطبقات البيضاء داخل القائمة */

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler :is(
    div,
    ul,
    li,
    a,
    button,
    span
) {

    background-color: #EEDFC3 !important;
    background-image: none !important;
}


/* ألوان الروابط والأيقونات */

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler
:is(a, button, span, i, svg) {

    color: #0F203A !important;
}


/* لون التمييز عند مرور المؤشر */

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler
:is(a, button, li):hover,

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler
li:hover > :is(a, button, div) {

    background-color: #E1CFAF !important;
}


/* المحافظة على اللون الأحمر لتسجيل الخروج */

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler
a[href*="logout"],

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler
a[href*="logout"] *,

header.sapling-one-active
.sapling-one-user
.s-user-menu-toggler
.text-red-500 {

    color: #DC3545 !important;
}


/* ==========================================
   03 | SHOPPING CART WRAPPER
   ========================================== */

/* الحاوية الرئيسية للعربة */

header.sapling-one-active
.sapling-one-cart {

    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;

    overflow: visible !important;
}


/* رابط سلة التسوق الأصلي */

header.sapling-one-active
.sapling-one-cart
.s-cart-summary-wrapper {

    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    overflow: visible !important;
}


/* ==========================================
   04 | HIDE ORIGINAL CART ICON
   ========================================== */

/* إخفاء الرسم السابق فقط */

header.sapling-one-active
.sapling-one-cart
#s-cart-icon {

    visibility: hidden !important;
}


/* إخفاء رسم pseudo القديم */

header.sapling-one-active
.sapling-one-cart
#s-cart-icon::before {

    content: none !important;
    display: none !important;
}


/* ==========================================
   05 | COMPLETE SHOPPING CART ICON
   ========================================== */

/* رسم العربة على الرابط الأساسي */

header.sapling-one-active
.sapling-one-cart
.s-cart-summary-wrapper::before {

    content: "" !important;

    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    display: block !important;

    width: 30px !important;
    height: 30px !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23EEDFC3' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h4l3.3 16h16l3.5-12H8'/%3E%3Ccircle cx='12' cy='26' r='1.5'/%3E%3Ccircle cx='24' cy='26' r='1.5'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;

    pointer-events: none !important;

    z-index: 1 !important;
}


/* ==========================================
   06 | SHOPPING CART COUNT
   ========================================== */

header.sapling-one-active
.sapling-one-cart
.s-cart-summary-count {

    position: absolute !important;

    top: -3px !important;
    right: -3px !important;
    left: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 19px !important;
    height: 19px !important;

    padding: 0 4px !important;

    background: #DD8290 !important;
    background-color: #DD8290 !important;

    color: #0F203A !important;

    border: 2px solid #0F203A !important;
    border-radius: 50px !important;

    font-family: "Cairo", sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    transform: none !important;

    z-index: 5 !important;

    pointer-events: none !important;
}


/* إخفاء العداد الفارغ */

header.sapling-one-active
.sapling-one-cart
.s-cart-summary-count:empty {

    display: none !important;
}


/* إخفاء النصوص الإضافية دون إخفاء العدد */

header.sapling-one-active
.sapling-one-cart
.s-cart-summary-content {

    display: none !important;
}


/* ==========================================
   07 | MOBILE CART CORRECTION
   ========================================== */

@media (max-width: 1023px) {

    header.sapling-one-active
    .sapling-one-cart {

        flex: 0 0 36px !important;

        width: 36px !important;
        height: 40px !important;

        overflow: visible !important;
    }

    header.sapling-one-active
    .sapling-one-cart
    salla-cart-summary {

        width: 36px !important;
        height: 40px !important;

        overflow: visible !important;
    }

    header.sapling-one-active
    .sapling-one-cart
    .s-cart-summary-wrapper {

        width: 36px !important;
        height: 40px !important;

        overflow: visible !important;
    }

    /* نفس الرسم على الجوال */

    header.sapling-one-active
    .sapling-one-cart
    .s-cart-summary-wrapper::before {

        width: 28px !important;
        height: 28px !important;

        background-size: contain !important;
    }

    /* موقع شارة عدد المنتجات */

    header.sapling-one-active
    .sapling-one-cart
    .s-cart-summary-count {

        top: -2px !important;
        right: -3px !important;

        min-width: 18px !important;
        height: 18px !important;

        font-size: 10px !important;
    }

}


/* ==========================================
   END | SAPLING HEADER CORRECTION V2
   ========================================== */
/* ==================================================
   SAPLING | FINAL HEADER LAYOUT
   DESKTOP + MOBILE
   POSITION ONLY - NO DESIGN CHANGES
   ================================================== */


/* 1. Allow header elements to use main grid */

header.sapling-one-active
.sapling-one-left {
    display: contents !important;
}


/* 2. CART - FAR LEFT */

header.sapling-one-active
.sapling-one-left > .sapling-one-cart {
    grid-column: 1 !important;
    grid-row: 1 !important;

    justify-self: start !important;
    align-self: center !important;

    margin: 0 !important;
}


/* 3. SEARCH - NEXT TO CART */

header.sapling-one-active
.sapling-one-left > .sapling-one-icon[aria-controls="sapling-one-search"] {
    grid-column: 1 !important;
    grid-row: 1 !important;

    justify-self: start !important;
    align-self: center !important;

    margin: 0 0 0 52px !important;
}


/* 4. PROFILE - NEXT TO CATEGORIES MENU */

header.sapling-one-active
.sapling-one-left > .sapling-one-user {
    grid-column: 3 !important;
    grid-row: 1 !important;

    justify-self: end !important;
    align-self: center !important;

    margin: 0 52px 0 0 !important;

    z-index: 100 !important;
}


/* 5. CATEGORIES - FAR RIGHT */

header.sapling-one-active
.sapling-one-menu-button {
    grid-column: 3 !important;
    grid-row: 1 !important;

    justify-self: end !important;
    align-self: center !important;

    margin: 0 !important;
}


/* 6. BRAND NAME - EXACT CENTER */

header.sapling-one-active
.sapling-one-name {
    grid-column: 2 !important;
    grid-row: 1 !important;

    justify-self: center !important;
    align-self: center !important;
}


/* ==================================================
   MOBILE ADJUSTMENTS
   ================================================== */

@media (max-width: 1023px) {

    /* Search next to cart */

    header.sapling-one-active
    .sapling-one-left >
    .sapling-one-icon[aria-controls="sapling-one-search"] {
        margin-left: 40px !important;
    }


    /* Profile next to categories */

    header.sapling-one-active
    .sapling-one-left > .sapling-one-user {
        margin-right: 40px !important;
    }

}


/* ==================================================
   SMALL MOBILE
   ================================================== */

@media (max-width: 360px) {

    header.sapling-one-active
    .sapling-one-left >
    .sapling-one-icon[aria-controls="sapling-one-search"] {
        margin-left: 34px !important;
    }


    header.sapling-one-active
    .sapling-one-left > .sapling-one-user {
        margin-right: 34px !important;
    }

}


/* ==================================================
   END | SAPLING FINAL HEADER LAYOUT
   ================================================== */
/* ==========================================
   SAPLING | HEADER CLEAN FIX V4
   Profile + Menu
   ========================================== */

/* 1. ضبط حاوية البروفايل */

header.sapling-one-active
.sapling-one-user {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* 2. إخفاء الرسم الأصلي دون تعطيل الضغط */

header.sapling-one-active
.sapling-one-user
.s-user-menu-trigger-slot {
    opacity: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 3. إزالة الخط من العناصر الداخلية */

header.sapling-one-active
.sapling-one-user
.s-user-menu-wrapper,

header.sapling-one-active
.sapling-one-user
.s-user-menu-trigger {

    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* 4. إظهار رسم البروفايل الخاص بنا */

header.sapling-one-active
.sapling-one-user-drawing {
    position: absolute !important;
    inset: 0 !important;

    width: 40px !important;
    height: 40px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #0F203A !important;
    color: #EEDFC3 !important;

    border: none !important;
    box-shadow: none !important;

    pointer-events: none !important;
    z-index: 10 !important;
}

/* 5. الحفاظ على حجم أيقونة الحساب */

header.sapling-one-active
.sapling-one-user-drawing svg {
    width: 23px !important;
    height: 23px !important;
}

/* 6. تكبير الثلاث شرطات بشكل متوازن */

header.sapling-one-active
.sapling-one-menu-button svg {
    width: 29px !important;
    height: 29px !important;
    display: block !important;
    margin: auto !important;
}

/* 7. الجوال */

@media (max-width: 1023px) {

    header.sapling-one-active
    .sapling-one-user {
        width: 36px !important;
        height: 40px !important;
    }

    header.sapling-one-active
    .sapling-one-user-drawing {
        width: 36px !important;
        height: 40px !important;
    }

    header.sapling-one-active
    .sapling-one-menu-button svg {
        width: 29px !important;
        height: 29px !important;
    }
}

/* END | SAPLING HEADER CLEAN FIX V4 */
/* =====================================
   SAPLING | REMOVE PROFILE UNDERLINE
   ===================================== */

header.sapling-one-active
.sapling-one-user::after {
    content: "" !important;
    position: absolute !important;

    bottom: -5px !important;
    left: -15px !important;

    width: 70px !important;
    height: 6px !important;

    background: #0F203A !important;

    z-index: 20 !important;
    pointer-events: none !important;
}

/* END */