@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #111;
  --muted: #555;
  --card: #f4f5f9;
  --line: #e4e4e8;
  --pad: max(20px, 5.6vw);          /* 72px at 1280, matches the screenshots */
  --gap: 7.4vw;                      /* ~95px between product columns at 1280 */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --btn-radius: 0;                   /* Srihari, Oct 19: square buttons everywhere (photos/cards keep their own radius) */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; }
main { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main > .hero { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: var(--btn-radius); -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px calc(var(--pad) - 10px) 0 calc(var(--pad) - 14px);
}
.site-header.on-dark { color: #fff; }
.site-header .left { justify-self: start; }
.site-header .right { justify-self: end; display: flex; gap: 4px; align-items: center; }
/* top-bar icons: 24px line glyphs in 44px tap targets (40px on phones) */
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; position: relative; border-radius: var(--btn-radius); }
.icon-btn svg { width: 24px; height: 24px; }
.bag-count {
  position: absolute; top: 3px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; font-size: 10px !important; line-height: 15px !important; background: currentColor; font-size: 11px; line-height: 17px; text-align: center; font-weight: 700;
}
.bag-count > span { color: #fff; mix-blend-mode: normal; }
.on-dark .bag-count > span { color: #111; }
.bag-count[hidden] { display: none; }
[hidden] { display: none !important; }
.brand-logo { display: block; line-height: 0; padding: 8px 4px; }
.brand-logo img { display: block; height: 26px; width: auto; }   /* wordmark is 7.5:1 → ~195px wide */

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; background: #0c0c0c; overflow: hidden; display: flex; flex-direction: column; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.1) 100%); }
.hero-copy { position: relative; z-index: 2; padding: 22vh var(--pad) 0; flex: 1; }
.hero h1 { margin: 0; font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 3.85vw, 58px); line-height: 1.36; letter-spacing: 0.005em; }
.hero p { margin: 1.2em 0 0; max-width: 63vw; font-size: clamp(13px, 2.1vw, 30px); line-height: 1.55; font-weight: 400; }
.btn-outline {
  display: inline-block; margin-top: 1.1em; padding: .68em 1.6em; border: 3px solid rgba(255,255,255,.85);
  color: #fff; text-decoration: none; font-weight: 500; font-size: clamp(14px, 2.1vw, 28px); letter-spacing: .005em; border-radius: var(--btn-radius);
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: #fff; color: #111; }
.hero-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; padding: 0 var(--pad) 22px; font-size: clamp(12px, 1.25vw, 17px); }
.hero-foot a { text-decoration: none; }

/* ---------- collection ---------- */
.collection { padding: 118px var(--pad) 0; }
.collection h1, .collection h2 { margin: 0; font-size: clamp(20px, 1.75vw, 26px); font-weight: 700; letter-spacing: -0.005em; }
.collection .intro { margin: 18px 0 0; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.5; color: #1d1d1d; text-align: justify; hyphens: manual; }
.grid { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); row-gap: 48px; }
.card a { display: block; width: 100%; text-align: left; text-decoration: none; color: inherit; }
.card .ph { background: var(--card); aspect-ratio: 214 / 288; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card a:hover .ph img { transform: scale(1.03); }
.card .ph { position: relative; }
.card.is-soldout .ph img { filter: grayscale(.55) contrast(.92); opacity: .82; }

/* SOLD OUT rubber stamp: red ink box, rotated, centred over the image. Pure CSS; the speckle is two
   gradient masks so the ink reads stamped rather than printed. Sized from the image's own width. */
.card .ph, .pdp .stage { container-type: inline-size; }
.soldout-stamp {
  --stamp: #c8102e;
  --ink-a: radial-gradient(circle at 31% 43%, transparent 0 .5px, #000 1.1px);
  --ink-b: radial-gradient(ellipse 1.6px 1px at 62% 28%, transparent 0 60%, #000 100%);
  --ink-c: radial-gradient(circle at 74% 66%, rgba(0,0,0,.45) 0 1px, #000 1.8px);
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-17deg);
  font-size: 18px; font-size: clamp(14px, 10.5cqi, 52px);
  padding: .34em .55em .3em; border: .13em solid var(--stamp); border-radius: .16em;
  box-shadow: inset 0 0 0 .07em rgba(255,255,255,.7), inset 0 0 0 .14em var(--stamp);
  color: var(--stamp); background: rgba(255,255,255,.42);
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  opacity: .9; mix-blend-mode: multiply;
  -webkit-mask-image: var(--ink-a), var(--ink-b), var(--ink-c);
  -webkit-mask-size: 13px 11px, 7px 17px, 23px 19px;
  -webkit-mask-position: 0 0, 3px 5px, 9px 2px;
  -webkit-mask-composite: source-in;
  mask-image: var(--ink-a), var(--ink-b), var(--ink-c);
  mask-size: 13px 11px, 7px 17px, 23px 19px;
  mask-position: 0 0, 3px 5px, 9px 2px;
  mask-composite: intersect;
}
.pdp .stage .soldout-stamp { font-size: clamp(22px, 8.5cqi, 54px); }
.pdp.is-soldout .slide img, .pdp.is-soldout .thumbs img { filter: grayscale(.55) contrast(.92); opacity: .85; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 9px; font-size: clamp(11px, .88vw, 13px); }
.card .name { font-weight: 700; }
.card .price { white-space: nowrap; }
.card .price.soldout { color: var(--muted); text-decoration: line-through; }
.empty { margin: 40px 0; color: var(--muted); }

/* ---------- footer (every page): big S mark left, help + policy links right, small legal line ---------- */
.site-foot { background: #000; color: #fff; margin-top: 56px; padding: 64px var(--pad) 22px; }
.foot-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.foot-mark { display: block; line-height: 0; flex: none; border-radius: 50%; }
.foot-mark img { width: 88px; height: 88px; }
.policy-links { display: grid; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 24px clamp(40px, 6vw, 96px); }
.foot-col h2 { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col a { display: inline-block; padding: 5px 0; font-size: 15px; text-decoration: none; color: #fff; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 56px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12px; color: rgba(255,255,255,.55); }
.foot-legal a { color: inherit; }

/* ---------- drawers / modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 50; width: min(420px, 92vw); background: #fff; color: var(--ink); display: flex; flex-direction: column; transition: transform .3s ease, visibility 0s linear .3s; visibility: hidden; }
.drawer.right { right: 0; transform: translateX(100%); }
.drawer.open { transform: none; visibility: visible; transition: transform .3s ease; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); font-weight: 700; }
.drawer .body { flex: 1; overflow: auto; padding: 16px 24px; }
.drawer .foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bag-line img { width: 72px; aspect-ratio: 214/288; object-fit: cover; background: var(--card); }
.bag-line .n { font-weight: 700; font-size: 14px; }
.bag-line .s { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.qty button { width: 28px; height: 28px; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.link-btn { text-decoration: underline; font-size: 12px; color: var(--muted); margin-top: 6px; display: block; }
.row { display: flex; justify-content: space-between; margin: 4px 0; }
.btn { display: block; width: 100%; padding: 14px 18px; background: #000; color: #fff; text-align: center; text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid #000; border-radius: var(--btn-radius); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.ghost { background: #fff; color: #000; }

.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes button { min-width: 48px; height: 42px; border: 1px solid #bbb; font-weight: 500; }
.sizes button[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }
.sizes button:disabled { color: #bbb; text-decoration: line-through; cursor: not-allowed; }
.small { font-size: 12px; color: var(--muted); }


/* ---------- plain pages (checkout, order, policies) ---------- */
.page { max-width: 760px; width: 100%; margin: 0 auto; padding: 110px 22px 60px; flex: 1; }
.page h1 { font-size: 26px; margin: 0 0 8px; }
.page h2 { font-size: 18px; margin: 30px 0 8px; }
.page p, .page li { font-size: 15px; line-height: 1.65; }
.placeholder { background: #fff3c4; padding: 0 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 500; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #c9c9cf; border-radius: 0; margin-top: 5px; background: #fff; }
.step { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
.step h2 { margin-top: 0; }
.otp-row { display: flex; gap: 10px; align-items: end; }
.otp-row > * { flex: 1; }
.otp-row .btn { width: auto; flex: 0 0 auto; padding: 12px 16px; }
.msg { font-size: 14px; margin-top: 10px; min-height: 1.2em; }
.field-err { display: block; font-size: 13px; font-weight: 400; color: #b3261e; margin-top: 5px; }
input[aria-invalid="true"] { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.msg.err { color: #b3261e; }
.msg.ok { color: #1b6e2a; }
.summary { background: var(--card); padding: 18px; margin-top: 18px; }
.coupon { margin-top: 10px; }
.coupon .otp-row { margin-top: 6px; }
.coupon input { text-transform: uppercase; letter-spacing: .04em; }
.coupon input::placeholder { text-transform: none; letter-spacing: normal; }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 8px 0 0; }
.coupon-applied [data-coupon-code] { font-weight: 700; letter-spacing: .04em; }
.summary .discount { color: #1b6e2a; }
.summary .row { font-size: 14px; }
.summary .total { font-weight: 700; font-size: 16px; border-top: 1px solid #d6d6de; padding-top: 8px; margin-top: 8px; }
.status-pill { display: inline-block; padding: 4px 10px; font-size: 13px; font-weight: 700; background: #eee; }
.status-pill.paid { background: #dff3e3; color: #1b6e2a; }
.status-pill.failed { background: #fde2e0; color: #b3261e; }
.dev-banner { background: #fff3c4; padding: 8px 12px; font-size: 13px; margin-bottom: 16px; }

/* ---------- bag availability ---------- */
.bag-line.unavailable img, .bag-line.unavailable .n, .bag-line.unavailable .s { opacity: .5; }
.line-note { font-size: 12px; color: #b3261e; margin-top: 4px; font-style: normal; }
.bag-warn { font-size: 13px; color: #b3261e; margin: 0 0 10px; }
.stock-block { margin: 0 0 12px; font-size: 14px; color: #b3261e; }
.link-btn.inline { display: inline; padding: 0; margin: 0; font-size: inherit; color: inherit; }
.summary .row.unavailable > span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.summary .row.unavailable .line-note { text-decoration: none; display: inline-block; margin-left: 4px; }

/* ---------- product page ----------
   Phone (< 768): swipe strip (scroll-snap) + dots + counter, then the info stack; buy bar pinned at the bottom
   once the main button scrolls away. Tablet (768–1023): swipe strip left, sticky info right.
   Desktop (≥ 1024): photo collage left (~60%), sticky info column right (~40%). */
.pdp { width: 100%; max-width: 1440px; margin: 0 auto; padding: 96px var(--pad) 40px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: clamp(28px, 4vw, 64px); align-items: start; }
.gallery { min-width: 0; }
.stage { position: relative; min-width: 0; }
.track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--card); }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; container-type: inline-size; }
.slide .zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
/* Tiles have the photos' own 3:4 shape (1070×1440) and show the whole photo: contain, never cover, so no head or hem
   is cut; a photo of another shape gets a grey margin instead of being cropped. */
.slide img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: var(--card); }
/* The photos are shot on white: multiply lays them onto the soft card grey so each tile reads as a tile. */
.pdp .slide img, .related .card .ph img { mix-blend-mode: multiply; }
.dots, .count { display: none; }
.pdp:not(.is-soldout) .soldout-stamp { display: none; }
.stamp-collage { display: none; }

.pdp-info { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp-head { display: grid; gap: 4px; }
.pdp h1 { margin: 0; font-size: clamp(24px, 2.2vw, 34px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.pdp-tag { margin: 0; font-size: 15px; color: var(--muted); }
.pdp-price { display: grid; gap: 2px; }
.pdp-price .amt { font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.pdp-price .struck { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.pdp-price .tax { font-size: 12.5px; color: var(--muted); }
.pdp-desc { margin: 0; font-size: 15px; line-height: 1.6; color: #1d1d1d; }

.pdp-sizes .label { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.pdp-sizes .label .small { flex: 1; }
.size-guide { font-size: 13px; color: var(--muted); }
.pdp .sizes { gap: 10px; }
.pdp .sizes button { min-width: 64px; height: 44px; padding: 0 16px; border-radius: var(--btn-radius); border: 1px solid #cfcfd4; font-size: 15px; transition: border-color .15s, background .15s; }
.pdp .sizes button:not(:disabled):hover { border-color: var(--ink); }
.pdp .sizes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pdp .sizes button:disabled { color: #b5b5bb; text-decoration: line-through; border-color: #e3e3e7; background: #fafafb; }
.btn-add { padding: 17px 18px; font-size: 16px; border-radius: var(--btn-radius); letter-spacing: .01em; }
.btn-add:not([disabled]):hover { background: #222; }

.pdp-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-trust li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card); font-size: 13px; line-height: 1.35; }
.pdp-trust svg { flex: none; width: 22px; height: 22px; }

/* accordions: <details>, no JS. Heading icons: fit & feel = shirt, material & care = the wash-care icon
   (public/img/icons/wash-care.svg), shipping & returns = truck. Items: small line icons (fit, shipping) or bullets (material & care). */
.pdp-accs { border-top: 1px solid var(--line); }
.pdp-acc { border-bottom: 1px solid var(--line); }
.pdp-acc summary { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pdp-acc summary > span:not(.chev):not(.care-icon) { flex: 1; }
.acc-hd-ic { flex: none; width: 18px; height: 18px; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-care .care-icon { flex: none; width: 18px; height: 18px; background-color: currentColor;
  -webkit-mask: url(/img/icons/wash-care.svg) center / contain no-repeat; mask: url(/img/icons/wash-care.svg) center / contain no-repeat; }
.pdp-acc .chev { flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.pdp-acc[open] .chev { transform: rotate(-135deg) translate(-2px, -2px); }
@media (prefers-reduced-motion: reduce) { .pdp-acc .chev { transition: none; } }
.acc-body { padding: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.acc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.acc-items li { display: flex; align-items: flex-start; gap: 12px; }
.acc-items .acc-ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ink); }
.acc-sub { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.acc-sub ~ .acc-sub { margin-top: 14px !important; }
.bullets { margin: 0; padding: 0 0 0 18px; list-style: disc; line-height: 1.7; }
.bullets li::marker { color: #9a9aa0; }
.acc-body p { margin: 6px 0 0; }
.acc-body a { color: var(--ink); }

/* you may also like */
.related { width: 100%; max-width: 1440px; margin: 0 auto; padding: 40px var(--pad) 8px; }
.related h2 { margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -0.005em; }
.related-grid { margin-top: 24px; column-gap: clamp(16px, 2.4vw, 36px); }
.related .card .meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 14px; }
.related .card .ph { border-radius: 12px; }

/* phone buy bar (product.js adds .show once the main add-to-bag button has scrolled out of view); phone only */
.buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 12px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0,0,0,.06); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.buybar.show { transform: none; visibility: visible; transition: transform .25s ease; }
.bb-meta { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.bb-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-price { font-size: 16px; font-weight: 700; }
.buybar .btn-add { width: auto; flex: 0 0 auto; min-width: 46%; padding: 14px 16px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .buybar, .buybar.show { transition: none; } }
@media (min-width: 768px) { .buybar { display: none; } }

/* fullscreen viewer */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); }
.viewer::backdrop { background: rgba(0,0,0,.6); }
.v-track { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.v-track::-webkit-scrollbar { display: none; }
.v-track li { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 56px 12px 24px; }
.v-track img { max-width: 100%; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); width: auto; height: auto; object-fit: contain; }
.v-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 18px; font-size: 14px; color: var(--muted); }
.v-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--btn-radius); background: rgba(255,255,255,.9); }
.v-close svg { width: 22px; height: 22px; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: var(--btn-radius); background: rgba(255,255,255,.92); box-shadow: 0 1px 6px rgba(0,0,0,.12); font-size: 30px; line-height: 1; display: grid; place-items: center; }
.v-prev { left: 16px; } .v-next { right: 16px; }
.v-nav[disabled] { opacity: 0; pointer-events: none; }

/* ≥ 1024: collage on 12 columns, every tile 3:4 like the photos, whole photo shown (contain). 5 photos: big + two
   stacked, then two halves. 4: a 2×2 grid. 3: big + two stacked. 2: halves. 1: one photo, height-capped.
   The big tile is two stacked tiles tall, so it is 3:4 too (to within the gap): it fills without cropping. */
@media (min-width: 1024px) {
  .gallery .track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; overflow: visible; scroll-snap-type: none; background: none; }
  .gallery .slide { grid-column: span 12; overflow: hidden; border-radius: 16px; background: var(--card); }
  .gallery .slide .zoom { position: relative; }
  .gallery .slide img { transition: transform .5s ease; }
  .gallery .slide .zoom:hover img { transform: scale(1.025); }
  .n3 .slide:nth-child(1) img, .n5 .slide:nth-child(1) img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .n2 .slide, .n4 .slide, .n5 .slide:nth-child(n+4) { grid-column: span 6; }
  .n3 .slide:nth-child(1), .n5 .slide:nth-child(1) { grid-column: span 8; grid-row: span 2; }
  .n3 .slide:nth-child(n+2), .n5 .slide:nth-child(2), .n5 .slide:nth-child(3) { grid-column: span 4; }
  .n1 .slide { justify-self: center; width: min(100%, calc((100vh - 120px) * 214 / 288)); }
  .gallery .stamp-swipe { display: none; }
  .stamp-collage { display: block; }
}
/* 768–1023: swipe strip on the left, rounded */
@media (min-width: 768px) and (max-width: 1023px) {
  .pdp { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
  .stage { border-radius: 16px; overflow: hidden; }
}
@media (max-width: 1023px) {
  .dots { display: flex; justify-content: center; gap: 7px; position: absolute; left: 0; right: 0; bottom: 14px; pointer-events: none; }
  .dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.18); transition: background .2s, transform .2s; }
  .dots span.on { background: var(--ink); transform: scale(1.2); }
  .count { display: block; position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.88); font-size: 12px; font-weight: 500; pointer-events: none; }
  .v-nav { display: none; }
}
@media (max-width: 767px) {
  .pdp { grid-template-columns: 1fr; padding: 54px 0 24px; row-gap: 18px; }
  .gallery { margin: 0; }
  .pdp-info { position: static; padding: 0 var(--pad); gap: 16px; }
  .pdp h1 { font-size: 24px; }
  .pdp-desc { font-size: 14.5px; }
  .pdp .sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .pdp .sizes button { min-width: 0; padding: 0; }
  .pdp-trust { gap: 8px; }
  .pdp-trust li { padding: 10px; gap: 8px; font-size: 12px; }
  .pdp-trust svg { width: 20px; height: 20px; }
  .related { padding-top: 24px; }
  .related-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; margin: 18px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .related-grid::-webkit-scrollbar { display: none; }
  .related-grid .card { flex: 0 0 44%; scroll-snap-align: start; }
  .related .card .meta { flex-direction: column; gap: 1px; font-size: 12.5px; margin-top: 8px; }
  body.has-buybar .site-foot { padding-bottom: calc(18px + 74px + env(safe-area-inset-bottom)); }
  .v-track li { padding: 56px 0 16px; }
}

@media (max-width: 760px) {
  :root { --gap: 9vw; --pad: 22px; }
  .site-header { padding: 6px 12px 0 10px; }
  .site-header .right { gap: 0; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn svg { width: 24px; height: 24px; }
  .brand-logo img { height: 17px; }   /* ~128px wide on a phone */
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.5) 100%); }
  .hero-copy { padding-top: 44svh; }
  .hero h1 { font-size: clamp(16px, 4.6vw, 26px); }
  .hero p { max-width: none; font-size: clamp(12px, 3.15vw, 15px); margin-top: 1em; }
  .btn-outline { font-size: clamp(12.5px, 3.3vw, 15px); border-width: 2px; padding: .6em 1.4em; }
  .hero-foot { font-size: 11.5px; padding-bottom: 18px; }
  .collection { padding-top: 64px; }
  .collection h1, .collection h2 { font-size: 16px; }
  .collection .intro { hyphens: manual; font-size: 12.5px; line-height: 1.55; margin-top: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; margin-top: 30px; }
  .card .meta { flex-direction: column; gap: 1px; font-size: 11.5px; margin-top: 7px; }
  .site-foot { margin-top: 40px; padding: 44px var(--pad) 18px; }
  .foot-main { flex-direction: column; gap: 30px; }
  .foot-mark img { width: 60px; height: 60px; }
  .policy-links { grid-template-columns: 1fr 1fr; gap: 20px 24px; width: 100%; }
  .foot-col a { font-size: 14px; padding: 6px 0; }
  .foot-legal { flex-direction: column; margin-top: 36px; font-size: 11.5px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- account + track (/account, /track) ---------- */
.account .back, .account-page .back { display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.account .login { display: grid; gap: 12px; max-width: 420px; margin-top: 18px; }
.account .login .otp-row { margin-top: 0; }
.account .summary .btn { margin-top: 12px; }
.acct-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acct-top h1 { margin-bottom: 0; }
.acct-top .small { margin: 2px 0 0; }
.acct-top form { margin: 0; }
.acct-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 18px 0 6px; font-size: 15px; }
.acct-tabs a { text-decoration: none; padding: 8px 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acct-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.o-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.o-card { border: 1px solid var(--line); }
.o-card-link { display: block; padding: 14px 14px 12px; text-decoration: none; }
.o-card-link:hover { background: #fafafa; }
.o-head, .o-foot, .o-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.o-head strong { font-weight: 500; }
.o-foot { margin-top: 10px; }
.o-foot .small { margin: 0; }
.o-more { font-size: 13px; font-weight: 500; }
.o-card .track-box { margin: 0 14px 14px; }
.o-items { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.o-items li { display: flex; align-items: center; gap: 12px; margin: 0; }
.o-items img, .o-noimg { width: 48px; height: 65px; object-fit: cover; background: var(--card); flex: 0 0 auto; }
.o-items.big img, .o-items.big .o-noimg { width: 64px; height: 86px; }
.o-item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 14px; line-height: 1.35; }
.o-item-text .small { font-size: 12.5px; }
.o-item-price { font-size: 14px; white-space: nowrap; }
.o-detail-head { margin-bottom: 2px; flex-wrap: wrap; }
.o-detail-head h1, .o-detail-head h2 { margin: 0; }
.o-addr { font-size: 14px !important; }
.status-pill.st-placed, .status-pill.st-packed { background: #eef0f7; color: #2b3a67; }
.status-pill.st-shipped { background: #fff1d6; color: #7a4b00; }
.status-pill.st-delivered { background: #dff3e3; color: #1b6e2a; }
.status-pill.st-cancelled, .status-pill.st-expired { background: #f1f1f1; color: #555; }
.status-pill.st-pending { background: #f1f1f1; color: #333; }
.order-note { background: var(--card); padding: 12px 14px; font-size: 14px !important; }

.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12.5px !important; line-height: 1.3 !important; color: #8a8a8f; padding-top: 22px; margin: 0; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline li.done::before { background: var(--ink); }
.timeline .dot { position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid #c9c9cf; z-index: 1; }
.timeline li.done { color: var(--ink); }
.timeline li.done .dot { background: var(--ink); border-color: var(--ink); }
.timeline li.current .dot { box-shadow: 0 0 0 4px rgba(17,17,17,.12); }
.timeline .t-label { font-weight: 500; }
.timeline .t-when { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

.track-box { background: var(--card); padding: 14px; margin: 14px 0; }
.track-box.pending .small { margin: 0; font-size: 13px; }
.track-courier { font-size: 12.5px; color: var(--muted); }
.track-num-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.track-num { font-size: 20px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; word-break: break-all; }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; padding: 6px 10px; border: 1px solid #c9c9cf; background: #fff; min-height: 34px; }
.copy-btn.copied { border-color: #1b6e2a; color: #1b6e2a; }
.track-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.track-box .small { margin: 8px 0 0; font-size: 12.5px; }
.track-form { display: grid; gap: 12px; max-width: 420px; margin-top: 16px; }
.track-result { margin-top: 10px; }
.profile-form { margin-top: 14px; }

@media (max-width: 760px) {
  .timeline li { font-size: 11.5px !important; }
}
@media (max-width: 380px) {
  .brand-logo img { height: 15px; }
}
