/* =========================================================
   FITTD — Premium Streetwear
   ========================================================= */

:root {
    --bg: #f3f2ef;
    --surface: #ffffff;
    --tile: #e8e6e1;
    --ink: #111214;
    --ink-2: #2a2c30;
    --muted: #75777c;
    --line: rgba(17, 18, 20, .1);
    --accent: #d4ff3a;
    --sale: #e5482f;
    --radius: 20px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Archivo', 'Inter', sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip; /* unlike hidden, clip keeps the sticky header working on mobile browsers */
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; } /* components set display: grid/flex, which would otherwise override hidden */
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--accent); }

.container { width: min(1320px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Icon strokes */
.icon-btn svg, .link-arrow svg, .btn svg, .perk__icon svg, .socials svg, .search svg,
.card__quick svg, .cat__arrow svg, .news-form svg {
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Typography ---------- */
.h2 {
    font-family: var(--display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.kicker--light { color: rgba(255, 255, 255, .7); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 28px;
    border-radius: 999px;
    font-weight: 600; font-size: 14px; letter-spacing: .01em;
    transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease);
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: 0 14px 30px -10px rgba(0,0,0,.3); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.btn--outline-light:hover { background: rgba(255,255,255,.15); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { box-shadow: 0 0 0 6px rgba(212,255,58,.25); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--tile); }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--pill {
    height: 46px; padding: 0 26px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(17,18,20,.15);
    color: var(--ink);
    font-weight: 500;
    backdrop-filter: blur(8px);
}
.btn--pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }

.icon-btn {
    width: 42px; height: 42px;
    display: inline-grid; place-items: center;
    border-radius: 50%;
    position: relative;
    transition: background .25s;
}
.icon-btn:hover { background: rgba(17,18,20,.06); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn--box { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; flex: none; }
.icon-btn--box.is-active { background: var(--ink); color: #fff; }
.icon-btn--box.is-active svg { fill: currentColor; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 14px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid currentColor;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Announcement ---------- */
.announce {
    background: var(--ink); color: #fff;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    overflow: hidden; height: 34px; display: flex; align-items: center;
}
.announce__track { display: flex; gap: 28px; white-space: nowrap; animation: marquee 40s linear infinite; padding-left: 28px; }
.announce__track i { color: var(--accent); font-style: normal; }
/* Site-wide website discount: static, centred, same 34px height as the usual bar */
.announce--promo { justify-content: center; }
.announce__promo { text-align: center; color: var(--accent); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(243, 242, 239, .78);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, height .3s var(--ease);
}
/* Once scrolled the header is near-solid, so busy sections (dark marquee, photos)
   don't smudge through the blur — it looks the same on every page */
.header.is-scrolled {
    border-color: var(--line);
    background: rgba(243, 242, 239, .96);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .35);
}
.header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }

.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo__mark {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--ink); color: #fff;
    display: grid; place-items: center;
    transition: transform .6s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.05); }
.logo__mark svg { width: 100%; height: 100%; }
.logo__word { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 20px; letter-spacing: .02em; }
.logo--light .logo__mark { background: #fff; color: var(--ink); }
.logo--light { color: #fff; }

.nav { display: flex; gap: 6px; }
.nav__link {
    position: relative;
    padding: 8px 16px;
    font-size: 14px; font-weight: 500;
    border-radius: 999px;
    transition: background .25s;
}
.nav__link:hover { background: rgba(17,18,20,.06); }
.nav__link.is-active { background: var(--ink); color: #fff; }

.header__actions { display: flex; align-items: center; gap: 2px; justify-self: end; }
.cart-count {
    position: absolute; top: 3px; right: 1px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px;
    background: var(--accent); color: var(--ink);
    font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
    transform: scale(0); transition: transform .4s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }

.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.nav-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* Header hides on scroll down, returns on scroll up */
.header { transition: border-color .3s, transform .45s var(--ease), background .4s, color .4s; }
.header.is-hidden { transform: translateY(-100%); }

/* ---------- Mobile menu ---------- */
.mnav {
    position: fixed; inset: 0; z-index: 49;
    background: #0d0e10; color: #fff;
    padding-top: var(--mnav-top, 110px);
    overflow-y: auto; overscroll-behavior: contain;
    clip-path: circle(0 at var(--mnav-x, 90%) var(--mnav-y, 66px));
    visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
.nav-open .mnav {
    clip-path: circle(160% at var(--mnav-x, 90%) var(--mnav-y, 66px));
    visibility: visible;
    transition: clip-path .8s var(--ease), visibility 0s;
}
.mnav__inner { display: flex; flex-direction: column; gap: 28px; min-height: 100%; padding: 8px 0 28px; }
.mnav__link, .mnav__cats, .mnav__foot {
    opacity: 0; transform: translateY(24px);
    transition: opacity .4s, transform .6s var(--ease);
}
.nav-open .mnav__link, .nav-open .mnav__cats, .nav-open .mnav__foot {
    opacity: 1; transform: none;
    transition-delay: calc(.12s + var(--i, 0) * .06s);
}
.mnav__links { display: flex; flex-direction: column; }
.mnav__link { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mnav__num { width: 22px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4); }
.mnav__label {
    flex: 1;
    font-family: var(--display); font-stretch: 125%; font-weight: 900;
    font-size: clamp(34px, 11vw, 54px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
}
.mnav__link svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .35; transition: transform .4s var(--ease), opacity .3s; }
.mnav__link.is-active .mnav__label { color: var(--accent); }
.mnav__link.is-active svg, .mnav__link:active svg { opacity: 1; color: var(--accent); transform: rotate(45deg); }
.mnav__title { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.mnav__catgrid { display: grid; grid-auto-flow: column; grid-auto-columns: 30%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.mnav__catgrid::-webkit-scrollbar { display: none; }
.mnav__cat { scroll-snap-align: start; }
.mnav__cat {
    position: relative; overflow: hidden;
    aspect-ratio: 3 / 4; border-radius: 16px;
    background: radial-gradient(circle at 50% 38%, #2c2e33 0%, #16171a 80%);
    display: flex; align-items: flex-end; justify-content: center; padding: 10px;
}
.mnav__cat img { position: absolute; top: 8%; left: 10%; width: 80%; height: 68%; object-fit: contain; transition: transform .5s var(--ease); }
.mnav__cat:active img { transform: scale(1.06); }
.mnav__cat span { position: relative; font-size: 13px; font-weight: 600; }
.mnav__foot { margin-top: auto; display: grid; gap: 14px; }
.mnav__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.mnav__quick a, .mnav__quick button { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 500; color: #fff; }
.mnav__note { font-size: 12px; color: rgba(255,255,255,.45); }

/* Header turns dark while the menu is open */
.nav-open .header { background: #0d0e10; color: #fff; border-color: rgba(255,255,255,.08); backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.nav-open .logo__mark { background: #fff; color: var(--ink); }
.nav-open .burger span { background: #fff; }
.nav-open .icon-btn:hover { background: rgba(255,255,255,.1); }
@media (min-width: 861px) { .mnav { display: none; } }

/* ---------- Search ---------- */
.search {
    position: fixed; inset: 0 0 auto 0; z-index: 60;
    background: var(--bg);
    padding: 28px 0;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.3);
    transform: translateY(-110%);
    transition: transform .5s var(--ease);
}
.search.is-open { transform: none; }
.search__form { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.search__form svg { width: 26px; height: 26px; flex: none; }
.search__form input {
    flex: 1; border: 0; background: none; outline: none;
    font-family: var(--display); font-stretch: 110%; font-size: clamp(20px, 3vw, 34px); font-weight: 600;
}
.search__close { font-size: 12px; font-weight: 600; border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; }

/* =========================================================
   HERO — the clothing rack
   ========================================================= */
.hero {
    position: relative;
    min-height: clamp(640px, calc(100svh - var(--header-h) - 34px), 900px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 40px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 50% 35%, #ffffff 0%, rgba(255,255,255,0) 70%),
        linear-gradient(180deg, var(--bg) 0%, #ebe9e4 100%);
}
.hero__bgword {
    position: absolute; left: 50%; top: 54%;
    transform: translate(-50%, -50%);
    font-family: var(--display); font-stretch: 125%; font-weight: 900;
    font-size: clamp(120px, 26vw, 420px);
    line-height: 1; letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(17,18,20,.06);
    pointer-events: none; user-select: none;
    white-space: nowrap;
}
.hero__eyebrow {
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    margin-bottom: 44px;
    position: relative;
}
.hero__eyebrow i { width: 1px; height: 14px; background: var(--muted); }

.rack {
    position: relative;
    width: 100%;
    height: 400px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rack__rail {
    position: absolute; left: 0; right: 0; top: 28px; z-index: 0;
    height: 5px;
    background: linear-gradient(180deg, #d9dbde 0%, #a4a8ae 45%, #7d8187 100%);
    box-shadow: 0 6px 10px -4px rgba(0,0,0,.25);
}
.rack__track {
    position: relative; z-index: 1;
    display: flex; gap: 6px;
    width: max-content;
    padding-top: 22px;
    animation: marquee 60s linear infinite;
}
.rack:hover .rack__track { animation-play-state: paused; }
.rack__item {
    position: relative;
    flex: none;
    width: 200px;
    transform-origin: 50% 10px;
    animation: swing var(--sw, 3s) ease-in-out var(--sd, 0s) infinite alternate;
}
.rack__item img {
    width: 100%; height: auto;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,.14));
    transition: transform .6s var(--ease), filter .6s var(--ease);
    transform-origin: 50% 4%;
}
.rack__item:hover img { transform: scale(1.06) translateY(4px); filter: drop-shadow(0 26px 24px rgba(0,0,0,.22)); }

/* Hanger + photo geometry (offsets measured from the cut-outs) */
.hanger { display: block; width: 100%; height: auto; position: relative; z-index: 2; pointer-events: none; }
.rack__item img, .pdp__hang img { display: block; position: relative; z-index: 1; }
/* All cut-outs (img.php) put the garment top at 40px on a 900px-wide canvas */
.rack__item--top img, .pdp__hang--top img,
.rack__item--set img, .pdp__hang--set img,
.rack__item--tee img, .pdp__hang--tee img { margin-top: -6%; }
.rack__item--bottom img, .pdp__hang--bottom img { margin-top: -7.4%; }
.rack__tag {
    position: absolute; top: 30px; left: 50%; z-index: 2;
    transform: translateX(-118%) rotate(-10deg);
    transform-origin: right top;
    padding: 2px 6px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 3px;
    font-size: 10px; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.rack__tag::after {
    content: ''; position: absolute; right: -9px; top: 3px;
    width: 10px; height: 1px; background: #999; transform: rotate(-20deg);
}
.rack__label {
    position: absolute; left: 50%; bottom: -36px;
    transform: translate(-50%, 8px);
    white-space: nowrap; text-align: center;
    font-size: 12px; font-weight: 600;
    opacity: 0;
    transition: opacity .4s, transform .5s var(--ease);
}
.rack__label em { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 11px; }
.rack__item:hover .rack__label { opacity: 1; transform: translate(-50%, 0); }

.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 56px; position: relative; text-align: center; }
.hero__sub { color: var(--muted); font-size: 14px; max-width: 360px; }

.hero__scroll {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll span { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }

/* Rack is draggable (JS drives the loop when available) */
.rack { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.js-rack .rack { cursor: grab; }
.js-rack .rack.is-dragging { cursor: grabbing; }
.js-rack .rack__track { animation: none; will-change: transform; }
.rack__item, .rack__item img { -webkit-user-drag: none; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 22px 0; transform: rotate(-1.2deg) scale(1.02); margin: 10px 0 30px; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span {
    font-family: var(--display); font-stretch: 125%; font-weight: 900;
    font-size: clamp(30px, 5vw, 64px); text-transform: uppercase; line-height: 1;
}
.marquee .outline { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.marquee i { font-style: normal; color: var(--accent); font-size: 28px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0 30px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: radial-gradient(circle at 50% 38%, #fbfaf8 0%, var(--tile) 70%);
    display: flex; align-items: center; justify-content: center;
    isolation: isolate;
}
.cat::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--ink);
    transform: translateY(101%);
    transition: transform .7s var(--ease);
}
.cat:hover::after { transform: none; }
.cat img { width: 76%; max-height: 56%; object-fit: contain; margin-top: -4%; filter: drop-shadow(0 22px 22px rgba(0,0,0,.18)); transition: transform .8s var(--ease); }
.cat:hover img { transform: translateY(-8px) rotate(-4deg) scale(1.05); }
.cat__tag {
    position: absolute; top: 16px; left: 16px;
    font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.75);
    transition: background .4s, color .4s;
}
.cat__foot { position: absolute; left: 20px; right: 20px; bottom: 20px; transition: color .5s; }
.cat__foot h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(15px, 1.25vw, 19px); text-transform: uppercase; padding-right: 48px; }
.cat__foot span { font-size: 13px; color: var(--muted); transition: color .5s; }
.cat__arrow {
    position: absolute; right: 0; bottom: 0;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ink); color: #fff; display: grid; place-items: center;
    transition: background .4s, color .4s, transform .5s var(--ease);
}
.cat__arrow svg { width: 18px; height: 18px; }
.cat:hover .cat__foot { color: #fff; }
.cat:hover .cat__foot span { color: rgba(255,255,255,.6); }
.cat:hover .cat__arrow { background: var(--accent); color: var(--ink); transform: rotate(45deg); }
.cat:hover .cat__tag { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.card { position: relative; }
.card__visual { position: relative; border-radius: var(--radius); overflow: hidden; }
.card__media {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4 / 5;
    background: radial-gradient(circle at 50% 40%, #fbfaf8 0%, var(--tile) 75%);
}
.card__media img { width: 84%; max-height: 90%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.14)); transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.07) rotate(-2deg); }
.card__quick {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    height: 46px; border-radius: 999px;
    background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    transform: translateY(calc(100% + 16px));
    transition: transform .5s var(--ease), background .3s;
}
.card__quick svg { width: 16px; height: 16px; }
.card__quick:hover { background: #000; }
.card:hover .card__quick, .card__quick:focus-visible { transform: none; }
.card__quick.is-added { background: var(--accent); color: var(--ink); }

.card__info { display: flex; justify-content: space-between; gap: 12px; padding: 16px 4px 0; }
.card__cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 15px; font-weight: 600; margin-top: 2px; }
.card__color { display: block; font-size: 13px; color: var(--muted); }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__price { text-align: right; font-weight: 600; white-space: nowrap; }
.card__price s { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.card__swatches { display: flex; gap: 6px; padding: 10px 4px 0; }
/* Options preview under the title: colour dots · size range */
.card__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.card__opts b { font-weight: 400; opacity: .6; }
.card__dots { display: inline-flex; align-items: center; gap: 4px; }
.card__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.card__dots em { font-style: normal; margin-left: 2px; }

.dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
    outline: 1.5px solid transparent; outline-offset: 2px;
    transition: outline-color .25s, transform .25s;
}
.dot:hover { transform: scale(1.15); }
.dot.is-active { outline-color: var(--ink); }

.badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    padding: 5px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: #fff; color: var(--ink);
}
.badge--new { background: var(--accent); }
.badge--sale { background: var(--sale); color: #fff; }
.badge--bestseller, .badge--limited { background: var(--ink); color: #fff; }

/* ---------- Bundle: complete the set ---------- */
.bundle { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.bundle__stage {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 5; border-radius: calc(var(--radius) + 6px);
    background: radial-gradient(circle at 50% 40%, #fdfcfa 0%, var(--tile) 75%);
    display: flex; align-items: center; justify-content: center;
}
.bundle__figure { position: relative; height: 86%; aspect-ratio: 3 / 4; }
.bundle__figure > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.18)); transition: opacity .25s, transform .4s var(--ease); }
.bundle__figure > img.is-swapping { opacity: 0; transform: translateY(8px); }
.bundle__stage .badge { top: 18px; left: 18px; }
.hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 2; transform: translate(-50%, -50%); }
.hotspot__dot {
    position: relative;
    width: 30px; height: 30px; border-radius: 50%;
    background: #fff; display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.hotspot__dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: transform .3s var(--ease); }
.hotspot__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: pulse 2s ease-out infinite; }
.hotspot:hover .hotspot__dot::before, .hotspot.is-open .hotspot__dot::before { transform: scale(1.4); background: var(--accent); }
.hotspot__card {
    position: absolute; left: 50%; bottom: calc(100% + 12px);
    transform: translate(-50%, 6px);
    padding: 10px 14px; border-radius: 12px;
    background: #fff; box-shadow: 0 16px 30px -12px rgba(0,0,0,.3);
    white-space: nowrap; font-size: 13px;
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .4s var(--ease);
}
.hotspot__card strong { display: block; font-size: 14px; }
.hotspot__card span { color: var(--muted); }
.hotspot:hover .hotspot__card, .hotspot:focus-within .hotspot__card, .hotspot.is-open .hotspot__card { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bundle__copy p { color: var(--ink-2); margin-top: 16px; max-width: 460px; }
.bundle__list { list-style: none; padding: 0; margin: 28px 0 22px; border-top: 1px solid var(--line); }
.bundle__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bundle__item { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.bundle__item img { width: 52px; height: 52px; object-fit: contain; background: var(--tile); border-radius: 12px; padding: 4px; }
.bundle__list s { color: var(--muted); }
.bundle__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.bundle__total strong { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 40px; line-height: 1; }
.bundle__total s { color: var(--muted); font-size: 18px; }
.bundle .swatches { margin-bottom: 26px; }
.bundle__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Sky banner ---------- */
.sky {
    position: relative; overflow: hidden;
    margin-top: 90px;
    color: #fff;
    background: linear-gradient(180deg, #3a72c4 0%, #659ddf 55%, #a9caee 85%, #dde9f5 100%);
    min-height: 640px;
    display: flex; align-items: center;
}
.sky__clouds i {
    position: absolute;
    width: 520px; height: 180px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0));
    filter: blur(6px);
    animation: drift 60s linear infinite;
}
.sky__clouds i:nth-child(1) { top: 8%; left: -10%; }
.sky__clouds i:nth-child(2) { top: 55%; left: 30%; width: 700px; height: 220px; animation-duration: 80s; animation-delay: -20s; opacity: .8; }
.sky__clouds i:nth-child(3) { top: 25%; left: 60%; width: 380px; animation-duration: 50s; animation-delay: -35s; opacity: .7; }
.sky__clouds i:nth-child(4) { bottom: -12%; left: -5%; width: 900px; height: 260px; animation-duration: 90s; }
.sky__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 100px 0; }
.sky__title {
    font-family: var(--display); font-stretch: 125%; font-weight: 900;
    font-size: clamp(48px, 7.5vw, 110px);
    line-height: .92; letter-spacing: -.03em; text-transform: uppercase;
    text-shadow: 0 10px 40px rgba(30,70,140,.25);
}
.sky__title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px #fff; }
.sky__copy p { max-width: 440px; margin: 24px 0 32px; font-size: 16px; color: rgba(255,255,255,.9); }
.sky__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.sky__art { position: relative; height: 480px; }
.sky__float { position: absolute; filter: drop-shadow(0 40px 40px rgba(20,50,100,.35)); }
.sky__float--a { width: 62%; top: 0; left: 4%; animation: float 7s ease-in-out infinite; }
.sky__float--b { width: 52%; bottom: 0; right: 0; animation: float 8s ease-in-out -3s infinite; }
.sky__float--a img { transform: rotate(-10deg); }
.sky__float--b img { transform: rotate(8deg); }

/* ---------- Perks ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perk { display: flex; gap: 16px; align-items: center; padding: 32px 24px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk h4 { font-size: 15px; font-weight: 600; }
.perk p { font-size: 13px; color: var(--muted); }
.perk__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.perk__icon svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.footer { background: #0d0e10; color: rgba(255,255,255,.7); margin-top: 100px; padding-top: 80px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; }
.footer__brand p { margin: 20px 0 24px; max-width: 320px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a { width: fit-content; transition: color .2s, transform .3s var(--ease); }
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__news p { font-size: 14px; margin-bottom: 8px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.news-form { display: flex; border-bottom: 1px solid rgba(255,255,255,.25); }
.news-form input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; padding: 12px 0; }
.news-form input::placeholder { color: rgba(255,255,255,.4); }
.news-form button { color: #fff; width: 40px; }
.news-form button svg { width: 20px; height: 20px; margin-left: auto; }
.footer__mega {
    font-family: var(--display); font-stretch: 125%; font-weight: 900;
    font-size: clamp(90px, 23vw, 380px); line-height: .8; letter-spacing: -.04em;
    text-align: center; margin: 70px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 85%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay span { padding: 4px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; font-size: 11px; font-weight: 600; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,12,.45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
    width: min(440px, 100%);
    background: var(--bg);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .6s var(--ease);
}
.cart-open .overlay { opacity: 1; visibility: visible; }
.cart-open .drawer { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 20px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.drawer__head h3 span { font-family: var(--font); font-size: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 9px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.drawer__empty img { width: 120px; margin: 0 auto 16px; opacity: .6; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: fadeUp .5s var(--ease); }
.line__img { aspect-ratio: 4/5; border-radius: var(--radius-sm); background: var(--tile); display: grid; place-items: center; }
.line__img img { width: 86%; }
.line h4 { font-size: 14px; font-weight: 600; }
.line small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.line__qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); border-radius: 999px; }
.line__qty button { width: 28px; height: 28px; font-size: 15px; }
.line__qty span { min-width: 18px; text-align: center; font-size: 13px; font-weight: 600; }
.line__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.line__right strong { font-size: 14px; }
.line__remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.drawer__total { display: flex; justify-content: space-between; font-size: 16px; }
.drawer__foot .muted { font-size: 12px; margin-bottom: 6px; }

/* ---------- Free-delivery progress bar (bag drawer + checkout summary) ---------- */
.freebar { display: grid; gap: 7px; }
.freebar__text { font-size: 13px; line-height: 1.45; }
.freebar__text strong { font-weight: 700; }
.freebar__track { position: relative; height: 6px; border-radius: 999px; background: var(--tile); overflow: hidden; }
.freebar__fill {
    position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; /* fills from the right in RTL */
    border-radius: inherit; background: var(--ink); transition: width .3s 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: 6px; background: var(--bg); }
.co-free { color: #1f9d55; font-weight: 700; }

/* ---------- Discounts + promo code ---------- */
.drawer__discount { display: flex; justify-content: space-between; font-size: 14px; color: #1f9d55; margin-top: -4px; }
.drawer__discount strong { font-weight: 700; }
.drawer__promo { font-size: 12px; font-weight: 600; color: #1f9d55; }
.co-totals .co-totals__discount dt, .co-totals .co-totals__discount dd { color: #1f9d55; }
/* Promo card at the bottom of Delivery details */
.promo {
    margin-top: 16px; padding: 16px; display: grid; gap: 12px;
    border-radius: var(--radius-sm); border: 1px dashed rgba(17, 18, 20, .28); background: var(--bg);
}
.promo__head { display: flex; align-items: center; gap: 12px; }
.promo__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.promo__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.promo__head strong { display: block; font-size: 14px; }
.promo__head div span { display: block; font-size: 12px; color: var(--muted); }
.promo__form { display: flex; gap: 8px; }
.promo__form input {
    flex: 1; min-width: 0; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--surface); outline: none; text-transform: uppercase;
}
.promo__form input::placeholder { text-transform: none; }
.promo__form input:focus { border-color: var(--ink); }
.promo__form .btn { padding-inline: 20px; flex: none; }
.promo__form .btn:disabled { opacity: .6; cursor: wait; }
.promo__chip {
    justify-self: start; display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 8px 6px 12px; padding-inline: 12px 8px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.promo__chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(255,255,255,.15); }
.promo__chip button:hover { background: rgba(255,255,255,.3); }
.promo__msg { font-size: 13px; line-height: 1.45; color: var(--muted); }
.promo__msg[data-kind="ok"] { color: #1f9d55; }
.promo__msg[data-kind="error"] { color: var(--sale); }
.co-done__saved { color: #1f9d55; font-weight: 600; }
@media (max-width: 767px) {
    .drawer__foot, .drawer__items { padding-inline: 16px; }
}

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 100;
    transform: translate(-50%, calc(100% + 40px));
    visibility: hidden;
    background: var(--ink); color: #fff;
    padding: 14px 22px; border-radius: 999px;
    font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,.4);
    transition: transform .5s var(--ease);
}
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.toast { transition: transform .5s var(--ease), visibility .5s; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* =========================================================
   Inner pages
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.page-hero { padding: 48px 0 32px; }
.page-hero__title {
    font-family: var(--display); font-stretch: 125%; font-weight: 900;
    font-size: clamp(44px, 8vw, 120px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase;
    margin-top: 24px;
}
.page-hero__sub { margin-top: 16px; color: var(--muted); max-width: 520px; font-size: 16px; }

/* Catalog */
.toolbar {
    position: sticky; top: var(--header-h); z-index: 20;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 14px 0; margin-bottom: 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 13px; font-weight: 500;
    background: var(--surface);
    transition: background .25s, color .25s, border-color .25s;
    cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar__right { display: flex; align-items: center; gap: 16px; font-size: 13px; flex: none; }
.select select {
    appearance: none; -webkit-appearance: none;
    padding: 9px 38px 9px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
    font-size: 13px; font-weight: 500; cursor: pointer;
}
.empty { text-align: center; padding: 60px 0; display: grid; justify-items: center; gap: 12px; }
.empty img { width: 160px; opacity: .7; }
.empty--page { padding: 120px 0; }

/* Product detail */
.pdp { padding-top: 28px; }
.pdp__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); margin-top: 24px; align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__stage {
    position: relative; overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius) + 6px);
    background:
        linear-gradient(180deg, transparent 0 6.9%, #a4a8ae 6.9% 7.7%, transparent 7.7%),
        radial-gradient(circle at 50% 45%, #fdfcfa 0%, var(--tile) 75%);
    display: flex; justify-content: center;
}
.pdp__hang { width: 58%; padding-top: 5%; transform-origin: 50% 3%; animation: swing 3.2s ease-in-out infinite alternate; }
.pdp__hang--set { width: 46%; }
.pdp__hang img { width: 100%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.18)); transition: opacity .18s, transform .35s var(--ease); }
.pdp__hang img.is-swapping { opacity: 0; transform: translateY(6px); }
.pdp__shadow { position: absolute; bottom: 7%; left: 50%; width: 40%; height: 18px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.14), transparent); }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumb { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--tile); display: grid; place-items: center; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .25s; }
.thumb img { width: 72%; }
.thumb.is-active, .thumb:hover { outline-color: var(--ink); }

.pdp__title { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.pdp__meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdp__price { display: flex; align-items: baseline; gap: 10px; }
.pdp__price strong { font-size: 26px; }
.pdp__price s { color: var(--muted); }
.save { font-size: 12px; font-weight: 700; color: var(--sale); background: rgba(229,72,47,.1); padding: 3px 9px; border-radius: 999px; }
.stars { color: var(--ink); letter-spacing: 2px; font-size: 14px; }
.stars span { letter-spacing: 0; font-size: 13px; margin-left: 4px; }
.pdp__desc { color: var(--ink-2); margin-bottom: 28px; }

.opt { margin-bottom: 26px; }
.opt__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 12px; }
.opt__head span { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: 12px; }
.swatches { display: flex; gap: 12px; }
.swatch { width: 38px; height: 38px; 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 .25s, transform .25s; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { outline-color: var(--ink); }
.swatch.is-out { opacity: .3; cursor: not-allowed; transform: none; }
.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.size { height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; transition: all .25s; }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size.is-out { color: #bbb; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,.04) 6px 7px), var(--surface); cursor: not-allowed; text-decoration: line-through; }
.opt__hint { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 18px; }

/* Find your size (product page, from the Martix size guide) */
.size { position: relative; }
.size.is-suggested::after { content: ''; position: absolute; top: 6px; inset-inline-end: 6px; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 2px var(--surface); }
.sf { margin: 4px 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sf--link { padding: 0; border: 0; background: none; margin-top: -8px; }
.sf__head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.sf__title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; margin-inline-end: auto; }
.sf__title svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sf__units { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tile); }
.sf__units button { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.sf__units button.is-active { background: var(--ink); color: #fff; }
.sf__chart { font-size: 13px; font-weight: 600; }
.sf__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sf__inputs:has(.sf__field:only-child) { grid-template-columns: 1fr; }
.sf__field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sf__field input { width: 100%; min-width: 0; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); outline: none; font-weight: 600; -moz-appearance: textfield; transition: border-color .2s; }
.sf__field input::-webkit-inner-spin-button, .sf__field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sf__field input:focus { border-color: var(--ink); }
.sf__imperial { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sf__imperial[hidden], .sf__metric[hidden] { display: none; }
.sf__fit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 13px; }
.sf__fit > span { color: var(--muted); margin-inline-end: 4px; }
.sf__fit .chip { padding: 6px 14px; }
.sf__result { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; min-height: 64px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.sf__result.has-size { background: rgba(212,255,58,.22); border-color: rgba(150,190,0,.35); }
.sf__text { flex: 1; min-width: 0; }
.sf__prompt { font-size: 13px; color: var(--muted); }
.sf__size { font-size: 14px; }
.sf__size strong { display: inline-block; margin-inline-start: 4px; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 26px; line-height: 1; vertical-align: -3px; }
.sf__size strong.is-pop { animation: sfPop .45s var(--ease); }
.sf__why { margin-top: 4px; font-size: 12px; color: var(--muted); }
.sf__select { flex: none; height: 42px; padding: 0 18px; font-size: 13px; }
.sf__select:disabled { opacity: 1; background: var(--tile); color: var(--ink); cursor: default; }
.sf__scale { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sf__scale span { min-width: 38px; padding: 5px 8px; text-align: center; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); transition: all .25s; }
.sf__scale span.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sf__scale span.is-alt { border: 1px dashed var(--ink); color: var(--ink); }
.sf__note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.sf--link .sf__note { margin-top: 6px; }
.size-table tbody tr.is-suggested { background: rgba(212,255,58,.3); }
.size-table tbody tr.is-suggested:hover { background: rgba(212,255,58,.4); }
.modal__note--runs { color: var(--ink); font-weight: 600; }
@keyframes sfPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@media (max-width: 420px) {
    .sf { padding: 16px 14px; }
    .sf__units { order: 3; }
    .sf__result { flex-direction: column; align-items: stretch; }
    .sf__select { width: 100%; }
}
.opt__hint.is-error { color: var(--sale); animation: shake .4s; }

.pdp__buy { display: flex; gap: 10px; align-items: center; }
.qty { display: flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); flex: none; }
.qty button { width: 42px; height: 100%; font-size: 18px; }
.qty input { width: 30px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp__ticks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 8px; font-size: 13px; }
.pdp__ticks li { display: flex; align-items: center; gap: 10px; }
.pdp__ticks li::before { content: '✓'; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 22px; font-weight: 300; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion ul, .accordion p { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.accordion ul { padding-left: 18px; }


.pdp__grid > * { min-width: 0; }
.btn--grow { min-width: 0; }

/* Sticky buy bar (product page, mobile) */
.buybar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
    display: none; align-items: center; gap: 12px;
    padding: 8px 8px 8px 10px; border-radius: 20px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.35);
    transform: translateY(calc(100% + 24px));
    transition: transform .5s var(--ease);
}
.buybar.is-show { transform: none; }
.buybar img { width: 48px; height: 48px; object-fit: contain; background: var(--tile); border-radius: 12px; padding: 3px; flex: none; }
.buybar__info { flex: 1; min-width: 0; line-height: 1.3; }
.buybar__info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info span { font-size: 12px; color: var(--muted); }
.buybar .btn { height: 46px; padding: 0 20px; }
.has-buybar .toast { bottom: 96px; }

/* Size guide modal */
.modal {
    width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px);
    padding: 0; border: 0; border-radius: 24px;
    background: var(--bg); color: var(--ink);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.modal::backdrop { background: rgba(10,10,12,.5); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn .5s var(--ease); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.modal__body { padding: 8px 24px 24px; overflow-x: auto; }
.modal__body .chips { margin: 16px 0 6px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table th { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.size-table td:first-child { font-weight: 700; }
.size-table tbody tr:hover { background: rgba(17,18,20,.04); }
.modal__note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Reviews */
.stars .stars__off { color: #d3d1cb; letter-spacing: inherit; font-size: inherit; margin-left: 0; }
.pdp__rating { display: inline-flex; align-items: center; gap: 6px; }
.pdp__rating:hover .muted { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.reviews { scroll-margin-top: calc(var(--header-h) + 20px); }
.reviews__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.reviews__summary { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 8px; }
.reviews__avg { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 56px; line-height: 1; }
.reviews__summary .stars { font-size: 18px; }
.reviews__bars { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 13px; }
.reviews__bars li { display: grid; grid-template-columns: 28px 1fr 24px; gap: 10px; align-items: center; }
.reviews__bars li > span:last-child { text-align: right; }
.reviews__bar { height: 6px; border-radius: 999px; background: var(--tile); overflow: hidden; }
.reviews__bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.reviews__list > .btn { margin-top: 24px; }
.review { padding: 22px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.review__title { font-size: 15px; font-weight: 700; margin-top: 10px; }
.review__text { margin-top: 8px; color: var(--ink-2); overflow-wrap: anywhere; }
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review__photos img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); background: var(--tile); }
.review__by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
.review__verified { font-size: 12px; font-weight: 600; color: #2f7d3b; }
.review__reply { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border-left: 3px solid var(--ink); font-size: 13px; }
.review__reply p { margin-top: 6px; color: var(--ink-2); }

/* Checkout */
.checkout { padding-bottom: 96px; }
.checkout__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.co-title { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 22px; margin-bottom: 22px; }
.co-form, .co-summary { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.co-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field > span em { font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg); outline: none;
    transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--surface); }
.field small { display: block; font-size: 12px; color: var(--sale); margin-top: 6px; }
.field small:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--sale); }
.co-pay { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--ink); font-size: 14px; }
.co-alert { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(229,72,47,.1); color: var(--sale); font-size: 14px; margin-bottom: 18px; }
.co-issues { list-style: none; padding: 12px 16px; margin: 0 0 12px; border-radius: var(--radius-sm); background: rgba(229,72,47,.08); color: var(--sale); font-size: 13px; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-line h4 { font-size: 14px; font-weight: 600; }
.co-line small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.co-line strong { font-size: 14px; }
.co-totals { margin: 16px 0 22px; }
.co-totals div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.co-totals dt { color: var(--muted); }
.co-totals dd { margin: 0; font-weight: 600; }
.co-totals .co-totals__total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; }
.co-totals__total dt { color: var(--ink); font-weight: 700; }
.co-note { font-size: 12px; text-align: center; margin-top: 12px; }
.checkout.is-loading .co-totals, .checkout.is-loading .co-items { opacity: .5; transition: opacity .2s; }
.co-done { max-width: 560px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 14px; padding: 40px 0; }
.co-done .perk__icon { width: 56px; height: 56px; background: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes swing { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes drift { from { transform: translateX(-20vw); } to { transform: translateX(110vw); } }
@keyframes bump { 50% { transform: scale(1.4); } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .cats { grid-template-columns: repeat(3, 1fr); }
    .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    :root { --header-h: 64px; }
    .container { width: calc(100% - 32px); }
    .header__inner { grid-template-columns: auto 1fr; }
    .burger { display: block; }
    .hide-sm { display: none; }
    .nav { display: none; }
    .header__actions { gap: 0; }

    .rack { height: 250px; }
    .rack__item { width: 150px; }
    .rack__rail { top: 24px; }
    .rack__track { padding-top: 19px; }
    .rack__label { display: none; }
    .hero__eyebrow { font-size: 10px; margin-bottom: 30px; }

    .sky__inner { grid-template-columns: 1fr; padding: 80px 0 40px; }
    .sky__art { height: 340px; }
    .pdp__grid { grid-template-columns: 1fr; }
    .checkout__grid { grid-template-columns: 1fr; }
    .reviews__grid { grid-template-columns: 1fr; }
    .co-summary { position: static; }
    .pdp__gallery { position: static; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar__right { justify-content: space-between; }
    .card__quick { transform: none; left: auto; width: 44px; height: 44px; padding: 0; }
    .card__quick span { display: none; }
    .bundle { grid-template-columns: 1fr; }
    .buybar { display: flex; }
    .pdp__buy .btn { padding: 0 16px; }
    .header-hidden .toolbar { top: 0; }
    .toolbar { transition: top .45s var(--ease); }
}

@media (max-width: 560px) {
    body { font-size: 14px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
    .cats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
    .cats::-webkit-scrollbar { display: none; }
    .cat { flex: 0 0 64%; scroll-snap-align: start; }
    .cat__foot h3 { font-size: 15px; padding-right: 40px; }
    .hero { min-height: 0; padding: 56px 0 90px; }
    .cat__arrow { width: 36px; height: 36px; }
    .section { padding: 64px 0 20px; }
    .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
    .perks { grid-template-columns: 1fr; }
    .perk { padding: 20px 4px; }
    .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
    .footer__top { grid-template-columns: 1fr; gap: 36px; }
    .sizes { grid-template-columns: repeat(3, 1fr); }
    .field-row { grid-template-columns: 1fr; }
    .card__title { font-size: 13px; }
    .card__info { flex-direction: column; gap: 4px; }
    .card__price { text-align: left; display: flex; gap: 8px; align-items: baseline; }
    .card__price s { display: inline; }
    .modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; }
    .bundle__total strong { font-size: 32px; }
    .bundle__btns .btn { flex: 1; }
}

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