/*
 * ═══════════════════════════════════════════
 * SHATLAH BLOOM — MASTER CSS (Clean Version)
 * ═══════════════════════════════════════════
 */

/* ── 1. FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── 2. DESIGN TOKENS ── */
:root {
  --s-primary:      #334f2b;
  --s-primary-l:    #4a6741;
  --s-bg:           #fafaf5;
  --s-surface:      #ffffff;
  --s-surface-low:  #f4f4ef;
  --s-surface-high: #ebebdf;
  --s-chip:         #d2e5c8;
  --s-text:         #1a1c19;
  --s-shadow-a:     0 20px 40px rgba(26,28,25,0.06);
  --s-shadow-b:     0 30px 60px rgba(26,28,25,0.10);
  --s-font-body:    "IBM Plex Sans Arabic", sans-serif;
  --s-font-display: "Manrope", "IBM Plex Sans Arabic", sans-serif;
}

/* ── 3. GLOBAL ── */
body {
  background-color: var(--s-bg) !important;
  color: var(--s-text) !important;
  font-family: var(--s-font-body) !important;
  line-height: 1.8 !important;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--s-font-display) !important;
  font-weight: 800 !important;
  color: var(--s-primary) !important;
  letter-spacing: -0.02em !important;
}
hr { display: none !important; }

/* ── 4. HEADER (Responsive) ── */

@media (max-width: 1023px) {
  header.store-header {
    background: var(--s-primary) !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    box-shadow: 0 4px 20px rgba(27,42,24,0.2) !important;
  }
  .main-nav-container, #mainnav {
    background: var(--s-primary) !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 0 1.5rem 1.5rem !important;
    border: none !important;
    min-height: 64px !important;
  }
  .top-navbar { display: none !important; }
  .navbar-brand img { max-height: 36px !important; }
  #mainnav .container { padding-right: 16px !important; padding-left: 16px !important; }
  .mburger b { background: #ffffff !important; }
}

@media (min-width: 1024px) {
  header.store-header {
    background: transparent !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border: none !important;
  }
  .main-nav-container, #mainnav {
    background: rgba(51,79,43,0.92) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 3rem !important;
    width: calc(100% - 48px) !important;
    max-width: 1440px !important;
    margin: 1.25rem auto !important;
    box-shadow: 0 16px 48px rgba(27,42,24,0.22) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }
}

header.store-header * { color: #fff !important; }
.top-navbar { background: rgba(30,54,25,0.45) !important; border: none !important; }

/* ── شريط البحث: نص أبيض دائماً حتى عند الفوكس ── */
.s-search-input {
  background: rgba(255,255,255,0.13) !important;
  border-radius: 9999px !important;
  border: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
}
.s-search-input::placeholder { color: rgba(255,255,255,0.55) !important; }
.s-search-input:focus {
  background: rgba(255,255,255,0.22) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25) !important;
}
/* --- Shatlah Bloom: Woodmart Style Product Cards --- */

/* 1. تصميم الحاوية الأساسية للبطاقة */
.s-product-card {
    background: #ffffff !important;
    border-radius: 15px !important; /* زوايا دائرية ناعمة ومنتظمة */
    border: 1px solid #f0f0f0 !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; /* حركة ناعمة جداً */
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 2. تأثير التمرير (Hover) - ارتفاع بسيط وظل عميق */
.s-product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: #d68b65 !important; /* تغيير لون الحدود عند التمرير للفخاري */
}

/* 3. تنسيق الصورة (تجعل المنتج يبرز) */
.s-product-card-image {
    padding: 0 !important;
    overflow: hidden;
    background: #fdfdfd;
}

.s-product-card-image img {
    transition: transform 0.6s ease !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.s-product-card:hover .s-product-card-image img {
    transform: scale(1.08) !important; /* تكبير بسيط جداً للصورة عند التمرير */
}

/* 4. تفاصيل المنتج (العنوان والسعر) */
.s-product-card-content {
    padding: 15px !important;
    text-align: center;
    flex-grow: 1;
}

.s-product-card-title h3, .s-product-card-title a {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #334f2b !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    transition: color 0.3s ease;
}

.s-product-card:hover .s-product-card-title a {
    color: #d68b65 !important; /* يتغير العنوان للون الفخاري عند التمرير */
}

/* 5. تنسيق السعر */
.s-product-card-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.s-product-card-price .s-product-card-price-main {
    color: #d68b65 !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
}

/* 6. زر "إضافة للسلة" (يظهر بنعومة) */
.s-product-card-add-button {
    background-color: #334f2b !important; /* الأخضر الغامق الأساسي */
    color: white !important;
    border-radius: 10px !important;
    margin: 10px 15px 15px 15px !important;
    height: 45px !important;
    font-weight: 600 !important;
    opacity: 0.9;
    transition: all 0.3s ease !important;
    border: none !important;
}

.s-product-card-add-button:hover {
    background-color: #d68b65 !important; /* يتحول للفخاري عند اللمس */
    opacity: 1;
    transform: scale(1.02);
}

/* 7. ملصقات الخصم (Rounded Labels) */
.s-product-card-label {
    background: #d68b65 !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    top: 10px !important;
    right: 10px !important;
}

/* ── 6. WISHLIST BUTTON ── */
.s-product-card-image *,
.s-product-card-image-wrap * {
  color: unset !important;
  -webkit-text-fill-color: unset !important;
}
.s-product-card-wishlist-btn {
  background: #ffffff !important;
  border-radius: 9999px !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  transition: all .3s ease !important;
}
.s-product-card-wishlist-btn i,
.s-product-card-wishlist-btn button,
.s-product-card-wishlist-btn svg {
  color: var(--s-primary) !important;
  -webkit-text-fill-color: var(--s-primary) !important;
  fill: var(--s-primary) !important;
  font-size: 1rem !important;
}
.s-product-card-wishlist-btn:hover {
  background: var(--s-primary) !important;
  transform: scale(1.12) !important;
}
.s-product-card-wishlist-btn:hover i,
.s-product-card-wishlist-btn:hover button {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.s-product-card-wishlist-btn.added i,
.s-product-card-wishlist-btn.favorited i {
  color: #e53e3e !important;
  -webkit-text-fill-color: #e53e3e !important;
}

/* ── 7. CATEGORY CARDS ── */
.slide--cat-entry, .s-categories-block a {
  background: var(--s-surface) !important;
  border-radius: 1.5rem !important;
  border: none !important;
  box-shadow: var(--s-shadow-a) !important;
  overflow: hidden !important;
  transition: transform .4s ease, box-shadow .4s ease !important;
}
.slide--cat-entry:hover { transform: translateY(-6px) scale(1.03) !important; box-shadow: var(--s-shadow-b) !important; }
.slide--cat-entry img { border-radius: 1.25rem !important; border: none !important; transition: transform .6s ease !important; }
.slide--cat-entry:hover img { transform: scale(1.08) !important; }

/* ── 8. BADGES ── */
.s-product-card-promotion-title,
.badge, .promotion-title, #offer-corner-badge {
  background: var(--s-chip) !important;
  color: var(--s-primary) !important;
  border-radius: 9999px !important;
  padding: 4px 14px !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  border: none !important;
}

/* ── 9. BUTTONS ── */
.btn, salla-button button, .s-button-btn {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: all .35s cubic-bezier(.175,.885,.32,1.275) !important;
}
.btn--primary, [color="primary"] button, .s-add-to-cart-btn {
  background: linear-gradient(135deg, var(--s-primary), var(--s-primary-l)) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(51,79,43,0.22) !important;
}
.btn--primary:hover, [color="primary"] button:hover {
  transform: scale(1.04) translateY(-2px) !important;
}

/* ── 10. INPUTS (خارج الهيدر) ── */
:not(header) input[type="text"],
:not(header) input[type="email"],
:not(header) input[type="password"],
:not(header) input[type="tel"],
:not(header) textarea,
:not(header) select,
.form-input {
  background: var(--s-surface-high) !important;
  border-radius: 1.5rem !important;
  border: 1.5px solid transparent !important;
  padding: 12px 18px !important;
  font-size: 16px !important;
  color: var(--s-text) !important;
  -webkit-text-fill-color: var(--s-text) !important;
}
:not(header) input:focus,
:not(header) textarea:focus,
.form-input:focus {
  background: #fff !important;
  border-color: rgba(51,79,43,0.25) !important;
  box-shadow: 0 0 0 4px rgba(51,79,43,0.06) !important;
  outline: none !important;
  color: var(--s-text) !important;
  -webkit-text-fill-color: var(--s-text) !important;
}

/* ── 11. FEATURES ── */
.s-block--features,
.s-block--features > *,
[class*="features"] > .container { background: transparent !important; border: none !important; box-shadow: none !important; }
.s-block--features__item {
  background: transparent !important;
  box-shadow: none !important; border: none !important; outline: none !important;
  border-radius: 0 !important; padding: 20px 16px !important;
  position: static !important; overflow: visible !important;
  display: flex !important; flex-direction: column !important;
  align-items: center !important; text-align: center !important;
  transition: transform .3s ease !important;
}
.s-block--features__item:hover { transform: translateY(-5px) !important; }
.s-block--features__item i,
.s-block--features__item svg {
  color: var(--s-primary) !important; background: var(--s-chip) !important;
  border-radius: 9999px !important;
  width: 64px !important; height: 64px !important;
  min-width: 64px !important; min-height: 64px !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; font-size: 1.6rem !important;
  margin: 0 auto 18px !important; border: none !important;
  box-shadow: 0 8px 24px rgba(51,79,43,0.15) !important;
}
.s-block--features__item h3 {
  font-family: var(--s-font-display) !important; font-weight: 700 !important;
  color: var(--s-primary) !important; font-size: 1rem !important; margin-bottom: 8px !important;
}
.s-block--features__item p {
  color: rgba(26,28,25,0.55) !important; font-size: 0.85rem !important;
  line-height: 1.7 !important; margin: 0 !important;
}

/* ── 12. MOBILE MENU ── */
.mm-ocd__content, .mm-spn { background: var(--s-primary) !important; border: none !important; }
.mm-spn li { border: none !important; border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
.mm-spn a {
  color: #fff !important; font-family: var(--s-font-display) !important;
  font-weight: 600 !important; padding: 16px 20px !important;
  border: none !important; background: transparent !important;
}
.mm-spn a:hover { background: rgba(255,255,255,0.1) !important; }
.mm-spn a::after { border-color: rgba(255,255,255,0.5) !important; }

/* ── 13. SECTIONS ── */
.s-block--slider-with-bg, .s-comments-product {
  background: var(--s-surface-low) !important;
  border-radius: 2rem !important; border: none !important;
}

/* ── 14. FOOTER ── */
footer.store-footer,
footer.store-footer > *,
.store-footer__inner,
.store-footer .container,
.store-footer .grid {
  background: var(--s-primary) !important;
  color: #fff !important; border: none !important;
}
footer.store-footer {
  border-radius: 4rem 4rem 0 0 !important;
  margin-top: 120px !important;
  padding: 80px 24px 48px !important;
}
footer.store-footer * { color: #fff !important; }
.store-footer__inner { border-bottom: 1px solid rgba(255,255,255,0.12) !important; }
.sub-footer { background: transparent !important; border-top: 1px solid rgba(255,255,255,0.1) !important; }
.copyright-text p { color: rgba(255,255,255,0.5) !important; font-size: .8rem !important; }

/* ── BANNER ── */
.s-block--fixed-banner img, .s-block--banner img,
[class*="banner"] img, img[alt="fixed banner"] { border-radius: 2rem !important; }
.s-block--fixed-banner, .s-block--banner,
[class*="banner-block"] { border-radius: 2rem !important; overflow: hidden !important; }

/* ── SLIDER TITLE BAR ── */
.s-slider-block__title {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px !important; margin-bottom: 24px !important;
  background: linear-gradient(135deg, rgba(51,79,43,0.06), rgba(74,103,65,0.04)) !important;
  border-radius: 9999px !important;
  border: 1.5px solid rgba(51,79,43,0.10) !important;
  backdrop-filter: blur(8px) !important;
}
.s-slider-block__title h2 {
  font-family: var(--s-font-display) !important;
  font-weight: 800 !important; font-size: 1.1rem !important;
  color: var(--s-primary) !important; margin: 0 !important;
}
.s-slider-block__title-left { display: flex !important; align-items: center !important; gap: 10px !important; }
.s-slider-block__display-all {
  font-size: 0.82rem !important; font-weight: 600 !important;
  color: var(--s-primary) !important; background: var(--s-chip) !important;
  padding: 6px 16px !important; border-radius: 9999px !important;
  border: none !important; text-decoration: none !important;
  transition: all 0.3s ease !important; white-space: nowrap !important;
}
.s-slider-block__display-all:hover { background: var(--s-primary) !important; color: #fff !important; }
.s-slider-prev, .s-slider-next, .s-slider-nav-arrow {
  background: #fff !important; border: none !important;
  border-radius: 9999px !important;
  width: 36px !important; height: 36px !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(51,79,43,0.12) !important;
  transition: all 0.3s ease !important; padding: 0 !important;
}
.s-slider-nav-arrow svg, .s-slider-button-icon svg {
  width: 18px !important; height: 18px !important;
  fill: var(--s-primary) !important;
}
.s-slider-nav-arrow:hover { background: var(--s-primary) !important; transform: scale(1.1) !important; }
.s-slider-nav-arrow:hover svg { fill: #fff !important; }
.s-slider-nav-arrow[disabled], .s-slider-nav-arrow.swiper-button-disabled { opacity: 0.35 !important; }

/* ══════════════════════════════════════════
   MOBILE FIXES
   ══════════════════════════════════════════ */

@media (max-width: 1023px) {
  header.store-header {
    position: fixed !important;
    top: 0 !important; right: 0 !important; left: 0 !important;
    width: 100% !important; z-index: 9999 !important;
    background: #334f2b !important; border-radius: 0 !important; margin: 0 !important;
  }
  body { padding-top: 64px !important; }
  .s-slider-block, .s-block, [class*="s-block"], section {
    padding-right: 16px !important;
    padding-left: 16px !important;
    margin-bottom: 32px !important;
  }
  .s-block--fixed-banner, .s-block--banner, [class*="banner"] {
    margin-bottom: 32px !important;
    margin-right: 16px !important; margin-left: 16px !important;
    border-radius: 1.5rem !important; overflow: hidden !important;
  }
  .container { padding-right: 16px !important; padding-left: 16px !important; }
  .s-products-list, [class*="products-list"], .s-products-list-wrapper { gap: 12px !important; padding: 0 !important; }
  .s-slider-block { margin-bottom: 40px !important; }
  .s-slider-block__title { margin-right: 0 !important; margin-left: 0 !important; padding: 10px 14px !important; }
  .s-product-card, .s-product-card-entry { padding: 8px !important; border-radius: 1.5rem !important; }
  main, #content, .page-content { padding-top: 16px !important; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  header.store-header { position: fixed !important; top: 0 !important; z-index: 9999 !important; }
  body { padding-top: 72px !important; }
}

/* ════════════════════════════════════
  )
   ════════════════════════════════════ */
@media (max-width: 767px) {
  .s-block--banners .grid:has(.square-photos) {
    justify-content: flex-start !important; 
    flex-wrap: nowrap !important; /* يجبرهم على الانضمام كشريط */
    overflow-x: auto !important;  /* تفعيل السحب */
    overflow-y: visible !important; /* ترك التمرير العمودي يعمل بشكل طبيعي */
    -webkit-overflow-scrolling: touch !important; 
    scrollbar-width: none !important; 
    gap: 16px !important;
    padding: 10px 16px 20px !important; 
  }
  
  .s-block--banners .grid:has(.square-photos)::-webkit-scrollbar {
    display: none !important;
  }

  .banner-entry.square-photos {
    width: 95px !important; 
  }
  
  .banner-entry.square-photos .lazy__bg,
  .banner-entry.square-photos .lazy {
    width: 90px !important;     
    height: 105px !important; 
    border-radius: 1.25rem !important; 
  }
  
  .banner-entry.square-photos::after {
    font-size: 0.82rem !important;
    margin-top: 10px !important;
  }
}
/* ═══════════════════════════════════════════
   SHATLAH BLOOM — SINGLE PRODUCT DETAILS
   ═══════════════════════════════════════════ */

/* ── 1. الحاوية الأساسية للمحتوى ── */
.main-content {
    background: transparent !important;
}

/* ── 2. عنوان المنتج ── */
.main-content h1 {
    font-family: var(--s-font-display) !important;
    font-weight: 800 !important;
    color: var(--s-primary) !important;
    font-size: 1.8rem !important; /* تكبير العنوان ليعطي طابع فخم */
    line-height: 1.4 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 1.5rem !important;
}

/* ── 3. السعر والتخفيض (أسفل العنوان) ── */
.main-content .price-wrapper h2.total-price,
.main-content p.text-red-800,
.main-content .price_is_on_sale h2 {
    font-family: var(--s-font-display) !important;
    font-weight: 800 !important;
    color: var(--s-primary) !important; /* تغيير اللون الأحمر للون الأخضر الخاص بالهوية */
    font-size: 1.4rem !important;
}

/* السعر قبل الخصم (مشطوب) */
.main-content .price-wrapper span.before-price,
.main-content span.line-through {
    color: rgba(26, 28, 25, 0.4) !important; /* لون رمادي ناعم جداً */
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-decoration-color: rgba(26, 28, 25, 0.3) !important;
}

/* ── 4. أزرار المشاركة والمفضلة (Icons) ── */
.main-content salla-social-share .s-social-share-btn button,
.main-content salla-button.btn--wishlist button {
    background: var(--s-surface-high) !important; /* لون خلفية ناعم */
    border-radius: 9999px !important; /* دائري تماماً */
    border: none !important;
    box-shadow: none !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.main-content salla-social-share .s-social-share-btn button svg,
.main-content salla-button.btn--wishlist button i {
    color: var(--s-primary) !important;
    fill: var(--s-primary) !important;
    font-size: 1.2rem !important;
    transition: all 0.4s ease !important;
}

/* تأثير الـ Hover على أيقونات المشاركة والمفضلة */
.main-content salla-social-share .s-social-share-btn button:hover,
.main-content salla-button.btn--wishlist button:hover {
    background: var(--s-primary) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(51, 79, 43, 0.2) !important;
}

.main-content salla-social-share .s-social-share-btn button:hover svg,
.main-content salla-button.btn--wishlist button:hover i {
    color: #fff !important;
    fill: #fff !important;
}

/* ── 5. صندوق خيارات الشراء (Form & Sticky Bar) ── */
.main-content form.product-form section {
    background: var(--s-surface) !important;
    border-radius: 2rem !important; /* حواف منحنية كبيرة تتناسق مع الصور */
    box-shadow: var(--s-shadow-a) !important;
    border: none !important;
    padding: 24px !important;
    margin-bottom: 16px !important;
    outline: 1.5px solid rgba(51, 79, 43, 0.05) !important;
}

/* إزالة تدوير الحواف السفلي القديم وجعله متناسق */
.main-content form.product-form section.rounded-b-none {
    border-radius: 2rem !important; 
}

.main-content .form-label b,
.main-content .form-label {
    font-family: var(--s-font-display) !important;
    font-weight: 700 !important;
    color: var(--s-text) !important;
    font-size: 1rem !important;
}

/* ── 6. محدد الكمية (Quantity Input) ── */
salla-quantity-input .s-quantity-input-container {
    background: var(--s-bg) !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(51, 79, 43, 0.1) !important;
    padding: 2px !important;
}

salla-quantity-input .s-quantity-input-button {
    background: #fff !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
}
salla-quantity-input .s-quantity-input-button:hover {
    background: var(--s-primary) !important;
}
salla-quantity-input .s-quantity-input-button:hover svg {
    fill: #fff !important;
}
salla-quantity-input .s-quantity-input-input {
    font-family: var(--s-font-display) !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    color: var(--s-primary) !important;
    background: transparent !important;
    border: none !important;
}

/* ── 7. أزرار الشراء (إضافة للسلة وشراء سريع) ── */
.s-add-product-button-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

salla-add-product-button button[type="submit"] {
    background: linear-gradient(135deg, var(--s-primary), var(--s-primary-l)) !important;
    color: #fff !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 16px 24px !important;
    box-shadow: 0 8px 24px rgba(51, 79, 43, 0.25) !important;
    border: none !important;
    transition: all 0.4s ease !important;
}

salla-add-product-button button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 32px rgba(51, 79, 43, 0.35) !important;
}

/* زر الشراء السريع (آبل باي / بطاقة) */
salla-mini-checkout-widget button.s-fast-checkout-button {
    background: var(--s-chip) !important;
    color: var(--s-primary) !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 14px 24px !important;
    border: none !important;
    transition: all 0.4s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

salla-mini-checkout-widget button.s-fast-checkout-button:hover {
    background: var(--s-primary) !important;
    color: #fff !important;
}
salla-mini-checkout-widget button.s-fast-checkout-button:hover svg path {
    fill: #fff !important;
}

/* ── 8. وصف المنتج (التنسيق الداخلي) ── */
.product__description {
    color: rgba(26, 28, 25, 0.75) !important;
    font-size: 0.95rem !important;
    line-height: 1.9 !important;
}
.product__description ul {
    margin-top: 10px !important;
    padding-inline-start: 24px !important;
}
.product__description ul li {
    margin-bottom: 8px !important;
    position: relative !important;
}

/* ── 9. إخفاء أو إعادة تنسيق أشرطة "تمارا / تابي" إذا لزم الأمر ── */
tamara-widget {
    margin-bottom: 1.5rem !important;
    display: block !important;
    opacity: 0.9 !important;
}

/* تخصيص خفيف لرسالة "نفدت الكمية" */
.out-of-stock {
    background: rgba(229, 62, 62, 0.1) !important;
    color: #e53e3e !important;
    padding: 6px 16px !important;
    border-radius: 9999px !important;
    font-size: 0.85rem !important;
}
/* ═══════════════════════════════════════════
   SHATLAH BLOOM — CART PAGE (سلة المشتريات)
   ═══════════════════════════════════════════ */

/* ── 1. كروت المنتجات داخل السلة ── */
.cart-item {
    background: var(--s-surface) !important;
    border-radius: 2rem !important; /* انحناء متناسق مع باقي المكونات */
    box-shadow: var(--s-shadow-a) !important; /* ظل ناعم */
    border: none !important;
    outline: 1.5px solid rgba(51, 79, 43, 0.05) !important;
    padding: 24px !important;
    transition: all 0.4s ease !important;
}

.cart-item:hover {
    outline-color: rgba(51, 79, 43, 0.15) !important;
    box-shadow: var(--s-shadow-b) !important;
}

/* ── 2. صورة المنتج داخل السلة ── */
.cart-item img {
    border-radius: 1.5rem !important;
    border: none !important;
    outline: 1px solid rgba(51, 79, 43, 0.08) !important;
    outline-offset: -1px !important;
    background-color: var(--s-surface-low) !important; /* لون خلفية للصور الشفافة */
}

/* ── 3. عنوان المنتج ── */
.cart-item h1 a {
    font-family: var(--s-font-display) !important;
    font-weight: 800 !important;
    color: var(--s-text) !important;
    font-size: 1.1rem !important;
    transition: color 0.3s ease !important;
}
.cart-item h1 a:hover {
    color: var(--s-primary) !important;
}

/* ── 4. الأسعار داخل الكارت ── */
.cart-item .item-price,
.cart-item .item-total,
.cart-item .text-red-800 {
    font-family: var(--s-font-display) !important;
    color: var(--s-primary) !important; /* توحيد اللون الأحمر إلى اللون الأخضر الزيتي */
    font-weight: 800 !important;
}

.cart-item .item-original-price,
.cart-item .item-regular-price {
    color: rgba(26, 28, 25, 0.4) !important;
    font-weight: 500 !important;
}

/* إخفاء حدود الجدول الداخلية إن وجدت بين السعر والكمية */
.cart-item .border-t, 
.cart-item .border-b {
    border-color: rgba(51, 79, 43, 0.05) !important;
}

/* ── 5. زر الحذف (سلة المهملات / إلغاء) ── */
.cart-item .btn--delete button {
    background: rgba(229, 62, 62, 0.08) !important; /* أحمر خفيف جداً فخم */
    color: #e53e3e !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    box-shadow: none !important;
    border: none !important;
    transition: all 0.3s ease !important;
}
.cart-item .btn--delete button:hover {
    background: #e53e3e !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}
.cart-item .btn--delete button i {
    font-size: 1.1rem !important;
}

/* ── 6. الشريط الجانبي (ملخص الطلب والشحن المجاني) ── */
.sticky.top-24 > div,
#free-shipping,
#cart-gifting,
.shadow-default.bg-white {
    background: var(--s-surface) !important;
    border-radius: 2rem !important;
    box-shadow: var(--s-shadow-a) !important;
    border: none !important;
    outline: 1.5px solid rgba(51, 79, 43, 0.05) !important;
    padding: 24px !important;
}

/* ── 7. مؤشر الشحن المجاني (Free Shipping) ── */
#free-shipping .bg-primary,
#free-shipping .text-white {
    background: var(--s-primary) !important; /* لون الأيقونة */
    color: #fff !important;
}

#free-shipping h4 {
    font-family: var(--s-font-display) !important;
    font-weight: 800 !important;
    color: var(--s-text) !important;
}

#free-shipping .progress-bg {
    background: var(--s-primary) !important; /* شريط التعبئة */
    box-shadow: 0 4px 12px rgba(51, 79, 43, 0.2) !important;
}
#free-shipping-bar {
    background: var(--s-chip) !important; /* خلفية شريط الشحن المجاني */
}

/* ── 8. عناوين ملخص الطلب و المبالغ ── */
.shadow-default.bg-white h2 {
    font-family: var(--s-font-display) !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: var(--s-primary) !important;
    margin-bottom: 24px !important;
}

.shadow-default.bg-white b,
.shadow-default.bg-white [data-cart-total] {
    font-family: var(--s-font-display) !important;
    font-weight: 800 !important;
    color: var(--s-primary) !important; /* توحيد ألوان الإجمالي */
    font-size: 1.1rem !important;
}
[data-cart-total] {
    font-size: 1.4rem !important; /* تكبير الإجمالي النهائي */
}

/* ── 9. زر "إتمام الطلب" ── */
#cart-submit button {
    background: linear-gradient(135deg, var(--s-primary), var(--s-primary-l)) !important;
    color: #fff !important;
    border-radius: 9999px !important; /* كبسولي */
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 16px !important;
    box-shadow: 0 8px 24px rgba(51, 79, 43, 0.25) !important;
    border: none !important;
    transition: all 0.4s ease !important;
}

#cart-submit button:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 32px rgba(51, 79, 43, 0.35) !important;
}

/* ── 10. إيقونة وشريط "إرسال كهدية" ── */
.s-gifting-widget h3 {
    color: var(--s-primary) !important;
}
.s-gifting-widget-action button {
    border-radius: 9999px !important;
    border: 1.5px solid var(--s-primary) !important;
    color: var(--s-primary) !important;
    font-weight: 700 !important;
}
.s-gifting-widget-action button:hover {
    background: var(--s-primary) !important;
    color: #fff !important;
}
.s-gifting-widget-action button:hover svg {
    fill: #fff !important;
}
/* ═══════════════════════════════════════════
   إصلاح عرض صور المنتجات (لإظهارها بالكامل)
   ═══════════════════════════════════════════ */

/* ── 1. صور المنتجات في الرئيسية والأقسام (Cards) ── */
.s-product-card-image img,
.s-product-card-image-wrap img,
.s-product-card-entry img,
salla-product-card img {
    object-fit: contain !important; /* هذا السطر السحري يمنع قص الصورة */
    object-position: center !important;
    width: 100% !important;
    height: 100% !important;
    background-color: var(--s-surface) !important; /* نجعل الخلفية بيضاء لدمج الفراغات بذكاء */
    padding: 8px !important; /* مساحة تنفس خفيفة حتى لا تلامس الصورة الحواف المنحنية */
    border-radius: 1.5rem !important;
}

/* ── 2. صور المنتجات داخل السلة (Cart) ── */
.cart-item img {
    object-fit: contain !important; 
    padding: 4px !important;
    background-color: transparent !important; /* بالسلة يفضل خلفية شفافة */
}

/* ── 3. صورة المنتج الرئيسية داخل صفحة المنتج ── */
.details-slider .swiper-slide img,
.product-slider img,
.main-product-image {
    object-fit: contain !important;
    background-color: var(--s-surface) !important;
    padding: 16px !important; /* مسافة أمان أكبر داخل صفحة المنتج */
}
/* ═══════════════════════════════════════════
   SHATLAH BLOOM — CATEGORY & PRODUCTS LIST
   ═══════════════════════════════════════════ */

/* ── 1. عنوان الصفحة (عدد المنتجات) ── */
#page-main-title {
    font-family: var(--s-font-display) !important;
    font-weight: 800 !important;
    color: var(--s-primary) !important;
    font-size: 1.4rem !important;
}

#page-main-title span {
    color: var(--s-text) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

/* ── 2. قائمة الترتيب (الفرز) ── */
.form-input#product-filter {
    background: var(--s-surface) !important; /* خلفية بيضاء نقية للفلتر */
    border-radius: 9999px !important; /* شكل كبسولي */
    border: none !important;
    box-shadow: 0 4px 12px rgba(26, 28, 25, 0.04) !important;
    padding: 8px 16px !important;
    font-family: var(--s-font-display) !important;
    font-weight: 700 !important;
    color: var(--s-primary) !important;
    cursor: pointer !important;
    outline: 1.5px solid rgba(51, 79, 43, 0.07) !important;
    transition: all 0.3s ease !important;
}

.form-input#product-filter:focus,
.form-input#product-filter:hover {
    box-shadow: 0 6px 16px rgba(51, 79, 43, 0.1) !important;
    outline-color: rgba(51, 79, 43, 0.2) !important;
}

/* كلمة "ترتيب" بجانب الفلتر */
label[for="product-filter"] {
    font-family: var(--s-font-display) !important;
    font-weight: 700 !important;
    color: rgba(26, 28, 25, 0.6) !important;
}

/* ── 3. شبكة المنتجات (توسيع المسافات قليلاً للفخامة) ── */
.s-products-list-wrapper {
    gap: 24px !important; /* زيادة المسافة بين الكروت لتعطي مساحة تنفس (Whitespace) */
    padding-top: 10px !important;
    padding-bottom: 24px !important;
}

/* ── 4. زر (تحميل المزيد - Infinite Scroll) ── */
.s-infinite-scroll-wrapper {
    margin-top: 40px !important;
    text-align: center !important;
}

.s-infinite-scroll-wrapper .s-infinite-scroll-btn {
    background: var(--s-surface) !important;
    color: var(--s-primary) !important;
    border-radius: 9999px !important; /* كبسولي */
    font-weight: 800 !important;
    font-family: var(--s-font-display) !important;
    font-size: 1.1rem !important;
    padding: 14px 36px !important;
    border: none !important;
    outline: 1.5px solid rgba(51, 79, 43, 0.15) !important;
    box-shadow: 0 8px 24px rgba(26, 28, 25, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    cursor: pointer !important;
}

.s-infinite-scroll-wrapper .s-infinite-scroll-btn:hover {
    background: var(--s-primary) !important;
    color: #fff !important;
    outline-color: var(--s-primary) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(51, 79, 43, 0.25) !important;
}

/* حالة انتهاء المنتجات (لا يوجد المزيد) */
.s-infinite-scroll-error {
    background: var(--s-chip) !important;
    color: var(--s-primary) !important;
    border-radius: 9999px !important;
    padding: 8px 24px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    margin-top: 24px !important;
}
/* إخفاء رسالة تعذر جلب المزيد بشكل نهائي */
.s-infinite-scroll-error {
    display: none !important;
}
/* ── ضبط لون سعر السلة في الهيدر ── */
.s-cart-summary-total, 
.s-cart-summary-total *, 
.s-cart-summary-count {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

/* في حال كان هناك أيقونة بجانب السعر */
.s-cart-summary-total i {
    color: #ffffff !important;
    opacity: 0.8;
}
/* =========================================
   1. الهيدر للجوال - توزيع العناصر لأقصى الأطراف
   ========================================= */

@media (max-width: 1023px) {
    /* إجبار الحاويات على التمدد للصفر (حذف الـ Padding) */
    header.store-header .container,
    #mainnav .container,
    .main-nav-container .container,
    header.store-header .flex.items-stretch.justify-between {
        padding-right: 2px !important; 
        padding-left: 2px !important;  
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        height: 70px !important;
        display: flex !important;
    }

    /* كسر قيود الحاويات الداخلية */
    header.store-header .flex.items-center {
        position: static !important; 
    }

    /* زر القائمة - أقصى اليمين تماماً */
    .mburger {
        position: absolute !important;
        right: 0 !important; 
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 50 !important;
        margin: 0 !important;
    }

    /* أيقونة المستخدم - يمين بجانب القائمة */
    salla-user-menu {
        position: absolute !important;
        right: 36px !important; 
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 50 !important;
        margin: 0 !important;
        
        /* مسح الخلفيات عبر المتغيرات */
        --color-surface: transparent !important;
        --bg-color: transparent !important;
        --trigger-bg: transparent !important;
        background: transparent !important;
    }

    /* السلة والسعر - أقصى اليسار تماماً */
    salla-cart-summary {
        position: absolute !important;
        left: 2px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 50 !important;
    }

    /* اللوجو - في المنتصف ومرفوع للأعلى لضبط التوازن المنظوري */
    .navbar-brand {
        position: absolute !important;
        left: 50% !important;
        top: 46% !important; /* <--- هنا رفعنا اللوجو قليلاً للأعلى */
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .navbar-brand img {
        max-height: 48px !important; 
        width: auto !important;
        object-fit: contain !important;
    }
}

/* =========================================
   2. إزالة الخلفية البيضاء من أيقونة المستخدم نهائياً
   ========================================= */

/* استهداف المكونات الداخلية المخفية (Shadow DOM) */
salla-user-menu::part(trigger) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.s-user-menu-wrapper,
.s-user-menu-trigger,
.s-user-menu-trigger-slot,
.s-user-menu-trigger-avatar-only {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* تنسيق صورة المستخدم لتبدو نظيفة واحترافية */
.s-user-menu-trigger-avatar {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important; /* إطار أبيض خفيف */
    border-radius: 50% !important;
    width: 32px !important; /* تصغير طفيف ليتناسق مع الهيدر */
    height: 32px !important;
}

/* إخفاء السهم والنصوص المزعجة بجانب الصورة */
@media (max-width: 1023px) {
    .s-user-menu-trigger-icon, 
    .s-user-menu-trigger-hello, 
    .s-user-menu-trigger-name {
        display: none !important;
    }
}
/* =========================================
   🌿 شتلة بلوم — شريط تقدم "نمو النبتة" (التصميم)
   ========================================= */

/* الحاوية الجدارية المخفية فوق الهيدر */
#sbl-vine-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    z-index: 999999; /* يجب أن يكون فوق كل العناصر بالموقع */
    pointer-events: none;
    background: transparent;
}

/* الساق (الخط المتنامي) */
.vine-line {
    height: 100%;
    width: 0%; /* يبدأ من صفر */
    /* تدرج هولوجرامي أخضر يعكس مسيرة النبتة */
    background: linear-gradient(to left, #334f2b, #4a6741, #8cc074);
    position: absolute;
    top: 0;
    right: 0; /* ينطلق من اليمين بحسب قراءة اللغة العربية */
    border-radius: 4px 0 0 4px;
    box-shadow: 0 1px 6px rgba(51,79,43,0.4);
    transition: width 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* الورقة المتدلية في رأس الساق */
.vine-leaf {
    position: absolute;
    left: -14px; /* تسبق الخط لتبدو هي من يسحب الساق */
    top: -10px;
    width: 24px;
    height: 24px;
    color: #334f2b; /* لون الورقة غامق وفخم */
    transform-origin: center;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
    will-change: transform;
}
/* =========================================
    
   ========================================= */

/* نتحكم هنا في المتغيرات المركزية لسلة لتتغير كل ألوان المتجر بسلاسة */
body.sbl-dark-mode {
    --bg-color: #0f160e !important;          /* لون الخلفية، أخضر غابي عميق جداً شبه أسود */
    --color-surface: #172115 !important;      /* لون البطاقات، أخضر غامق لترتاح العين */
    --color-text: #e1e8df !important;         /* نص لؤلؤي ساطع يريح القراءة */
    --color-text-muted: #859680 !important;   /* لون النصوص الثانوية */
    --color-border: #243320 !important;       /* لون الحدود الأنيقة */
    
    background-color: var(--bg-color) !important;
    color: var(--color-text) !important;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/*  */
body.sbl-dark-mode .s-block,
body.sbl-dark-mode salla-product-card,
body.sbl-dark-mode .s-product-card {
    background-color: var(--color-surface) !important;
    border-color: var(--color-border) !important;
}

/* اً */
body.sbl-dark-mode .sbl-care-card {
    background: #1b2918 !important;
}

/* ================== تصميم الزر العائم الزجاجي ================== */
.sbl-theme-toggle {
    position: fixed;
    bottom: 90px; /* مرفوع قليلاً لكي لا يعيقه شريط الآيفون السفلي */
    left: 20px;   /* في اليسار مقابل زر الواتساب */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    
    /* تصميم زجاجي أنيق (Glassmorphism) */
    background: rgba(251, 251, 226, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(51, 79, 43, 0.15);
    z-index: 99999;
    
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: #334f2b; /* الأيقونة خضراء في الصباح */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* شكل الزر عندما يتحول الموقع لغابة منتصف الليل */
body.sbl-dark-mode .sbl-theme-toggle {
    background: rgba(51, 79, 43, 0.5);
    border: 1px solid rgba(140, 192, 116, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    color: #fbfbe2; /* الأيقونة مضيئة في الليل */
}

/* تأثير التدوير (دوران النجوم) عند التحويم أو الضغط */
.sbl-theme-toggle:active { transform: scale(0.9); }
.sbl-theme-toggle svg { width: 22px; height: 22px; transition: transform 0.6s ease-in-out; }
body.sbl-dark-mode .sbl-theme-toggle svg { transform: rotate(360deg); }


/* 
🌿 شبكة الأقسام الرئيسية - شتلة بلوم 
يُضاف في: إعدادات المتجر > تصميم المتجر > CSS مخصص
*/

.sbl-categories-section {
    padding: 30px 15px;
    background-color: #ffffff;
    direction: rtl;
    text-align: center;
}

.sbl-categories-title {
    font-size: 1.8rem;
    color: #334f2b;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sbl-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة كما في الصورة بمقاسات متساوية */
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.sbl-category-item {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.sbl-category-item:hover {
    transform: translateY(-5px);
}

.sbl-category-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #f7f9f6;
    border: 1px solid rgba(51, 79, 43, 0.08); /* حدود خفيفة جداً مثل الصورة */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sbl-category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sbl-category-item:hover img {
    transform: scale(1.1);
}

.sbl-category-name {
    font-size: 0.95rem;
    color: #334f2b;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* التجاوب مع الديسكتوب لجعلها 6 في السطر الواحد */
@media (min-width: 768px) {
    .sbl-categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
    }
    .sbl-categories-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .sbl-category-name {
        font-size: 1.1rem;
    }
}







/* 
🌿 شبكة الأقسام الرئيسية - شتلة بلوم 
يُضاف في: إعدادات المتجر > تصميم المتجر > CSS مخصص
*/

.sbl-categories-section {
    padding: 30px 15px 10px 15px;
    background-color: transparent; /* إزالة المربع الأبيض ودمجه مع خلفية المتجر */
    direction: rtl;
    text-align: center;
}

.sbl-categories-title {
    font-size: 1.8rem;
    color: #334f2b;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sbl-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.sbl-category-item {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.sbl-category-item:hover {
    transform: translateY(-5px);
}

.sbl-category-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #f7f9f6;
    border: 1px solid rgba(51, 79, 43, 0.08); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sbl-category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sbl-category-item:hover img {
    transform: scale(1.1);
}

.sbl-category-name {
    font-size: 0.95rem;
    color: #334f2b;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .sbl-categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
    }
    .sbl-categories-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .sbl-category-name {
        font-size: 1.1rem;
    }
}





/* 
🌿 ويدجت الشحن - شتلة بلوم 
يُضاف في: إعدادات المتجر > تصميم المتجر > CSS مخصص
*/

/* ═══ التنسيق الأساسي للشريطة ═══ */
body .sbl-shipping-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10; /* ليبقى فوق صورة المنتج */
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 9999px; /* شكل بيضاوي أنيق */
    font-family: inherit; /* ليأخذ نفس خط المتجر */
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px;
    
    /* زجاجية حديثة Glassmorphism */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    
    /* حركات ناعمة */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: sbl-popup-badge 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes sbl-popup-badge {
    0% { opacity: 0; transform: scale(0.8) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

body .sbl-shipping-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body .sbl-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* عكس الشاحنة برمجياً لتناسب اللغة العربية (من اليمين لليسار) */
body .sbl-truck-icon {
    transform: scaleX(-1);
}

/* ═══ حالة: التوصيل المجاني (150 فأعلى) ═══ */
body .sbl-shipping-badge.sbl-free {
    background: rgba(210, 229, 200, 0.95) !important; /* لون برند شتلة بلوم (أخضر فاتح) */
    color: #334f2b !important; /* أخضر غامق */
    border: 1px solid rgba(51, 79, 43, 0.15) !important;
}

body .sbl-shipping-badge.sbl-free .sbl-badge-icon {
    color: #4a6741 !important;
    animation: bounce-delivery 3s infinite ease-in-out;
}

@keyframes bounce-delivery {
    0%, 100% { transform: scaleX(-1) translateX(0); }
    50% { transform: scaleX(-1) translateX(2px); } /* حركة بسيطة للأمام */
}

/* ═══ حالة: الشحن المبرد (أقل من 150) ═══ */
body .sbl-shipping-badge.sbl-cold {
    background: rgba(235, 248, 255, 0.95) !important; /* أزرق ثلجي جداً يتماشى مع البساطة */
    color: #0369a1 !important; /* أزرق بارد وعميق */
    border: 1px solid rgba(3, 105, 161, 0.15) !important;
}

body .sbl-shipping-badge.sbl-cold .sbl-badge-icon {
    color: #0ea5e9 !important; /* لون الأيقونة الساطع */
    animation: sbl-pulse-cold 2.5s infinite ease-in-out;
}

@keyframes sbl-pulse-cold {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
}

/* ═══ استجابة الهاتف المحمول ═══ */
@media (max-width: 768px) {
    body .sbl-shipping-badge {
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.72rem !important;
        gap: 4px;
    }
    body .sbl-badge-icon svg {
        width: 12px;
        height: 12px;
    }
}











/* =========================================
   🌿 شتلة بلوم — تنسيق بطاقات تقييم العملاء
   ========================================= */

/* حاوية البطاقة الأساسية */
body .s-reviews-testimonial {
    background: transparent !important;
    padding: 10px !important;
}

body .s-reviews-testimonial__inner {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(51, 79, 43, 0.08) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(51, 79, 43, 0.04) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

body .s-reviews-testimonial__inner:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(51, 79, 43, 0.06) !important;
}

/* ═══ صورة العميل ═══ */
body .s-reviews-testimonial__avatar {
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid #d2e5c8 !important;
    box-shadow: 0 4px 12px rgba(51, 79, 43, 0.1) !important;
}

body .s-reviews-testimonial__avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ═══ النص والاسم ═══ */
body .s-reviews-testimonial__text {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* نص التقييم */
body .s-reviews-testimonial__text p {
    color: #2d3a27 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* حاوية اسم العميل والنجوم */
body .s-reviews-testimonial__name_wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 4px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(51, 79, 43, 0.06) !important;
}

body .s-reviews-testimonial__info h2 {
    color: #334f2b !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

/* ═══ أيقونة الاقتباس (علامة التنصيص) ═══ */
body .s-reviews-testimonial__icon {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important; /* لليسار في الواجهة العربية */
    right: auto !important;
    color: rgba(51, 79, 43, 0.06) !important;
    z-index: 1 !important;
    transform: scale(2) !important;
    pointer-events: none !important;
}

body .s-reviews-testimonial__icon svg {
    fill: currentColor !important;
    width: 32px !important;
    height: 32px !important;
}

/* ═══ النجوم ═══ */
/* تلوين النجوم العادية بذهبي هادئ يتماشى مع اللون الأخضر */
body .s-reviews-testimonial__rating salla-rating-stars span svg {
    fill: #f59e0b !important; /* لون ذهبي */
}

/* 📱 الجوال */
@media (max-width: 768px) {
    body .s-reviews-testimonial__inner {
        padding: 16px !important;
        gap: 12px !important;
        border-radius: 20px !important;
    }
    body .s-reviews-testimonial__avatar {
        width: 50px !important;
        height: 50px !important;
        border-width: 2px !important;
    }
    body .s-reviews-testimonial__text p {
        font-size: 0.88rem !important;
    }
    body .s-reviews-testimonial__icon {
        transform: scale(1.5) !important;
    }
}









/* --- Shatlah Optimized Hero Slider --- */

.shatlah-hero-slider {
    position: relative;
    width: 94%;
    max-width: 1300px; /* يمنع البنر من التوسع الزائد في الشاشات الكبيرة */
    height: 400px; /* ارتفاع ثابت ومريح للديسكتوب */
    margin: 20px auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #f9f9f9;
}

.shatlah-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.shatlah-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.shatlah-slide.active {
    opacity: 1;
}

.shatlah-slide img {
    width: 100%;
    height: 100%;
    /* 
       تغيير الخاصية لـ 'contain' إذا كنت تريد رؤية الصورة كاملة 100% بدون أي قص،
       أو 'cover' مع ضبط الارتفاع لتقليل القص. 
    */
    object-fit: cover; 
    object-position: center; /* يضمن بقاء وسط الصورة (النص غالباً) ظاهراً */
}

/* النقاط السفلية بشكل أوضح */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0,0,0,0.1); /* خلفية خفيفة للنقاط لتظهر فوق الصور الفاتحة */
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.dot {
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    width: 20px;
    background: #ffffff;
    border-radius: 10px;
}

/* التعديلات الخاصة بالجوال */
@media (max-width: 768px) {
    .shatlah-hero-slider {
        width: 100%;
        height: 200px; /* ارتفاع أصغر للجوال ليناسب حجم الشاشة */
        border-radius: 0;
        margin: 0 0 20px 0;
    }
}











/* --- Shatlah Woodmart: Description & Price Layout --- */

/* 1. إظهار وتنسيق وصف المنتج */
.s-product-card-description {
    display: block !important; /* التأكد من ظهوره */
    font-size: 0.85rem !important;
    color: #888 !important; /* لون رمادي ناعم للوصف */
    line-height: 1.5 !important;
    margin: 5px 0 12px 0 !important;
    height: 2.8em !important; /* تحديد عدد الأسطر للحفاظ على توازي البطاقات */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 2. تنسيق السعر (نفس أسلوب Woodmart) */
.s-product-card-price {
    display: flex !important;
    flex-direction: row-reverse !important; /* لضمان ترتيب السعر والعملة بشكل صحيح */
    justify-content: center !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin-bottom: 15px !important;
}

/* السعر الحالي (الجديد) */
.s-product-card-price-main {
    color: #d68b65 !important; /* لون الفخار الفخم */
    font-size: 1.4rem !important;
    font-weight: 900 !important;
}

/* السعر القديم (المشطوب) */
.s-product-card-price-old {
    color: #bbb !important;
    text-decoration: line-through !important;
    font-size: 0.9rem !important;
    margin-left: 8px !important;
}

/* 3. تنسيق "ريال" أو رمز العملة */
.s-product-card-price-currency {
    font-size: 0.8rem !important;
    color: #d68b65 !important;
    font-weight: 600 !important;
}

/* 4. تعديل العنوان ليكون بارزاً */
.s-product-card-title h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #334f2b !important; /* الأخضر الغامق */
    margin-bottom: 5px !important;
    min-height: 40px; /* لتوحيد ارتفاع العناوين */
}






/* [ignoring loop detection] */
/* 🌿 شتلة بلوم - الكود المستوحى من أحدث كانفاس (Tri-Color Modern) 🌿 */

:root {
    --s-bg: #FAF9F6;
    --s-primary: #4A6741;
    --s-accent: #A15B39;
    --s-surface: #ffffff;
}

/* 1. تنسيق الصفحة بالكامل */
body, #app, .s-block, .s-block--has-bg {
    background-color: var(--s-bg) !important;
}

/* 2. الهيدر (أخضر غاباتي فخم ومربع) */
header.store-header, .main-nav-container {
    background-color: var(--s-primary) !important;
    border-radius: 0 !important;
}

/* 3. بطاقة المنتج (بيضاء، مربعة، وظل خفيف جداً) */
.s-product-card {
    background-color: var(--s-surface) !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03) !important;
    padding: 10px !important;
}

/* 4. السعر (اللون الطيني الفاخر) */
.s-product-card-price {
    color: var(--s-accent) !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
}

/* 5. العناوين والأزرار */
.s-block__title h2 {
    color: var(--s-primary) !important;
    text-align: center;
    border-bottom: 2px solid var(--s-accent);
    display: inline-block;
    padding-bottom: 10px;
}

.s-product-card-add-btn {
    background-color: var(--s-primary) !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    font-weight: bold;
}

/* 6. إصلاح تداخل الألوان في الأقسام */
.s-block-products, .s-block-categories {
    background: transparent !important;
}












/* [ignoring loop detection] */
/* 🌿 تنسيقات البانرات الذكية المفرقة - شتلة بلوم 🌿 */

/* الشريط المتحرك (قسم العروض) */
.shtlah-banner-marquee {
    background-color: #E67E22 !important;
    color: #ffffff !important;
    padding: 12px 0;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.2);
}
.shtlah-banner-marquee marquee {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* التصميم الأساسي للبانرات الثابتة */
.shtlah-banner {
    padding: 35px 20px;
    text-align: center;
    margin-bottom: 30px;
}
.shtlah-banner h3 {
    margin: 0 0 10px 0;
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
}
.shtlah-banner p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* البانر الداخلي (أخضر غاباتي) */
.shtlah-banner-indoor {
    background-color: #4A6741 !important;
    color: #FAF9F6 !important;
    border-right: 6px solid #A15B39; /* خط زينة جانبي طيني */
}

/* البانر الخارجي (طيني / تيراكوتا) */
.shtlah-banner-outdoor {
    background-color: #A15B39 !important;
    color: #FAF9F6 !important;
}

/* بانر المستلزمات والأحواض (رمادي فاتح/كريمي ناعم) */
.shtlah-banner-tools {
    background-color: #F4F4EF !important;
    color: #4A6741 !important;
    border: 1px solid #D2E5C8; /* إطار ناعم */
}





/* إخفاء الأقسام المخصصة والبانر في أي صفحة غير الرئيسية */
body:not(.page-home) .shatlah-hero-slider,
body:not(.page-home) .custom-sections-wrapper { 
    display: none !important; 
}

/* تأكد أن الكلاس custom-sections-wrapper هو نفس الكلاس اللي مجمع فيه أقسامك */









/* [ignoring loop detection] */
/* 🌿 ستايل البانر - إظهار الصورة كاملة بدون قص 🌿 */
.premium-hero-slider {
    position: relative;
    width: 100%;
    height: auto; /* الارتفاع الآن تلقائي */
    aspect-ratio: 16 / 9; /* يمكنك تغييرها لـ 3 / 1 إذا كانت صورك عريضة جداً */
    overflow: hidden;
    background: transparent;
    margin-bottom: 20px;
}

.premium-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.p-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.p-slide.p-active {
    opacity: 1;
    z-index: 2;
}

.p-slide img {
    width: 100%;
    height: 100%;
    /* 💡 التعديل السحري هنا: contain يضمن ظهور الصورة كاملة */
    object-fit: contain; 
    background-color: transparent; 
}

/* للجوال: نضمن أن الارتفاع يظل متناسقاً */
@media (max-width: 768px) {
    .premium-hero-slider {
        aspect-ratio: 4 / 3; /* يغير النسبة لتناسب الجوال بدون قص */
    }
}

/* باقي كود النقاط (Dots) يبقى كما هو */
.p-navigation {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.p-dot { width: 8px; height: 8px; background: rgba(0,0,0,0.2); border-radius: 50%; cursor: pointer; }
.p-dot-active { background: #4A6741; width: 25px; border-radius: 10px; }





/* ═══════════════════════════════════════
   🌿 فواصل الأقسام الذكية - شتلة بلوم
   ═══════════════════════════════════════ */

/* --- الكلاس الأساسي المشترك --- */
.shtlah-divider {
    text-align: center !important;
    padding: 28px 20px !important;
    margin: 0 0 20px 0 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    direction: rtl !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.shtlah-divider:hover {
    transform: scale(1.005) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}

/* --- العنوان الفرعي --- */
.shtlah-divider__title {
    font-size: 1.6rem !important;
    margin: 0 0 10px 0 !important;
    font-weight: 800 !important;
    color: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* --- الوصف --- */
.shtlah-divider__desc {
    font-size: 1rem !important;
    opacity: 0.9 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

/* --- الأيقونات --- */
.shtlah-divider__icon {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

.shtlah-divider__icon svg {
    vertical-align: middle !important;
}

/* ═══ 1. العروض (برتقالي متحرك) ═══ */
.shtlah-divider--offers {
    background: linear-gradient(135deg, #E67E22 0%, #d35400 100%) !important;
    color: #fff !important;
    padding: 16px 0 !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.25) !important;
}

.shtlah-divider--offers marquee {
    font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* ═══ 2. النباتات الداخلية (أخضر غاباتي) ═══ */
.shtlah-divider--indoor {
    background: linear-gradient(135deg, #4A6741 0%, #3a5435 100%) !important;
    color: #FAF9F6 !important;
    border-right: 6px solid #A15B39 !important;
}

/* ═══ 3. النباتات الخارجية (طيني / تيراكوتا) ═══ */
.shtlah-divider--outdoor {
    background: linear-gradient(135deg, #A15B39 0%, #8a4d30 100%) !important;
    color: #FAF9F6 !important;
    border-right: 6px solid #4A6741 !important;
}

/* ═══ 4. النباتات المجهزة (أخضر + لمسة برتقالية) ═══ */
.shtlah-divider--ready {
    background: linear-gradient(135deg, #4A6741 0%, #3a5435 100%) !important;
    color: #FAF9F6 !important;
    border-right: 6px solid #E67E22 !important;
}

/* ═══ 5. المستلزمات (كريمي هادئ) ═══ */
.shtlah-divider--tools {
    background: #F4F4EF !important;
    color: #4A6741 !important;
    border: 1px solid #D2E5C8 !important;
}

/* ═══ الجوال ═══ */
@media (max-width: 768px) {
    .shtlah-divider {
        padding: 20px 15px !important;
        margin: 0 0 15px 0 !important;
    }
    .shtlah-divider__title {
        font-size: 1.2rem !important;
    }
    .shtlah-divider__desc {
        font-size: 0.9rem !important;
    }
    .shtlah-divider__icon svg {
        width: 20px !important;
        height: 20px !important;
    }
}