/* Mehar store pages: shop, product, bag, checkout and the policy pages, plus the shared chrome
   (logo lockup, nav material, buttons) every page uses. Built on the kit's tokens (system.css);
   the store pages flow, they are not screen-sized sections. Rules: DESIGN.md. */

/* ---------------------------------------------------------------- shared chrome */
/* pill buttons (Apple-like); the solid look stays, only the corners change */
html[data-radius] { --r-btn: 999px; }
/* presses show through the :active states below, so the grey tap flash is switched off on purpose */
html { -webkit-tap-highlight-color: transparent; }
:is(a, button, input, select, textarea, label, summary) { touch-action: manipulation; }
a:not(.btn):active, .nav__link:active { opacity: .6; }
/* equal edges that stay clear of a notch in landscape */
@supports (padding: max(0px)) {
  .wrap, .container { width: min(100% - 2 * max(var(--gut), env(safe-area-inset-left), env(safe-area-inset-right)), var(--container)); }
}
/* flowing pages scroll a focused field or an anchor clear of the fixed bar */
html:has(> body[data-page]) { scroll-padding-top: calc(var(--nav) + var(--s-4)); }

/* the nav: a translucent material the page scrolls under. The blur sits on a layer behind the bar
   (a backdrop-filter on .nav itself would trap the phone menu's fixed sheet inside the bar). */
.nav { background: transparent; border-bottom-color: color-mix(in oklab, var(--ink) 9%, transparent); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in oklab, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav.is-open::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 1023px) { .nav.is-open .nav__links { overscroll-behavior: contain; } }
@media (prefers-reduced-transparency: reduce) { .nav::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .nav::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } .nav { border-bottom-color: var(--ink); } }

/* the logo: the bilingual lockup MEHAR · मेहर, bold (DESIGN.md, Brand mark) */
/* the two names share a baseline; the line sits in the middle of the logo's 44px tap box */
.lockup { display: inline-flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: .34em; white-space: nowrap; font-family: var(--font-text); font-weight: 700; letter-spacing: .08em; font-stretch: 100%; }
/* the dot is drawn round at every size (the face's own middle dot is square once it is set large) */
.lockup__dot { display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: currentColor; opacity: .5;
  position: relative; top: -.27em; overflow: hidden; text-indent: 1em; white-space: nowrap; letter-spacing: 0; }
.lockup__deva { font-family: "Noto Sans Devanagari", var(--font-text); font-weight: 700; font-size: 1.06em; letter-spacing: 0; }
.nav__logo.lockup { font-size: 18px; letter-spacing: .08em; }
@media (min-width: 1024px) { .nav--split .nav__logo.lockup { font-size: 19px; } }
@media (max-width: 639px) { .nav__logo.lockup { font-size: 16px; } }
.footer .nav__logo.lockup { font-size: 22px; }

.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bag-count[hidden] { display: none; }
/* a store keeps its bag in the bar on every screen; on a phone it takes the place of the bar's
   Buy button (the hero carries that one) so the name, the bag and the menu fit one line */
@media (max-width: 1023px) { .nav:not(.is-open) .nav__actions > a[href="cart.html"] { display: inline-flex; height: 44px; } }
@media (max-width: 639px) { .nav:not(.is-open) .nav__actions > .btn--primary { display: none; } }

/* the footer's column titles on the store pages are h2s (the footer is its own landmark) */
.store-foot .footer__col h2 { font: 500 var(--t-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--muted); margin: 0 0 var(--s-4); }

/* ---------------------------------------------------------------- flowing store pages */
.page { padding-top: calc(var(--nav) + var(--s-8)); padding-bottom: var(--s-9); }
@media (max-width: 639px) { .page { padding-top: calc(var(--nav) + var(--s-6)); } }
.page > .wrap > * + * { margin-top: var(--s-8); }
.page__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.page__head h1 { font: var(--display-weight) clamp(36px, 3vw + 20px, 60px)/1.04 var(--font-display); letter-spacing: var(--display-tracking-xl, -0.03em); margin: 0; text-wrap: balance; }
.page__head p { color: var(--muted); margin: var(--s-3) 0 0; max-width: 52ch; }
.crumbs { font-size: var(--t-small); color: var(--muted); display: flex; gap: var(--s-2); }
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }

/* shop grid */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--gutter); }
@media (max-width: 1023px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .shop-grid { grid-template-columns: minmax(0, 1fr); } }
.shop-grid .tile__media { --tile-ratio: 4 / 5; }
.tile__head > h2 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin: 0; }
.tile__word { font-family: "Noto Sans Devanagari", var(--font-text); font-weight: 600; font-size: .92em; color: var(--muted); margin-left: .1em; letter-spacing: 0; }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
@media (max-width: 1023px) { .pdp { grid-template-columns: minmax(0, 1fr); } }
.pdp__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.pdp__shot { position: relative; overflow: clip; border-radius: var(--r-lg); background: var(--surface); aspect-ratio: 4 / 5; grid-column: 1 / -1; }
.pdp__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the print up close, on its own colour of cotton */
.pdp__print { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--sw, var(--surface)); display: grid; place-items: center; overflow: clip; }
.pdp__print > .art { width: 46%; }
.pdp__detail { position: relative; overflow: clip; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--surface); }
.pdp__detail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__info { position: sticky; top: calc(var(--nav) + var(--s-6)); display: grid; gap: var(--s-6); }
@media (max-width: 1023px) { .pdp__info { position: static; } }
.pdp__title { display: grid; gap: var(--s-2); }
.pdp__info h1 { font: var(--display-weight) clamp(34px, 2vw + 22px, 52px)/1.05 var(--font-display); letter-spacing: var(--display-tracking-xl, -0.03em); margin: 0; }
.pdp__price { font-size: var(--t-lead); font-variant-numeric: tabular-nums; margin: 0; }
.pdp__price small { color: var(--muted); font-size: var(--t-small); margin-left: var(--s-2); }
.pdp__word { color: var(--muted); margin: 0; max-width: 40ch; }
.pdp__word [lang="hi"] { font-family: "Noto Sans Devanagari", var(--font-text); font-weight: 600; color: var(--ink); margin-right: .1em; }
.opt { display: grid; gap: var(--s-3); }
fieldset.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.opt > legend { padding: 0; margin-bottom: var(--s-3); }
.opt__label { font-size: var(--t-small); font-weight: 500; margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.swatch { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--sw); position: relative; }
.swatch[aria-current="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span { display: grid; place-items: center; height: var(--btn-h); border: 1px solid var(--line-strong); border-radius: var(--r-md); font-weight: 500; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.sizes input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.size-guide { border-block: 1px solid var(--line); margin-top: var(--s-2); }
.size-guide > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; font-size: var(--t-small); font-weight: 500; }
.size-guide > summary::-webkit-details-marker { display: none; }
.size-guide > summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) var(--ease); }
.size-guide[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.size-guide > .size-table { margin-bottom: var(--s-4); }
/* the stepper: a pill like the buttons, its 44px buttons inside a drawn edge */
.qty { display: inline-flex; align-items: center; height: var(--btn-h); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.qty button { width: 44px; height: 44px; border-radius: 999px; background: none; border: 0; font: inherit; font-size: 18px; color: var(--ink); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.qty button[aria-disabled="true"] { opacity: .35; cursor: default; }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.pdp__actions { display: grid; gap: var(--s-3); }
.pdp__actions > .btn { width: 100%; }
.pdp__buy { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); }
.pdp__buy .btn { width: 100%; justify-content: center; }
.pdp__promise { list-style: none; margin: 0; padding: 0; display: grid; font-size: var(--t-small); }
.pdp__promise li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.pdp__promise li:first-child { border-top: 1px solid var(--line); }
.pdp__note { font-size: var(--t-small); color: var(--muted); margin: 0; }
.pdp__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pdp__status { font-size: var(--t-small); min-height: 1.5em; margin: 0; }
.pdp__status:empty { min-height: 0; }
.pdp__status a { text-decoration: underline; text-underline-offset: 3px; }
.pdp__status.is-error { color: color-mix(in oklab, #d92d20 72%, var(--ink)); }
.size-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { text-align: left; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.size-table th { color: var(--muted); font-weight: 500; }
.more__h { margin: 0; font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }

/* bag */
.bag { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-8); align-items: start; }
@media (max-width: 1023px) { .bag { grid-template-columns: minmax(0, 1fr); } }
.bag-lines { display: grid; }
.bag-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.bag-line:first-child { border-top: 1px solid var(--line); }
.bag-line__img { position: relative; overflow: clip; border-radius: var(--r-md, 12px); aspect-ratio: 4 / 5; background: var(--surface); }
.bag-line__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bag-line__name { font-weight: 500; font-size: var(--t-card); }
.bag-line__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bag-line__meta { color: var(--muted); font-size: var(--t-small); margin-top: var(--s-1); }
.bag-line__row { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3); flex-wrap: wrap; }
.bag-line__remove { background: none; border: 0; padding: 0; font: inherit; font-size: var(--t-small); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; transition: color var(--dur) var(--ease); }
.bag-line__price { font-variant-numeric: tabular-nums; font-weight: 500; align-self: start; }
@media (max-width: 639px) { .bag-line { grid-template-columns: 80px minmax(0, 1fr); } .bag-line__price { grid-column: 2; } }
.bag-status { min-height: 44px; margin: 0; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-size: var(--t-small); color: var(--muted); }
.bag-status:empty { min-height: 0; }
.bag-status button { background: none; border: 0; padding: 0 var(--s-2); min-height: 44px; font: inherit; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.summary { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-7); display: grid; gap: var(--s-4); position: sticky; top: calc(var(--nav) + var(--s-6)); }
@media (max-width: 1023px) { .summary { position: static; } }
@media (max-width: 639px) { .summary { padding: var(--s-6) var(--s-5); } }
.summary h2 { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0; }
.summary dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3) 0; margin: 0; font-variant-numeric: tabular-nums; }
.summary dd { margin: 0; padding-left: var(--s-4); text-align: right; }
.summary .total { border-top: 1px solid var(--line-strong); padding-top: var(--s-4); font-weight: 500; font-size: var(--t-card); }
.summary .btn { width: 100%; justify-content: center; }
.summary p { color: var(--muted); font-size: var(--t-small); margin: 0; }
.empty { text-align: left; padding: var(--s-6) 0 var(--s-9); display: grid; gap: var(--s-5); justify-items: start; }
.empty p { color: var(--muted); margin: 0; }

/* checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
@media (max-width: 1023px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 var(--s-7); min-width: 0; }
.checkout legend { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-4); padding: 0; }
.field select { -webkit-appearance: none; appearance: none; background-color: var(--bg); color: var(--ink); padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.pay { display: grid; gap: var(--s-3); }
.pay label { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-weight: 400; font-size: var(--t-body); transition: border-color var(--dur) var(--ease); }
.pay label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay label:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.pay input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.pay small { display: block; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
.mini-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; font-size: var(--t-small); }
.mini-line .bag-line__img { border-radius: 8px; }
.checkout__status { padding: var(--s-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong); }
.checkout__status[hidden] { display: none; }
/* the unboxing-video rule, shown as soon as an order is in: set large and dark so nobody misses it */
.checkout__unbox { margin: var(--s-4) 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--ink); color: var(--bg); font: 500 var(--t-card)/1.4 var(--font-text); }
.checkout__unbox strong { display: block; margin-bottom: var(--s-2); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.checkout__unbox[hidden] { display: none; }
.checkout__agree label { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 500; min-height: 44px; }
.checkout__agree input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.form-checkout > [data-orders-closed] { margin-bottom: var(--s-6); } /* order.js: orders paused or not open yet */
@media (max-width: 639px) { .form-checkout .btn-row .btn { width: 100%; } }

/* hover feedback on a mouse; every control also shows its press */
@media (hover: hover) and (pointer: fine) {
  .swatch:not([aria-current="true"]):hover::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 1px solid var(--line-strong); }
  .sizes label:hover input:not(:checked) + span { border-color: var(--ink); }
  .qty button:not([aria-disabled="true"]):hover { background: color-mix(in oklab, var(--ink) 7%, transparent); }
  .bag-line__remove:hover, .bag-status button:hover { color: var(--ink); }
  .pay label:hover { border-color: color-mix(in oklab, var(--ink) 50%, transparent); }
  .size-guide > summary:hover { color: var(--muted); }
}
.qty button:not([aria-disabled="true"]):active, .bag-line__remove:active, .swatch:active { opacity: .6; }

/* policy pages */
.prose { max-width: 68ch; }
.prose h1 { font: var(--display-weight) clamp(36px, 3vw + 20px, 56px)/1.05 var(--font-display); letter-spacing: var(--display-tracking-xl, -0.03em); margin: 0 0 var(--s-4); text-wrap: balance; }
.prose .updated { color: var(--muted); font-size: var(--t-small); margin: 0 0 var(--s-8); }
.prose h2 { font: 500 var(--t-card)/1.3 var(--font-text); margin: var(--s-8) 0 var(--s-3); }
.prose p, .prose li { line-height: 1.7; }
.prose ul { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.prose a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .form { margin-top: var(--s-6); }

/* footer on flowing pages (not a screen-sized closing) */
.store-foot { padding-block: var(--s-9) calc(var(--s-6) + env(safe-area-inset-bottom)); }
.store-foot .footer__legal { margin-top: var(--s-8); }

/* 2026-11-20: typography and artwork-led UI, shared by every store page. */
:root { --p-stone: #e9e9e4; --p-border: #d3d3ce; }
html { scroll-padding-top: calc(var(--nav) + 24px); }
body { text-rendering: optimizeLegibility; }
.eyebrow { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin: 0; }
.text-link { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; font-size: 14px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }
.nav__bar { gap: 24px; }
.nav__links { gap: 8px; }
.nav__link { font-size: 14px; }
.nav__actions > .btn--primary { background: none; color: var(--ink); border: 1px solid var(--line-strong); }
.nav__actions > .btn--primary:hover { background: var(--surface); }
.btn { font-weight: 500; letter-spacing: -.01em; }
.btn--primary { padding-inline: 28px; }
.page__head h1 { font-size: clamp(2.5rem, 4.8vw, 4.5rem); letter-spacing: -.055em; }
.page__head .eyebrow { margin: 0 0 20px; }
.page__head p:not(.eyebrow) { font-size: 16px; line-height: 1.65; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; border-block: 1px solid var(--line); padding-block: 20px; gap: 16px; font-size: 14px; }
.collection-toolbar > p + p { color: var(--muted); }
.collection-toolbar .muted { padding-left: 12px; }
.page > .wrap > .collection-toolbar { margin-top: 40px; }
.page > .wrap > .collection-toolbar + .shop-grid { margin-top: 28px; }
.tile__media { border-radius: 12px; }
.tile__head { gap: 12px; }
.tile__head > :is(h2,h3) { font-weight: 400; font-size: 20px; }
.tile__price { font-size: 16px; }
.tile__facts { font-size: 14px; }
.tile { gap: 18px; }
.pdp { gap: clamp(40px, 6vw, 88px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.pdp__info { gap: 28px; }
.pdp__info h1 { font-size: clamp(2.75rem, 4.2vw, 4rem); letter-spacing: -.055em; }
.pdp__word { line-height: 1.65; margin-top: 8px; }
.pdp__title { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pdp__price { margin-top: 10px; }
.swatch:focus-visible { border-radius: 50%; outline-offset: 8px; }
.qty button:focus-visible { border-radius: 50%; outline-offset: -3px; }
.summary { border: 1px solid var(--line); background: color-mix(in srgb, var(--p-bg) 45%, white); border-radius: 16px; }
.checkout fieldset { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.field input, .field select, .field textarea { border-radius: 8px; background-color: var(--p-bg); }
.store-foot .footer__col h2, .footer__col h3 { font-size: 14px; }
.store-foot .footer__lede { font-size: 16px; max-width: 25ch; line-height: 1.65; }
@media (max-width: 1023px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .nav__bar { gap: 12px; }
  .page__head h1 { font-size: 42px; }
  [data-page="shop"] .page__head { gap: 12px; }
  .page > .wrap > .collection-toolbar { margin-top: 28px; }
  .collection-toolbar { font-size: 13px; padding-block: 16px; }
  .collection-toolbar .muted { padding-left: 6px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .shop-grid .tile__media { aspect-ratio: 1; }
  .shop-grid .tile { gap: 12px; }
  .shop-grid .tile__head { flex-wrap: wrap; gap: 3px 10px; }
  .shop-grid .tile__head > :is(h2,h3) { font-size: 17px; }
  .shop-grid .tile__price { font-size: 14px; }
  .shop-grid .tile__facts { margin-top: -6px; }
  .pdp__info h1 { font-size: 44px; }
  .pdp__price small { display: block; margin: 6px 0 0; }
  .pdp { gap: 28px; }
  .pdp__info { gap: 24px; }
  .pdp__info .rows__value { max-width: 21ch; text-align: right; }
  .store-foot { padding-top: 64px; }
}

/* ---------------------------------------------------------------- the hoodies (2026-11-21) */
/* Merch Factory's mockup, whole in a square white frame: contain, so a print is never cropped or stretched.
   The back shows first (the art is there, and a design's two versions differ only there); the front sits behind it. */
.shot { position: relative; overflow: clip; aspect-ratio: 1; background: #fff; border-radius: 12px; }
.shot > .shot__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; display: block;
  transition: opacity 240ms var(--ease), transform 600ms var(--ease); }
.shot > .shot__img--front { opacity: 0; }
[data-side="front"] .shot > .shot__img--front { opacity: 1; }
[data-side="front"] .shot > .shot__img--back { opacity: 0; }
@media (min-width: 1024px) {
  .shop-grid--hoodies { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* three or six hoodies sit three across, so no row is left half empty (eight sit four across) */
  .shop-grid--hoodies:has(> .tile:nth-child(3):last-child), .shop-grid--hoodies:has(> .tile:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tile--hoodie { gap: 14px; container: tile / inline-size; }
.tile__link { display: grid; gap: 18px; align-content: start; color: inherit; text-decoration: none; border-radius: 14px; }
.tile__link:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
/* the chosen colour's name follows the version: "Without lettering · Navy Blue" (the dot is not read out) */
.tile__colour::before { content: "·" / ""; margin: 0 .4em 0 .15em; }
.tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; }
/* a tile's colours: the listing's own, as 24px dots in 44px tap boxes (36px with a mouse). The boxes reach past
   the first and last dot, so the dots line up with the words above. Checked: an ink ring 3px out. */
.tile__colours { border: 0; padding: 0; margin: 0; min-width: 0; }
.tile__picks { display: flex; margin-inline: -10px; }
.pick { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.pick > input { -webkit-appearance: none; appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--sw); cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 24%, transparent);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.pick > input:checked { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 24%, transparent), 0 0 0 3px var(--bg), 0 0 0 4.5px var(--ink); }
.pick > input:focus-visible { outline: 2px solid var(--action); outline-offset: 6px; }
.pick:active > input { transform: scale(.9); }
/* a narrow tile (four across on a small laptop, two across on a small tablet) puts the flip button under the colours */
@container tile (max-width: 279px) {
  .tile__foot { flex-direction: column; align-items: stretch; }
  .tile__foot > .flip { width: 100%; }
}
@media (hover: hover) and (pointer: fine) {
  .pick { width: 36px; height: 36px; }
  .tile__picks { margin-inline: -6px; }
  .pick:hover > input:not(:checked) { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 24%, transparent), 0 0 0 3px var(--bg), 0 0 0 4px var(--line-strong); }
  /* with the smaller boxes, the colours and the button share a row from 252px */
  @container tile (min-width: 252px) {
    .tile__foot { flex-direction: row; align-items: center; }
    .tile__foot > .flip { width: auto; }
  }
}
.flip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--ink);
  font: inherit; font-size: var(--t-small); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--dur) var(--ease); }
.flip:active { opacity: .6; }
.flip:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
/* the product page's More hoodies: room between its heading row and the cards */
.page__head + .shop-grid { margin-top: 32px; }
.shop-empty { grid-column: 1 / -1; color: var(--muted); margin: 0; padding: var(--s-6) 0; max-width: 46ch; }

/* product page: the back and the front large, one above the other (side by side on a tablet) */
@media (min-width: 1024px) { .pdp--hoodie { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.pdp--hoodie .pdp__gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pdp__view { position: relative; overflow: clip; aspect-ratio: 1; background: #fff; border-radius: 16px; }
.pdp__view > .view__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; }
.pdp__title > .eyebrow { margin: 0 0 4px; }
.versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.version { display: grid; place-items: center; min-height: var(--btn-h); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font-size: var(--t-small); font-weight: 500; text-align: center; color: inherit; text-decoration: none; transition: border-color var(--dur) var(--ease); }
.version[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.version:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.swatch-pick { position: relative; display: inline-grid; }
.swatch-pick > input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; cursor: pointer; }
.swatch-pick > .swatch { display: block; }
.swatch-pick > input:checked + .swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid var(--ink); }
.swatch-pick > input:focus-visible + .swatch { outline: 2px solid var(--action); outline-offset: 8px; }
.sizes input:disabled + span { color: var(--muted); border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
/* garment facts: a long value (the care line) wraps in its column; the kit keeps values on one line, which ran off the page */
.rows--spec .rows__value { white-space: normal; max-width: 30ch; text-wrap: balance; }
.pdp__closed { padding: 18px 20px; border-radius: 12px; background: var(--surface); }
.pdp__closed p { margin: 0; font-size: var(--t-small); line-height: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .flip:hover { background: var(--surface); }
  .version:not([aria-current]):hover { border-color: var(--ink); }
  .swatch-pick > input:not(:checked):hover + .swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 1px solid var(--line-strong); }
}
@media (min-width: 640px) and (max-width: 1023px) { .pdp--hoodie .pdp__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  /* one hoodie a row on a phone: the mockup large, and room for 44px colour swatches beside the flip button */
  .shop-grid--hoodies { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .shop-grid--hoodies .tile__head { flex-wrap: nowrap; gap: 12px; }
  .shop-grid--hoodies .tile__head > :is(h2,h3) { font-size: 20px; }
  .shop-grid--hoodies .tile__price { font-size: 15px; }
  /* the product page ends with two more hoodies on a phone, and See all for the rest */
  [data-product] .shop-grid--hoodies > .tile:nth-child(n + 3) { display: none; }
  .collection-toolbar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pdp--hoodie .pdp__gallery { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .shot > .shot__img { transition: none; } }

/* The showroom's paper, ink and type continue through the purchasing flow. */
:root {
  --p-bg: #ece8df;
  --p-surface: #ded7ca;
  --p-ink: #241e1b;
  --p-muted: #62594e;
  --p-accent: #793c31;
  --p-accent-ink: #fff8ee;
  --p-action: #793c31;
  --p-action-ink: #fff8ee;
  --p-inv-bg: #28231f;
  --p-inv-surface: #37302a;
  --p-inv-ink: #f6f0e5;
  --p-inv-muted: #c1b5a4;
  --p-inv-accent: #ead9bc;
  --p-inv-accent-ink: #241e1b;
  --p-inv-action: #f1e7d8;
  --p-inv-action-ink: #241e1b;
  --paper-face: #f6f2e9;
  --editorial: Georgia, "Times New Roman", serif;
  --p-stone: #e4ddcf;
  --p-border: #cfc6b8;
}
html[data-radius="soft"] { --r-sm: 3px; --r-md: 5px; --r-lg: 9px; }
::selection { background: #793c31; color: #fff8ee; }

.nav { border-bottom-color: var(--line-strong); }
.nav::before { background: color-mix(in srgb, var(--p-bg) 93%, transparent); }
.nav__bar .nav__link { color: var(--ink); }
.nav__logo.lockup { letter-spacing: .115em; }
.nav__actions .btn--primary {
  border-color: var(--ink); color: var(--p-bg); background: var(--ink);
  transition: background-color .18s ease, color .18s ease;
}
.nav__actions .btn--primary:hover { color: var(--p-action-ink); background: var(--p-action); border-color: var(--p-action); }

.page__head h1, .prose h1, .pdp__info h1, .page__head .more__h {
  font-family: var(--editorial); font-weight: 400; letter-spacing: -.058em; line-height: 1.04;
}
.page__head h1, .prose h1 { font-size: clamp(3rem, 6.2vw, 5.75rem); }
.pdp__info h1 { font-size: clamp(3rem, 5.05vw, 5.1rem); }
.page__head .more__h { font-size: clamp(2.25rem, 3.7vw, 3.75rem); }
.page .eyebrow { color: var(--p-action); font-size: .71rem; font-weight: 600; letter-spacing: .15em; }
.page__head .eyebrow { display: flex; align-items: center; gap: .85rem; }
.page__head .eyebrow::before { content: ""; width: 2.15rem; height: 1px; background: currentColor; }
.page__head .crumbs { margin-bottom: 1.1rem; }
.page__head > .pdp__note { border-left: 1px solid var(--line-strong); padding-left: 1.15rem; max-width: 22ch; }
.shop-grid--hoodies { row-gap: clamp(2rem, 4vw, 4rem); }
.shop-grid--hoodies .tile__media, .pdp__view {
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 1px 1px rgb(54 38 20 / .04), 0 7px 20px -17px rgb(54 38 20 / .32);
}
.tile--hoodie .tile__head > :is(h2,h3) {
  font: 400 clamp(1.6rem, 2.4vw, 2.25rem)/1.12 var(--editorial);
  letter-spacing: -.045em;
}
.tile--hoodie .tile__word { display: inline-block; margin-left: .45em; font-size: .46em; vertical-align: middle; }
.tile--hoodie .tile__price { font-size: .82rem; color: var(--muted); }
.tile__facts { letter-spacing: .015em; }
.tile--hoodie .tile__foot { padding-top: .5rem; border-top: 1px solid var(--line); }
.pdp__closed, .summary, .checkout__status {
  background: var(--paper-face); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 6px 25px -20px rgb(54 38 20 / .25);
}
.pdp__closed { border-left: 2px solid var(--p-action); }
.opt__label, .field label { font-weight: 600; }
.sizes input:not(:checked):not(:disabled) + span, .version:not([aria-current="page"]) { background: var(--paper-face); }
.summary h2, .checkout legend, .prose h2 { font: 400 clamp(1.45rem, 2.3vw, 2rem)/1.2 var(--editorial); letter-spacing: -.03em; }
.field input, .field select, .field textarea { background-color: var(--paper-face); border-radius: var(--r-sm); }
.field :is(input,textarea,select):focus-visible { outline-color: var(--p-action); }
.pay label { background: var(--paper-face); }
.prose { width: 100%; max-width: 44rem; }
.prose > .updated { padding-bottom: 1.75rem; border-bottom: 1px solid var(--line-strong); }
.prose .faq__item { padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.prose .faq__item h2 { margin-top: 0; }
.page .empty {
  max-width: 46rem; border-top: 1px solid var(--line-strong);
  padding-top: clamp(1.75rem, 4vw, 3rem);
}
.footer--dark { background: var(--p-inv-bg); color: var(--p-inv-ink); }
.store-foot .footer__col h2, .footer .footer__col h3 {
  font: 600 .71rem/1.4 var(--font-text); text-transform: uppercase;
  letter-spacing: .12em; color: var(--p-inv-muted);
}
.footer .lockup__dot { background: #dcac86; opacity: 1; }
.footer__col li a:hover, .footer__legal a:hover { text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 639px) {
  .page__head > .pdp__note { border-left: 0; padding-left: 0; max-width: none; }
  .shop-grid--hoodies .tile__head > :is(h2,h3) { font-size: 1.8rem; }
  .shop-grid--hoodies .tile__price { font-size: .82rem; }
  .prose .updated { margin-bottom: 1.5rem; }
}

/* The customer's garment ticket sits beside the receipt and turns to show its other print. */
.checkout-review { display: grid; gap: 1rem; align-content: start; position: sticky; top: calc(var(--nav) + 1rem); }
.checkout-review > .summary { position: static; }
.checkout.is-empty { display: block; }
.checkout.is-empty .checkout-review, .bag-review.is-empty {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); align-items: start;
  gap: clamp(1.5rem,6vw,6rem);
}
.checkout.is-empty .summary { padding: 0; border: 0; background: transparent; box-shadow: none; }
.checkout.is-empty .summary .btn { width: fit-content; }
.bag-review:not(.is-empty) > [data-order-preview] { margin-top: 2rem; max-width: 36rem; }
.checkout form[hidden], [data-order-preview][hidden], .order-tag select[hidden] { display: none; }
.order-tag {
  display: grid; gap: .8rem; min-width: 0; padding: clamp(1rem,2vw,1.6rem);
  background: #f4f0e6; color: #241e1b; border: 1px solid #cbc2b4; border-radius: 6px;
  box-shadow: 0 14px 32px -28px rgb(44 31 16 / .6);
}
.order-tag__label, .order-tag__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; align-items: center; }
.order-tag__label > span { color: #635348; font: 600 .67rem/1.4 var(--font-text); text-transform: uppercase; letter-spacing: .14em; }
.order-tag__label select { max-width: 100%; min-height: 44px; font: inherit; font-size: .82rem; color: inherit; border: 1px solid #c7bbac; border-radius: 4px; background-color: #f9f7f0; }
.order-tag__stage { perspective: 48rem; width: 100%; border: 0; border-radius: 4px; padding: .9rem; cursor: pointer; background: radial-gradient(ellipse at 55% 36%,#efe6d5,#e2d7c4); }
.order-tag__card { display: grid; width: min(86%,14rem); aspect-ratio: 1; margin-inline: auto; transform-style: preserve-3d; transform: rotateY(-9deg) rotateZ(-2deg); transition: transform .65s cubic-bezier(.23,.7,.2,1); }
.order-tag__stage.turned .order-tag__card { transform: rotateY(171deg) rotateZ(2deg); }
.order-tag__face {
  grid-area: 1/1; display: grid; position: relative; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: white; padding: .35rem .35rem .9rem; border: 1px solid #dad2c6;
  box-shadow: 0 6px 10px rgb(58 47 28 / .15);
}
.order-tag__face--back { transform: rotateY(180deg); }
.order-tag__face img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.order-tag__face > span { position: absolute; bottom: .22rem; right: .45rem; color: #62554a; font: 500 .65rem var(--font-text); }
.order-tag__foot h2 { font: 400 1.95rem/1.12 var(--editorial); margin: 0; }
.order-tag__foot p { font-size: .83rem; margin: .18rem 0 0; color: #655a4f; }
.order-tag__turn { min-height: 44px; padding: 0 .85rem; font: inherit; font-size: .79rem; color: inherit; background: transparent; border-radius: 30px; border: 1px solid #a69c8d; cursor: pointer; }
.order-tag__link { display: inline-flex; align-items: center; gap: .45em; width: fit-content; min-height: 44px; color: #793c31; font-weight: 600; font-size: .85rem; text-underline-offset: 4px; }
.order-tag__link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .order-tag__card { transition: none; }
}
@media (max-width: 800px) {
  .checkout-review { position: static; }
  .checkout.is-empty .checkout-review, .bag-review.is-empty { grid-template-columns: minmax(0,1fr); }
  .bag-review.is-empty .empty { padding-bottom: 0; }
}

/* ---------------------------------------------------------------- price with MRP (store.js priceText) */
.price-now { font-weight: 600; color: var(--ink); }
.price-mrp { color: var(--muted); text-decoration-thickness: 1px; margin-left: .3em; font-weight: 400; }
.price-off { color: var(--accent); font-weight: 600; margin-left: .3em; white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- checkout promo code (order.js) */
.promo__row { display: flex; gap: 12px; align-items: stretch; }
.promo__row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.promo__row .btn { flex: 0 0 auto; }
.promo__opt { color: var(--muted); font-weight: 400; }
.promo__ok { margin: 6px 0 0; color: var(--ink); font-weight: 600; min-height: 0; }
.promo__ok:empty { display: none; }
