/* shop.vinhlam.com — shared styles, ROUND 4 LAYOUT RESET.
   Colours, type, gap and easing come ONLY from ../tokens.css (never edited here):
   --paper --paper-2 --ink --ink-2 --rule --accent --accent-ink --accent-2 --leaf --bird
   --font-display --font-body --font-label --label-size --gap --ease.
   The one declaration below is the Shop's own corner radius. The Portfolio stays square (tokens.css --radius: 0).
   Radius is used on buttons, chips, the cart drawer, form inputs and (round 7) product card tiles + reveal slices.
   Derived tints use color-mix() of tokens; there are no raw colour values in this file.
   Breakpoints: phone ≤640 (designed at 390), tablet ≤1100 (designed at 834), desktop (designed at 1440). */
:root, [data-mode] { --paper: #ffffff; --paper-2: #f4f4f2; --rule: #e6e6e3; } /* Shop is light only, pure white (director 2026-11-30); tokens.css keeps the Portfolio values */
:root { --radius: 16px; --pad: clamp(20px, 3.4vw, 56px); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
sup { font-size: max(12px, .32em); font-weight: 500; vertical-align: top; position: relative; top: .1em; margin-left: .15em; color: var(--ink-2); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: var(--radius); font: 500 14px var(--font-body); }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.label { font-family: var(--font-label); font-size: var(--label-size); line-height: 1.4; letter-spacing: .02em; font-weight: 500; }
.muted { color: var(--ink-2); }
.display { font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.d-xl { font-size: clamp(44px, 7.4vw, 120px); letter-spacing: -.045em; }
.d-l  { font-size: clamp(34px, 4.4vw, 68px); }
.d-m  { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; }
.d-s  { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; letter-spacing: -.01em; text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.6; max-width: 60ch; color: var(--ink-2); text-wrap: pretty; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 15px var(--font-body); color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 7vw, 112px); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.sec-head { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--gap); align-items: baseline; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.sec-head > :first-child { color: var(--ink-2); }
.sec-head h2, .sec-head__title { font: 600 clamp(20px, 1.6vw, 24px)/1.15 var(--font-display); letter-spacing: -.02em; }
.sec-head__end { color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons (rounded: the only rounded elements besides drawer and inputs) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius);
  font: 500 15px/1 var(--font-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in oklch, var(--accent) 82%, var(--ink)); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: color-mix(in oklch, var(--ink) 82%, var(--paper)); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--paper-2); color: var(--ink-2); border-color: var(--rule); cursor: not-allowed; transform: none; }
.sq-btn { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--radius); font: 400 17px/1 var(--font-body); background: var(--paper); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.sq-btn:hover { border-color: var(--ink); }

/* badges: square, small. */
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; font: 500 12px/1 var(--font-body); letter-spacing: .02em; background: var(--ink); color: var(--paper); white-space: nowrap; }
.badge--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* birds: inline SVG, fill="currentColor" → coloured with `color` */
.bird { display: block; width: 100%; height: auto; color: var(--accent); }
.bird--white { color: var(--bird); }

/* ---------- header ---------- */
/* header matches the portfolio header (od-portfolio-v1/css/site.css): head mark, bold tight wordmark, tinted pill nav, outline pill tools */
.site-header {
  position: sticky; top: 0; z-index: 40; height: 72px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 0 var(--pad); background: var(--paper); color: var(--ink);
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.wordmark::before { content: ""; width: 30px; height: 30px; flex: none; background: url("../assets/brand/head-mark.webp") center / contain no-repeat; }
.wordmark__name { font: 700 21px/1 var(--font-display); letter-spacing: -.04em; }
.wordmark__tag { color: var(--accent); }
.site-nav { display: flex; justify-content: flex-end; align-items: center; }
.site-nav__group { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  font: 500 17px/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
  padding: 11px 16px; border-radius: 999px; background: color-mix(in oklch, currentColor 7%, transparent);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current] { background: var(--ink); color: var(--paper); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.units { display: inline-flex; height: 44px; padding: 4px; gap: 2px; border: 1.5px solid currentColor; border-radius: 999px; }
.units button { min-width: 38px; padding: 0 10px; border-radius: 999px; font: 500 13px/1 var(--font-body); color: var(--ink-2); }
.units button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.units button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cart-btn { height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 5px 0 18px; border: 1.5px solid currentColor; border-radius: 999px; font: 500 17px/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.cart-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cart-btn__count { min-width: 32px; height: 32px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.menu-btn { display: none; height: 44px; padding: 0 14px; border: 1.5px solid currentColor; border-radius: 999px; font: 500 14px/1 var(--font-body); }

/* ---------- footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 112px) var(--pad) 28px; border-top: 1px solid var(--ink); margin-top: clamp(48px, 6vw, 96px); }
.site-footer__big { font: 600 clamp(40px, 7vw, 112px)/.95 var(--font-display); letter-spacing: -.05em; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(36px, 4vw, 64px); }
.site-footer__cols > div { border-top: 1px solid var(--rule); padding-top: 12px; display: grid; gap: 8px; align-content: start; }
.site-footer__cols a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 3px 0; }
.site-footer__cols a:hover { color: var(--accent); }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 80px); padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.site-footer__base a { text-decoration: none; }
.site-footer__base a:hover { color: var(--accent); }

/* ---------- product image (square ground, s5) ----------
   .pimg is always square on --paper-2 (PDP gallery, thumbnails, cart lines). --mock = a Printify mock-up photo, contained
   and multiplied into the ground; the other modifiers place the flat artwork. Square corners always. */
.pimg { position: relative; aspect-ratio: 1 / 1; width: 100%; margin: 0; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.pimg > img { position: absolute; inset: 0; margin: auto; height: 80%; width: auto; max-width: none; aspect-ratio: 2 / 3; object-fit: cover; }
.pimg--poster > img { border: clamp(4px, .8vw, 10px) solid var(--paper); height: 80%; }
.pimg--art > img { border: clamp(8px, 1.4vw, 18px) solid var(--paper); height: 82%; }
.pimg--cover > img { height: 86%; }
.pimg--full > img { height: 100%; width: 100%; aspect-ratio: auto; }
.pimg--mock > img { height: 100%; width: 100%; aspect-ratio: auto; object-fit: contain; mix-blend-mode: multiply; }
.pimg--pack { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3%; padding: 9% 12%; place-items: stretch; }
.pimg--pack > img { position: static; margin: 0; height: 100%; width: 100%; aspect-ratio: auto; min-height: 0; }
.pimg--ph > span { color: var(--ink-2); padding: 8px; text-align: center; overflow-wrap: anywhere; }

/* ---------- product card (round 8): ONE template for every grid, rendered from PRODUCTS in js/shop.js ----------
   Image + title link to the product page; size chips + "Add · $X" quick add under them.
   Printify mock-up -1 on --paper-2 at 4:5 (contain; multiply folds the photo's white into the tile), -2 cross-fades
   in on hover/focus. Digital = three artworks fanned as flat cards; commission/print = the artwork on the same tile. */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gap); }
.cards > li { min-width: 0; }
.cards > li[hidden] { display: none; }
.card { display: grid; gap: 2px; align-content: start; color: var(--ink); }
.card__link { display: grid; gap: 2px; text-decoration: none; color: inherit; border-radius: var(--radius); }
.card__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 10px; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.card__alt, .card__media > .room { opacity: 0; }
.card:hover .card__alt, .card__link:focus-visible .card__alt, .card:hover .card__media > .room, .card__link:focus-visible .card__media > .room, .card.is-sized .card__media > .room { opacity: 1; }
.card:hover .card__front, .card__link:focus-visible .card__front, .card.is-sized .card__front { opacity: 0; }
/* Size preview room (js/shop.js room()): the art hangs at true scale; --w / --h / --t come from the chosen size */
.room { display: block; width: 100%; aspect-ratio: 1; position: relative; }
.card__media > .room { position: absolute; left: 0; top: 50%; transform: translateY(-50%); transition: opacity .45s var(--ease); }
.pimg--room > .room { position: absolute; inset: 0; }
.room__wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room__art {
  position: absolute; left: calc(50% - var(--w) / 2); top: var(--t); width: var(--w); height: var(--h);
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease);
}
.room__art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Poster: flat matte paper, faint contact shadow, two clips on a string above it */
.room--poster .room__art { box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.room--poster .room__art > img { filter: saturate(.92) contrast(.97); }
.room--poster .room__art::before, .room--poster .room__art::after {
  content: ""; position: absolute; top: -9%; width: 3.5%; min-width: 3px; height: 11%;
  background: linear-gradient(#999, #999) top center / 1px 70% no-repeat, linear-gradient(#2a2a2a, #2a2a2a) bottom / 100% 30% no-repeat;
}
.room--poster .room__art::before { left: 14%; }
.room--poster .room__art::after { right: 14%; }
/* Canvas: stretched on a 1.25 in frame; the art wraps round the right and bottom edges, darker; deep shadow */
.room--canvas .room__art { box-shadow: 6px 10px 16px rgb(0 0 0 / .28), 2px 3px 4px rgb(0 0 0 / .18); }
.room--canvas .room__art::before, .room--canvas .room__art::after { content: ""; position: absolute; pointer-events: none; }
.room--canvas .room__art::before { left: 100%; top: 0; width: var(--dx); height: 100%; transform: skewY(40deg); transform-origin: left top; background: linear-gradient(90deg, rgb(0 0 0 / .34), rgb(0 0 0 / .22)), var(--src) right center / auto 100% no-repeat; }
.room--canvas .room__art::after { top: 100%; left: 0; width: 100%; height: var(--dy); transform: skewX(40deg); transform-origin: left top; background: linear-gradient(rgb(0 0 0 / .22), rgb(0 0 0 / .36)), var(--src) center bottom / 100% auto no-repeat; }
.room__tag { position: absolute; left: 4%; top: 4%; padding: 4px 9px; border-radius: 999px; background: rgb(255 255 255 / .86); color: var(--ink); font-size: 11px; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .room__art { transition: none; } }
.card__media--commission > img, .card__media--print > img, .card__media--digital > img {
  inset: 0; margin: auto; width: auto; height: 78%; aspect-ratio: 2 / 3; object-fit: cover; mix-blend-mode: normal;
  border-radius: 4px; box-shadow: 0 14px 28px -18px color-mix(in oklch, var(--ink) 60%, transparent);
}
.card__media--digital > img { height: 60%; transform-origin: 50% 110%; }
.card__media--digital > img:nth-child(1) { transform: rotate(-12deg) translateX(-14%); }
.card__media--digital > img:nth-child(3) { transform: rotate(12deg) translateX(14%); }
.card:hover .card__media--digital > img:nth-child(1), .card__link:focus-visible .card__media--digital > img:nth-child(1) { transform: rotate(-18deg) translateX(-26%); }
.card:hover .card__media--digital > img:nth-child(3), .card__link:focus-visible .card__media--digital > img:nth-child(3) { transform: rotate(18deg) translateX(26%); }
.card__title { font: 600 16px/1.3 var(--font-body); letter-spacing: -.01em; }
.card__link:hover .card__title { color: var(--accent); }
.card__region { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
/* quick add: compact size chips (radios) and one button */
.card__buy { display: grid; gap: 8px; margin-top: 10px; }
.card__sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.card__sizes input { position: absolute; opacity: 0; pointer-events: none; }
.card__sizes label { min-height: 34px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--radius); font: 500 13px/1 var(--font-body); cursor: pointer; }
.card__sizes label:hover { border-color: var(--ink); }
.card__sizes input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card__sizes input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.card__add { width: 100%; min-height: 44px; padding-inline: 12px; }
.card > .card__add { margin-top: 10px; }
/* filter chips (type / region / sort) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: var(--radius); font: 500 14px/1 var(--font-body); white-space: nowrap; }
.chip span { color: var(--ink-2); font-weight: 400; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .7; }

/* ---------- product page (s8) ---------- */
.pdp { padding-top: clamp(16px, 2vw, 28px); padding-bottom: clamp(40px, 5vw, 80px); align-items: start; row-gap: 20px; }
.pdp > .crumbs { grid-column: 1 / -1; }
.pdp__media { grid-column: 1 / span 7; grid-row: 2 / span 2; display: grid; gap: 12px; position: sticky; top: 92px; }
.pdp__main { position: relative; }
.pdp__main .pimg > img { transition: opacity .25s var(--ease); }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.thumbs button { display: block; outline-offset: 2px; position: relative; }
.thumbs button::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--rule); }
.thumbs button[aria-current="true"]::after { box-shadow: inset 0 0 0 2px var(--accent); }
.thumbs .pimg > img { height: 84%; border-width: 3px; }
.media-note { color: var(--ink-2); }
.pdp__info { grid-column: 8 / span 5; display: grid; gap: 18px; padding-left: clamp(0px, 1.4vw, 24px); }
/* round 8: everything that is not buying sits under the buy box (spec, story, material, shipping, returns) */
.pdp__more { grid-column: 8 / span 5; display: grid; gap: 22px; padding-left: clamp(0px, 1.4vw, 24px); padding-top: 12px; }
.trustline { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
/* phone buy bar: fixed at the bottom while the main Add to cart button is off-screen (js/shop.js) */
.buybar { display: none; }
.pdp__brand { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-2); }
.pdp__titlerow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.pdp__titlerow h1 { font-size: clamp(30px, 3vw, 48px); }
.pricebox { border: 1px solid var(--ink); padding: 10px 14px; text-align: right; white-space: nowrap; }
.pricebox__amount { font: 600 clamp(22px, 1.8vw, 28px)/1 var(--font-body); letter-spacing: -.02em; display: block; }
.pricebox__prefix { color: var(--ink-2); display: block; margin-bottom: 4px; }
.price__variant { color: var(--ink-2); }
/* key / value list with dot leaders (s8 meta, s4 TOC) */
.meta { display: grid; gap: 6px; }
.meta > div { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; }
.meta > div::before { content: ""; grid-column: 2; grid-row: 1; border-bottom: 1px dotted var(--ink-2); transform: translateY(-4px); }
.meta dt { grid-column: 1; grid-row: 1; color: var(--ink-2); }
.meta dd { grid-column: 3; grid-row: 1; text-align: right; font-weight: 500; }

.optgroup { display: grid; gap: 10px; }
.optgroup legend { display: flex; justify-content: space-between; width: 100%; color: var(--ink-2); margin-bottom: 10px; }
.optgroup legend b { font-weight: 500; color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label {
  min-height: 44px; min-width: 56px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--rule); border-radius: var(--radius); font: 500 15px/1 var(--font-body); cursor: pointer; background: var(--paper);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.opts label:hover { border-color: var(--ink); }
.opts input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opts input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.opts label.is-unavailable { text-decoration: line-through; border-style: dashed; color: var(--ink-2); }
.swatch { width: 16px; height: 16px; flex: none; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }

.buyrow { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: inline-grid; grid-template-columns: 44px 48px 44px; height: 52px; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.qty button { display: grid; place-items: center; font: 400 20px var(--font-body); }
.qty button:hover { background: var(--paper-2); }
.qty button:disabled { color: var(--ink-2); cursor: not-allowed; background: none; opacity: .6; }
.qty input { width: 100%; border: 0; background: transparent; text-align: center; font: 500 16px var(--font-body); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { grid-template-columns: 40px 40px 40px; height: 44px; }
.stock { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--leaf); flex: none; }
.stock--out::before { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2); }

.rte { display: grid; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.rte a { color: var(--accent); }
.rte h3 { font: 600 var(--label-size)/1.4 var(--font-label); letter-spacing: .02em; color: var(--ink); margin-top: 6px; }
.rte ul { display: grid; gap: 4px; }
.rte li { padding-left: 16px; position: relative; }
.rte li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink-2); }
.disclose { border-top: 1px solid var(--ink); }
.disclose details { border-bottom: 1px solid var(--rule); }
.disclose summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; font-weight: 500; }
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary::after { content: "+"; font: 400 20px var(--font-body); color: var(--accent); }
.disclose details[open] summary::after { content: "−"; }
.disclose details > div { padding: 0 0 18px; }
.disclose a { color: var(--accent); }
.kindswitch { display: flex; gap: 20px; border-bottom: 1px solid var(--rule); }
.kindswitch a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 500 15px/1 var(--font-body); color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.kindswitch a span { font-weight: 400; }
.kindswitch a:hover { color: var(--ink); }
.kindswitch a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* commission tiers + brief form */
.tiers { display: grid; gap: 8px; }
.tiers input { position: absolute; opacity: 0; pointer-events: none; }
.tiers label { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; background: var(--paper); transition: border-color .2s var(--ease); }
.tiers label:hover { border-color: var(--ink); }
.tiers input:checked + label { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tiers input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.tiers__name { font: 600 17px/1.2 var(--font-display); letter-spacing: -.015em; }
.tiers__price { font-weight: 600; font-size: 16px; white-space: nowrap; }
.tiers__desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.slots { display: inline-flex; align-items: baseline; gap: 8px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.field__label b { font-weight: 500; color: var(--ink); }
.input { width: 100%; min-height: 52px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); font-size: 16px; transition: border-color .2s var(--ease); }
.input::placeholder { color: var(--ink-2); opacity: 1; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"] { border-color: var(--accent-2); border-width: 2px; }
.field__error { color: var(--ink); display: none; }
.field__error::before { content: "! "; color: var(--accent-2); font-weight: 600; }
.field.is-invalid .field__error { display: block; }
.field__hint { color: var(--ink-2); font-size: 14px; }
.rights { color: var(--ink-2); font-size: 14px; line-height: 1.5; padding-top: 2px; }
.rights b { color: var(--ink); font-weight: 500; }
.form__note { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* ---------- cart drawer (s6) + order summary (s7) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: color-mix(in oklch, var(--ink) 42%, transparent); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(460px, 100%);
  display: grid; grid-template-rows: auto 1fr; background: var(--paper); color: var(--ink);
  border-radius: var(--radius) 0 0 var(--radius); overflow: hidden;
  transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s;
}
.cart-open .scrim { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.cart-open .drawer { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.cart-open { overflow: hidden; }
.drawer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px 10px 24px; border-bottom: 1px solid var(--ink); min-height: 64px; }
.drawer__scroll { overflow-y: auto; overscroll-behavior: contain; }
.drawer__top { padding: 16px 24px; border-bottom: 1px solid var(--ink); }
.lines > li { border-bottom: 1px solid var(--rule); }
.line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 24px; }
.line__thumb { width: 88px; }
.line__info { display: grid; gap: 10px; min-width: 0; align-content: start; }
.line__top { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.line__title { font: 500 16px/1.3 var(--font-body); text-decoration: none; }
.line__title:hover { color: var(--accent); }
.line__variant { color: var(--ink-2); margin-top: 3px; }
.line__price { font-weight: 600; font-size: 15px; white-space: nowrap; text-align: right; }
.line__price small { display: block; font: 500 var(--label-size)/1.4 var(--font-label); color: var(--ink-2); }
.line__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line__remove { font: 500 13px/1 var(--font-body); color: var(--accent); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; padding: 0 2px; }
.line__lock { color: var(--ink-2); }
.attrs { display: grid; border-top: 1px solid var(--rule); }
.attrs > div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.attrs dt { color: var(--ink-2); }
.attrs dd { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.drawer__foot { padding: 20px 24px 28px; display: grid; gap: 12px; }
.drawer__trust { color: var(--ink-2); font-size: 13px; line-height: 1.5; text-align: center; }

/* ---------- commission style gallery + process (fan art: square, no crop) ---------- */
.steps { display: grid; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps__n { grid-row: span 2; font: 600 24px/1 var(--font-display); letter-spacing: -.03em; color: var(--accent); }
.steps__t { font: 600 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.steps__d { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.masonry { column-count: 3; column-gap: 12px; }
.masonry li { break-inside: avoid; margin-bottom: 12px; }
.masonry button { display: block; width: 100%; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.masonry button:hover img { transform: scale(1.03); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; color: var(--ink); }
.lightbox::backdrop { background: color-mix(in oklch, var(--paper) 94%, transparent); }
.lightbox__inner { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 16px var(--pad) 20px; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox__fig { min-height: 0; display: grid; place-items: center; margin: 0; }
.lightbox__fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lightbox__nav { display: flex; justify-content: center; gap: 10px; }

/* ---------- states ---------- */
.skel { background: var(--paper-2); animation: skel 1.4s var(--ease) infinite alternate; }
.skel--line { height: 14px; }
@keyframes skel { from { opacity: 1; } to { opacity: .45; } }
.frame { border: 1px solid var(--ink); position: relative; overflow: hidden; background: var(--paper); }
.frame__tag { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ink); }
.empty { display: grid; gap: 16px; justify-items: start; padding: 32px 24px; }
.empty .bird { width: 120px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .site-nav {
    position: fixed; inset: 72px 0 0 0; z-index: 39; display: none;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 28px;
    padding: 24px var(--pad) 40px; background: var(--paper); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__group { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { font: 600 clamp(28px, 5vw, 40px)/1.1 var(--font-display); letter-spacing: -.035em; padding: 12px 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; white-space: normal; }
  .menu-btn { display: inline-flex; align-items: center; }
  .header-tools { grid-column: 3; }
}
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp__media { grid-column: 1 / span 6; top: 84px; }
  .pdp__info { grid-column: 7 / span 6; padding-left: 0; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .masonry { column-count: 2; }
}
@media (max-width: 1100px) {
  .pdp__more { grid-column: 7 / span 6; padding-left: 0; }
}
/* ≤768: the buy box comes first, then the gallery, then the details; the buy bar takes over when the button scrolls away */
@media (max-width: 768px) {
  .pdp > .crumbs { order: -2; }
  .pdp__info { order: -1; }
  .pdp__media, .pdp__info, .pdp__more { grid-column: 1 / -1; grid-row: auto; position: static; padding-left: 0; }
  .buybar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--ink); transform: translateY(110%); visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s .3s;
  }
  .buybar.is-on { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .buybar .btn { width: 100%; }
  body:has(.buybar) .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .site-header { height: 60px; gap: 8px; }
  .site-nav { inset: 60px 0 0 0; }
  .wordmark__tag { display: none; }
  .wordmark__name { font-size: 18px; }
  .header-tools { gap: 6px; }
  .units { height: 40px; padding: 3px; }
  .units button { min-width: 30px; padding: 0 6px; }
  .cart-btn { height: 40px; gap: 6px; padding-left: 12px; font-size: 15px; }
  .cart-btn__count { min-width: 28px; height: 28px; }
  .menu-btn { height: 40px; padding: 0 10px; }
  .sec-head { grid-template-columns: 40px 1fr; }
  .sec-head__end { grid-column: 2; }
  .grid12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .card__title { font-size: 15px; }
  .card__region { font-size: 13px; }
  .card__sizes label { padding: 0 7px; font-size: 12px; }
  .pdp__media, .pdp__info, .pdp__more { grid-column: 1 / -1; position: static; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pdp__titlerow { grid-template-columns: 1fr; }
  .pricebox { justify-self: start; text-align: left; }
  .drawer { border-radius: 0; }
  .line { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 20px; }
  .line__thumb { width: 72px; }
  .drawer__bar { padding-left: 20px; }
  .drawer__top, .drawer__foot { padding-inline: 20px; }
  .attrs > div { grid-template-columns: 1fr; gap: 2px; }
  .site-footer__cols { grid-template-columns: 1fr; row-gap: 24px; }
  .site-footer__base { flex-direction: column; }
  .masonry { column-gap: 8px; }
  .masonry li { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Round 5 (copy/data only): long file names wrap inside their column */
.rte .filelist li { overflow-wrap: anywhere; font-size: 14px; }
