/* =========================================================
   Guilda Fashion — women's clothing, Beirut.
   A conventional, retail-grade storefront: white page, one typeface
   (DM Sans), product photos on quiet grey tiles, near-black text.
   Guilda raspberry (from the logo) is reserved for the logo, the main
   call to action, sale prices and one store banner. Spacing runs on a
   4px grid. Text pairs meet WCAG AA.
   ========================================================= */

:root {
    --bg: #ffffff;
    --soft: #f5f4f2;        /* photo tiles, quiet panels */
    --soft-2: #ecebe8;
    --ink: #141414;         /* text, dark buttons */
    --ink-2: #3a3a3a;
    --muted: #6b6b6b;       /* secondary text (5.3:1 on white) */
    --line: #e7e6e4;
    --line-2: #cfcecb;
    --brand: #bb0f49;       /* Guilda raspberry */
    --brand-dark: #970c3b;
    --brand-tint: #fbeef2;
    --ok: #1f7a4a;
    --warn: #9a5b00;
    --error: #c0261d;
    --wa: #25d366;
    --overlay: rgba(20, 20, 20, .45);
    --shadow: 0 16px 40px rgba(20, 20, 20, .14);
    --shadow-sm: 0 2px 8px rgba(20, 20, 20, .08);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --arabic: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --tap: 44px;
    --gutter: clamp(16px, 3vw, 40px);
    --radius: 4px;
}

/* ---------- 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(--font); font-size: 15px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
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: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--brand); color: #fff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1360px; 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; }
.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; }

/* The Guilda logo, drawn from assets/img/guilda-wordmark.png as a mask (takes any colour) */
.wordmark {
    display: block; aspect-ratio: 1112 / 446; height: 38px; background: var(--brand);
    -webkit-mask: url(../img/guilda-wordmark.png) center / contain no-repeat;
    mask: url(../img/guilda-wordmark.png) center / contain no-repeat;
}
.wordmark--sm { height: 32px; }

/* ---------- Type ---------- */
.overline, .kicker {
    display: block; margin-bottom: 12px;
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.h2 { font-size: clamp(22px, 1.2rem + .6vw, 28px); }
.h2 em, .page-hero__title em { font-style: normal; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.link-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-more:hover { color: var(--brand); }
.link-more:hover .icon { transform: translateX(3px); }
.prose p, .prose h4 { margin-bottom: 10px; }
.prose h4 { font-size: 14px; margin-top: 14px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons, chips, fields ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--primary:disabled, .btn--dark:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--outline, .btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover, .btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white, .btn--light { background: #fff; color: var(--ink); }
.btn--white:hover, .btn--light:hover { background: var(--soft); }
.btn--ghost-white { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost-white:hover { background: #fff; color: var(--brand); }
.btn--link { min-height: var(--tap); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.btn--lg { min-height: 52px; padding: 0 32px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }

.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; transition: background-color .2s; }
.icon-btn:hover { background: var(--soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; white-space: nowrap;
    transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--x .icon { width: 14px; height: 14px; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea, .price-range input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .price-range input:focus {
    outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 20, 20, .08);
}
.field small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field.has-error small { color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- Photo tiles (.ph) ---------- */
.ph { position: relative; overflow: hidden; background: var(--soft); }
.ph img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%;
    mix-blend-mode: multiply; filter: brightness(1.04) contrast(1.05); /* white studio grounds blend into the tile */
    opacity: 0; transition: opacity .4s, transform .6s var(--ease);
}
html:not(.js) .ph img, .ph.is-loaded img { opacity: 1; }
.ph__icon { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; fill: none; stroke: var(--line-2); stroke-width: 1.2; transition: opacity .3s; }
.ph.is-loaded .ph__icon { opacity: 0; }
.ph.is-empty img { display: none; }

/* ---------- Announcement ---------- */
.announce { background: var(--ink); color: #fff; font-size: 12.5px; }
.announce__inner { display: flex; justify-content: center; align-items: center; gap: 40px; min-height: 36px; }
.announce__msg { display: inline-flex; align-items: center; }
a.announce__msg { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 4px 16px rgba(20, 20, 20, .06); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; min-height: 72px; }
.burger { display: none; }
.logo { display: block; }
.nav { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2vw, 32px); align-self: stretch; }
.nav__link { position: relative; display: flex; align-items: center; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-2); transition: color .2s; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
/* "Shop" mega menu: every category in one panel under the header, so the bar never has to fit them all */
.nav__shop { display: flex; align-self: stretch; }
.nav__trigger { gap: 4px; color: var(--ink); font-weight: 600; }
.nav__caret { width: 16px; height: 16px; transition: transform .2s; }
.nav__shop.is-open .nav__caret { transform: rotate(180deg); }
.nav__shop.is-open .nav__trigger::after { transform: scaleX(1); }
.mega {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 45;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(20, 20, 20, .25);
    max-height: min(70vh, 560px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav__shop.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; padding-block: 32px 36px; }
.mega__groups { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.mega__group { flex: var(--cols, 1) 1 calc(var(--cols, 1) * 170px); min-width: 0; } /* --cols: one column per 8 links */
.mega__head { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
a.mega__head:hover { color: var(--brand); }
.mega__list { columns: var(--cols, 1); column-gap: 32px; } /* a long group spreads sideways, never past 8 rows */
.mega__list li { break-inside: avoid; }
.mega__list a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.mega__list a:hover { color: var(--brand); }
.mega__aside { display: flex; flex-direction: column; gap: 4px; padding-left: 32px; border-left: 1px solid var(--line); }
.mega__all { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; font-weight: 600; }
.mega__all .icon { width: 16px; height: 16px; }
.mega__all:hover { color: var(--brand); }

/* The bar keeps only the categories that fit; the rest are one click away under "Shop" */
@media (max-width: 1360px) { .nav__link--cat[data-rank="5"] { display: none; } }
@media (max-width: 1260px) { .nav__link--cat[data-rank="4"] { display: none; } }
@media (max-width: 1160px) { .nav__link--cat[data-rank="3"] { display: none; } }
@media (max-width: 1090px) { .nav__link--cat[data-rank="2"] { display: none; } }

.header__end { display: flex; align-items: center; gap: 12px; }
.header__actions { display: flex; align-items: center; gap: 2px; }
.bag-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: var(--tap); padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .2s; }
.bag-btn:hover { background: var(--soft); }
.bag-btn__label { display: none; }
.cart-count {
    position: absolute; top: 4px; right: 2px; display: grid; place-items: center;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
    transform: scale(0); transition: transform .2s var(--ease);
}
.cart-count.has-items { transform: scale(1); background: var(--brand); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.3); } }

/* Search */
.search { position: relative; display: flex; align-items: center; width: clamp(180px, 16vw, 240px); }
.search__icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
    width: 100%; height: 40px; padding: 0 16px 0 40px; background: var(--soft);
    border: 1px solid transparent; border-radius: 999px; font-size: 14px; transition: border-color .2s, background-color .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; background: #fff; border-color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search__cancel { display: none; }
.search__results {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 50;
    width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto;
    padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sr-head { margin: 4px 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px 6px; }
.sr { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 8px 6px; border-radius: var(--radius); }
.sr:hover, .sr.is-active { background: var(--soft); }
.sr .ph { width: 48px; height: 60px; }
.sr .ph img { opacity: 1; padding: 4px; }
.sr__name { font-size: 14px; line-height: 1.35; }
.sr__price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.sr__price s { color: var(--muted); font-weight: 400; margin-left: 4px; }
.sr-all { display: block; margin-top: 6px; padding: 12px 6px 4px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.sr-all:hover { color: var(--brand); }
.sr-empty { padding: 10px 6px; font-size: 14px; color: var(--muted); }
.sr-empty a { text-decoration: underline; }
.sr-skel__row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 8px 6px; }
.sr-skel__row i, .sr-skel__row b { display: block; background: linear-gradient(90deg, var(--soft) 0, #fff 50%, var(--soft) 100%) 0 0 / 200% 100%; animation: shimmer 1.2s infinite linear; }
.sr-skel__row i { height: 60px; }
.sr-skel__row b { height: 12px; width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Drawers: mobile menu, filters, bag ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.nav-open .overlay[data-menu-close], .cart-open .overlay[data-cart-close], .filters-open .overlay--filters { opacity: 1; visibility: visible; }
.mnav, .drawer {
    position: fixed; top: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; background: #fff;
    box-shadow: var(--shadow); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
}
.mnav { left: 0; width: min(86vw, 380px); transform: translateX(-100%); }
.drawer { right: 0; width: min(94vw, 440px); transform: translateX(100%); }
.nav-open .mnav, .cart-open .drawer { transform: none; visibility: visible; }
.mnav__head, .drawer__head, .filters__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 64px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line);
}
.mnav__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.mnav__link { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.mnav__link .icon { width: 18px; height: 18px; color: var(--muted); }
.mnav__group summary { cursor: pointer; list-style: none; }
.mnav__group summary::-webkit-details-marker { display: none; }
.mnav__group summary .icon { transition: transform .2s; }
.mnav__group[open] summary .icon { transform: rotate(180deg); }
.mnav__group[open] { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mnav__group[open] summary { border-bottom: 0; }
.mnav__sub { display: block; padding: 8px 0 8px 12px; font-size: 15px; color: var(--ink-2); }
.mnav__sub--all { font-weight: 600; color: var(--ink); }
.mnav__link--quiet { border: 0; padding: 10px 0 0; font-size: 14px; color: var(--muted); }
.mnav__link--quiet:first-of-type { margin-top: 10px; }
.mnav__foot { padding: 20px; border-top: 1px solid var(--line); }
.mnav__addr { display: flex; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.mnav__addr .icon { width: 18px; height: 18px; }

.drawer__head h2 { font-size: 18px; }
.drawer__count { font-size: 14px; font-weight: 400; color: var(--muted); }
.drawer__items { flex: 1; overflow-y: auto; padding: 0 20px; }
.drawer__empty { display: grid; justify-items: start; gap: 6px; padding: 32px 0; }
.drawer__empty .btn { margin-top: 12px; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); }
.drawer__foot .muted { margin: 4px 0 16px; font-size: 13px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 500; }
.drawer__total strong { font-size: 18px; }
.drawer__foot .btn--primary { margin-bottom: 4px; }

.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--soft); overflow: hidden; border-radius: 2px; }
.line__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.line h4 { font-size: 14px; font-weight: 500; line-height: 1.35; }
.line small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.line__qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.line__qty button { width: 32px; height: 32px; font-size: 16px; }
.line__qty span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 600; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__right strong { font-size: 14px; }
.line__remove { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line__remove:hover { color: var(--error); }

/* ---------- Home: hero ---------- */
.hero { background: var(--soft); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero__title { max-width: 520px; font-size: clamp(32px, 1.6rem + 1.8vw, 48px); line-height: 1.1; letter-spacing: -.025em; }
.hero__sub { max-width: 460px; margin-top: 18px; font-size: 16px; color: var(--ink-2); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero__media--1 { grid-template-columns: 1fr; max-width: 420px; justify-self: end; width: 100%; }
.hero__item { position: relative; display: block; }
.hero__item .ph { aspect-ratio: 3 / 4; background: #fff; border-radius: var(--radius); }
.hero__item:hover .ph img { transform: scale(1.03); }
.hero__media--2 .hero__item:nth-child(2) { margin-top: 48px; }
.hero__tag {
    position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px;
    padding: 10px 12px; background: rgba(255, 255, 255, .94); border-radius: var(--radius); font-size: 13px;
}
.hero__tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Service bar ---------- */
.service { border-bottom: 1px solid var(--line); }
.service__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service__item { display: flex; align-items: center; gap: 14px; padding: 22px 16px 22px 0; }
.service__item + .service__item { padding-left: 24px; border-left: 1px solid var(--line); }
.service__item .icon { width: 26px; height: 26px; color: var(--brand); stroke-width: 1.4; }
.service__item strong { display: block; font-size: 14px; font-weight: 600; }
.service__item span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: clamp(48px, 6vw, 80px); }
.section--last { padding-bottom: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat { display: block; }
.cat__media { display: block; position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; }
.cat__media .ph { position: absolute; inset: 0; }
.cat:hover .cat__media img { transform: scale(1.04); }
.cat__name { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; }
.cat:hover .cat__name { color: var(--brand); }
.cat__count { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Product grid + card ---------- */
.grid { display: grid; gap: 36px 20px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; }
.card__visual { position: relative; border-radius: var(--radius); overflow: hidden; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--soft); }
.card__media .ph { position: absolute; inset: 0; }
.card__media .ph img { transition: opacity .4s, transform .7s var(--ease); }
@media (hover: hover) {
    .card:hover .card__media .ph img { transform: scale(1.1); } /* hover: zoom into the product photo */
}
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 8px; border-radius: 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge--sale { background: var(--brand); color: #fff; }
.badge--out { background: var(--ink); color: #fff; }
.card__add {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px;
    background: rgba(255, 255, 255, .96); border-radius: var(--radius); color: var(--ink);
    font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), background-color .2s, color .2s;
}
.card__add .icon { width: 16px; height: 16px; }
.card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: none; }
.card__add:hover { background: var(--ink); color: #fff; }
.card__add.is-added { opacity: 1; transform: none; background: var(--brand); color: #fff; }
.card__info { padding-top: 12px; }
.card__title { font-size: 14px; font-weight: 500; line-height: 1.4; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole card clicks through */
.card__ar { margin-top: 2px; font-family: var(--arabic); font-size: 13px; color: var(--muted); }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 14px; }
.card__price strong { font-weight: 600; }
.card__price .is-sale { color: var(--brand); }
.card__price s { color: var(--muted); font-size: 13px; }

/* ---------- Product rail ---------- */
.rail { position: relative; }
.rail__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; }
.rail__btn {
    position: absolute; top: calc((100% - 64px) / 2); z-index: 4; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: opacity .2s, background-color .2s;
}
.rail__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail__btn:disabled { opacity: 0; pointer-events: none; }
.rail__btn--prev { left: -16px; }
.rail__btn--prev .icon { transform: rotate(180deg); }
.rail__btn--next { right: -16px; }
.rail.is-static .rail__btn { display: none; }

/* ---------- Store banner ---------- */
.banner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: clamp(28px, 4vw, 56px); background: var(--brand); color: #fff; border-radius: var(--radius);
}
.banner .overline { color: rgba(255, 255, 255, .8); }
.banner__title { font-size: clamp(22px, 1.1rem + 1vw, 32px); line-height: 1.2; }
.banner__copy p:last-child { max-width: 560px; margin-top: 10px; color: rgba(255, 255, 255, .88); }
.banner__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(64px, 8vw, 104px); background: var(--ink); color: #bdbdbd; font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer__logo .wordmark { height: 40px; background: #fff; }
.footer__lead { max-width: 300px; margin-top: 16px; color: #a8a8a8; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #3a3a3a; border-radius: 50%; color: #fff; transition: background-color .2s, border-color .2s; }
.socials a:hover { background: var(--brand); border-color: var(--brand); }
.socials .icon { width: 17px; height: 17px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h2 { margin-bottom: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer__col a:hover { color: #fff; }
.footer__note { max-width: 260px; font-size: 13px; line-height: 1.5; color: #8f8f8f; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px; border-top: 1px solid #2c2c2c; font-size: 13px; color: #8f8f8f; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center;
    width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35); transition: transform .2s;
}
.wa-float .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.wa-float:hover { transform: scale(1.06); }
.has-buybar .wa-float { bottom: 88px; }

/* ---------- Toast + lightbox ---------- */
.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 90; padding: 12px 20px;
    background: var(--ink); color: #fff; font-size: 14px; border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--soft); }
.lightbox::backdrop { background: var(--overlay); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 4vh 4vw; mix-blend-mode: multiply; cursor: zoom-out; }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; }

/* ---------- Page title + breadcrumbs ---------- */
.page-hero { padding-top: 24px; padding-bottom: 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.page-hero__title { font-size: clamp(26px, 1.3rem + 1vw, 34px); letter-spacing: -.02em; }
.page-hero__sub { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.catalog__main { min-width: 0; }
.filters { position: sticky; top: 96px; }
.filters__head { display: none; }
.filters__head h2 { font-size: 18px; }
.filters__block { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters__block h3 { margin-bottom: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.filters__back { display: inline-block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.filters__back:hover { color: var(--ink); }
.filters__cats a { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
.filters__cats a span { font-size: 13px; color: var(--muted); }
.filters__cats a:hover { color: var(--ink); }
.filters__cats a.is-active { color: var(--brand); font-weight: 600; }
.price-range { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.price-range label { flex: 1; }
.price-range input { min-height: 42px; padding: 8px 12px; }
.filters .chips { margin-bottom: 16px; }
.filters .btn--primary { background: var(--ink); }
.filters .btn--primary:hover { background: #333; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar__filters { display: none; }
.toolbar__filters .icon { width: 18px; height: 18px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.toolbar__count { margin-left: auto; font-size: 13px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; }
.pager__num, .pager__btn, .pager__gap { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius); font-size: 14px; }
.pager__num:hover, .pager__btn:hover { background: var(--soft); }
.pager__num.is-active { background: var(--ink); color: #fff; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 64px 24px; text-align: center; background: var(--soft); border-radius: var(--radius); }
.empty h3 { font-size: 20px; }
.empty .btn { margin-top: 12px; }
.empty--page { margin-block: 40px 0; }
.empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Product page ---------- */
.pdp { padding-top: 20px; }
.pdp .crumbs { margin-bottom: 20px; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.pdp__gallery:not(:has(.pdp__thumbs)) { grid-template-columns: 1fr; }
.pdp__stage { position: relative; grid-column: -2; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); border-radius: var(--radius); cursor: zoom-in; }
.ph--stage { position: absolute; inset: 0; }
.ph--stage img { padding: 6%; transition: opacity .4s, transform .3s ease-out; }
.ph--stage img.is-swapping { opacity: 0 !important; }
.pdp__stage.is-zoomed .ph--stage img { transform: scale(1.9); }
.pdp__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: #fff; box-shadow: var(--shadow-sm); }
.pdp__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.thumb { position: relative; flex: none; aspect-ratio: 3 / 4; width: 100%; border: 1px solid transparent; border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.thumb .ph { position: absolute; inset: 0; }
.thumb .ph img { padding: 6%; }
.thumb:hover { border-color: var(--line-2); }
.thumb.is-active { border-color: var(--ink); }

.pdp__info { position: sticky; top: 96px; }
.pdp__title { font-size: clamp(24px, 1.2rem + .8vw, 30px); letter-spacing: -.02em; }
.pdp__ar { margin-top: 6px; font-family: var(--arabic); font-size: 16px; color: var(--muted); }
.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-top: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pdp__price strong { font-size: 22px; font-weight: 600; }
.pdp__price s { color: var(--muted); }
.save { padding: 2px 8px; background: var(--brand-tint); color: var(--brand); border-radius: 2px; font-size: 12px; font-weight: 600; }
.stars { color: #e0a100; letter-spacing: 1px; }
.stars__off { color: var(--line-2); }

.opt { margin-top: 22px; }
.opt__head { display: flex; gap: 6px; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.opt__head strong { font-weight: 400; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
    min-width: 54px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
    background: #fff; font-size: 14px; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s;
}
.size:hover:not(:disabled) { border-color: var(--ink); }
.size.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.size.is-out, .size:disabled { color: var(--line-2); background: var(--soft); text-decoration: line-through; cursor: not-allowed; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); outline-offset: 3px; }
.swatch.is-active { outline: 2px solid var(--ink); }
.swatch.is-out { opacity: .3; }

.stock { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.stock--in { color: var(--ok); }
.stock--in::before { background: var(--ok); }
.stock--low { color: var(--warn); }
.stock--low::before { background: var(--warn); }
.stock--error { color: var(--error); font-weight: 500; }
.stock--error::before { background: var(--error); }
.stock.is-error { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.pdp__buy { display: flex; gap: 10px; margin-top: 14px; }
.pdp__buy .btn { min-height: 52px; }
.pdp__buy .btn span { font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); }
.qty button { width: 40px; height: 50px; font-size: 18px; }
.qty input { width: 32px; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.pdp__help { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; background: var(--soft); border-radius: var(--radius); font-size: 13.5px; line-height: 1.5; transition: background-color .2s; }
.pdp__help:hover { background: var(--soft-2); }
.pdp__help .icon { color: var(--ink-2); margin-top: 1px; }
.pdp__help strong { display: block; font-weight: 600; }
.pdp__ticks { display: grid; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.pdp__ticks li { display: flex; align-items: center; gap: 12px; }
.pdp__ticks .icon { width: 20px; height: 20px; color: var(--ink-2); }

.accordion { margin-top: 24px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; min-height: 54px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.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; }

/* Reviews */
.reviews .h2 em { font-style: normal; }
.reviews__grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.reviews__summary { padding: 24px; background: var(--soft); border-radius: var(--radius); }
.reviews__avg { display: block; font-size: 44px; font-weight: 600; line-height: 1; }
.reviews__summary .stars { display: block; margin: 8px 0 4px; font-size: 18px; }
.reviews__bars { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; }
.reviews__bars li { display: grid; grid-template-columns: 26px 1fr 20px; align-items: center; gap: 8px; }
.reviews__bar { height: 6px; background: #fff; border-radius: 3px; overflow: hidden; }
.reviews__bar i { display: block; height: 100%; background: var(--ink); }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.review__title { margin-top: 8px; font-size: 15px; }
.review__text { margin-top: 4px; color: var(--ink-2); }
.review__photos { display: flex; gap: 8px; margin-top: 12px; }
.review__photos img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.review__by { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 13px; }
.review__verified { color: var(--ok); }
.review__reply { margin-top: 12px; padding: 12px 14px; background: var(--soft); border-radius: var(--radius); font-size: 13.5px; }
.review__reply p { margin-top: 4px; }
.reviews__list .btn { margin-top: 20px; }

/* ---------- Checkout ---------- */
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.co-title { margin-bottom: 20px; font-size: 18px; }
.co-form { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); }
.co-alert { margin-bottom: 18px; padding: 12px 14px; background: #fdecea; border-left: 3px solid var(--error); color: var(--error); font-size: 14px; }
.co-pay { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--soft); border-radius: var(--radius); }
.co-pay strong { display: block; font-size: 14px; }
.co-pay span { font-size: 13.5px; color: var(--muted); }
.co-summary { position: sticky; top: 96px; padding: clamp(20px, 3vw, 28px); background: var(--soft); border-radius: var(--radius); }
.co-issues { margin-bottom: 14px; padding: 12px 14px; background: #fff7e6; font-size: 13px; color: var(--warn); }
.co-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.co-line .line__img { background: #fff; }
.co-line h4 { font-size: 14px; font-weight: 500; }
.co-line small { font-size: 13px; color: var(--muted); }
.co-totals { margin: 16px 0 20px; }
.co-totals div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.co-totals__total { margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--line-2); color: var(--ink) !important; font-weight: 600; }
.co-totals__total dd { font-size: 20px; }
.co-note { margin-top: 12px; font-size: 13px; text-align: center; }
.checkout.is-loading .co-summary { opacity: .7; }
.co-done { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.trust__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.co-done .trust__icon { background: var(--ok); color: #fff; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.info-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-card p { margin-top: 4px; font-size: 17px; font-weight: 500; }
.info-card .btn { margin-top: 16px; }
.info-card--main .trust__icon { background: var(--wa); color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
    .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rail__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
    .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .service__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service__item:nth-child(3) { padding-left: 0; border-left: 0; }
    .service__item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer__top { grid-template-columns: 1fr 1fr 1fr; }
    .footer__intro { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    .header__inner { grid-template-columns: 1fr auto 1fr; gap: 8px; min-height: 60px; }
    .burger { display: inline-grid; justify-self: start; margin-left: -10px; }
    .logo { grid-column: 2; grid-row: 1; }
    .logo .wordmark { height: 34px; }
    .nav { display: none; }
    .header__end { display: contents; }
    .header__actions { grid-row: 1; grid-column: 3; justify-self: end; margin-right: -8px; }
    .search { grid-row: 2; grid-column: 1 / -1; width: 100%; margin-bottom: 12px; }
    .search.is-open .search__cancel { display: block; flex: none; margin-left: 12px; font-size: 14px; font-weight: 500; }
    .search__results { left: 0; right: 0; width: auto; }
    .search-open .search__results {
        position: fixed; top: var(--sr-top, 120px); left: 0; right: 0; bottom: 0;
        max-height: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 16px var(--gutter);
    }
    .hide-sm { display: none !important; }

    .hero__inner { grid-template-columns: 1fr; }
    .hero__media--2 .hero__item:nth-child(2) { margin-top: 0; }

    /* Filters become a drawer */
    .catalog { grid-template-columns: 1fr; }
    .filters {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; display: flex; flex-direction: column;
        width: min(86vw, 360px); background: #fff; box-shadow: var(--shadow); overflow-y: auto;
        transform: translateX(-100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
    }
    .filters-open .filters { transform: none; visibility: visible; }
    .filters__head { display: flex; }
    .filters__block { margin: 0; padding: 20px; }
    .toolbar__filters { display: inline-flex; }

    .pdp__grid { grid-template-columns: 1fr; }
    .pdp__info { position: static; }
    .reviews__grid { grid-template-columns: 1fr; }
    .checkout__grid { grid-template-columns: 1fr; }
    .co-summary { position: static; }
    .contact { grid-template-columns: 1fr 1fr; }
    .banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }
    .announce__msg { display: none; }
    .announce__msg.is-active { display: inline-flex; }

    .hero__inner { padding-block: 32px 40px; gap: 28px; }
    .hero__btns .btn { flex: 1; padding: 0 16px; }
    .hero__media { gap: 10px; }
    .hero__tag { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; font-size: 12px; }

    .service__item { gap: 10px; padding: 16px 10px 16px 0; }
    .service__item + .service__item { padding-left: 12px; }
    .service__item:nth-child(3) { padding-left: 0; }
    .service__item .icon { width: 22px; height: 22px; }
    .service__item strong { font-size: 13px; }
    .service__item span { font-size: 12px; }

    .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .grid { gap: 28px 12px; }
    .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rail__track { grid-auto-columns: 62%; gap: 12px; }
    .rail__btn { display: none; }
    /* Touch: a small always-visible add button */
    .card__add { left: auto; right: 8px; bottom: 8px; width: 36px; height: 36px; padding: 0; border-radius: 50%; opacity: 1; transform: none; }
    .card__add span { display: none; }
    .badge { top: 8px; left: 8px; }

    .banner__actions { width: 100%; }
    .banner__actions .btn { flex: 1; }

    .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 48px 32px; }
    .footer__col:last-child { grid-column: 1 / -1; }

    .field-row { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }

    .pdp { padding-top: 12px; }
    .pdp__gallery { grid-template-columns: 1fr; margin-inline: calc(var(--gutter) * -1); }
    .pdp__stage { grid-column: 1; border-radius: 0; }
    .pdp__thumbs { grid-row: 2; flex-direction: row; overflow-x: auto; padding-inline: var(--gutter); }
    .thumb { width: 60px; }
    .buybar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; gap: 14px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    }
    .buybar__info { flex: 1; min-width: 0; font-size: 13px; }
    .buybar__info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
    .buybar .btn { min-height: 46px; padding: 0 22px; }
    .has-buybar .footer { padding-bottom: 72px; }
    .has-buybar .toast { bottom: 90px; }

    .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
    .page-checkout .wa-float { display: none; }
}

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