/* ==========================================================================
   design.css — الأشكال الجديدة (A / B / C / ميكس)
   كل الألوان من متغيرات الموقع (لوحة التحكم ← الإعدادات ← المظهر):
   --moss = اللون الأساسي (فوشيا)  --moss-dark = الأغمق  --stone = الوردي الفاتح
   --ink = النص  --paper = الخلفية  --stone-dark = الحدود
   ========================================================================== */

body.dz { --r-lg: 24px; --r-md: 16px; --r-sm: 10px; --shadow: 0 14px 34px rgba(26, 26, 26, .08); }
.dz-locked { overflow: hidden; }

/* ───────── أساسيات أنعم في كل الصفحات ───────── */
.dz .btn { border-radius: 999px; }
.dz .btn:not(.btn-outline):not(.btn-danger) { background: var(--ink); border-color: var(--ink); }
.dz .btn:not(.btn-outline):not(.btn-danger):hover { background: var(--moss); border-color: var(--moss); }
.dz .btn.is-loading { opacity: .6; cursor: progress; }
.dz .page-header { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.dz .free-ship-bar { border-radius: var(--r-md); }
.dz .section { padding-top: 56px; padding-bottom: 56px; }

/* ───────── كارت المنتج ───────── */
.dz .product-card { clip-path: none; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: box-shadow .25s, transform .25s, border-color .25s; }
.dz .product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.dz .product-card .thumb { aspect-ratio: 4 / 5; }
.dz .product-card .tag-hole { display: none; }
.dz .badge { border-radius: 999px; font-family: var(--font-body); padding: 4px 11px; right: auto; left: auto; inset-inline-start: 12px; }
.dz .badge.sale { background: var(--moss); }
.dz .badge.new { background: var(--ink); }
.dz .product-card .thumb > a { display: block; height: 100%; position: relative; }
.dz .product-card .img2 { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.dz .product-card.has-img2:hover .thumb img:not(.img2) { transform: none; }
.dz .product-card.has-img2:hover .img2 { opacity: 1; }
.dz .product-card .info { flex: 1; display: flex; flex-direction: column; }
.dz .product-card .name { font-size: 15px; font-weight: 700; line-height: 1.45; }
.dz .price-tag .now { color: var(--ink); }
.dz .quick-actions .btn { min-height: 40px; }
.pc-qv {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; height: 38px; min-width: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94);
  color: var(--ink); box-shadow: 0 4px 14px rgba(26, 26, 26, .12); font-size: 12.5px; font-weight: 700; cursor: pointer;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s, background .2s, color .2s;
}
.pc-qv span { display: none; }
.product-card:hover .pc-qv, .pc-qv:focus-visible { opacity: 1; transform: none; }
.pc-qv:hover { background: var(--moss); color: #fff; }
.pc-qv:hover span { display: inline; }
@media (hover: none), (max-width: 900px) { .pc-qv { opacity: 1; transform: none; } }

/* ───────── شريط المعاينة (للأدمن بس) ───────── */
.design-preview-bar { background: #111; color: #fff; font-size: 13px; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; position: relative; z-index: 60; }
.design-preview-bar a { color: #fff; text-decoration: underline; font-weight: 700; }

/* ═══════════════════════ الهيدر ═══════════════════════ */
.dz .site-header { transition: box-shadow .2s; }
.dz .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(26, 26, 26, .07); }
.dh { position: relative; }
.dh-row { display: flex; align-items: center; gap: 22px; min-height: 76px; padding-block: 10px; }
.dh-logo { display: flex; align-items: center; flex-shrink: 0; font-size: 26px; }
.dh-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dh-ic {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s;
}
.dh-ic:hover { background: var(--stone); color: var(--moss); }
.dh-lang span { font-size: 13px; font-weight: 800; font-family: var(--font-body); }
.dh-badge, .dh-cart-n {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--moss); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.dh-badge { position: absolute; top: 3px; inset-inline-end: 1px; }
.dh-cart {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; margin-inline-start: 6px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; transition: background .2s;
}
.dh-cart:hover { background: var(--moss); }
.dh-cart:hover .dh-cart-n { background: var(--ink); }
.dh-show-m { display: none; }

/* البحث في الهيدر */
.dh-search { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.dh-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14.5px; outline: none; color: var(--ink); height: 100%; }
.dh-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.dh-search-pill { flex: 1; height: 48px; padding: 0 18px; background: var(--stone); border-radius: 999px; border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.dh-search-pill:focus-within { border-color: var(--moss); background: var(--paper); }
.dh-results {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 90; background: #fff; border-radius: var(--r-md);
  box-shadow: 0 20px 44px rgba(26, 26, 26, .14); max-height: 430px; overflow: auto; padding: 6px 0;
}
.dh-results a.sr-item { display: flex; gap: 12px; align-items: center; padding: 10px 16px; }
.dh-results a.sr-item:hover, .dh-results a.sr-item.focus { background: var(--stone); }
.dh-results .sr-empty, .dh-results .sr-all { display: block; padding: 12px 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.dh-results .sr-all { color: var(--moss); font-weight: 700; border-top: 1px solid var(--stone); }

/* شريط الأقسام + الميجا منيو */
.dh-nav { border-top: 1px solid var(--stone-dark); position: relative; }
.dh-nav-in { display: flex; align-items: center; flex-wrap: wrap; gap: 0 28px; min-height: 48px; }
.dh-link { display: inline-flex; align-items: center; gap: 5px; padding: 12px 0; font-weight: 700; font-size: 14.5px; color: var(--ink); position: relative; transition: color .2s; }
.dh-link:hover, .dh-link.active { color: var(--moss); }
.dh-link .caret { font-size: 10px; transition: transform .2s; }
.dh-offers { color: var(--moss); }
.dh-dd { position: relative; }
.dh-dd-mega { position: static; }
.dh-panel {
  display: none; position: absolute; top: 100%; inset-inline-start: -18px; z-index: 80; min-width: 210px; padding: 10px 0;
  background: #fff; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 22px 40px rgba(26, 26, 26, .1); border-top: 1px solid var(--stone-dark);
}
.dh-panel > a { display: block; padding: 9px 20px; font-size: 14px; color: var(--ink); }
.dh-panel > a:hover { background: var(--stone); color: var(--moss); }
.dh-dd-mega > .dh-panel { inset-inline: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 0; }
.dh-dd:hover > .dh-panel, .dh-dd:focus-within > .dh-panel { display: block; }
.dh-dd:hover .caret { transform: rotate(180deg); }
.dh-mega-in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 28px; }
.dh-mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px; align-content: start; }
.dh-mega-col { display: flex; flex-direction: column; gap: 4px; }
.dh-mega-col a { color: var(--ink); font-size: 14px; padding: 3px 0; }
.dh-mega-col a:hover { color: var(--moss); }
.dh-mega-title { color: var(--moss) !important; font-weight: 800; font-size: 14.5px !important; margin-bottom: 4px; }
.dh-mega-img { position: relative; display: block; height: 210px; border-radius: var(--r-md); overflow: hidden; background: var(--stone); }
.dh-mega-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dh-mega-img:hover img { transform: scale(1.05); }
.dh-mega-img span { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-weight: 800; font-size: 18px; background: linear-gradient(to top, rgba(26, 26, 26, .65), transparent); }

/* شريط الأقسام الفوشيا (C والميكس) */
.dh-nav-pink { background: var(--moss); border-top: 0; }
.dh-nav-pink .dh-link { color: #fff; }
.dh-nav-pink .dh-link:hover, .dh-nav-pink .dh-link.active { color: #fff; opacity: .85; }
.dh-nav-pink .dh-link::after { content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 2px; background: #fff; transform: scaleX(0); transition: transform .2s; }
.dh-nav-pink .dh-link:hover::after { transform: scaleX(1); }
.dh-nav-pink .dh-offers { text-decoration: underline; text-underline-offset: 5px; }
.dh-pill { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--moss); font-weight: 800; font-size: 13.5px; padding: 7px 16px; border-radius: 999px; transition: transform .2s; }
.dh-pill:hover { transform: translateY(-1px); }

/* هيدر B */
.dh-b .dh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; min-height: 84px; }
.dh-side { display: flex; align-items: center; gap: 24px; min-width: 0; }
.dh-start { justify-self: start; }
.dh-end { justify-self: end; }
.dh-split { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; }
.dh-split .dh-link { font-size: 13.5px; letter-spacing: .02em; }
.dh-b .dh-logo { justify-self: center; }

/* هيدر C */
.dh-search-box { flex: 1; height: 50px; border: 2px solid var(--moss); border-radius: 999px; padding-inline-start: 6px; gap: 0; background: #fff; }
.dh-search-box select { border: 0; background: var(--stone); border-radius: 999px; height: 36px; min-height: 0; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); max-width: 150px; cursor: pointer; }
.dh-search-box input { padding: 0 14px; }
.dh-search-btn { flex-shrink: 0; width: 56px; height: 100%; border: 0; border-radius: 999px; background: var(--moss); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-inline-end: -2px; }
.dh-search-btn:hover { background: var(--moss-dark); }
.dh-msearch { padding-bottom: 10px; }
.dh-fake-search { width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1.5px solid var(--moss); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 14px; cursor: text; text-align: start; }
.dh-fake-search svg { color: var(--moss); flex-shrink: 0; }

@media (max-width: 1100px) {
  .dh-cart-label { display: none; }
  .dh-split { gap: 0 16px; }
  .dh-split .dh-link { font-size: 13px; }
}
@media (max-width: 900px) {
  .dz .site-header { position: relative; }
  .dh-hide-m { display: none !important; }
  .dh-show-m { display: block; }
  span.dh-show-m { display: contents; }
  .dh-row { gap: 6px; min-height: 62px; padding-block: 6px; }
  .dh-logo { margin-inline-end: auto; font-size: 22px; }
  .dh-logo img { max-height: 46px !important; }
  .dh-burger { margin-inline-end: 4px; }
  .dh-ic { width: 40px; height: 40px; }
  .dh-cart { height: 40px; padding: 0 12px; margin-inline-start: 2px; }
  .dh-b .dh-row { grid-template-columns: 1fr auto 1fr; gap: 6px; min-height: 64px; }
  .dh-b .dh-logo { margin: 0; }
  .dh-b .dh-actions .dh-lang, .dh-b .dh-actions .search-toggle { display: none; }
  /* الأقسام سطر واحد بيتسحب بالصباع */
  .dh-nav-in { flex-wrap: nowrap; overflow-x: auto; gap: 0 20px; min-height: 42px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dh-nav-in::-webkit-scrollbar { display: none; }
  .dh-link { white-space: nowrap; padding: 9px 0; font-size: 13.5px; }
  .dh-link .caret, .dh-panel { display: none !important; }
  .dh-pill { padding: 5px 12px; font-size: 12.5px; white-space: nowrap; }
}

/* ═══════════════════ شريط الموبايل السفلي ═══════════════════ */
.dm-tabs, .dm-pill { display: none; }
@media (max-width: 900px) {
  body.dz { --mobile-bar-h: 64px; }
  .dm-tabs {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 150; background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px); border-top: 1px solid var(--stone-dark); padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .dm-tabs > a, .dm-tabs > button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 2px 7px;
    border: 0; background: none; color: var(--ink); font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; min-width: 0;
  }
  .dm-tabs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .dm-tabs .is-on { color: var(--moss); }
  .dm-tabs i, .dm-pill i { position: relative; display: inline-flex; font-style: normal; }
  .dm-tabs b, .dm-pill b {
    position: absolute; top: -6px; inset-inline-end: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--moss); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center;
  }
  body.d-b { --mobile-bar-h: 80px; }
  .dm-pill {
    display: flex; align-items: center; gap: 4px; position: fixed; z-index: 150; bottom: calc(12px + env(safe-area-inset-bottom, 0));
    left: 50%; transform: translateX(-50%); padding: 6px; border-radius: 999px; background: var(--ink); color: #fff;
    box-shadow: 0 12px 30px rgba(26, 26, 26, .28);
  }
  .dm-pill > button, .dm-pill > a:not(.dm-pill-main) { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .dm-pill-main { height: 44px; padding: 0 22px; border-radius: 999px; background: var(--moss); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; white-space: nowrap; }
  .dm-pill b { background: #fff; color: var(--moss); }
  body.nav-open .dm-tabs, body.nav-open .dm-pill { opacity: 0; pointer-events: none; }
}

/* ═══════════════════ السلة الجانبية ═══════════════════ */
.dz-overlay { position: fixed; inset: 0; z-index: 390; background: rgba(26, 26, 26, .45); opacity: 0; transition: opacity .3s; }
.dz-overlay.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 400; width: min(420px, 92vw); background: #fff;
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 0 40px rgba(26, 26, 26, .18); visibility: hidden;
}
[dir="rtl"] .cart-drawer { transform: translateX(-105%); }
.cart-drawer.open { transform: none !important; visibility: visible; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--stone-dark); }
.cd-head strong { font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.cd-n { min-width: 22px; height: 22px; border-radius: 999px; background: var(--moss); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.cd-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--stone); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cd-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; position: relative; transition: opacity .2s; }
.cd-body.is-busy { opacity: .55; pointer-events: none; }
.cd-body .free-ship-bar { margin: 14px 20px 4px; }
.cd-items { padding: 0 20px; }
.cd-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--stone); align-items: start; transition: opacity .2s; }
.cd-item.is-busy { opacity: .4; }
.cd-img img { width: 76px; height: 92px; object-fit: cover; border-radius: var(--r-sm); background: var(--stone); }
.cd-name { font-weight: 700; font-size: 14.5px; line-height: 1.4; display: block; }
.cd-opts { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cd-tier { color: var(--moss); font-weight: 700; }
.cd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cd-qty { display: inline-flex; align-items: center; border: 1px solid var(--stone-dark); border-radius: 999px; }
.cd-qty button { width: 32px; height: 32px; border: 0; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.cd-qty button:hover { background: var(--stone); }
.cd-qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.cd-line { font-size: 15px; }
.cd-remove { width: 30px; height: 30px; border: 0; background: none; color: var(--muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cd-remove:hover { background: var(--stone); color: var(--danger); }
.cd-recs { margin: 16px 20px; padding: 14px; background: var(--stone); border-radius: var(--r-md); }
.cd-recs h4 { margin: 0 0 10px; font-size: 14px; }
.cd-recs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cd-recs .ds-mini-name { font-size: 12.5px; }
.cd-recs .ds-mini-price { font-size: 12.5px; }
.cd-foot { position: sticky; bottom: 0; margin-top: auto; background: #fff; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--stone-dark); }
.cd-sum { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.cd-total { font-size: 17px; }
.cd-note { font-size: 12.5px; color: var(--muted); margin: 2px 0 12px; }
.cd-checkout { min-height: 52px; font-size: 15px; }
.cd-view { display: block; text-align: center; margin-top: 10px; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cd-empty { text-align: center; padding: 70px 24px; }
.cd-empty-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--stone); color: var(--moss); display: inline-flex; align-items: center; justify-content: center; }
.cd-empty h3 { margin: 16px 0 6px; }
.cd-empty p { color: var(--muted); margin: 0 0 18px; }
.cd-loading, .qv-loading { margin: 80px auto; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--stone-dark); border-top-color: var(--moss); animation: dz-spin .8s linear infinite; }
.cd-err { padding: 40px 20px; text-align: center; color: var(--danger); }
@keyframes dz-spin { to { transform: rotate(360deg); } }

/* ═══════════════════ النظرة السريعة ═══════════════════ */
.qv-modal { position: fixed; inset: 0; z-index: 420; background: rgba(26, 26, 26, .5); display: none; align-items: center; justify-content: center; padding: 20px; }
.qv-modal.open { display: flex; animation: dz-fade .2s ease; }
@keyframes dz-fade { from { opacity: 0; } }
.qv-box { position: relative; background: #fff; border-radius: 22px; width: min(940px, 100%); max-height: 90vh; overflow-y: auto; }
.qv-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--stone); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; padding: 28px; }
.qv-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--stone); }
.qv-main img { width: 100%; height: 100%; object-fit: cover; }
.qv-shade-tag { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .95); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.qv-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.qv-thumbs button { flex: 0 0 auto; width: 60px; height: 60px; padding: 0; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; background: var(--stone); cursor: pointer; }
.qv-thumbs button.is-on { border-color: var(--moss); }
.qv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; min-width: 0; }
.qv-name { font-size: clamp(22px, 2.4vw, 30px); margin: 0; line-height: 1.25; }
.qv-price strong { font-size: 24px; color: var(--moss-dark); }
.qv-price s { color: var(--muted); margin-inline-start: 6px; }
.qv-desc { color: var(--muted); margin: 0; font-size: 14.5px; }
.qv-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.qv-label { font-weight: 700; font-size: 14px; }
.qv-shades { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-shade { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--stone-dark); cursor: pointer; background: var(--stone); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; transition: border-color .2s, transform .2s; }
.qv-shade input { position: absolute; opacity: 0; pointer-events: none; }
.qv-shade img { width: 100%; height: 100%; object-fit: cover; }
.qv-shade:has(input:checked) { border-color: var(--moss); transform: scale(1.08); box-shadow: 0 0 0 3px #fff inset; }
.qv-shade.is-out { opacity: .35; cursor: not-allowed; }
.qv-shades-view .qv-shade { cursor: default; }
.qv-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-sizes input { position: absolute; opacity: 0; }
.qv-sizes span { display: inline-block; padding: 7px 16px; border: 1.5px solid var(--stone-dark); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; }
.qv-sizes input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.qv-more { font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; margin-top: 4px; }
.qv-err { padding: 40px; text-align: center; }
@media (max-width: 760px) {
  .qv-modal { align-items: flex-end; padding: 0; }
  .qv-box { border-radius: 22px 22px 0 0; max-height: 90vh; animation: dz-up .28s ease; }
  @keyframes dz-up { from { transform: translateY(40px); opacity: 0; } }
  .qv { grid-template-columns: 1fr; gap: 16px; padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0)); }
  .qv-main { aspect-ratio: 1; }
}

/* ───────── التنبيه ───────── */
.dz-toast {
  position: fixed; z-index: 500; left: 50%; bottom: calc(var(--mobile-bar-h, 0px) + 20px); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center;
}
.dz-toast.show { opacity: 1; transform: translate(-50%, 0); }
.dz-toast.is-error { background: var(--danger); }

/* ═══════════════════ عناصر مشتركة للأقسام ═══════════════════ */
.ds-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 26px; flex-wrap: wrap; }
.ds-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--moss); font-weight: 800; font-size: 13px; letter-spacing: .03em; }
.ds-title { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; margin: 4px 0 0; font-weight: 800; }
.ds-more { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--moss); padding-bottom: 2px; white-space: nowrap; }
.ds-more:hover { color: var(--moss); }
.ds-pct { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: var(--moss); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.ds-mini { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ds-mini-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--stone); }
.ds-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ds-mini:hover .ds-mini-img img { transform: scale(1.05); }
.ds-mini-name { font-weight: 700; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-mini-price { color: var(--moss-dark); font-weight: 800; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ds-mini-price s { color: var(--muted); font-weight: 400; font-size: .85em; }
.ds-row { flex-direction: row; align-items: center; gap: 12px; background: #fff; border-radius: var(--r-md); padding: 8px; }
.ds-row .ds-mini-img { width: 76px; flex-shrink: 0; border-radius: var(--r-sm); }
.ds-row .ds-mini-name { flex: 1; }
.ds-row .ds-pct { font-size: 10.5px; padding: 2px 7px; top: 5px; inset-inline-start: 5px; }
.ds-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto; }
.ds-row .ds-mini-img { grid-row: 1 / 3; }
.ds-row .ds-mini-name, .ds-row .ds-mini-price { grid-column: 2; }

.ds-countdown { display: inline-flex; gap: 6px; }
.cd-box { min-width: 50px; padding: 6px 4px; border-radius: var(--r-sm); background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.cd-box[hidden] { display: none; }
.cd-box b { font-family: var(--font-mono); font-size: 19px; }
.cd-box small { font-size: 10.5px; opacity: .75; margin-top: 2px; }
.cd-lg .cd-box { min-width: 60px; padding: 8px 4px; }
.cd-lg .cd-box b { font-size: 24px; }
.ds-countdown.is-over { opacity: .5; }

.ds-stock { display: flex; flex-direction: column; gap: 5px; }
.ds-stock-track { height: 8px; border-radius: 99px; background: var(--stone-dark); overflow: hidden; }
.ds-stock-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--moss), var(--moss-dark)); }
.ds-stock small { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* كاروسيل أفقي */
.ds-scroller { position: relative; }
.ds-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; overscroll-behavior-x: contain; }
.ds-track::-webkit-scrollbar { display: none; }
.ds-cell, .ds-track > * { scroll-snap-align: start; min-width: 0; }
.ds-arrow { position: absolute; top: 38%; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(26, 26, 26, .14); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.ds-arrow:hover { background: var(--moss); color: #fff; }
.ds-arrow:disabled { opacity: 0; pointer-events: none; }
.ds-prev { inset-inline-start: -20px; }
.ds-next { inset-inline-end: -20px; }
.ds-scroller.no-scroll .ds-arrow { display: none; }
@media (max-width: 1100px) { .ds-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; } .ds-prev { inset-inline-start: 4px; } .ds-next { inset-inline-end: 4px; } }
@media (max-width: 760px) { .ds-track { grid-auto-columns: 64%; gap: 12px; } .ds-arrow { display: none; } }

/* ═══════════════════ الأقسام ═══════════════════ */
/* سلايدر A بحواف مدورة جوه الحاوية */
.d-a .hero-slider, .hero-rounded { border-radius: var(--r-lg); overflow: hidden; }
.d-a .hero-slider { width: calc(100% - 48px); max-width: calc(var(--container) - 48px); margin: 22px auto 0; }
@media (max-width: 760px) { .d-a .hero-slider { width: calc(100% - 32px); margin-top: 14px; border-radius: 18px; } }
.dz .hero-dot.is-active { background: var(--moss); }

/* هيرو إديتوريال */
.ed-hero { position: relative; background: var(--stone); }
.ed-track { display: grid; height: clamp(440px, 46vw, 640px); }
.ed-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; min-height: 0; overflow: hidden; }
.ed-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.ed-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ed-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 0 clamp(24px, 6vw, 110px); min-width: 0; }
.ed-kicker { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(18px, 1.8vw, 24px); color: var(--moss); }
.ed-badge { background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; padding: 4px 14px; border-radius: 999px; }
.ed-title { font-size: clamp(32px, 4.6vw, 66px); line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.ed-sub { margin: 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); max-width: 46ch; }
.ed-price { font-size: 24px; font-weight: 800; color: var(--moss-dark); display: flex; gap: 10px; align-items: baseline; }
.ed-price s { font-size: .65em; color: var(--muted); font-weight: 400; }
.ed-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.ed-btn { min-height: 54px; padding: 0 34px !important; font-size: 15px; background: var(--moss) !important; border-color: var(--moss) !important; }
.ed-btn:hover { background: var(--ink) !important; border-color: var(--ink) !important; }
.ed-link { font-weight: 700; border-bottom: 2px solid var(--ink); }
.ed-img { display: block; height: 100%; min-height: 0; overflow: hidden; }
.ed-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.ed-slide.is-active .ed-img img { transform: scale(1.04); }
.ed-full { display: block; }
.ed-full picture, .ed-full img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-progress { display: flex; gap: 14px; max-width: var(--container); margin: 0 auto; padding: 14px 24px 16px; }
.ed-step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; border: 0; background: none; padding: 0; text-align: start; cursor: pointer; color: var(--muted); font: inherit; }
.ed-step.is-active { color: var(--ink); }
.ed-bar { position: relative; height: 3px; border-radius: 3px; background: rgba(26, 26, 26, .14); overflow: hidden; }
.ed-bar i { position: absolute; inset: 0; width: 0; background: var(--moss); }
[dir="rtl"] .ed-bar i { inset: 0 0 0 auto; }
.ed-step.is-done .ed-bar i, .ed-hero:not(.is-playing) .ed-step.is-active .ed-bar i { width: 100%; }
.ed-hero.is-playing .ed-step.is-active .ed-bar i { animation: ed-fill var(--ed-dur, 6s) linear forwards; }
.ed-hero.is-paused .ed-step.is-active .ed-bar i { animation-play-state: paused; }
@keyframes ed-fill { from { width: 0; } to { width: 100%; } }
.ed-lbl { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .ed-track { height: auto; min-height: 0; }
  .ed-split { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .ed-img { order: -1; height: 56vh; max-height: 460px; }
  .ed-text { padding: 22px 20px 6px; gap: 10px; }
  .ed-full { aspect-ratio: 4 / 5; }
  .ed-title { font-size: clamp(28px, 8vw, 40px); }
  .ed-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ed-btn { min-height: 48px; padding: 0 26px !important; }
  .ed-progress { padding: 14px 20px 18px; gap: 8px; }
  .ed-lbl { font-size: 11.5px; }
}

/* هيرو C: سلايدر + بانرين */
.hg { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); gap: 16px; }
.dz .hg { margin-top: 20px; }
.hg-main { min-width: 0; }
.hg-main .hero-slider { height: 100%; }
.hg-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 0; }
.hg-tile { position: relative; display: block; min-height: 170px; border-radius: 20px; overflow: hidden; background: var(--stone); }
.hg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hg-tile:hover img { transform: scale(1.05); }
.hg-tile-txt { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(to top, rgba(26, 26, 26, .7), transparent); }
.hg-tile-txt strong { font-size: 19px; }
.hg-tile-txt small { opacity: .9; }
.hg-tile-txt em { font-style: normal; font-weight: 800; font-size: 13.5px; margin-top: 4px; }
@media (max-width: 900px) { .hg { grid-template-columns: 1fr; } .dz .hg { margin-top: 12px; } .hg-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; } .hg-tile { min-height: 140px; border-radius: 16px; } .hg-tile-txt strong { font-size: 15px; } }

/* الأقسام دواير */
.cc-row { display: flex; gap: 26px; justify-content: center; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.cc-row::-webkit-scrollbar { display: none; }
.cc-item { flex: 0 0 auto; width: 128px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cc-img { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: var(--stone); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--stone-dark); transition: box-shadow .25s, transform .25s; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-item:hover .cc-img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--moss); transform: translateY(-3px); }
.cc-name { font-weight: 700; font-size: 14.5px; }
.cc-offers .cc-img { background: var(--moss); color: #fff; }
@media (max-width: 760px) { .cc-row { justify-content: flex-start; gap: 14px; } .cc-item { width: 86px; } .cc-img { width: 86px; height: 86px; } .cc-name { font-size: 12.5px; } }

/* ستوريز */
.dz .st-sec { padding-top: 26px; padding-bottom: 8px; }
.st-row { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; justify-content: center; }
.st-row::-webkit-scrollbar { display: none; }
.st-item { flex: 0 0 auto; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.st-ring { position: relative; width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--moss), var(--moss-dark), var(--moss), #ff9bd0, var(--moss)); transition: transform .25s; }
.st-item:hover .st-ring { transform: scale(1.05); }
.st-ring-plain { background: var(--stone-dark); }
.st-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: var(--stone); }
.st-img img { width: 100%; height: 100%; object-fit: cover; }
.st-ic { color: var(--moss); }
.st-ring-hot .st-ic { background: var(--moss); color: #fff; }
.st-new { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--moss); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 9px; border-radius: 999px; border: 2px solid #fff; white-space: nowrap; }
.st-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
@media (max-width: 760px) { .st-row { justify-content: flex-start; gap: 12px; } .st-item { width: 74px; } .st-ring { width: 74px; height: 74px; } .st-name { font-size: 12px; } }

/* تابات */
.tc-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--stone); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tc-tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tc-tab.is-on { background: var(--ink); color: #fff; }
.tc .ds-head { align-items: center; }
@media (max-width: 760px) { .tc .ds-head > div:first-child { flex-basis: 100%; } .tc .ds-more { display: none; } }

/* بانرين */
.pt-sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dz .pt-sec { padding-top: 12px; padding-bottom: 12px; }
.pt-sec.pt-1 { grid-template-columns: 1fr; }
.pt-tile { position: relative; display: block; aspect-ratio: 2 / 1; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, var(--stone), var(--stone-dark)); }
.pt-1 .pt-tile { aspect-ratio: 21 / 7; }
.pt-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.pt-tile:hover img { transform: scale(1.05); }
.pt-txt { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: clamp(18px, 3vw, 34px); color: #fff; background: linear-gradient(to top, rgba(26, 26, 26, .72), rgba(26, 26, 26, 0) 62%); }
.pt-txt strong { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; }
.pt-txt small { font-size: 14.5px; opacity: .92; max-width: 40ch; }
.pt-btn { margin-top: 10px; background: #fff; color: var(--ink); font-style: normal; font-weight: 800; font-size: 14px; padding: 9px 20px; border-radius: 999px; transition: background .2s, color .2s; }
.pt-tile:hover .pt-btn { background: var(--moss); color: #fff; }
@media (max-width: 760px) { .pt-sec { grid-template-columns: 1fr; gap: 12px; } .pt-tile, .pt-1 .pt-tile { aspect-ratio: 16 / 10; border-radius: 18px; } }

/* Flash sale */
.dz .fs-sec { padding-top: 28px; padding-bottom: 28px; }
.fs-box { background: var(--stone); border-radius: 28px; padding: clamp(18px, 3vw, 34px); }
.fs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.fs-timer { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.fs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fs-card { background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .25s, transform .25s; }
.fs-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.fs-img { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--stone); }
.fs-img img { width: 100%; height: 100%; object-fit: cover; }
.fs-name { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
@media (max-width: 900px) {
  .fs-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .fs-grid::-webkit-scrollbar { display: none; }
  .fs-card { scroll-snap-align: start; }
  .fs-timer { flex-basis: 100%; order: 3; }
}

/* المميزات */
.dz .bn-sec { padding-top: 24px; padding-bottom: 24px; }
.bn-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bn-item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--stone); }
.bn-ic { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--moss); display: flex; align-items: center; justify-content: center; }
.bn-item strong { display: block; font-size: 15px; line-height: 1.35; }
.bn-item small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .bn-row { grid-template-columns: 1fr 1fr; gap: 10px; } .bn-item { padding: 12px; gap: 10px; flex-direction: column; text-align: center; } .bn-ic { width: 44px; height: 44px; } .bn-item strong { font-size: 13.5px; } .bn-item small { font-size: 12px; } }

/* آراء العملاء */
.rv-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
.rv-card { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--stone-dark); border-radius: 22px; background: #fff; }
.rv-card .stars { font-size: 15px; }
.rv-card blockquote { margin: 0; font-size: 15px; line-height: 1.7; flex: 1; }
.rv-photo { width: 70px; height: 70px; object-fit: cover; border-radius: var(--r-sm); }
.rv-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; border-top: 1px solid var(--stone); padding-top: 10px; }
.rv-card figcaption a { color: var(--moss-dark); font-weight: 600; }
.rv-ok { color: #2e9e5b; font-size: 12px; font-weight: 700; }
@media (max-width: 900px) { .rv-track { grid-auto-columns: 82%; } }

/* رأي كبير */
.qr-sec { background: var(--stone); padding: clamp(56px, 7vw, 96px) 0; text-align: center; }
.qr-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.qr-in .stars { font-size: 20px; }
.qr-quote { margin: 0; font-family: 'Fraunces', 'Cairo', serif; font-style: italic; font-size: clamp(22px, 3vw, 38px); line-height: 1.45; max-width: 30ch; }
.qr-by { margin: 0; color: var(--muted); }
.qr-by a { color: var(--moss-dark); font-weight: 700; }

/* صور العملاء */
.ug-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ug-item { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--stone); }
.ug-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ug-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(26, 26, 26, .35); opacity: 0; transition: opacity .25s; }
.ug-item:hover .ug-ov { opacity: 1; }
.ug-item:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .ug-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .ug-item { border-radius: var(--r-sm); } }

/* النشرة الغامقة */
.nb-sec { background: var(--ink); color: #fff; padding: clamp(40px, 5vw, 64px) 0; margin-top: 40px; }
.nb-in { display: flex; align-items: center; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap; }
.nb-in h2 { color: #fff; margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 32px); }
.nb-in p { margin: 0; opacity: .72; }
.nb-form { flex: 1; max-width: 480px; min-width: min(100%, 300px); }
.ds-nl-form { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.ds-nl-form input[type="email"] { flex: 1; min-width: 0; border: 0; background: none; color: #fff; padding: 0 16px; font: inherit; font-size: 15px; outline: none; min-height: 46px; }
.ds-nl-form input::placeholder { color: rgba(255, 255, 255, .6); }
.ds-nl-form .btn { background: var(--moss) !important; border-color: var(--moss) !important; flex-shrink: 0; }
.ds-nl-form .btn:hover { background: #fff !important; color: var(--ink) !important; }
.ds-nl-msg { min-height: 1.4em; margin-top: 8px; font-size: 14px; color: #fff; }

/* الكتالوج المتحرك */
.mq-sec { overflow: hidden; }
.mq-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; gap: 18px; width: max-content; animation: mq-ltr 40s linear infinite; padding: 4px 0 10px; }
[dir="rtl"] .mq-track { animation-name: mq-rtl; }
.mq-wrap:hover .mq-track, .mq-wrap:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq-ltr { to { transform: translateX(-50%); } }
@keyframes mq-rtl { to { transform: translateX(50%); } }
.mq-card { width: 220px; flex: 0 0 auto; }
@media (max-width: 760px) { .mq-card { width: 160px; } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .mq-wrap { overflow-x: auto; } }

/* الكولكشنز */
.cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cl-grid.cl-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-grid.cl-n1 { grid-template-columns: 1fr; }
.cl-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--stone); }
.cl-n1 .cl-tile { aspect-ratio: 21 / 8; }
.cl-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.cl-tile:hover img { transform: scale(1.07); }
.cl-txt { position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(to top, rgba(26, 26, 26, .72), transparent); }
.cl-txt strong { font-size: clamp(20px, 2vw, 28px); }
.cl-txt small { opacity: .85; }
.cl-txt em { font-style: normal; font-weight: 800; margin-top: 8px; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) {
  .cl-grid, .cl-grid.cl-n2 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; }
  .cl-grid::-webkit-scrollbar { display: none; }
  .cl-tile { scroll-snap-align: start; border-radius: 18px; }
}

/* Shop the Look */
.lk-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.lk-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--stone); }
.lk-media img { width: 100%; display: block; }
.lk-dot { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(26, 26, 26, .25); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lk-dot span { width: 12px; height: 12px; border-radius: 50%; background: var(--moss); transition: transform .2s; }
.lk-dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: lk-pulse 2s ease-out infinite; }
.lk-dot.is-on { background: var(--moss); }
.lk-dot.is-on span { background: #fff; transform: scale(.8); }
@keyframes lk-pulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.lk-cards { display: flex; flex-direction: column; gap: 12px; }
.lk-card { display: grid; grid-template-columns: 26px 86px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; border: 1.5px solid var(--stone-dark); border-radius: 20px; transition: border-color .2s, background .2s; }
.lk-card.is-on { border-color: var(--moss); background: var(--stone); }
.lk-num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lk-card.is-on .lk-num { background: var(--moss); }
.lk-card img { width: 86px; height: 86px; object-fit: cover; border-radius: 14px; background: #fff; }
.lk-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lk-info strong { font-size: 15px; line-height: 1.35; }
.lk-info em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--moss-dark); }
@media (max-width: 900px) {
  .lk-grid { grid-template-columns: 1fr; gap: 14px; }
  .lk-cards { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .lk-cards::-webkit-scrollbar { display: none; }
  .lk-card { flex: 0 0 84%; scroll-snap-align: center; grid-template-columns: 26px 70px minmax(0, 1fr); }
  .lk-card img { width: 70px; height: 70px; }
}

/* كوّني الباكدج */
.bb-sec { background: var(--stone); padding: clamp(44px, 6vw, 76px) 0; margin: 30px 0; }
.bb-in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: start; }
.bb-intro p { color: var(--muted); font-size: 16px; margin: 10px 0 20px; }
.bb-slots { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.bb-slot { width: 70px; height: 70px; border-radius: 18px; border: 2px dashed var(--moss); display: flex; align-items: center; justify-content: center; color: var(--moss); font-weight: 800; background: rgba(255, 255, 255, .6); overflow: hidden; transition: border-color .2s; }
.bb-slot.is-filled { border-style: solid; }
.bb-slot img { width: 100%; height: 100%; object-fit: cover; }
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.bb-item { background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border: 2px solid transparent; cursor: pointer; transition: border-color .2s, box-shadow .2s; user-select: none; }
.bb-item:hover { box-shadow: var(--shadow); }
.bb-item.is-picked { border-color: var(--moss); }
.bb-item.is-out { opacity: .5; cursor: not-allowed; }
.bb-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--stone); }
.bb-item strong { font-size: 14px; line-height: 1.35; }
.bb-item small { color: var(--muted); }
.bb-ctrl { display: inline-flex; align-items: center; gap: 10px; }
.bb-ctrl button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--stone-dark); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bb-ctrl button:hover:not(:disabled) { border-color: var(--moss); color: var(--moss); }
.bb-ctrl button:disabled { opacity: .35; cursor: not-allowed; }
.bb-ctrl b { min-width: 16px; }
.bb-bar { margin-top: 18px; display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: var(--shadow); }
[dir="rtl"] .bb-bar { padding: 8px 22px 8px 8px; }
.bb-count { font-weight: 800; font-size: 16px; }
.bb-count b { color: var(--moss); }
.bb-price { flex: 1; font-size: 18px; }
.bb-price strong { color: var(--moss-dark); }
.bb-price s { color: var(--muted); font-size: .8em; }
@media (max-width: 900px) {
  .bb-in { grid-template-columns: 1fr; gap: 20px; }
  .bb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bb-slot { width: 58px; height: 58px; }
  .bb-bar { position: sticky; bottom: calc(var(--mobile-bar-h, 0px) + 10px); z-index: 5; border-radius: 22px; padding: 10px 14px !important; }
  .bb-bar .btn { flex-basis: 100%; }
}

/* عرض اليوم */
.dd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.dd-grid.dd-solo { grid-template-columns: 1fr; }
.dd-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; padding: 24px; border: 1px solid var(--stone-dark); border-radius: 28px; background: #fff; }
.dd-media { position: relative; min-width: 0; }
.dd-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--stone); }
.dd-pct { position: absolute; top: 16px; inset-inline-start: 16px; width: 68px; height: 68px; border-radius: 50%; background: var(--moss); color: #fff; font-style: normal; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; transform: rotate(-8deg); box-shadow: 0 8px 20px rgba(26, 26, 26, .18); }
.dd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.dd-thumbs button { width: 62px; height: 62px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--stone); cursor: pointer; }
.dd-thumbs button.is-on { border-color: var(--moss); }
.dd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dd-info { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.dd-name { margin: 0; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; font-weight: 800; }
.dd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.dd-price strong { font-size: 30px; color: var(--moss-dark); }
.dd-price s { color: var(--muted); font-size: 17px; }
.dd-save { background: var(--stone); color: var(--moss-dark); font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.dd-desc { margin: 0; color: var(--muted); }
.dd-timer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.dd-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.dd-ctas .btn { min-height: 52px; padding: 0 30px; }
.dd-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.dd-side { background: var(--stone); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.dd-side h3 { margin: 0 0 4px; font-size: 18px; }
.dd-side .ds-more { align-self: flex-start; margin-top: 6px; }
@media (max-width: 1000px) { .dd-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .dd-main { grid-template-columns: 1fr; padding: 14px; gap: 16px; border-radius: 22px; } .dd-price strong { font-size: 26px; } .cd-lg .cd-box { min-width: 54px; } }

/* كل المنتجات بفلاتر */
.fg-chips, .shop-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin-bottom: 18px; }
.fg-chips::-webkit-scrollbar, .shop-chips::-webkit-scrollbar { display: none; }
.fg-chip, .shop-chips a { flex: 0 0 auto; border: 1.5px solid var(--stone-dark); background: #fff; color: var(--ink); padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.fg-chip:hover, .shop-chips a:hover { border-color: var(--moss); color: var(--moss); }
.fg-chip.is-on, .shop-chips a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fg-cell[hidden] { display: none; }
.fg-empty { text-align: center; color: var(--muted); padding: 30px 0; }
@media (min-width: 1000px) { .dz .fg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

/* ═══════════════════ الفوتر ═══════════════════ */
.df { padding: 56px 0 24px; margin-top: 0; }
.df-a { background: var(--stone); }
.df-c { background: var(--ink); color: rgba(255, 255, 255, .82); }
.df-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.df h4 { margin: 0 0 14px; font-size: 15.5px; font-weight: 800; }
.df-c h4 { color: #fff; }
.df ul li { margin-bottom: 8px; font-size: 14.5px; }
.df ul a:hover { color: var(--moss); }
.df-c ul a { color: rgba(255, 255, 255, .78); }
.df-c ul a:hover { color: #fff; }
.df-muted { color: var(--muted); font-size: 13.5px !important; }
.df-c .df-muted { color: rgba(255, 255, 255, .55); }
.df-logo { display: inline-flex; margin-bottom: 12px; }
.df-c .df-logo img { border-radius: 12px; }
.df-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; margin: 0 0 16px; }
.df-c .df-brand p { color: rgba(255, 255, 255, .6); }
.df-social { display: flex; gap: 8px; }
.df-social a { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.df-social a:hover { background: var(--moss); color: #fff; }
.df-c .df-social a { background: rgba(255, 255, 255, .1); color: #fff; }
.df-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--stone-dark); font-size: 13px; color: var(--muted); }
.df-c .df-bottom { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .55); }
.df-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.df-pay span { border: 1px solid var(--stone-dark); background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; }
.df-c .df-pay span { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .2); }
/* فوتر B */
.df-b { border-top: 1px solid var(--stone-dark); text-align: center; padding-top: 60px; }
.df-b .df-logo { justify-content: center; margin-bottom: 6px; }
.df-kicker { font-family: 'Fraunces', serif; font-style: italic; color: var(--moss); font-size: 20px; margin: 0; }
.df-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 24px 0 18px; font-weight: 700; font-size: 14.5px; }
.df-links a:hover { color: var(--moss); }
.df-b .df-social { justify-content: center; gap: 22px; }
.df-b .df-social a { width: auto; height: auto; background: none; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.df-b .df-social a:hover { background: none; color: var(--moss); }
.df-b .df-bottom { justify-content: center; }
@media (max-width: 900px) {
  .df { padding-top: 40px; }
  .df-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .df-brand { grid-column: 1 / -1; }
  .df ul li a { display: inline-block; padding: 6px 0; }
  .df-bottom { flex-direction: column; text-align: center; }
}
