:root {
  --dw-olive: #4f6534;
  --dw-olive-dark: #334422;
  --dw-dark: #26331d;
  --dw-cream: #f6f0e5;
  --dw-sand: #dfd0b7;
  --dw-text: #2c3227;
  --dw-muted: #6b7264;
  --dw-gold: #b47f2b;
}

html { scroll-behavior: smooth; }
body { background: #fcfaf5 !important; color: var(--dw-text); }

header, .store-header, .main-header, .navbar, .header-wrapper {
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid rgba(96,115,66,.13) !important;
  box-shadow: 0 6px 24px rgba(41,53,31,.06) !important;
  backdrop-filter: blur(14px);
}

header, .store-header, .main-header {
  position: sticky !important;
  z-index: 999 !important;
  top: 0 !important;
}

header .main-nav-container,
.store-header .main-nav-container,
.main-header .container,
.navbar .container { min-height: 72px !important; }

header img[alt*="شعار"],
header .navbar-brand img,
header .store-logo img,
.store-header .navbar-brand img { max-height: 56px !important; width: auto !important; object-fit: contain !important; }

header input[type="search"],
header input[placeholder*="بحث"],
.store-header input[type="search"] {
  min-height: 44px !important;
  border: 1px solid rgba(79,101,52,.18) !important;
  border-radius: 999px !important;
  background: #faf8f2 !important;
  color: var(--dw-text) !important;
  box-shadow: none !important;
}

header input[type="search"]:focus,
header input[placeholder*="بحث"]:focus {
  border-color: var(--dw-olive) !important;
  background: #fff !important;
}

.dw-search-button {
  display: inline-grid !important;
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  place-items: center !important;
  margin-inline: 7px !important;
  padding: 0 !important;
  border: 1px solid rgba(79,101,52,.18) !important;
  border-radius: 50% !important;
  background: #faf8f2 !important;
  color: var(--dw-dark) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.dw-search-button svg {
  width: 21px !important;
  height: 21px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
}

.dw-search-button span { display: none; }

.dw-search-button:hover,
.dw-search-button:focus {
  transform: translateY(-1px);
  border-color: var(--dw-olive) !important;
  background: var(--dw-olive) !important;
  color: #fff !important;
}

.dw-mobile-search { display: none; }
.dw-mobile-search salla-search { display: block !important; width: 100% !important; }
.dw-mobile-search .s-search-container { width: 100% !important; }
.dw-mobile-search .s-search-input {
  min-height: 46px !important;
  border: 1px solid rgba(79,101,52,.2) !important;
  border-radius: 13px !important;
  background: #faf8f2 !important;
  color: var(--dw-dark) !important;
  box-shadow: 0 5px 16px rgba(41,53,31,.06) !important;
}

.dw-smart-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  overflow: visible !important;
  transform: translateY(0);
  transition: transform .48s cubic-bezier(.22,.61,.36,1) !important;
  will-change: transform;
}

.dw-smart-header.dw-header-hidden { transform: translateY(-105%) !important; }

html { scroll-behavior: smooth; }
.swiper-wrapper,
salla-slider .swiper-wrapper,
[class*="products-slider"] .swiper-wrapper {
  transition-timing-function: cubic-bezier(.22,.61,.36,1) !important;
}
.swiper,
.swiper-container,
salla-slider { scroll-behavior: smooth; }

/* البنر الرئيسي */
.dw-hero {
  position: relative;
  isolation: isolate;
  width: min(1320px, calc(100% - 40px));
  min-height: 470px;
  margin: 24px auto 38px;
  overflow: hidden;
  border: 1px solid rgba(96,115,66,.14);
  border-radius: 30px;
  background: var(--dw-cream);
  box-shadow: 0 22px 60px rgba(41,53,31,.12);
}

.dw-hero__picture, .dw-hero__picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dw-hero__picture img { object-fit: cover; }
.dw-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,242,232,.02) 5%, rgba(247,242,232,.97) 78%);
}

.dw-hero__content {
  position: relative;
  z-index: 1;
  width: min(52%, 610px);
  margin-inline-start: auto;
  padding: 92px 64px;
  text-align: right;
}

.dw-hero__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--dw-gold);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .5px;
}

.dw-hero h1 { margin: 0; color: var(--dw-dark); font-size: clamp(38px,4vw,60px); font-weight: 900; line-height: 1.15; }
.dw-hero p { max-width: 500px; margin: 18px 0 28px; color: #5f6658; font-size: 18px; line-height: 1.9; }
.dw-hero__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 12px;
  background: var(--dw-olive);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(96,115,66,.25);
}

/* قسم التصنيفات الجديد */
.dw-original-categories { display: none !important; }
.dw-categories {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto 48px;
  padding: 34px;
  border: 1px solid rgba(96,115,66,.13);
  border-radius: 26px;
  background: linear-gradient(135deg, #fbf8f1 0%, #f2eadc 100%);
}

.dw-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.dw-section-heading span { color: var(--dw-gold); font-size: 13px; font-weight: 900; }
.dw-section-heading h2 { margin: 4px 0 0; color: var(--dw-dark) !important; font-size: 30px; font-weight: 900 !important; }
.dw-section-heading p { margin: 0; color: var(--dw-muted); font-size: 14px; }
.dw-categories__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

.dw-category-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(96,115,66,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  color: var(--dw-dark) !important;
  text-align: right;
  text-decoration: none !important;
  box-shadow: 0 8px 25px rgba(41,53,31,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dw-category-card:hover { transform: translateY(-6px); border-color: rgba(96,115,66,.35); box-shadow: 0 16px 32px rgba(41,53,31,.12); }
.dw-category-card__number { position: absolute; z-index: 1; top: 20px; right: 20px; color: rgba(41,53,31,.42); font-size: 11px; font-weight: 900; }
.dw-category-card__image { display: block; height: 150px; margin-bottom: 14px; overflow: hidden; border-radius: 13px; background: var(--dw-cream); }
.dw-category-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.dw-category-card:hover img { transform: scale(1.06); }
.dw-category-card strong { padding-inline: 5px; color: var(--dw-dark); font-size: 16px; font-weight: 900; text-align: center; }
.dw-category-card small { padding-inline: 5px; margin-top: 4px; color: var(--dw-muted); font-size: 11px; }

.dw-home-product-section {
  margin-block: 34px !important;
  padding: 28px !important;
  border: 1px solid rgba(79,101,52,.12) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg,#fff 0%,#faf7ef 100%) !important;
  box-shadow: 0 14px 38px rgba(41,53,31,.06) !important;
}

.dw-products-eyebrow {
  display: block !important;
  margin-bottom: 4px !important;
  color: var(--dw-gold) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.dw-home-product-section h2,
.dw-home-product-section h3,
.dw-home-product-section .s-block__title {
  color: var(--dw-dark) !important;
  font-weight: 900 !important;
}

.dw-home-product-section .s-block__title,
.dw-home-product-section [class*="section-title"] {
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(79,101,52,.14) !important;
}

.dw-home-product-section .product-entry__image,
.dw-home-product-section .s-product-card-image,
.dw-home-product-section .s-product-card-entry__image,
.dw-home-product-section .product-card__image {
  height: 195px !important;
  min-height: 195px !important;
  background: #f8f7f2 !important;
}

.dw-home-product-section .product-entry__image img,
.dw-home-product-section .s-product-card-image img,
.dw-home-product-section .s-product-card-entry__image img,
.dw-home-product-section .product-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.dw-home-product-section .product-entry__content,
.dw-home-product-section .s-product-card-content,
.dw-home-product-section .s-product-card-entry__content,
.dw-home-product-section .product-card__content { padding: 14px !important; }

.dw-home-product-section s,
.dw-home-product-section del,
.dw-home-product-section [class*="regular-price"] { display: none !important; }

/* شريط الثقة */
.dw-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1280px, calc(100% - 40px));
  margin: 42px auto;
  overflow: hidden;
  border: 1px solid rgba(96,115,66,.14);
  border-radius: 20px;
  background: rgba(96,115,66,.14);
}

.dw-benefit { display: flex; align-items: center; gap: 12px; padding: 22px 20px; background: #fff; text-align: right; }
.dw-benefit > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: var(--dw-cream); color: var(--dw-olive); font-size: 20px; font-weight: 900; }
.dw-benefit strong { display: block; color: var(--dw-dark); font-size: 14px; }
.dw-benefit small { display: block; margin-top: 3px; color: var(--dw-muted); font-size: 11px; }

/* آراء العملاء والعلامات التجارية الموجودة في سلة */
.dw-native-testimonials,
.dw-native-brands {
  padding-block: 34px !important;
}

.dw-native-testimonials .swiper-slide > div,
.dw-native-testimonials blockquote,
.dw-native-testimonials [class*="testimonial"] {
  border: 1px solid rgba(96,115,66,.12) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg,#fff 0%,#fbf8f1 100%) !important;
  box-shadow: 0 10px 30px rgba(41,53,31,.07) !important;
}

.dw-native-brands img {
  max-height: 58px !important;
  object-fit: contain !important;
  filter: grayscale(1) opacity(.72);
  transition: filter .2s ease, transform .2s ease;
}

.dw-native-brands a:hover img { filter: grayscale(0) opacity(1); transform: scale(1.04); }

/* شريط تاريخ المتجر */
.dw-heritage {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1280px, calc(100% - 40px));
  margin: 48px auto;
  padding: 30px 34px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--dw-dark);
  color: #fff;
  box-shadow: 0 18px 45px rgba(41,53,31,.18);
}

.dw-heritage__mark {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #e4c88f;
  font-size: 15px;
  font-weight: 900;
}

.dw-heritage small { color: #d5c49d; font-size: 12px; }
.dw-heritage h2 { margin: 5px 0 0; color: #fff !important; font-size: clamp(20px,2.4vw,32px); }
main h2, .s-block__title h2, .section-title, .home-block-title { color: var(--dw-dark) !important; font-weight: 900 !important; }
main section { scroll-margin-top: 100px; }

/* بطاقات المنتجات - من دون تغيير البيانات أو الأسعار */
.s-product-card-entry, .product-card, .product-entry {
  position: relative !important;
  isolation: isolate;
  display: flex !important;
  height: 100% !important;
  flex-direction: column !important;
  overflow: hidden;
  border: 1px solid rgba(96,115,66,.12) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(41,53,31,.07) !important;
  clip-path: none !important;
  mask: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.s-product-card-entry:hover, .product-card:hover, .product-entry:hover { transform: translateY(-4px); box-shadow: 0 15px 38px rgba(41,53,31,.13) !important; }
salla-product-card { display: block !important; height: 100% !important; border-radius: 18px !important; }
.s-product-card-image,
.s-product-card-entry__image,
.product-card__image {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  padding: 10px !important;
  background: linear-gradient(145deg,#fbfaf6 0%,#f5f2e9 100%) !important;
}
.s-product-card-image img,
.s-product-card-entry__image img,
.product-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform .28s ease, opacity .2s ease !important;
}
.dw-product-card:hover .s-product-card-image img,
.dw-product-card:hover .s-product-card-entry__image img,
.dw-product-card:hover .product-card__image img { transform: scale(1.035); }
.s-product-card-content,
.s-product-card-entry__content,
.product-card__content {
  display: flex !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  background: #fff !important;
}
.s-product-card-content-main,
.product-card__content-main { padding: 14px 14px 4px !important; }
.s-product-card-content-title,
.s-product-card-entry__title,
.product-card__title {
  display: -webkit-box !important;
  min-height: 3.2em !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--dw-dark) !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
}
.s-product-card-content-title a,
.s-product-card-entry__title a,
.product-card__title a { color: inherit !important; text-decoration: none !important; }
.s-product-card-content-subtitle,
.product-card__subtitle {
  display: -webkit-box !important;
  min-height: 1.5em !important;
  overflow: hidden !important;
  color: #858c80 !important;
  font-size: 11px !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.s-product-card-content-footer,
.s-product-card-entry__footer,
.product-card__footer { margin-top: auto !important; }
.s-product-card-price,
.s-product-card-sale-price,
.s-product-card-regular-price,
salla-money { direction: rtl; unicode-bidi: isolate; white-space: nowrap; font-family: inherit !important; }
.s-product-card-price,
.s-product-card-sale-price h4,
.s-product-card-starting-price h4 {
  color: var(--dw-olive-dark, #344323) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}
.s-product-card-entry:has(.s-product-card-sale-price) .s-product-card-regular-price,
.s-product-card-entry .s-product-card-content del,
.s-product-card-entry .s-product-card-content s,
.product-card:has(.sale-price) .regular-price,
.product-card del,
.product-card s { display: none !important; }
button.add-to-cart, .s-product-card-entry .s-button-primary, salla-add-product-button button { border-radius: 10px !important; background: var(--dw-olive) !important; color: #fff !important; }

.dw-card-status {
  position: absolute;
  z-index: 4;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(35,43,27,.14);
}
.dw-card-status--sale { background: #9e4d2f; }
.dw-card-status--out { background: #73796f; }
.dw-product-card.s-product-card-out-of-stock .s-product-card-image img { opacity: .68 !important; filter: saturate(.65); }

.s-product-card-entry salla-add-product-button button,
.s-product-card-entry .s-button-primary,
.product-card .add-to-cart {
  min-height: 44px !important;
  padding: 8px 12px !important;
  border-radius: 0 0 15px 15px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transition: background-color .18s ease, transform .16s ease !important;
}
.s-product-card-entry salla-add-product-button button:hover,
.s-product-card-entry .s-button-primary:hover,
.product-card .add-to-cart:hover { background: var(--dw-olive-dark, #344323) !important; }
.s-product-card-entry salla-add-product-button button:active,
.s-product-card-entry .s-button-primary:active,
.product-card .add-to-cart:active { transform: scale(.985); }

.s-product-card-entry .s-product-card-content-sub,
.s-product-card-entry .s-product-card-content-footer,
.product-card__footer { padding: 9px 14px 12px !important; }

/* صفحات التصنيفات */
.dw-category-page main {
  width: min(1280px, calc(100% - 32px)) !important;
  max-width: 1280px !important;
  margin-inline: auto !important;
  padding-block: 26px 48px !important;
}

.dw-category-page .page-header,
.dw-category-page .category-header,
.dw-category-page [class*="category-title"],
.dw-category-page main > h1 {
  margin-bottom: 24px !important;
  color: var(--dw-dark) !important;
  font-size: clamp(26px,3vw,38px) !important;
  font-weight: 900 !important;
}

.dw-category-page salla-filters,
.dw-category-page .filters,
.dw-category-page .filter-button,
.dw-category-page [class*="filter-trigger"],
.dw-category-page [class*="sort"] select,
.dw-category-page select {
  border-color: rgba(79,101,52,.18) !important;
  border-radius: 12px !important;
  background-color: #fff !important;
}

.dw-category-page [class*="products-grid"],
.dw-category-page [class*="products-list"],
.dw-category-page #products-list {
  gap: 18px !important;
}

.dw-category-page .breadcrumb,
.dw-category-page salla-breadcrumb {
  margin-bottom: 18px !important;
  color: var(--dw-muted) !important;
}

@media (min-width: 992px) {
  main > section:not(.dw-hero):not(.dw-categories):not(.dw-benefits), main .container,
  .s-block--products-slider, .s-block--fixed-products, .s-block--featured-products {
    width: min(1280px, calc(100% - 48px)) !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
  }
  main section:has(salla-product-card), main section:has(.s-product-card-entry), main section:has(.product-card), main section:has(.product-entry) {
    width: min(1280px, calc(100% - 48px)) !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
    float: none !important;
  }
  main section:has(salla-product-card) .swiper, main section:has(.s-product-card-entry) .swiper,
  main section:has(.product-card) .swiper, main section:has(.product-entry) .swiper,
  main section:has(salla-product-card) .swiper-container, main section:has(.s-product-card-entry) .swiper-container {
    width: 100% !important; max-width: 100% !important; overflow: hidden !important;
  }
  main section:has(salla-product-card) .swiper-slide, main section:has(.s-product-card-entry) .swiper-slide,
  main section:has(.product-card) .swiper-slide, main section:has(.product-entry) .swiper-slide {
    width: calc((100% - 54px) / 4) !important; min-width: 0 !important; flex: 0 0 calc((100% - 54px) / 4) !important;
  }
}

/* تحسين صفحة المنتج فقط */
.dw-product-page main { background: linear-gradient(180deg,#fff 0%,#fbf8f1 100%) !important; }
.dw-product-page .product-single,
.dw-product-page .product-main,
.dw-product-page .product-details {
  width: min(1180px, calc(100% - 32px)) !important; max-width: 1180px !important; margin-inline: auto !important;
}
.dw-product-page .product-entry__image,
.dw-product-page .product-gallery {
  overflow: hidden;
  border: 1px solid rgba(96,115,66,.12) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 14px 38px rgba(41,53,31,.06) !important;
}
.dw-product-page .product-entry__content,
.dw-product-page .product-info,
.dw-product-page .product-form {
  padding: 26px !important; border: 1px solid rgba(96,115,66,.14) !important; border-radius: 20px !important;
  background: #fff !important; box-shadow: 0 14px 38px rgba(41,53,31,.08) !important;
}
.dw-product-page h1 {
  margin-bottom: 10px !important;
  color: var(--dw-dark) !important;
  font-size: clamp(25px,3vw,38px) !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  text-wrap: balance;
}
.dw-product-page .product-price,
.dw-product-page .price,
.dw-product-page [class*="price"] { color: var(--dw-olive) !important; font-weight: 900 !important; }
.dw-product-page .product-price,
.dw-product-page .price { margin-block: 12px 16px !important; font-size: clamp(23px,2.4vw,31px) !important; }
.dw-product-page .product-subtitle,
.dw-product-page [class*="subtitle"] { color: #747d6d !important; line-height: 1.8 !important; }
.dw-product-page salla-add-product-button,
.dw-product-page salla-add-product-button button,
.dw-product-page .add-to-cart,
.dw-product-page button[type="submit"] {
  width: 100% !important; min-height: 54px !important; border: 0 !important; border-radius: 12px !important;
  background: var(--dw-olive) !important; color: #fff !important; font-size: 17px !important; font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(96,115,66,.22) !important;
  transition: transform .16s ease, background-color .18s ease, box-shadow .18s ease !important;
}
.dw-product-page salla-add-product-button button:hover,
.dw-product-page .add-to-cart:hover,
.dw-product-page button[type="submit"]:hover {
  background: var(--dw-olive-dark, #344323) !important;
  box-shadow: 0 13px 28px rgba(52,67,35,.26) !important;
}
.dw-product-page salla-add-product-button button:active,
.dw-product-page .add-to-cart:active,
.dw-product-page button[type="submit"]:active { transform: scale(.99); }
.dw-product-page .tabs,
.dw-product-page salla-tabs {
  overflow: hidden; border: 1px solid rgba(96,115,66,.12) !important; border-radius: 16px !important; background: #fff !important;
}

.dw-product-page .product-gallery img,
.dw-product-page .product-entry__image img {
  display: block !important;
  width: 100% !important;
  max-height: 560px !important;
  object-fit: contain !important;
}
.dw-product-page .product-gallery .swiper-slide { background: #faf9f4 !important; }
.dw-product-page [class*="thumb"] img {
  border: 1px solid rgba(96,115,66,.14) !important;
  border-radius: 10px !important;
  object-fit: cover !important;
}
.dw-product-page salla-quantity-input,
.dw-product-page .quantity-input,
.dw-product-page .product-quantity {
  min-height: 48px !important;
  border: 1px solid rgba(96,115,66,.18) !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.dw-product-page .tabs button,
.dw-product-page salla-tabs button {
  min-height: 48px !important;
  color: var(--dw-dark) !important;
  font-weight: 800 !important;
}
.dw-product-page .tabs [aria-selected="true"],
.dw-product-page salla-tabs [aria-selected="true"] { color: var(--dw-olive-dark, #344323) !important; }
.dw-product-page .s-block--related-products,
.dw-product-page [class*="related-products"] { margin-top: 42px !important; }

/* عناصر صفحة المنتج المضافة */
.dw-product-page main { padding-bottom: 34px; }
.dw-product-page .breadcrumb,
.dw-product-page salla-breadcrumb { color: var(--dw-muted) !important; }

.dw-product-page [class*="availability"],
.dw-product-page [class*="stock"] {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.dw-product-page img[src*="placeholder"] {
  max-height: 420px !important;
  padding: 18% !important;
  object-fit: contain !important;
  opacity: .55;
}

.dw-duplicate-price { display: none !important; }
.dw-product-page .product-price del,
.dw-product-page .product-price s,
.dw-product-page .price del,
.dw-product-page .price s { display: none !important; }

/* خيارات الحجم والوزن في صفحة المنتج */
.dw-product-options {
  margin: 18px 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(96,115,66,.18) !important;
  border-radius: 14px !important;
  background: #fbf8f1 !important;
}

.dw-options-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.dw-options-title strong { color: var(--dw-dark); font-size: 14px; }
.dw-options-title small { color: var(--dw-muted); font-size: 10px; }
.dw-product-options select {
  width: 100% !important;
  min-height: 48px !important;
  padding-inline: 13px !important;
  border: 1px solid rgba(96,115,66,.25) !important;
  border-radius: 10px !important;
  background: #fff !important;
}
.dw-product-options input[type="radio"] + label,
.dw-product-options [role="radio"],
.dw-product-options button:not(.s-button-element) {
  min-width: 64px !important;
  min-height: 42px !important;
  border: 1px solid rgba(96,115,66,.24) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--dw-dark) !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease !important;
}
.dw-product-options input[type="radio"] + label:hover,
.dw-product-options [role="radio"]:hover,
.dw-product-options button:not(.s-button-element):hover { border-color: var(--dw-olive) !important; transform: translateY(-1px); }
.dw-product-options input[type="radio"]:checked + label,
.dw-product-options [aria-checked="true"] {
  border-color: var(--dw-olive) !important;
  background: var(--dw-olive) !important;
  color: #fff !important;
}

.dw-product-options .dw-option-price,
.dw-product-options [class*="option-price"],
.dw-product-options [class*="variant-price"],
.dw-product-options [data-option-price] { display: none !important; }

.dw-purchase-row {
  display: grid !important;
  grid-template-columns: 118px minmax(0,1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 16px !important;
  padding: 9px !important;
  border: 1px solid rgba(96,115,66,.12) !important;
  border-radius: 15px !important;
  background: #fbf8f1 !important;
}

.dw-purchase-row salla-quantity-input,
.dw-purchase-row .quantity-input,
.dw-purchase-row .product-quantity {
  grid-column: 1 !important;
  width: 118px !important;
  min-width: 118px !important;
  margin: 0 !important;
}

.dw-purchase-row salla-add-product-button {
  grid-column: 2 !important;
  width: 100% !important;
  margin: 0 !important;
}

/* التذييل */
footer,
.store-footer,
.footer-main {
  border-top: 1px solid rgba(96,115,66,.15) !important;
  background: #f4efe5 !important;
  color: var(--dw-text) !important;
}

footer .store-footer__inner,
footer [class*="footer"],
.store-footer [class*="footer"] {
  background-color: #f4efe5 !important;
  color: var(--dw-text) !important;
}

footer h3,
footer h4,
.store-footer h3,
.store-footer h4 { color: var(--dw-dark) !important; font-weight: 900 !important; }

footer a,
.store-footer a { color: #5e6757 !important; }

footer a:hover,
footer a:focus,
footer a:active,
.store-footer a:hover,
.store-footer a:focus,
.store-footer a:active {
  color: var(--dw-olive-dark, #344323) !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none !important;
}

footer li:hover,
footer [class*="menu"]:hover,
.store-footer li:hover,
.store-footer [class*="menu"]:hover {
  color: var(--dw-olive-dark, #344323) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

footer p,
.store-footer p { color: #5e6757 !important; }

footer,
.store-footer { padding-top: 0 !important; }

footer .container,
.store-footer .container,
footer .store-footer__inner {
  padding-top: 24px !important;
  padding-bottom: 20px !important;
}

footer h3,
footer h4,
.store-footer h3,
.store-footer h4 { margin-bottom: 10px !important; font-size: 15px !important; }

footer ul,
.store-footer ul { gap: 7px !important; }

footer a,
.store-footer a { line-height: 1.7 !important; }

footer a:hover *,
footer a:focus *,
.store-footer a:hover *,
.store-footer a:focus * {
  color: var(--dw-olive-dark, #344323) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.dw-search-open { overflow: hidden !important; }

.dw-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 18px 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
  direction: rtl;
}

.dw-search-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.dw-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 31, 18, .58);
  backdrop-filter: blur(5px);
}

.dw-search-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 82vh;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(79, 101, 52, .16);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 28px 80px rgba(28, 38, 20, .24);
  transform: translateY(-16px) scale(.985);
  transition: transform .24s ease;
}

.dw-search-overlay.is-open .dw-search-panel { transform: translateY(0) scale(1); }

.dw-search-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dw-search-panel__head strong {
  display: block;
  color: var(--dw-dark, #26321d);
  font-size: 24px;
  line-height: 1.35;
}

.dw-search-panel__head small {
  display: block;
  margin-top: 4px;
  color: #77806f;
  font-size: 13px;
}

.dw-search-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(79, 101, 52, .15);
  border-radius: 50%;
  background: #f4f0e7;
  color: var(--dw-dark, #26321d);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.dw-search-form {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 8px 6px 16px;
  border: 1.5px solid rgba(79, 101, 52, .25);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(41, 53, 31, .06);
}

.dw-search-form:focus-within {
  border-color: var(--dw-olive, #607546);
  box-shadow: 0 0 0 3px rgba(96, 117, 70, .12);
}

.dw-search-form svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--dw-olive, #607546);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.dw-search-form input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--dw-dark, #26321d) !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.dw-search-form input::placeholder { color: #8b9185; opacity: 1; }

.dw-search-form button {
  min-width: 76px;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--dw-olive, #607546);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.dw-search-status {
  min-height: 21px;
  margin: 13px 3px 9px;
  color: #737b6c;
  font-size: 12px;
}

.dw-search-status a { color: var(--dw-olive-dark, #344323); font-weight: 800; text-decoration: underline; }

.dw-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: calc(82vh - 200px);
  overflow-y: auto;
  padding: 2px 2px 4px;
  overscroll-behavior: contain;
}

.dw-search-result {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 8px;
  border: 1px solid rgba(79, 101, 52, .12);
  border-radius: 14px;
  background: #fff;
  color: var(--dw-dark, #26321d) !important;
  text-decoration: none !important;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dw-search-result:hover {
  border-color: rgba(79, 101, 52, .35);
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(41, 53, 31, .08);
}

.dw-search-result__image {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f5ef;
}

.dw-search-result__image img { width: 100%; height: 100%; object-fit: contain; }
.dw-search-result__info { min-width: 0; }
.dw-search-result__info strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dw-search-result__info small { display: block; margin-top: 5px; color: var(--dw-olive, #607546); font-size: 12px; font-weight: 800; }
.dw-search-result__arrow { color: var(--dw-olive, #607546); font-size: 20px; }

.dw-search-loading { display: flex; grid-column: 1 / -1; justify-content: center; gap: 6px; padding: 34px; }
.dw-search-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--dw-olive, #607546); animation: dw-search-pulse .8s infinite alternate; }
.dw-search-loading i:nth-child(2) { animation-delay: .15s; }
.dw-search-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dw-search-pulse { to { opacity: .25; transform: translateY(-5px); } }

@media (min-width: 992px) {
  .dw-product-page .product-info,
  .dw-product-page .product-form { position: sticky; top: 96px; }
}

@media (max-width: 767px) {
  .dw-search-overlay { align-items: flex-end; padding: 0; }
  .dw-search-panel {
    width: 100%;
    max-height: 88dvh;
    padding: 20px 14px max(18px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    transform: translateY(35px);
  }
  .dw-search-panel__head strong { font-size: 20px; }
  .dw-search-panel__head small { font-size: 12px; }
  .dw-search-form { grid-template-columns: 22px minmax(0, 1fr) auto; min-height: 54px; padding-inline: 12px 6px; }
  .dw-search-form input { font-size: 15px !important; }
  .dw-search-form button { min-width: 64px; min-height: 42px; padding-inline: 13px; }
  .dw-search-results { grid-template-columns: 1fr; max-height: calc(88dvh - 190px); }
  .dw-search-result { grid-template-columns: 62px minmax(0, 1fr) 22px; min-height: 78px; }
  .dw-search-result__image { width: 62px; height: 62px; }
  header .main-nav-container,
  .store-header .main-nav-container,
  .main-header .container,
  .navbar .container { min-height: 64px !important; }
  header img[alt*="شعار"],
  header .navbar-brand img,
  header .store-logo img { max-height: 44px !important; }
  .dw-search-button { display: none !important; }
  .dw-mobile-search {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
    align-self: stretch !important;
    padding: 0 10px 11px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .dw-mobile-search__button {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(79,101,52,.2) !important;
    border-radius: 14px !important;
    background: #faf8f2 !important;
    color: var(--dw-dark) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 16px rgba(41,53,31,.06) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  .dw-mobile-search__button svg {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
  }
  .dw-hero { width: calc(100% - 20px); min-height: 440px; margin: 12px auto 26px; border-radius: 22px; }
  .dw-hero::after { background: linear-gradient(180deg,rgba(247,242,232,.96) 0%,rgba(247,242,232,.52) 52%,rgba(247,242,232,.02) 100%); }
  .dw-hero__content { width: 100%; margin: 0; padding: 38px 25px; }
  .dw-hero h1 { max-width: 310px; font-size: 38px; }
  .dw-hero p { max-width: 310px; margin: 12px 0 20px; font-size: 15px; line-height: 1.7; }
  .dw-hero__button { min-height: 44px; padding: 8px 18px; font-size: 14px; }
  .dw-categories { width: calc(100% - 20px); margin-bottom: 30px; padding: 22px 0 22px; border-radius: 21px; }
  .dw-section-heading { align-items: start; padding-inline: 18px; margin-bottom: 18px; }
  .dw-section-heading h2 { font-size: 23px; }
  .dw-section-heading p { display: none; }
  .dw-categories__grid { display: flex; gap: 10px; padding: 0 14px 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dw-categories__grid::-webkit-scrollbar { display: none; }
  .dw-category-card { width: 132px; min-width: 132px; flex: 0 0 132px; padding: 8px 8px 12px; border-radius: 14px; scroll-snap-align: start; }
  .dw-category-card__image { height: 100px; margin-bottom: 9px; border-radius: 10px; }
  .dw-category-card strong { padding-inline: 0; font-size: 12px; line-height: 1.45; }
  .dw-home-product-section { width: calc(100% - 20px) !important; margin-block: 24px !important; padding: 16px 12px !important; border-radius: 18px !important; }
  .dw-home-product-section .product-entry__image,
  .dw-home-product-section .s-product-card-image,
  .dw-home-product-section .s-product-card-entry__image,
  .dw-home-product-section .product-card__image { height: 170px !important; min-height: 170px !important; }
  .dw-home-product-section .product-entry__content,
  .dw-home-product-section .s-product-card-content,
  .dw-home-product-section .s-product-card-entry__content,
  .dw-home-product-section .product-card__content { padding: 10px !important; }
  .dw-benefits { grid-template-columns: repeat(2,1fr); width: calc(100% - 20px); gap: 1px; margin: 28px auto; border-radius: 16px; }
  .dw-benefit { gap: 8px; padding: 16px 10px; }
  .dw-benefit > span { width: 34px; height: 34px; flex-basis: 34px; font-size: 16px; }
  .dw-benefit strong { font-size: 12px; }
  .dw-benefit small { font-size: 9px; }
  .dw-heritage { grid-template-columns: auto 1fr; width: calc(100% - 20px); gap: 13px; margin: 30px auto; padding: 22px 18px; }
  .dw-heritage__mark { width: 58px; height: 58px; font-size: 12px; }
  .dw-heritage h2 { font-size: 18px; line-height: 1.5; }
  .dw-product-page .product-entry__content,
  .dw-product-page .product-info,
  .dw-product-page .product-form { padding: 19px !important; border-radius: 16px !important; }
  .dw-product-page h1 { font-size: 25px !important; }
  .dw-purchase-row { grid-template-columns: 104px minmax(0,1fr) !important; gap: 8px !important; }
  .dw-purchase-row salla-quantity-input,
  .dw-purchase-row .quantity-input,
  .dw-purchase-row .product-quantity { width: 104px !important; min-width: 104px !important; }
  .scroll-to-top,
  .s-scroll-top,
  salla-scroll-top { bottom: 96px !important; }
  .dw-product-page .product-gallery img,
  .dw-product-page .product-entry__image img { max-height: 360px !important; }
  .dw-product-page .s-block--related-products,
  .dw-product-page [class*="related-products"] { margin-top: 28px !important; }
  footer .container,
  .store-footer .container,
  footer .store-footer__inner { padding-top: 18px !important; padding-bottom: 16px !important; }
  .s-product-card-image,
  .s-product-card-entry__image,
  .product-card__image { height: 175px !important; min-height: 175px !important; }
  .s-product-card-content,
  .s-product-card-entry__content,
  .product-card__content { padding: 11px !important; }
  .s-product-card-content-title,
  .s-product-card-entry__title,
  .product-card__title { min-height: 3.1em !important; font-size: 13px !important; line-height: 1.55 !important; }
  .s-product-card-price,
  .s-product-card-sale-price { font-size: 14px !important; }
  .s-product-card-entry salla-add-product-button button,
  .s-product-card-entry .s-button-primary { min-height: 42px !important; padding: 7px 8px !important; font-size: 13px !important; }
  .dw-options-title { align-items: start; flex-direction: column; gap: 2px; }
  .dw-category-page main { width: calc(100% - 18px) !important; padding-block: 16px 34px !important; }
  .dw-category-page [class*="products-grid"],
  .dw-category-page [class*="products-list"],
  .dw-category-page #products-list { gap: 10px !important; }
}