/* ScentBilal — storefront styles (v5).
   Layout modelled on a clean Shopify "Refresh" store: white background, black type, bold sans headings,
   big-type collection cards, pill buttons. RTL (ar) + LTR (fr). Breakpoint: 990px desktop / 750px phone. */
:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #ebebeb;
  --ink: #121212;
  --ink-2: rgba(18, 18, 18, .78);
  --muted: rgba(18, 18, 18, .6);
  --line: rgba(18, 18, 18, .12);
  --line-2: rgba(18, 18, 18, .22);
  --accent: #121212;
  --accent-2: #8a8a8a;
  --accent-soft: #f2f2f2;
  --sale: #b3261e;
  --ok: #1f7a3d;
  --wa: #1fa855;
  --radius: 12px;
  --radius-lg: 16px;
  --pill: 40px;
  --font: 'Questrial', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --head: 'Archivo', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 132px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .35);
}
[dir='rtl'] { --font: 'IBM Plex Sans Arabic', 'Questrial', system-ui, Tahoma, sans-serif; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: .02em; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
[dir='rtl'] body { letter-spacing: 0; }
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-family: var(--head); font-weight: 700; color: var(--ink); letter-spacing: .01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 50px; }
.narrow { max-width: 780px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; }
.hide-desktop { display: none !important; }
@media (max-width: 989px) {
  .container { padding-inline: 20px; }
  .only-desktop { display: none !important; }
  .hide-desktop { display: revert !important; }
  .icon-btn.hide-desktop { display: inline-grid !important; }
  .sticky-buy.hide-desktop { display: flex !important; }
  .facets-bar.hide-desktop { display: flex !important; }
  .facets-actions.hide-desktop { display: grid !important; }
}
@media (max-width: 749px) { .container { padding-inline: 15px; } }
.flip-rtl { transition: transform .2s var(--ease); }
[dir='rtl'] .flip-rtl { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 30px;
  border-radius: var(--pill); font-size: 15px; border: 1px solid transparent; white-space: nowrap; letter-spacing: .06em;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s var(--ease);
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled, .btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn-lg { min-height: 52px; }
.btn-sm { min-height: 40px; padding: 6px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--ink); }
.btn-outline, .btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover:not(:disabled), .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; min-height: 40px; padding-inline: 8px; }
.btn-link:hover { text-decoration-thickness: 2px; }
.btn-wa { background: transparent; color: #146c38; border-color: #bfdcc8; }
.btn-wa:hover { background: #f0f9f3; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14.5px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-under { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; position: relative; color: var(--ink); transition: transform .2s var(--ease); }
.icon-btn:hover { transform: scale(1.08); }

/* ---------- Announcement ---------- */
.announce { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.announce-track { position: relative; height: 40px; overflow: hidden; }
.announce-track span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-inline: 16px;
  font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(60%); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none;
}
[dir='rtl'] .announce-track span { letter-spacing: 0; font-size: 13.5px; }
.announce-track span.on { opacity: 1; transform: none; }
.announce-track span.out { opacity: 0; transform: translateY(-60%); }
@media (prefers-reduced-motion: reduce) { .announce-track span { transition: opacity .2s; transform: none !important; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .45); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; padding-block: 10px; }
.header-side { display: flex; align-items: center; gap: 6px; }
.header-end { justify-content: flex-end; }
.logo { display: inline-flex; justify-self: center; }
.brand-logo { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: 50px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 27px; letter-spacing: .2em; color: var(--ink); white-space: nowrap; }
.brand-tag { font-family: var(--head); font-size: 8.5px; letter-spacing: .42em; color: var(--muted); margin-top: 6px; font-weight: 600; white-space: nowrap; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); padding: 8px 10px; }
.lang-switch:hover { text-decoration: underline; text-underline-offset: 4px; }
.main-nav ul { list-style: none; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 4px; padding-block: 0 14px; }
.main-nav a { display: block; padding: 6px 12px; font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.main-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.main-nav a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.cart-count {
  position: absolute; bottom: 4px; inset-inline-end: 3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 11px; line-height: 1; display: grid; place-items: center; font-family: var(--head); font-weight: 600;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
@media (max-width: 989px) {
  :root { --header-h: 70px; }
  .header-row { min-height: 70px; padding-block: 6px; }
  .header-side { gap: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 20px; letter-spacing: .16em; }
  .brand-tag { font-size: 7px; letter-spacing: .34em; margin-top: 5px; }
  .brand-logo { gap: 9px; }
  .lang-switch { font-family: var(--head); font-weight: 600; padding: 6px 8px; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 17px; letter-spacing: .12em; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-logo { gap: 7px; }
  .icon-btn { width: 40px; }
}

/* ---------- Hero (photo banner, brand name centred) ---------- */
.hero { position: relative; overflow: hidden; background: #2a1406; height: clamp(440px, 46vw, 680px); }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center; transition: transform 8s var(--ease); }
.hero:hover .hero-img { transform: scale(1.03); }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 8, 0, .45) 0%, rgba(20, 8, 0, .15) 22%, rgba(20, 8, 0, 0) 38%); }
.hero-inner { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: center; align-items: flex-start; padding: clamp(14px, 2.2vw, 34px) 20px 0; text-decoration: none; }
.hero-title { color: #fff; font-size: clamp(44px, 6.4vw, 96px); line-height: 1; letter-spacing: .1em; text-align: center; text-shadow: 0 4px 30px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35); }
@media (max-width: 749px) {
  .hero { height: auto; aspect-ratio: 1000 / 1160; max-height: 82vh; }
  .hero-img { object-position: center bottom; }
  .hero-inner { padding-top: 12px; }
  .hero-title { font-size: clamp(30px, 10vw, 54px); letter-spacing: .07em; white-space: nowrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section-page { padding-block: 28px 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 33px); }
.kicker { display: inline-block; color: var(--muted); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.link-more:hover { text-decoration-thickness: 2px; }
@media (max-width: 749px) { .section { padding-block: 36px; } .section-head { margin-bottom: 18px; } }

/* ---------- Collection cards (big type) ---------- */
.coll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.coll-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--line-2); overflow: hidden; background: var(--bg); transition: box-shadow .3s var(--ease); }
.coll-card:hover { box-shadow: var(--shadow); }
.coll-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #ffffff 0%, #dcdcdc 75%); }
.coll-words { position: absolute; inset: 7% 6% auto; display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 1; font-family: var(--head); font-weight: 700; color: var(--ink); line-height: 1.02; letter-spacing: .02em; }
.coll-words span:first-child { font-size: clamp(26px, 3.4vw, 46px); }
.coll-words span:last-child { font-size: clamp(28px, 3.8vw, 52px); }
.coll-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.coll-card:hover .coll-photo { transform: scale(1.04); }
.coll-pics { position: absolute; inset: auto 6% 4%; height: 62%; display: flex; align-items: flex-end; justify-content: center; gap: 2%; transition: transform .6s var(--ease); }
.coll-pics img { height: 100%; width: auto; max-width: 62%; object-fit: contain; mix-blend-mode: multiply; }
.coll-pics.n2 img:nth-child(2) { height: 84%; }
.coll-card:hover .coll-pics { transform: translateY(-3%) scale(1.03); }
.coll-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 16px; font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.coll-foot .ico { transition: transform .25s var(--ease); flex-shrink: 0; }
.coll-card:hover .coll-foot .ico { transform: translateX(4px); }
[dir='rtl'] .coll-card:hover .coll-foot .ico { transform: translateX(-4px); }
.tone-decants-homme .coll-art { background: radial-gradient(110% 80% at 30% 10%, #ffffff 0%, #e8e8e8 45%, #c9c9c9 100%); }
.tone-decants-femme .coll-art { background: radial-gradient(110% 80% at 30% 10%, #fff6f7 0%, #f8dfe3 50%, #efc4cc 100%); }
.tone-packs-homme .coll-art { background: radial-gradient(110% 80% at 30% 10%, #ffffff 0%, #e3e8ef 50%, #c6d0dc 100%); }
.tone-packs-femme .coll-art { background: radial-gradient(110% 80% at 30% 10%, #fffaf6 0%, #f7e3d8 50%, #ebc8b6 100%); }
.tone-flacons .coll-art { background: radial-gradient(110% 80% at 30% 10%, #fffdf8 0%, #f1e9dc 55%, #e0d2bb 100%); }
.tone-niche .coll-art { background: radial-gradient(110% 80% at 30% 10%, #ffffff 0%, #e4dfd6 55%, #bfb5a5 100%); }
.tone-arabe .coll-art { background: radial-gradient(110% 80% at 30% 10%, #fffaf0 0%, #efe3c7 55%, #d9c49a 100%); }
.tone-unisexe .coll-art { background: radial-gradient(110% 80% at 30% 10%, #ffffff 0%, #e9e5f2 55%, #d2cbe3 100%); }
@media (max-width: 749px) {
  .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .coll-card { border-radius: 12px; }
  .coll-words span:first-child { font-size: clamp(17px, 5.6vw, 26px); }
  .coll-words span:last-child { font-size: clamp(19px, 6.2vw, 30px); }
  .coll-foot { font-size: 12.5px; padding: 10px 12px 12px; letter-spacing: .02em; }
  .coll-foot .ico { width: 16px; height: 16px; }
}

/* ---------- Product grid + cards ---------- */
.grid { display: grid; gap: 24px 16px; }
.grid-products, .grid-packs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 989px) { .grid-products, .grid-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 749px) { .grid { gap: 14px 10px; } .grid-products, .grid-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); text-align: start; transition: box-shadow .3s var(--ease); }
.card:hover { box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .4); }
.card.menu-open { z-index: 30; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img, .card-media .bottle-art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-media.has-photo img { object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.card:hover .card-media img { transform: scale(1.04); }
.badges { position: absolute; bottom: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 6px 12px; border-radius: var(--pill); background: #fff; color: var(--ink); letter-spacing: .04em; border: 1px solid var(--line); }
.badge-sale { background: var(--sale); border-color: var(--sale); color: #fff; }
.badge-out { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge-light { background: #fff; }
.card-body { padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-vendor { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-cta { display: flex; align-items: center; justify-content: space-between; margin: 10px 16px 16px; padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--ink); font-size: 14px; color: var(--ink); transition: background .2s, color .2s; }
.card-cta:hover { background: var(--ink); color: #fff; }
.is-out .card-media img { opacity: .55; }

/* ---------- Card size picker (dropdown; bottom sheet on phones) ---------- */
.card-buy { display: flex; gap: 8px; padding: 10px 16px 16px; }
.size-picker { position: relative; flex: 1; min-width: 0; }
.size-btn {
  width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding-inline: 14px 10px; border: 1px solid var(--line-2); border-radius: var(--pill); background: #fff; color: var(--ink);
  font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color .2s;
}
.size-btn:hover:not(:disabled), .size-btn[aria-expanded='true'] { border-color: var(--ink); }
.size-btn span { overflow: hidden; text-overflow: ellipsis; }
.size-caret { flex-shrink: 0; color: var(--muted); transition: transform .25s var(--ease); }
.size-btn[aria-expanded='true'] .size-caret { transform: rotate(180deg); }
.size-menu {
  position: absolute; z-index: 50; left: 0; min-width: 100%; width: max-content; max-width: 260px; bottom: calc(100% + 8px);
  background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(0, 0, 0, .4);
  padding: 6px; animation: menuIn .18s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(6px); } }
.size-menu-head { display: none; }
.size-group + .size-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.size-group-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 4px; }
.size-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); outline: none; }
.size-opt:hover, .size-opt:focus-visible { background: var(--surface); }
.so-size { flex: 1; }
.so-price { font-family: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }
.so-check { visibility: hidden; }
.size-opt[aria-selected='true'] .so-check { visibility: visible; }
.size-opt[aria-selected='true'] .so-size { font-weight: 700; }
.size-opt[aria-disabled='true'] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.card-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 13.5px; flex-shrink: 0; transition: box-shadow .2s, transform .15s var(--ease), background .2s; }
.card-add:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--ink); }
.card-add:active:not(:disabled) { transform: scale(.96); }
.card-add:disabled { opacity: .3; cursor: not-allowed; }
.card-add.done { background: var(--ok); }
@media (max-width: 749px) {
  .card-body { padding: 10px 10px 2px; }
  .card-title { font-size: 14px; }
  .card-vendor { font-size: 10.5px; }
  .card-buy { flex-direction: column; padding: 8px 10px 10px; gap: 6px; }
  .size-btn, .card-add { height: 40px; font-size: 13px; }
  .card-add { width: 100%; }
  .badges { bottom: 8px; inset-inline-start: 8px; }
  .badge { font-size: 11px; padding: 5px 9px; }
  /* bottom sheet */
  .size-menu {
    position: fixed; inset: auto 0 0 0; bottom: 0; left: 0; width: 100%; max-width: none; min-width: 0; z-index: 95;
    border-radius: 18px 18px 0 0; padding: 8px 14px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); animation: sheetIn .26s var(--ease);
  }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .size-menu::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--surface-2); margin: 2px auto 10px; }
  .size-menu-head { display: flex; flex-direction: column; padding: 2px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .size-menu-head b { font-family: var(--head); font-size: 18px; color: var(--ink); }
  .size-menu-head span { font-size: 13px; color: var(--muted); }
  .size-opt { padding: 14px 10px; font-size: 16px; }
}

/* ---------- Price ---------- */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; color: var(--ink); }
.price .from { font-size: 12px; color: var(--muted); }
.price .now { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.price .was { order: -1; color: var(--muted); font-size: 13.5px; }

/* ---------- Trust ---------- */
.trust-band { background: var(--surface); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 26px 18px; }
.trust-item .ico { flex-shrink: 0; color: var(--ink); }
.trust-item b { display: block; font-family: var(--head); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.trust-item span { color: var(--muted); font-size: 13px; }
@media (max-width: 989px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 16px 6px; gap: 10px; }
  .trust-item b { font-size: 13px; }
}
@media (max-width: 749px) { .trust-item span { display: none; } }

/* ---------- Featured product (home) ---------- */
.featured-product { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured-product .gallery-main { display: block; position: sticky; top: calc(var(--header-h) + 18px); }

/* ---------- FAQ / collapsible rows ---------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq details, .collapsibles details { border-bottom: 1px solid var(--line); }
.faq summary, .collapsibles summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 2px; color: var(--ink); font-size: 16px; }
.faq summary { justify-content: space-between; }
.faq summary::-webkit-details-marker, .collapsibles summary::-webkit-details-marker { display: none; }
.faq summary .ico, .collapsibles summary .chev { transition: transform .25s var(--ease); flex-shrink: 0; }
.collapsibles summary span { flex: 1; }
.faq details[open] summary .ico, .collapsibles details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 2px 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.site-footer h2 { font-family: var(--head); font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { margin: 16px 0 18px; font-size: 14.5px; max-width: 300px; }
.socials { display: flex; gap: 4px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); transition: transform .2s var(--ease); }
.socials a:hover { transform: scale(1.1); }
.contact-list li { display: flex; gap: 8px; align-items: center; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px 90px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; font-size: 12.5px; color: var(--muted); }
.footer-lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); color: var(--ink); font-size: 13.5px; }
.footer-lang:hover { border-color: var(--ink); text-decoration: none !important; }
.pay-badge { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; background: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (max-width: 989px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 749px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* Chat button: always bottom-right (also in Arabic), opens WhatsApp */
.wa-float {
  position: fixed; right: 20px; left: auto; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 35;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 12px; border-radius: var(--pill);
  background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 15px; letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .06); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.wa-logo { flex-shrink: 0; display: block; }
.wa-float:hover { transform: translateY(-2px); border-color: #25d366; box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .32), 0 2px 6px rgba(0, 0, 0, .06); }
.has-sticky .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (max-width: 989px) { .has-sticky-pack .wa-float { bottom: calc(100px + env(safe-area-inset-bottom)); } }
@media (max-width: 749px) {
  .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-float .wa-label { display: none; }
  .wa-logo { width: 30px; height: 30px; }
  .has-sticky .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------- Drawers, overlay, toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(18, 18, 18, .45); opacity: 0; transition: opacity .3s; }
.scrim.show { opacity: 1; }
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer-panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); display: flex; flex-direction: column; box-shadow: 0 0 50px rgba(0, 0, 0, .2); transition: transform .36s var(--ease); pointer-events: auto; }
[dir='rtl'] .drawer-end .drawer-panel { left: 0; transform: translateX(-102%); }
[dir='rtl'] .drawer-start .drawer-panel { right: 0; transform: translateX(102%); }
[dir='ltr'] .drawer-end .drawer-panel { right: 0; transform: translateX(102%); }
[dir='ltr'] .drawer-start .drawer-panel { left: 0; transform: translateX(-102%); }
.drawer.open .drawer-panel { transform: none; }
.drawer:not(.open) .drawer-panel { visibility: hidden; transition: transform .36s var(--ease), visibility 0s .36s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
[dir='rtl'] .drawer-head { padding: 14px 24px 14px 16px; }
.drawer-title { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--ink); }
.drawer-title small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 400; margin-inline-start: 6px; }
.drawer-ship { padding: 12px 24px; background: var(--surface); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 24px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.total-row { font-size: 16px; color: var(--ink); }
.total-row strong { font-family: var(--head); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.foot-note { font-size: 13px; color: var(--muted); }
.mobile-nav { display: flex; flex-direction: column; padding: 10px 0; overflow-y: auto; flex: 1; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; font-size: 18px; color: var(--ink); }
.mobile-nav a:hover, .mobile-nav a.active { background: var(--surface); }
.mobile-nav a .ico { color: var(--muted); }
.drawer-extra { border-top: 1px solid var(--line); padding: 16px 24px 24px; display: grid; gap: 12px; background: var(--surface); }
.mobile-lang { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }

.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .cl-img { position: relative; width: 76px; aspect-ratio: 1; border-radius: 10px; background: var(--surface); display: block; }
.cart-line .cl-img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.cart-line .cl-img svg, .cart-line .cl-img .ph { width: 100%; height: 100%; }
.cl-name { font-family: var(--head); font-size: 15.5px; font-weight: 600; line-height: 1.25; display: block; text-align: start; color: var(--ink); }
.cl-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cl-detail { font-size: 13px; color: var(--muted); display: block; margin: 3px 0 10px; text-align: start; }
.cl-err { color: var(--sale); font-size: 13px; display: block; margin-bottom: 6px; }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: var(--ink); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-remove { color: var(--ink-2); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.cl-remove:hover { color: var(--sale); background: #fbeeec; }
.qty-bubble { position: absolute; top: -8px; inset-inline-end: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(18, 18, 18, .72); color: #fff; font-size: 12px; display: grid; place-items: center; font-family: var(--head); }
.empty-cart { text-align: center; padding: 60px 12px; color: var(--ink); display: grid; justify-items: center; gap: 18px; font-size: 20px; font-family: var(--head); font-weight: 600; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); height: 46px; background: #fff; color: var(--ink); }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; }
.qty button:hover { opacity: .7; }
.qty input { width: 34px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 36px; }
.qty.sm button { width: 32px; }
.qty.sm input { width: 26px; font-size: 14px; }

.search-overlay { position: fixed; inset: 0 0 auto 0; z-index: 80; padding: 18px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.search-overlay.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.search-box { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: var(--pill); padding: 4px 6px 4px 18px; }
[dir='rtl'] .search-box { padding: 4px 18px 4px 6px; }
.search-box .ico { color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; height: 48px; min-width: 0; color: var(--ink); }

.toast { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; z-index: 90; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14.5px; transition: opacity .25s, transform .25s var(--ease); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--sale); }
.toast a { color: #fff; text-decoration: underline; text-underline-offset: 3px; pointer-events: auto; }
@media (max-width: 989px) { .toast { top: auto; bottom: 22px; transform: translate(-50%, 16px); } .toast.show { transform: translate(-50%, 0); } }

.loader { width: 26px; height: 26px; margin: 36px auto; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page header, crumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 40px); }
[dir='rtl'] .page-head h1[dir='ltr'] { text-align: right; }
.page-head p { color: var(--ink-2); margin-top: 8px; max-width: 680px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.empty.big h1 { color: var(--ink); }
.big-404 { font-family: var(--head); font-weight: 700; font-size: 110px; line-height: 1; color: var(--surface-2); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs a { padding: 8px 20px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--ink); font-size: 14.5px; }
.tabs a:hover { border-color: var(--ink); }
.tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Collection filters (Shopify-style facets) ---------- */
.facets-bar { align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.btn-filter { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; padding: 8px 0; }
.result-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.facets { display: flex; flex-direction: column; }
.facets-label { color: var(--ink-2); font-size: 14.5px; }
.facet summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; }
.facet summary::-webkit-details-marker { display: none; }
.facet-chev { transition: transform .2s var(--ease); }
.facet[open] .facet-chev { transform: rotate(180deg); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; color: var(--ink); font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex-shrink: 0; }
.check small { color: var(--muted); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 12px; }
.field-float { position: relative; display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; height: 50px; background: #fff; }
.field-float span { position: absolute; top: 4px; inset-inline-start: 12px; font-size: 11px; color: var(--muted); }
.field-float input { border: 0; outline: 0; width: 100%; padding-top: 14px; background: transparent; font-size: 15px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.field-float input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field-float em { font-style: normal; color: var(--muted); font-size: 13px; padding-top: 14px; }
.field-float:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.facets-sort { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.select select { appearance: none; -webkit-appearance: none; height: 42px; padding-inline: 14px 34px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat; font-size: 14.5px; cursor: pointer; color: var(--ink); max-width: 100%; }
[dir='rtl'] .select select { background-position: left 12px center; padding-inline: 34px 14px; }
[dir='ltr'] .select select { background-position: right 12px center; }
.active-facets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.facet-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--pill); font-size: 13.5px; color: var(--ink); }
.facet-pill:hover { border-color: var(--ink); }
.facet-clear { font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-inline-start: 6px; }
@media (min-width: 990px) {
  .facets-drawer { position: static; pointer-events: auto; z-index: auto; }
  .facets-drawer .drawer-panel, .facets-drawer:not(.open) .drawer-panel { position: static; transform: none; visibility: visible; width: auto; box-shadow: none; background: none; transition: none; }
  .facets { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
  .facets-filters { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
  .facet { position: relative; }
  .facet summary:hover { text-decoration: underline; text-underline-offset: 4px; }
  .facet-pop { position: absolute; z-index: 30; top: calc(100% + 12px); inset-inline-start: 0; min-width: 280px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); animation: menuIn .16s var(--ease); }
  .facet-scroll { max-height: 320px; overflow-y: auto; }
  .facets-sort .select select { max-width: 250px; text-overflow: ellipsis; }
}
@media (max-width: 989px) {
  .facets { flex: 1; overflow-y: auto; }
  .facets-filters { display: flex; flex-direction: column; }
  .facet { border-bottom: 1px solid var(--line); }
  .facet summary { justify-content: space-between; padding: 16px 24px; font-size: 16px; }
  .facet-pop { padding: 0 24px 16px; }
  .facets-sort { padding: 16px 24px; flex-direction: column; align-items: stretch; gap: 8px; border-bottom: 1px solid var(--line); }
  .facets-sort .select select { width: 100%; height: 48px; }
  .facets-actions { position: sticky; bottom: 0; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 24px; margin-top: auto; background: var(--bg); border-top: 1px solid var(--line); }
  .facets-drawer .drawer-panel { width: min(400px, 92vw); }
}

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 8px; display: grid; place-items: center; font-size: 15px; color: var(--ink); }
.pager a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pager .current { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pager .gap { color: var(--muted); }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 18px); }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 1; }
.gallery-main img, .gallery-main .bottle-art { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.has-photo img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { width: 76px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid transparent; }
.thumbs button img { mix-blend-mode: multiply; }
.thumbs button.active, .thumbs button:hover { border-color: var(--ink); }
.pi-vendor { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
[dir='rtl'] .pi-vendor { text-align: right; }
.pi-title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 16px; text-align: start; }
[dir='rtl'] .pi-title[dir='ltr'] { text-align: right; }
.pi-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.buy-box { display: grid; gap: 18px; }
.pi-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pi-price .price { margin: 0; }
.pi-price .price .now { font-size: 20px; }
.pi-price .price .was { font-size: 16px; }
.pi-ship { font-size: 13.5px; color: var(--ink-2); margin-top: -10px; }
.pi-ship a { text-decoration: underline; text-underline-offset: 3px; }
.stock-note { font-size: 13.5px; color: var(--sale); }
.stock-note:empty { display: none; }
.variant-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.variant-group legend { font-size: 14px; margin-bottom: 10px; color: var(--ink-2); padding: 0; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant-pill { display: inline-block; min-width: 72px; text-align: center; padding: 9px 20px; border-radius: var(--pill); border: 1px solid var(--line-2); cursor: pointer; color: var(--ink); font-size: 14.5px; transition: border-color .2s, background .2s, color .2s; }
.variant-pill:hover { border-color: var(--ink); }
.variant input:checked + .variant-pill { background: var(--ink); border-color: var(--ink); color: #fff; }
.variant input:focus-visible + .variant-pill { outline: 2px solid var(--ink); outline-offset: 2px; }
.variant.is-out .variant-pill { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.qty-field { display: grid; gap: 8px; justify-items: start; }
.qty-field label { font-size: 14px; color: var(--ink-2); }
.qty-field .qty { width: 150px; justify-content: space-between; }
.buy-actions { display: grid; gap: 10px; max-width: 460px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.view-details { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.collapsibles { margin-top: 30px; border-top: 1px solid var(--line); }
.acc-body { padding: 0 2px 20px; color: var(--ink-2); }
.acc-body p + p { margin-top: 8px; }
.acc-body a { color: var(--ink); text-decoration: underline; }
.pyramid { display: grid; gap: 12px; }
.pyr-row { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; }
.pyr-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
[dir='rtl'] .pyr-label { letter-spacing: 0; font-size: 13.5px; }
.pyr-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.note-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: var(--pill); background: var(--surface); color: var(--ink); font-size: 13.5px; }
[dir='rtl'] .note-chip { padding: 4px 6px 4px 12px; }
.note-chip img { width: 22px; height: 22px; object-fit: contain; }
.sticky-buy { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy > div { display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.sb-name { font-family: var(--head); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { min-height: 44px; padding-inline: 22px; }
@media (max-width: 989px) {
  .product-layout { grid-template-columns: 1fr; gap: 22px; }
  .gallery, .featured-product .gallery-main { position: static; }
  .gallery { margin-inline: -20px; }
  .gallery-main { border-radius: 0; }
  .featured-product .gallery-main { border-radius: var(--radius); }
  .thumbs { padding-inline: 20px; }
  .buy-actions { max-width: none; }
}
@media (max-width: 749px) { .gallery { margin-inline: -15px; } .pyr-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Packs ---------- */
.pack-art { position: relative; width: 100%; height: 100%; }
.pack-count { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--ink); color: #fff; padding: 5px 12px; border-radius: var(--pill); font-size: 12px; z-index: 1; }
.pack-collage { position: relative; width: 100%; height: 100%; display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.pack-collage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.pack-collage.n3 img:first-child { grid-row: span 2; }
.pack-collage.n2 { grid-template-rows: minmax(0, 1fr); }
.pack-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 52px; align-items: start; }
.pack-hero-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--surface); position: sticky; top: calc(var(--header-h) + 18px); }
.pack-hero-media > img, .pack-hero-media .bottle-art { width: 100%; height: 100%; object-fit: cover; }
.pack-title { text-align: start; }
.lead { font-size: 16.5px; color: var(--ink-2); margin-bottom: 16px; }
.save-pill { background: #fbeeec; color: var(--sale); padding: 5px 12px; border-radius: var(--pill); font-size: 13.5px; }
.h-sm { font-size: 18px; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.pack-items { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.pack-items li { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.pi-thumb { width: 58px; flex-shrink: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface); }
.pi-thumb img, .pi-thumb svg { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.pi-item-name { font-family: var(--head); font-weight: 600; font-size: 15.5px; color: var(--ink); display: block; }
.pack-items small { color: var(--muted); }
.pack-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.picker-status { padding: 18px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; color: var(--ink); }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width .35s var(--ease); }
.picked-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.picked-chips span { font-size: 13.5px; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 3px 11px; border-radius: var(--pill); }
.pick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pick { border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: box-shadow .2s; }
.pick.on { box-shadow: 0 0 0 2px var(--ink); }
.pick.bump { animation: bump .35s var(--ease); }
.pick-media { aspect-ratio: 1; overflow: hidden; }
.pick-media img, .pick-media svg { width: 100%; height: 100%; object-fit: cover; }
.pick-media.has-photo img { object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.pick-body { padding: 10px 12px 2px; flex: 1; }
.pick-body small { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; }
.pick-body b { font-family: var(--head); font-size: 14.5px; line-height: 1.25; display: block; font-weight: 600; color: var(--ink); }
.pick-ctrl { display: flex; align-items: center; justify-content: space-between; margin: 8px 10px 10px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pick-ctrl button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.pick-ctrl button[data-pick='1'] { background: var(--ink); color: #fff; }
.pick-ctrl button:disabled { opacity: .3; }
.sticky-pack { position: sticky; bottom: 12px; z-index: 25; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 22px; background: var(--ink); color: #fff; border-radius: var(--pill); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); }
[dir='rtl'] .sticky-pack { padding: 10px 22px 10px 10px; }
.sticky-pack b { font-family: var(--head); font-size: 16px; display: block; color: #fff; }
.sticky-pack span { color: #cfcfcf; font-size: 13.5px; }
@media (max-width: 989px) {
  .pack-hero { grid-template-columns: 1fr; gap: 20px; }
  .pack-hero-media { position: static; aspect-ratio: 4/3; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 749px) {
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sticky-pack { border-radius: 16px; padding: 10px 10px 10px 16px; }
  .sticky-pack .btn { padding-inline: 14px; min-height: 42px; font-size: 13.5px; }
}

/* ---------- Cart page (table) ---------- */
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.cart-head h1 { font-size: clamp(30px, 3.6vw, 40px); }
.cart-table { border-bottom: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 200px 130px; gap: 24px; align-items: start; padding: 24px 0; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-th { padding: 0 0 14px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cart-th span:first-child { grid-column: span 2; }
.cart-th span:nth-child(2) { display: none; }
.cr-img { width: 110px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); display: block; }
.cr-img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.cr-img .ph, .cr-img svg { width: 100%; height: 100%; }
.cr-info .cl-detail { margin-bottom: 4px; }
.cr-unit { font-size: 14px; color: var(--ink-2); }
.cr-qty { display: flex; align-items: center; gap: 8px; }
.cr-total { text-align: end; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 30px; }
.cart-footer .ship-progress { max-width: 380px; padding: 12px 16px; border-radius: 10px; background: var(--surface); }
.cart-totals { width: min(100%, 380px); display: grid; gap: 12px; text-align: end; }
.cart-totals .total-row { justify-content: flex-end; gap: 24px; }
@media (max-width: 749px) {
  .cart-head { margin-bottom: 18px; }
  .cart-row { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: 'img info total' 'img qty qty'; gap: 10px 14px; padding: 18px 0; }
  .cart-th { grid-template-areas: none; grid-template-columns: 1fr auto; }
  .cart-th span:first-child { grid-column: auto; }
  .cart-th .cr-qty { display: none; }
  .cr-img { grid-area: img; width: 84px; }
  .cr-info { grid-area: info; }
  .cr-qty { grid-area: qty; }
  .cr-total { grid-area: total; }
  .cart-th .cr-total { grid-area: auto; }
  .cart-footer { flex-direction: column; align-items: stretch; }
  .cart-footer .ship-progress { max-width: none; }
  .cart-totals { width: 100%; text-align: center; }
  .cart-totals .total-row { justify-content: space-between; }
}

/* ---------- Checkout (form + order summary panel) ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; align-items: start; border-top: 1px solid var(--line); }
.checkout-form { padding: 32px 48px 32px 0; grid-column: 1; grid-row: 1; }
[dir='rtl'] .checkout-form { padding: 32px 0 32px 48px; }
.summary { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 0px); background: var(--surface); border-inline-start: 1px solid var(--line); min-height: 100%; }
.summary-toggle { display: none; }
.summary-body { padding: 32px 36px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; padding: 12px 14px; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input, .field select { height: 50px; }
.field textarea { resize: vertical; min-height: 56px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--sale); box-shadow: 0 0 0 1px var(--sale); }
.field .err { color: var(--sale); font-size: 13px; }
.field .err:empty { display: none; }
.field .hint { color: var(--muted); font-size: 12.5px; }
.cod-box { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--ink); background: #fafafa; margin-bottom: 16px; color: var(--ink); }
.cod-box .ico { flex-shrink: 0; }
.cod-box b { display: block; font-family: var(--head); font-weight: 600; }
.cod-box span { font-size: 13.5px; color: var(--ink-2); }
.form-error { background: #fbeeec; color: var(--sale); padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.cf-turnstile { margin-bottom: 16px; }
.summary .cart-line { grid-template-columns: 64px 1fr auto; padding: 12px 0; border: 0; align-items: center; }
.summary .cart-line .cl-img { width: 64px; background: #fff; border: 1px solid var(--line); }
.summary .cl-name { font-size: 14.5px; }
.summary .cl-detail { margin: 2px 0 0; }
.totals { margin: 18px 0 0; display: grid; gap: 8px; color: var(--ink); }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { padding-top: 10px; margin-top: 4px; font-size: 19px; }
.totals .grand dt { color: var(--ink); font-family: var(--head); font-weight: 700; }
.totals .grand dd { font-family: var(--head); font-weight: 700; }
.ship-progress { font-size: 13.5px; color: var(--ink-2); }
.ship-progress:empty { display: none; }
.ship-progress .bar { height: 5px; border-radius: 999px; background: rgba(18, 18, 18, .1); margin-top: 8px; overflow: hidden; }
.ship-progress .bar span { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width .4s var(--ease); }
.summary .ship-progress { margin-top: 12px; }
@media (max-width: 989px) {
  .checkout { grid-template-columns: 1fr; border-top: 0; }
  .checkout-form, [dir='rtl'] .checkout-form { padding: 22px 0 0; grid-column: 1; grid-row: 2; }
  .summary { grid-column: 1; grid-row: 1; position: static; border: 1px solid var(--line); border-inline: 0; margin-inline: -20px; min-height: 0; }
  .summary-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; color: var(--ink); }
  .summary-toggle::-webkit-details-marker { display: none; }
  .summary-toggle > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
  .summary-toggle .chev { transition: transform .2s; }
  .summary[open] .summary-toggle .chev { transform: rotate(180deg); }
  .summary-toggle strong { font-family: var(--head); font-size: 17px; white-space: nowrap; }
  .summary-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
}
@media (max-width: 749px) { .summary { margin-inline: -15px; } .summary-toggle, .summary-body { padding-inline: 15px; } }

/* ---------- Thanks, prose, contact ---------- */
.thanks { text-align: center; }
.thanks-icon { width: 84px; height: 84px; margin: 20px auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.thanks h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 10px; }
.thanks > p { margin-bottom: 8px; }
.thanks .code { font-family: ui-monospace, monospace; letter-spacing: .08em; background: var(--surface); padding: 2px 10px; border-radius: 6px; color: var(--ink); }
.card-flat { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.thanks-summary { text-align: start; margin: 24px 0; display: grid; gap: 10px; color: var(--ink); }
.thanks-summary .line b { font-family: var(--head); font-weight: 600; }
.thanks-summary .line small { display: block; color: var(--muted); font-size: 12.5px; }
.thanks-summary .grand { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; }
.thanks-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.prose h1 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 20px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { margin-bottom: 10px; }
.prose a { color: var(--ink); text-decoration: underline; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 26px; }
.contact-card { min-width: 0; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
.contact-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.contact-card b { font-family: var(--head); font-size: 17px; }
.contact-card span { color: var(--ink-2); font-size: 14px; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

.bottle-art { width: 100%; height: 100%; }
body.sheet-open { overflow: hidden; }
body.sheet-open .wa-float { display: none; }
@media (max-width: 749px) {
  .card.menu-open { z-index: 100; }
  .toast { left: 16px; right: 16px; transform: translateY(16px); justify-content: center; max-width: none; }
  .toast.show { transform: none; }
}
