/* =========================================================
   AMOUN — Clothing for Women. Beirut, Lebanon.
   Boutique storefront: white and warm ivory, dark-brown type, soft beige
   tiles, a pink-red accent for active states and sale. Flat, quiet
   surfaces with hairline borders: the clothes do the talking.
   Breakpoints: phones < 768, tablets 768–1023, desktop ≥ 1024.
   ========================================================= */

:root {
    --bg: #ffffff;
    --ivory: #faf6f1;
    --surface: #ffffff;
    --ink: #241a17;          /* dark brown-black, 16:1 on white */
    --ink-2: #4b3f3b;
    --muted: #6d625e;        /* 5.6:1 on white */
    --line: #ece5de;
    --line-2: #dcd2c9;
    --beige: #efe8df;
    --tile: #f4f1ed;         /* behind product photos */
    --accent: #b23f58;       /* pink-red, 5.7:1 on white */
    --accent-soft: #f8e9ec;
    --sale: #b8323f;
    --ok: #2f6b47;
    --warn: #8a5300;
    --error: #b42318;
    --wa: #1f9d55;
    --bar: #2b211f;          /* announcement bar, primary buttons */

    /* neutral tints (older pages use these names) */
    --t-rose: #f7f1ee;
    --t-sage: #f3f2ed;
    --t-sand: #f4efe8;
    --t-lilac: #f4f1f1;
    --t-sky: #f1f2f2;
    --tint: var(--tile);

    --overlay: rgba(36, 26, 23, .42);
    --shadow: 0 18px 40px -20px rgba(36, 26, 23, .28);
    --shadow-sm: 0 3px 10px -4px rgba(36, 26, 23, .18);
    --r-sm: 4px;
    --r: 6px;
    --r-lg: 10px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --spring: cubic-bezier(.34, 1.4, .64, 1);
    --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
    --arabic: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --tap: 44px;
    --gutter: 16px;
    --header-h: 64px;
    --tabbar-h: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 15px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r); }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.show-sm { display: none; }

/* ---------- Type ---------- */
.kicker { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.h2 em, .page-hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .icon:last-child { transform: translateX(3px); }
.prose p, .prose h4 { margin-bottom: 10px; }
.prose h4 { font-size: 13px; font-weight: 600; margin-top: 14px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r);
    font-size: 14.5px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--bar); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: var(--ivory); }
.btn--light { background: #fff; color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #188a49; }
.btn--link { min-height: var(--tap); padding: 0; border-radius: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn--lg { min-height: 50px; padding: 0 28px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }
.btn--grow { flex: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-added { background: var(--ok); color: #fff; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; transition: background .2s, color .2s; }
.icon-btn .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.icon-btn:hover { background: var(--ivory); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 15px;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
    font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--x { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip--x .icon { width: 14px; height: 14px; }
.chips--sm .chip { min-height: 32px; padding: 0 12px; font-size: 12px; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--bar); color: #f4ece8; }
.announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; font-size: 13px; }
.announce__msg, .announce__item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.announce .icon { width: 17px; height: 17px; opacity: .9; }
.announce__side { display: flex; align-items: center; }
.announce__item + .announce__item { margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .35); }
a.announce__item:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s, transform .35s var(--ease); }
.header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(36, 26, 23, .35); }
.header__inner { position: relative; display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.burger { display: none; }

.logo { display: inline-flex; flex-direction: column; align-items: center; flex: none; line-height: 1; text-align: center; }
.logo__word { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; margin-right: -.2em; }
.logo__sub { margin-top: 7px; font-size: 9.5px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--ink); margin-right: -.42em; }
.logo--sm .logo__word { font-size: 22px; }

.count-dot {
    position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 1; transform: scale(0); transition: transform .3s var(--spring);
}
.count-dot.has-items { transform: scale(1); }
.count-dot.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Main nav (desktop) */
.nav { display: flex; align-items: stretch; justify-content: center; flex: 1; min-width: 0; align-self: stretch; }
.nav__item { display: flex; }
.nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0 clamp(8px, 1vw, 16px);
    font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: color .2s;
}
.nav__link::after { content: ''; position: absolute; left: clamp(8px, 1vw, 16px); right: clamp(8px, 1vw, 16px); bottom: 14px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__link:hover::after, .nav__item:hover > .nav__link::after { transform: scaleX(.6); }
.nav__link.is-active { font-weight: 600; }
.nav__link.is-active::after { transform: none; }
.nav__link--sale { color: var(--accent); }
.nav__caret { width: 14px; height: 14px; transition: transform .25s; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }
.mega {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; z-index: 40; padding-top: 1px;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.mega__inner { display: flex; justify-content: space-between; gap: 40px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow); }
.mega__cols { display: flex; flex-wrap: wrap; gap: 20px 64px; }
.mega__col { display: flex; flex-direction: column; gap: 1px; min-width: 150px; }
.mega__head { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.mega__head:hover, .mega__link:hover { color: var(--accent); }
.mega__link { padding: 5px 0; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.mega__all { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.mega__all .icon { width: 16px; height: 16px; }

/* Phones + tablets: shelves as a scrolling row of tabs */
.tabs-nav { display: none; }

/* Search: a soft pill */
.search { position: relative; display: flex; align-items: center; flex: none; width: clamp(200px, 19vw, 290px); }
.search__icon { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; color: var(--ink); pointer-events: none; }
.search input {
    width: 100%; height: 42px; padding: 0 16px 0 46px; border: 1px solid var(--line-2); border-radius: 999px;
    background: #fff; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input::placeholder { color: var(--muted); }
.search__cancel { display: none; align-items: center; flex: none; min-height: var(--tap); padding: 0 0 0 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.search__results {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: min(440px, 90vw);
    background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line);
    padding: 8px; max-height: min(70vh, 540px); overflow-y: auto; animation: pop .2s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.sr { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 6px 8px 6px 6px; min-height: 70px; border-radius: var(--r); }
.sr:hover, .sr.is-active { background: var(--ivory); }
.sr .ph { width: 50px; aspect-ratio: 4 / 5; border-radius: var(--r-sm); }
.sr__name { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr__price { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.sr__price s { color: var(--muted); font-weight: 400; font-size: 12px; }
.sr-all { display: flex; align-items: center; min-height: var(--tap); padding: 0 10px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--accent); }
.sr-all:hover, .sr-all.is-active { background: var(--ivory); }
.sr-empty { padding: 16px 10px; color: var(--muted); font-size: 13.5px; }
.sr-empty a { color: var(--accent); text-decoration: underline; }
.sr-head { padding: 10px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px 10px; }
.sr-skel__row { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; padding: 6px; }
.sr-skel__row i { aspect-ratio: 4 / 5; border-radius: var(--r-sm); background: var(--tile); }
.sr-skel__row b { height: 12px; width: 70%; border-radius: 6px; background: var(--tile); }

/* ---------- Overlays + side drawers ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
body.cart-open .overlay[data-cart-close],
body.nav-open .overlay[data-menu-close],
body.filters-open .overlay--filters { opacity: 1; visibility: visible; transition: opacity .3s; }

.mnav, .drawer {
    position: fixed; top: 0; bottom: 0; z-index: 80; width: min(420px, calc(100vw - 48px));
    display: flex; flex-direction: column; background: var(--surface); overflow: hidden;
    box-shadow: var(--shadow); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s;
}
.mnav { left: 0; transform: translateX(-100%); }
.drawer { right: 0; transform: translateX(100%); }
body.nav-open .mnav, body.cart-open .drawer { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.mnav__head, .drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 10px 0 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 16px; font-weight: 600; }
.drawer__head h3 .muted { font-weight: 400; }
.mnav__body { flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.mnav__link {
    display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 12px; border-radius: var(--r);
    font-size: 15.5px; font-weight: 600; cursor: pointer; list-style: none;
}
.mnav__link:hover { background: var(--ivory); }
.mnav__link--sale { color: var(--accent); }
.mnav__link::-webkit-details-marker { display: none; }
.mnav__link .icon { width: 18px; height: 18px; transition: transform .25s; }
.mnav__group[open] > summary .icon { transform: rotate(180deg); }
.mnav__group { padding-bottom: 6px; }
.mnav__group:not([open]) { padding-bottom: 0; }
.mnav__sub { display: flex; align-items: center; min-height: 42px; padding: 0 12px 0 24px; border-radius: var(--r); font-size: 15px; color: var(--ink-2); }
.mnav__sub:hover { background: var(--ivory); }
.mnav__sub--all { color: var(--accent); font-size: 14px; font-weight: 600; }
.mnav__sub--leaf { padding-left: 40px; font-size: 14.5px; color: var(--muted); min-height: 38px; }
.mnav__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* ---------- Photo boxes: product shots contained on a soft tile ---------- */
.ph { position: relative; aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: opacity .4s, transform .8s var(--ease); }
.ph__icon { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; color: rgba(36, 26, 23, .25); opacity: 0; transition: opacity .2s; }
.js .ph:not(.is-loaded):not(.is-empty)::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.js .ph:not(.is-loaded) img { opacity: 0; }
.ph.is-empty .ph__icon { opacity: 1; }
.ph.is-empty img { display: none; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- Sections ---------- */
.section { padding-block: 40px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- Hero: words on ivory, the model photo on the right ---------- */
.hero { position: relative; overflow: hidden; background: var(--ivory); }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero__media::before { content: ''; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 22%; background: linear-gradient(90deg, var(--ivory), rgba(250, 246, 241, 0)); }
.hero__inner { position: relative; display: flex; align-items: center; min-height: clamp(400px, 30vw, 520px); }
.hero__copy { width: 52%; max-width: 640px; padding-block: 48px; }
.hero__eyebrow { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.hero__eyebrow::after { content: ''; width: 56px; height: 1px; background: currentColor; opacity: .7; }
.hero__title { margin-top: 18px; font-family: var(--serif); font-size: clamp(2.4rem, 1.2rem + 3.2vw, 4.25rem); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
.hero__sub { margin-top: 18px; max-width: 42ch; font-size: clamp(1rem, .9rem + .35vw, 1.3rem); color: var(--ink-2); }
.hero__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }
.hero__btns .btn { min-width: 190px; }
.hero__wa { background: transparent; }
.hero__wa .icon { width: 21px; height: 21px; }

/* Hero entrance, once on load: the photo settles from a slight zoom, the words rise in turn.
   The photo is never hidden (it is the page's main image), only scaled. */
.hero__media img { animation: hero-settle 1.6s var(--ease) both; }
.hero__copy > * { animation: hero-rise .8s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: .1s; }
.hero__copy > :nth-child(2) { animation-delay: .2s; }
.hero__copy > :nth-child(3) { animation-delay: .32s; }
.hero__copy > :nth-child(4) { animation-delay: .44s; }
.hero__eyebrow::after { animation: hero-line .7s .5s var(--ease) both; transform-origin: left; }
@keyframes hero-settle { from { transform: scale(1.06); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hero-line { from { transform: scaleX(0); } }

/* Product cards fade up as they scroll into view (main.js adds .card--reveal, then .is-in) */
.card--reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.card--reveal.is-in { opacity: 1; transform: none; }

/* ---------- Shop by category ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat { position: relative; display: block; min-width: 0; }
.cat__media { position: relative; display: block; aspect-ratio: 3 / 2.1; overflow: hidden; border-radius: var(--r); background: var(--beige); }
.cat__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .8s var(--ease); }
.cat__media .ph { position: absolute; inset: 0; aspect-ratio: auto; background: var(--beige); }
.cat__media .ph img { padding: 6% 12% 26%; }
.cat:hover .cat__media > img, .cat:hover .ph img { transform: scale(1.04); }
.cat__name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 20px 16px; font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--ink); border-radius: 0 0 var(--r) var(--r); }
.cat--photo .cat__name { color: #fff; background: linear-gradient(0deg, rgba(36, 26, 23, .5), rgba(36, 26, 23, 0)); }

/* ---------- Tabs (Just landed filters) ---------- */
.section__head--tabs { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 40px; }
.tabs__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; min-height: 40px; padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.tab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; }
.tab.is-active::after { transform: none; }
.tabs__panel { animation: fadeup .4s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
.tabs__more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- Product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
.card { position: relative; display: grid; grid-template-areas: 'media' 'info'; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; min-width: 0; }
/* Width pinned and never stretched: otherwise some browsers (Safari) grow the photo row when a
   neighbour card is taller, and aspect-ratio then widens the photo over the next card */
.card__media {
    grid-area: media; align-self: start; position: relative; display: block; width: 100%; aspect-ratio: 4 / 5;
    overflow: hidden; border-radius: var(--r); background: var(--tile);
}
.card__media .ph { position: absolute; inset: 0; aspect-ratio: auto; }
.card__media .ph img, .card__media .card__alt { padding: 4%; }
.card__alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; opacity: 0; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 4px 8px; border-radius: var(--r-sm); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--ink); color: #fff; }
.badge--out { background: rgba(255, 255, 255, .92); color: var(--ink); }


/* Quick add: a round "+" on touch screens, a bar that rises on hover with a mouse */
.card__add {
    grid-area: media; align-self: end; justify-self: end; z-index: 3; margin: 8px;
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
    transition: background .2s, color .2s, opacity .25s, transform .3s var(--ease);
}
.card__add span { display: none; }
.card__add .icon { width: 17px; height: 17px; }
.card__add:hover { background: var(--ink); color: #fff; }
.card__add.is-added { background: var(--ok); color: #fff; }

.card__info { grid-area: info; padding: 12px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.card__title { font-size: 15px; font-weight: 400; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--accent); }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* the whole card is the link */
.card__ar { display: none; }
.card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 16px; }
.card__price strong { font-weight: 700; }
.card__price .is-sale { color: var(--sale); }
.card__price s { color: var(--muted); font-size: 13.5px; }

@media (hover: hover) and (pointer: fine) {
    .card:hover .ph.is-loaded img { transform: scale(1.04); }
    .card:hover .card__media:has(.card__alt.is-ready) .ph img { opacity: 0; }
    .card:hover .card__alt.is-ready { opacity: 1; transform: scale(1.04); }
    .card__add {
        justify-self: stretch; width: auto; height: 40px; margin: 10px; border-radius: var(--r); box-shadow: none;
        display: flex; gap: 6px; justify-content: center; align-items: center; font-size: 13.5px; font-weight: 600;
        background: rgba(255, 255, 255, .94); opacity: 0; transform: translateY(8px);
    }
    .card__add span { display: inline; }
    .card__add .icon { width: 15px; height: 15px; }
    .card:hover .card__add, .card__add:focus-visible, .card__add.is-added { opacity: 1; transform: none; }
}

/* ---------- Rails ---------- */
.rail { position: relative; }
.rail__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
    outline-offset: 4px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; min-width: 0; }
.rail__btn {
    position: absolute; top: calc(50% - 56px); z-index: 4; display: none; place-items: center;
    width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
    transition: opacity .25s, background .2s, color .2s;
}
.rail__btn .icon { width: 18px; height: 18px; }
.rail__btn:hover { background: var(--ink); color: #fff; }
.rail__btn--prev { left: -14px; }
.rail__btn--prev .icon { transform: rotate(180deg); }
.rail__btn--next { right: -14px; }
.rail__btn:disabled { opacity: 0; pointer-events: none; }
.rail.is-static .rail__btn { display: none !important; }

/* ---------- Help panel ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: 32px 24px; border-radius: var(--r-lg); background: var(--ivory); border: 1px solid var(--line); }
.cta__copy { max-width: 620px; }
.cta__copy > p:not(.kicker) { margin-top: 10px; color: var(--ink-2); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { display: none; }


/* ---------- Empty states ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 52px 20px; text-align: center; background: var(--surface); border-radius: var(--r-lg); }
.empty h3 { font-size: 17px; font-weight: 600; }
.empty .btn { margin-top: 12px; }
.empty--page { background: none; padding-block: 72px; }
.empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ---------- Page hero + breadcrumbs ---------- */
.page-hero { padding-block: 20px 18px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.page-hero__title { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.page-hero__sub { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.page-hero__chips { margin-top: 16px; }

/* ---------- Catalog ---------- */
.catalog { display: grid; gap: 22px; padding-bottom: 64px; }
.catalog__main { min-width: 0; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 20px; }
.toolbar__filters { border-radius: 999px; }
.toolbar__filters .icon { width: 17px; height: 17px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar__count { margin-left: auto; font-size: 13px; }

.filters { background: var(--surface); display: flex; flex-direction: column; }
.filters__head { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 10px 0 22px; border-bottom: 1px solid var(--line); }
.filters__head h2 { font-size: 16px; font-weight: 600; }
.filters__block { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.filters__block:last-child { border-bottom: 0; }
.filters__block h3 { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filters__back { display: inline-flex; align-items: center; min-height: 34px; color: var(--accent); font-size: 13px; font-weight: 600; }
.filters__cats { list-style: none; }
.filters__cats a { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; margin-inline: -10px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); transition: background .2s; }
.filters__cats a:hover { background: var(--bg); color: var(--ink); }
.filters__cats a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filters__cats span { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.price-range { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.price-range label { flex: 1; }
.price-range input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); outline: none; }
.price-range input:focus { border-color: var(--ink); }
.filters .chips { margin-bottom: 16px; }

.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.pager__num, .pager__btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: background .2s; }
.pager__btn { grid-auto-flow: column; gap: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.pager__num:hover, .pager__btn:hover { background: var(--accent-soft); }
.pager__num.is-active { background: var(--ink); color: #fff; }
.pager__gap { padding: 0 4px; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { padding-top: 18px; padding-bottom: 28px; }
.pdp__grid { display: grid; gap: 26px; }
.pdp__gallery { display: grid; gap: 10px; min-width: 0; }
.pdp__stage { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--tint); cursor: zoom-in; }
.pdp__stage .ph { aspect-ratio: 1; background: transparent; }
.pdp__stage .ph img { padding: 6%; transition: opacity .16s, transform .3s var(--ease); }
.pdp__stage .ph img.is-swapping { opacity: 0; }
.pdp__stage.is-zoomed img { transform: scale(2); }
.pdp__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pdp__stage .badge { top: 14px; left: 14px; }
.pdp__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pdp__thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 66px; border-radius: 12px; overflow: hidden; opacity: .6; transition: opacity .2s, box-shadow .2s, transform .3s var(--spring); }
.thumb .ph { aspect-ratio: 1; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }

.pdp__info { min-width: 0; }
.pdp__info > .kicker { margin-bottom: 8px; }
.pdp__title { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.pdp__ar { margin-top: 6px; font-family: var(--arabic); font-size: 14.5px; color: var(--muted); text-align: left; }
.pdp__rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pdp__price strong { font-size: 20px; font-weight: 600; }
.pdp__price s { color: var(--muted); font-size: 15px; }
.save { padding: 3px 10px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 11.5px; font-weight: 700; }

.opt { margin-bottom: 18px; }
.opt__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.opt__head strong { font-weight: 400; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 50px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; transition: box-shadow .2s, background .2s, color .2s, transform .25s var(--spring); }
.size:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.size:active:not(:disabled) { transform: scale(.94); }
.size.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.size.is-out { color: var(--muted); text-decoration: line-through; background: var(--bg); }
.size:disabled { opacity: .5; cursor: not-allowed; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s, transform .25s var(--spring); }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { outline-color: var(--ink); }
.swatch.is-out { opacity: .35; }

.stock { font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); }
.stock--low { color: var(--warn); }
.stock--out, .stock--error { color: var(--error); }
.stock.is-error { animation: nudge .4s; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.pdp__buy { display: flex; gap: 10px; }
.pdp__buy .btn { min-height: 50px; }
.qty { display: flex; align-items: center; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { width: 40px; height: 48px; font-size: 18px; border-radius: 999px; }
.qty button:hover { background: var(--bg); }
.qty input { width: 30px; height: 48px; border: 0; background: none; text-align: center; font-size: 15px; -moz-appearance: textfield; appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp__help { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--t-rose); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); transition: transform .3s var(--spring); }
.pdp__help .icon { width: 21px; height: 21px; color: var(--accent); margin-top: 1px; }
.pdp__help strong { color: var(--ink); font-weight: 600; }
.pdp__help:hover { transform: translateY(-2px); }
.pdp__ticks { list-style: none; display: grid; gap: 9px; margin: 20px 0; font-size: 13.5px; color: var(--ink-2); }
.pdp__ticks li { display: flex; align-items: center; gap: 11px; }
.pdp__ticks .icon { width: 18px; height: 18px; color: var(--accent); }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { width: 18px; height: 18px; transition: transform .25s; }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion .prose { padding-bottom: 18px; font-size: 14px; color: var(--ink-2); }

.buybar { display: none; }

/* Photo zoom dialog */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--t-rose); }
.lightbox::backdrop { background: var(--overlay); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; cursor: zoom-out; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: #fff; }

/* ---------- Reviews ---------- */
.stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.stars__off { color: var(--line-2); }
.reviews__grid { display: grid; gap: 26px; }
.reviews__summary { padding: 22px; border-radius: var(--r-lg); background: var(--surface); align-self: start; }
.reviews__avg { display: block; font-size: 38px; font-weight: 600; line-height: 1; margin-bottom: 6px; }
.reviews__summary .muted { font-size: 13px; margin: 6px 0 14px; }
.reviews__bars { list-style: none; display: grid; gap: 6px; font-size: 12px; }
.reviews__bars li { display: grid; grid-template-columns: 28px 1fr 24px; gap: 10px; align-items: center; }
.reviews__bar { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.reviews__bar i { display: block; height: 100%; background: var(--accent); }
.reviews__list .btn { margin-top: 18px; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review__head { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.review__title { margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.review__text { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.review__photos { display: flex; gap: 8px; margin-top: 12px; }
.review__photos img { width: 70px; height: 88px; object-fit: cover; border-radius: 10px; }
.review__by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }
.review__by strong { font-weight: 600; }
.review__verified { color: var(--ok); font-size: 12px; }
.review__reply { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); font-size: 13px; }
.review__reply p { margin-top: 6px; color: var(--ink-2); }

/* ---------- Bag drawer ---------- */
.drawer__items { flex: 1; overflow-y: auto; padding: 4px 22px; }
.drawer__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 64px 0; }
.drawer__empty strong { font-size: 16px; font-weight: 600; }
.drawer__empty .btn { margin-top: 16px; }
.drawer__foot { padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; background: var(--bg); }
.drawer__foot p { font-size: 12.5px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 15px; }
.drawer__total strong { font-weight: 600; }
.line, .co-line { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img { display: block; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--t-rose); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.line h4, .co-line h4 { font-size: 13.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line small, .co-line small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.line__qty { display: inline-flex; align-items: center; margin-top: 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.line__qty button { width: 32px; height: 32px; font-size: 16px; border-radius: 999px; }
.line__qty button:hover { background: var(--bg); }
.line__qty span { min-width: 22px; text-align: center; font-size: 13px; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-size: 14px; }
.line__right strong, .co-line > strong { font-weight: 600; font-size: 14px; }
.line__remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.line__remove:hover { color: var(--accent); }

.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px);
    padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: var(--shadow);
    transform: translate(-50%, 20px) scale(.96); opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--spring);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
body.has-buybar .toast { bottom: 96px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 45;
    display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 18px 0 14px; border-radius: 999px;
    background: var(--wa); color: #fff; box-shadow: 0 12px 28px -10px rgba(31, 157, 85, .65);
    font-size: 13.5px; font-weight: 600; transition: transform .35s var(--spring), box-shadow .3s, opacity .2s;
    animation: rise .8s .8s var(--ease) both;
}
.wa-float .icon { width: 22px; height: 22px; }
.wa-float:hover { transform: translateY(-3px); }
body.has-buybar .wa-float { bottom: 92px; }
body.cart-open .wa-float, body.nav-open .wa-float, body.filters-open .wa-float, body.search-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Checkout ---------- */
.checkout { padding-bottom: 64px; }
.checkout__grid { display: grid; gap: 22px; }
.co-form, .co-summary { background: var(--surface); padding: 22px 18px; border-radius: var(--r-lg); }
.co-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.co-alert { padding: 12px 14px; margin-bottom: 16px; border-radius: var(--r-sm); background: #fbecea; color: var(--error); font-size: 13.5px; }
.field-row { display: grid; gap: 0 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; }
.field > span em { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
    font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241c1d' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field small { font-size: 12px; color: var(--error); }
.field small:empty { display: none; }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.co-pay { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--t-sage); }
.co-pay .icon { width: 24px; height: 24px; color: var(--ok); }
.co-pay strong { display: block; font-size: 13px; font-weight: 600; }
.co-pay span { font-size: 13.5px; }
.co-issues { list-style: none; margin-bottom: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: #fdf3e6; color: var(--warn); font-size: 13px; }
.co-line { grid-template-columns: 58px 1fr auto; padding: 12px 0; }
.co-totals { margin: 16px 0; display: grid; gap: 9px; font-size: 14px; }
.co-totals div { display: flex; justify-content: space-between; }
.co-totals dd { margin: 0; }
.co-totals__total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.co-note { margin-top: 12px; font-size: 12.5px; text-align: center; }
.checkout.is-loading [data-co-submit] { opacity: .6; pointer-events: none; }
.co-done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 52px 20px; border-radius: var(--r-lg); background: var(--surface); }
.co-done .btn { margin-top: 10px; }
.trust__icon { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.trust__icon .icon { width: 24px; height: 24px; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 10px; padding-bottom: 64px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); transition: transform .35s var(--spring), box-shadow .3s; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card h2 { font-size: 13px; font-weight: 600; color: var(--muted); }
.info-card p { margin-top: 2px; font-size: 15.5px; font-weight: 500; }
.info-card--main { background: var(--t-rose); }
.info-card--main .trust__icon { background: #fff; }
.info-card--main .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { margin-top: 32px; background: var(--ink); color: #d9cfcb; font-size: 14px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer__top { display: grid; gap: 32px; padding-block: 52px 36px; }
.footer .logo { align-items: flex-start; text-align: left; color: #fff; }
.footer .logo__sub { color: #b3a6a2; }
.footer__brand p { margin-top: 16px; max-width: 34ch; color: #b3a6a2; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.footer__col h4 { margin-bottom: 8px; color: #fff; font-size: 13px; font-weight: 600; }
.footer__col a, .footer__col > span:not(.footer__note) { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; transition: color .2s, transform .2s; }
.footer__col a:hover { color: #fff; transform: translateX(3px); }
.footer__col .icon { width: 17px; height: 17px; color: #e0a2ae; }
.footer__note { margin-top: 8px; max-width: 30ch; font-size: 12.5px; color: #a1938f; line-height: 1.5; }
.socials { display: flex; gap: 6px; margin-top: 16px; }
.socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .07); transition: background .2s, transform .3s var(--spring); }
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 12.5px; color: #a1938f; }
.footer__pay { display: inline-flex; align-items: center; gap: 8px; }
.footer__pay .icon { width: 17px; height: 17px; }

@keyframes fadein { from { opacity: 0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 640px) {
    :root { --gutter: 24px; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 16px; }
    .rail__track { grid-auto-columns: 31%; gap: 16px; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .contact { grid-template-columns: repeat(2, 1fr); }
    .contact .info-card--main { grid-column: span 2; }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .co-form, .co-summary { padding: 30px; }
}

@media (min-width: 961px) {
    .section__head { margin-bottom: 24px; }
    .grid--3 { gap: 38px 18px; }
    .rail__track { grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
    .rail__btn { display: grid; }

    .catalog { grid-template-columns: 230px 1fr; gap: 40px; }
    .filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
    .filters__head, .toolbar__filters, .overlay--filters { display: none; }
    .filters__block { padding: 20px; }

    .pdp__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
    .pdp__gallery { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start; }
    .pdp__gallery:not(:has(.pdp__thumbs)) { grid-template-columns: 1fr; }
    .pdp__thumbs { order: -1; flex-direction: column; overflow: visible; }
    .thumb { width: 74px; }
    .pdp__info { position: sticky; top: calc(var(--header-h) + 24px); }
    .reviews__grid { grid-template-columns: 280px 1fr; gap: 52px; }

    .checkout__grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
    .co-summary { position: sticky; top: calc(var(--header-h) + 24px); }
    .contact { grid-template-columns: repeat(3, 1fr); }
    .contact .info-card--main { grid-column: span 3; }

    .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-block: 68px 48px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
    .section { padding-block: 48px; }
    .grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 18px; }
}

@media (min-width: 1200px) {
    :root { --gutter: 40px; --header-h: 80px; }
    .catalog { grid-template-columns: 250px 1fr; }
}

@media (min-width: 1280px) {
    :root { --gutter: 48px; }
    .grid--home { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .grid--trim > :nth-child(n+11) { display: none; }
    .grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .header__inner { gap: 36px; }
}

/* Small laptops: a slightly tighter header so every link fits */
@media (min-width: 1200px) and (max-width: 1439px) {
    .header__inner { gap: 22px; }
    .search { width: 200px; }
    .nav__link { padding: 0 10px; font-size: 15px; }
    .nav__link::after { left: 10px; right: 10px; }
    .logo__word { font-size: 27px; }
}

@media (min-width: 1536px) {
    .grid--home { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 22px; }
    .grid--trim > :nth-child(n+11) { display: grid; }
}

/* ---------- Phones, tablets and small laptops: compact header ---------- */
@media (max-width: 1199px) {
    :root { --header-h: 64px; }
    .announce__inner { justify-content: center; min-height: 34px; }
    .announce__msg { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
    .announce__msg .icon, .announce__side { display: none; }

    /* Menu left, logo centred, bag right; search and the shelves underneath */
    .header { border-bottom: 0; }
    .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; padding-top: 6px; }
    .burger { display: inline-grid; grid-column: 1; grid-row: 1; justify-self: start; margin-left: -8px; }
    .burger .icon { width: 28px; height: 28px; }
    .logo { grid-column: 2; grid-row: 1; }
    .header__actions { grid-column: 3; grid-row: 1; margin-right: -8px; }
    .account-btn, .nav { display: none; }
    .logo__word { font-size: 28px; }
    .logo__sub { margin-top: 6px; font-size: 8.5px; letter-spacing: .4em; margin-right: -.4em; }

    .search { grid-column: 1 / -1; grid-row: 2; width: auto; min-width: 0; margin: 12px 0 4px; }
    .search input { flex: 1; min-width: 0; width: auto; height: 46px; background: #fafafa; font-size: 16px; } /* 16px stops iOS zooming in */
    .search__icon { top: 23px; }
    .search.is-open .search__cancel { display: inline-flex; }

    .tabs-nav { display: block; border-bottom: 1px solid var(--line); }
    .tabs-nav__track { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-inline: calc(var(--gutter) - 12px); max-width: 1440px; margin-inline: auto; }
    .tabs-nav__track::-webkit-scrollbar { display: none; }
    .tabs-nav__link { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 16px; font-weight: 500; white-space: nowrap; color: var(--ink); }
    .tabs-nav__link::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2.5px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
    .tabs-nav__link.is-active { font-weight: 600; }
    .tabs-nav__link.is-active::after { transform: none; }
    .tabs-nav__link--sale { color: var(--accent); }

    /* Search panel: fills the screen under the search bar (positioned from the form) */
    .search__results {
        top: 100%; left: calc(-1 * var(--gutter)); right: auto; width: 100vw;
        height: calc(100vh - var(--sr-top, 140px)); height: calc(100dvh - var(--sr-top, 140px));
        max-height: none; padding: 6px var(--gutter) 0; border-radius: 0;
        box-shadow: none; border-top: 1px solid var(--line); animation: none;
        overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    }
    .sr { padding: 8px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .sr:hover, .sr.is-active { background: none; }
    .sr-all { position: sticky; bottom: 0; justify-content: center; min-height: 56px; margin: 8px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) env(safe-area-inset-bottom); background: var(--surface); }
    body.search-open .header { box-shadow: none; }

    /* Header slides away while scrolling down, back on scroll up (main.js) */
    .header.is-hidden { transform: translateY(-100%); box-shadow: none; }
}

@media (max-width: 1023px) {
    /* Shop by category: a swipeable row, names under the photos */
    .cats { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
    .cats::-webkit-scrollbar { display: none; }
    .cat { flex: 0 0 calc((100% - 2 * 12px) / 3.15); scroll-snap-align: start; }
    .cat__media { aspect-ratio: 1 / .92; }
    .cat__media .ph img { padding: 10%; }
    .cat__name, .cat--photo .cat__name { position: static; display: block; padding: 10px 0 0; background: none; color: var(--ink); text-align: center; font-size: 16px; font-weight: 500; }

    /* Just landed: title + "View all" on one row, the filters under it */
    .section__head--tabs { grid-template-columns: 1fr auto; gap: 4px 16px; }
    .section__head--tabs .tabs__list { grid-column: 1 / -1; grid-row: 2; margin-inline: calc(-1 * var(--gutter)); padding-inline: calc(var(--gutter) - 14px); }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--trim > :nth-child(n+10) { display: none; }
    .cat { flex-basis: calc((100% - 3 * 12px) / 4.2); }
    .hero__inner { min-height: 380px; }
}

/* Filters drawer and product buy bar keep their own (older) breakpoint */
@media (max-width: 960px) {
    .filters {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; width: min(380px, calc(100vw - 48px));
        overflow-y: auto; transform: translateX(-100%); visibility: hidden;
        transition: transform .4s var(--ease), visibility 0s .4s;
    }
    body.filters-open .filters { transform: none; visibility: visible; transition: transform .4s var(--ease); }

    /* Product page: sticky add-to-bag bar */
    .buybar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: flex; align-items: center; gap: 12px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(36, 26, 23, .35);
    }
    .buybar__info { flex: 1; min-width: 0; }
    .buybar__info strong { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .buybar__info span { font-size: 15px; font-weight: 700; }
    .buybar .btn { min-height: 48px; padding: 0 22px; }
    body.has-buybar { padding-bottom: 84px; }

    /* The bag drawer already confirms an add: no toast on top of its Checkout button */
    body.cart-open .toast { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
    .hide-sm { display: none !important; }
    .show-sm { display: inline; }
    .section { padding-block: 28px; }
    .section__head { margin-bottom: 16px; }
    .h2 { font-size: 21px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
    .link-arrow { font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
    .link-arrow .icon { display: none; }

    /* Hero: copy on the left half, the model on the right half (her face stays clear of the text) */
    .hero__media { width: 49%; }
    .hero__media img { object-position: 45% 15%; }
    .hero__media::before { width: 12%; }
    .hero__inner { min-height: 0; }
    .hero__copy { width: 54%; padding: 28px 10px 28px 0; }
    .hero__eyebrow { gap: 0; font-size: 11px; letter-spacing: .2em; }
    .hero__eyebrow::after { display: none; }
    .hero__title { margin-top: 10px; font-size: clamp(1.3rem, .4rem + 4.2vw, 2rem); line-height: 1.14; }
    .hero__sub { margin-top: 10px; font-size: 14px; line-height: 1.45; }
    .hero__btns { margin-top: 18px; gap: 10px; }
    .hero__btns .btn { min-width: 0; min-height: 46px; padding: 0 16px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
    .hero__btns .btn .icon { display: none; }
    .hero__wa { display: none !important; }

    /* Products: two per row, eight on the home page */
    .grid { gap: 24px 12px; }
    .grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--trim > :nth-child(n+9) { display: none; }
    .card__title { font-size: 14.5px; }
    .card__price { font-size: 16px; }

    .cta { padding: 24px 18px; }
    .cta__btns, .cta__btns .btn { width: 100%; }

    /* Bottom tab bar */
    :root { --tabbar-h: 64px; }
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: grid; grid-template-columns: repeat(3, 1fr);
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: #fff; border-top: 1px solid var(--line);
    }
    .tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
    .tabbar__item .icon { width: 25px; height: 25px; stroke-width: 1.5; }
    .tabbar__item.is-active { color: var(--ink); font-weight: 700; }
    .tabbar__item.is-active .icon { fill: currentColor; stroke-width: 1; }
    .tabbar__icon { position: relative; display: inline-grid; }
    .tabbar__icon .count-dot { top: -5px; right: -10px; }
    body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
    .page-product .tabbar, .page-checkout .tabbar { display: none; }
    .page-product, .page-checkout { padding-bottom: 0; }
    .page-product.has-buybar { padding-bottom: 84px; }
    .toast { bottom: calc(var(--tabbar-h) + 16px); }
    body.nav-open .tabbar, body.cart-open .tabbar, body.filters-open .tabbar { visibility: hidden; }

    /* Catalog: products sooner */
    .page-hero { padding-block: 14px 12px; }
    .page-hero__chips { margin-top: 12px; }
    .toolbar { margin-bottom: 14px; }

    .pdp { padding-top: 10px; }
    .pdp__gallery { margin-inline: calc(-1 * var(--gutter)); }
    .pdp__stage { border-radius: 0; }
    .pdp__thumbs { padding-inline: var(--gutter); }
    .swatch { width: 40px; height: 40px; }

    .wa-float { right: 14px; bottom: calc(var(--tabbar-h) + 14px); width: 50px; padding: 0; justify-content: center; }
    .wa-float span { display: none; }
    /* Product page and checkout have their own help and buttons: no floating bubble over them */
    .page-product .wa-float, .page-checkout .wa-float { display: none; }

    .footer__top { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-block: 40px 26px; }
    .footer__brand, .footer__top > .footer__col:last-child { grid-column: 1 / -1; }
    .footer__bottom { padding-bottom: 84px; } /* clear of the WhatsApp button */
}

@media (max-width: 380px) {
    .hero__copy { width: 56%; }
    .hero__btns .btn { padding: 0 12px; letter-spacing: .08em; }
    .logo__word { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* Free-delivery progress (bag drawer + checkout summary). Fills from the start edge, so from the right in RTL. */
.freebar { display: grid; gap: 7px; }
.freebar__text { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.freebar__text strong { color: var(--ink); font-weight: 700; }
.freebar__track { position: relative; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.freebar__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: var(--accent); transition: width .3s var(--ease); }
.drawer__foot .freebar { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.co-summary .freebar { margin: 16px 0 4px; padding: 12px 14px; border-radius: var(--r); background: var(--ivory); }
.co-free { color: var(--ok); font-weight: 700; }
@media (max-width: 767px) { .drawer__foot, .drawer__items { padding-inline: 16px; } }
