/* KRS Jewellery — storefront styles. Placeholder palette until we match the Instagram look. */
:root {
  --bg: #f8f4ee;
  --surface: #fffdf9;
  --ink: #1f1b16;
  --muted: #6f665c;
  --line: #e7ddd0;
  --gold: #9c7a45;
  --gold-soft: #efe4d2;
  --sold: #8a3b2e;
  --ok: #2f5d46;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --radius: 2px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9em; font-weight: 400; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.section { padding: clamp(40px, 7vw, 80px) var(--gutter); }
.link { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font: 400 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer; border-radius: var(--radius); transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 14px; }
.btn + .btn { margin-top: 10px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Header */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: .75rem; letter-spacing: .12em; padding: 8px 16px; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.main-nav { display: flex; gap: 22px; white-space: nowrap; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--gold); }
.logo { font: 600 1.7rem var(--serif); letter-spacing: .12em; text-decoration: none; display: flex; align-items: baseline; gap: 8px; }
.logo span { font: 300 .62rem var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.logo-sm { font-size: 1.4rem; margin-bottom: 10px; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.currency { display: flex; border: 1px solid var(--line); border-radius: 20px; padding: 2px; }
.currency button { background: none; border: 0; padding: 4px 10px; font: 400 .72rem var(--sans); letter-spacing: .08em; color: var(--muted); cursor: pointer; border-radius: 16px; }
.currency button.on { background: var(--ink); color: var(--bg); }
.bag { position: relative; display: flex; text-decoration: none; margin-right: 8px; }
.bag-count { position: absolute; top: -6px; right: -9px; background: var(--gold); color: #fff; font-size: .65rem; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; padding: 6px 4px; }
.menu-btn span { display: block; height: 1px; background: var(--ink); margin: 6px 0; transition: transform .2s; }

/* Messages */
.messages { padding-top: 16px; }
.msg { margin: 0 0 8px; padding: 12px 16px; background: var(--surface); border-left: 3px solid var(--gold); font-size: .92rem; }
.msg-error { border-color: var(--sold); }
.msg-success { border-color: var(--ok); }

/* Hero */
.hero { background: linear-gradient(160deg, #efe4d6 0%, var(--bg) 60%); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(48px, 9vw, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos img:first-child { grid-row: span 2; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-cta .btn + .btn { margin-top: 0; }

.cat-strip { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-top: 32px; }
.cat-strip a, .chip { padding: 8px 18px; border: 1px solid var(--line); border-radius: 20px; font-size: .8rem; letter-spacing: .08em; text-decoration: none; background: var(--surface); }
.cat-strip a:hover, .chip:hover, .chip.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; gap: 16px; }
.section-head h2 { margin: 0; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 32px); }
.card { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gold-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card.is-sold .card-img img { filter: grayscale(.35) opacity(.75); }
.noimg { width: 100%; height: 100%; aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--gold-soft), #f7efe4); }
.tag { position: absolute; top: 10px; left: 10px; background: rgba(255,253,249,.92); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; }
.tag-sold { background: var(--ink); color: var(--bg); }
.card-body { padding: 14px 2px 0; }
.card-body h3 { font-size: 1.12rem; margin: 0 0 2px; }
.price { margin: 0; font-size: .92rem; color: var(--muted); }

.promise { background: var(--surface); border-block: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 56px; text-align: center; }
.promise p { color: var(--muted); margin: 0; font-size: .95rem; }
.insta { text-align: center; }

/* Listing */
.page-head { padding-top: 48px; padding-bottom: 8px; }
.page-head h1 { margin-bottom: 4px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 16px; font-size: .85rem; }
select, input[type=number], textarea {
  font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px;
}
textarea { width: 100%; resize: vertical; margin: 6px 0 14px; }
.pager { display: flex; justify-content: center; gap: 24px; margin-top: 48px; font-size: .9rem; }

/* Product page */
.crumbs { padding-top: 24px; font-size: .8rem; color: var(--muted); letter-spacing: .05em; }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 72px); padding-top: 20px; padding-bottom: 40px; align-items: start; }
.gallery-main { aspect-ratio: 4 / 5; background: var(--gold-soft); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 80px; height: 100px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .65; }
.gallery-thumbs button.on, .gallery-thumbs button:hover { opacity: 1; border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 100px; }
.tagline { color: var(--muted); font-size: 1.05rem; margin-top: -4px; }
.product-price { font: 500 1.6rem var(--serif); margin: 18px 0 24px; }
.add-form .qty { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .9rem; }
.add-form .qty input { width: 70px; }
.sold-note { font: italic 1.2rem var(--serif); color: var(--sold); }
.prose { margin-top: 28px; }
.prose p { margin: 0 0 1em; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; padding-top: 3px; }
.specs dd { margin: 0; }

/* Cart */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 56px); padding-top: 24px; padding-bottom: 80px; align-items: start; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line-img img, .line-img .noimg { width: 96px; height: 120px; object-fit: cover; }
.line-name { font: 500 1.2rem var(--serif); text-decoration: none; }
.line-info p { margin: 2px 0; }
.line-actions { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.line-actions input { width: 64px; }
.line-price { font-size: .95rem; white-space: nowrap; }
.summary { background: var(--surface); border: 1px solid var(--line); padding: 26px; position: sticky; top: 100px; }
.ship-to { display: grid; gap: 6px; font-size: .85rem; margin-bottom: 18px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 18px; font-size: .95rem; }
.summary dd { margin: 0; text-align: right; }
.summary .total { font: 500 1.3rem var(--serif); border-top: 1px solid var(--line); padding-top: 12px; }
.warn { color: var(--sold); }
.notice { background: var(--gold-soft); padding: 14px; font-size: .92rem; }
.empty { text-align: center; }

.receipt { background: var(--surface); border: 1px solid var(--line); padding: 8px 24px; margin-bottom: 32px; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipt div:last-child { border: 0; }
.receipt .total { font: 500 1.25rem var(--serif); }

.page-body { padding-bottom: 80px; }
.page-body h2 { margin-top: 1.4em; }
.page-body li { margin-bottom: .5em; }
.page-photo { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 32px; }
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.fees div { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 2px; }
.fees span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fees strong { font: 500 1.5rem var(--serif); }
.fees small { color: var(--muted); }
.contact-list { padding-left: 1.2em; }

/* Testimonials */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry .quote { break-inside: avoid; margin-bottom: 20px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 26px 24px 20px; position: relative; }
.quote::before { content: '“'; position: absolute; top: -4px; left: 20px; font: 500 3.6rem/1 var(--serif); color: var(--gold); opacity: .55; }
.quote blockquote { margin: 14px 0 18px; font: italic 1.15rem/1.5 var(--serif); }
.quote-photo { display: block; margin: -26px -24px 18px; aspect-ratio: 16 / 10; overflow: hidden; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); }
.who { display: grid; flex: 1; line-height: 1.3; }
.who strong { color: var(--ink); font-weight: 500; }
.who small { font-size: .78rem; }
.quote-product { font-size: .8rem; color: var(--gold); text-decoration: none; margin-top: 2px; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font: 500 1.05rem var(--serif); color: var(--ink); }
.tint-0 { background: #efe0cf; } .tint-1 { background: #e5e9dc; } .tint-2 { background: #f1dcdc; }
.tint-3 { background: #dde5ea; } .tint-4 { background: #ebe1ef; }
.proof-btn { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.proof-btn:hover { color: var(--gold); border-color: var(--gold); }

.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats span + span::before { content: '·'; margin-right: 22px; color: var(--gold); }
.lead-quote { max-width: 900px; text-align: center; padding-top: 28px; }
.lead-quote blockquote { margin: 0; font: italic 500 clamp(1.5rem, 3.4vw, 2.3rem)/1.35 var(--serif); }
.lead-quote blockquote::before { content: '“'; display: block; font-size: 4rem; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.lead-who { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.lead-who strong { color: var(--ink); font-weight: 500; }
.proof-link { font-size: .8rem; color: var(--gold); margin-left: 6px; }
.testimonial-cta { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0; }
.testimonial-cta h2 { margin-bottom: 6px; }
.proof-dialog { border: 0; padding: 18px; max-width: min(420px, 92vw); background: var(--surface); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.proof-dialog::backdrop { background: rgba(20, 16, 12, .6); }
.proof-dialog img { width: 100%; height: auto; border: 1px solid var(--line); }
.proof-title { margin: 0 32px 12px 0; font-size: .85rem; color: var(--muted); }
.proof-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }

/* Instagram link-in-bio page */
.ig-head { text-align: center; padding-top: 40px; }
.ig-head h1 { margin-bottom: 4px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 760px; margin-top: 24px; }
.ig-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: block; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }
.ig-tile.is-sold img { filter: grayscale(.4) opacity(.7); }
.ig-label { position: absolute; inset: auto 0 0 0; padding: 18px 8px 6px; font-size: .72rem; line-height: 1.3; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); text-decoration: none; }
.code-search { display: flex; gap: 8px; max-width: 360px; margin: 18px auto 0; }
.toolbar .code-search { margin: 0; }
.code-search input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; }
.product .code { margin: -6px 0 0; letter-spacing: .08em; }

/* Design-your-own builder */
.hp { position: absolute; left: -9999px; }
.builder { scroll-margin-top: 90px; display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: start; padding-bottom: 40px; }
.builder:not(.is-stepped) { grid-template-columns: 1fr; }
.builder-main { min-width: 0; }
.step-head { margin-bottom: 18px; }
.step-head .progress { height: 3px; background: var(--line); margin-bottom: 10px; }
.step-head .progress span { display: block; height: 100%; background: var(--gold); transition: width .35s ease; }
.step-head p { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.step { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.builder.is-stepped .step[hidden] { display: none; }
.step legend { font: 500 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--serif); padding: 0; margin-bottom: 4px; }
.step-hint { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.field-error { color: var(--sold); font-size: .9rem; margin: 0 0 14px; display: block; }
.field .field-error { margin: 4px 0 0; }
.based-on { display: flex; align-items: center; gap: 12px; background: var(--gold-soft); padding: 10px 14px; font-size: .9rem; margin: 0 0 22px; }
.based-on img { width: 48px; height: 48px; object-fit: cover; flex: 0 0 auto; }

/* Picture cards */
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.pic-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.pic-grid[hidden], .size-group[hidden], .pic-card[hidden] { display: none; }
.pic-card { position: relative; cursor: pointer; display: block; min-width: 0; }
.pic-card input { position: absolute; opacity: 0; pointer-events: none; }
.pic-body { min-width: 0; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s, transform .15s; overflow: hidden; }
.pic-card:hover .pic-body { border-color: #cdbb9c; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(60, 40, 20, .07); }
.pic-art { position: relative; display: block; flex: 0 0 auto; aspect-ratio: 6 / 5; overflow: hidden;
  background: #fffdf9; border-bottom: 1px solid var(--line); }
/* Pinned inside the frame so a picture can never size (and stretch) its card — iOS Safari did that on lazy load. */
.pic-art > img, .pic-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pic-card-sm .pic-art { aspect-ratio: 16 / 9; }
.pic-text { display: grid; gap: 4px; padding: 12px 14px 14px; }
.pic-text strong { font: 500 1.12rem/1.2 var(--serif); }
.pic-text small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.pic-text em { font-style: normal; font-size: .8rem; color: var(--gold); }
.pic-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold);
  color: #fff; display: grid; place-items: center; font-size: .8rem; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.pic-card input:checked + .pic-body { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.pic-card input:checked + .pic-body .pic-check { opacity: 1; transform: scale(1); }
.pic-card input:focus-visible + .pic-body { outline: 2px solid var(--ink); outline-offset: 3px; }
.pic-card input:disabled + .pic-body { opacity: .4; cursor: not-allowed; }
.size-chips { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.pic-card-text .pic-text { padding: 16px; text-align: center; }
.sub { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.qty-row { margin-top: 8px; }
.stepper { display: inline-flex; border: 1px solid var(--line); background: var(--surface); margin-right: 12px; vertical-align: middle; }
.stepper button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper input { width: 52px; border: 0; text-align: center; font: inherit; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; font-size: .88rem; margin-bottom: 16px; }
.row-2 .field { margin-bottom: 0; }
.field small { color: var(--muted); font-size: .8rem; }
.field input:not([type=file]), .field select, .field textarea { font: inherit; font-size: .95rem; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); width: 100%; margin: 0; }
.upload input { font-size: .85rem; }
.step-buttons { display: flex; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }
.step-buttons .btn + .btn { margin-top: 0; }
.step-buttons [hidden] { display: none; }
.step-buttons [data-next], .step-buttons [data-submit] { margin-left: auto; }

/* "Your piece" panel */
.piece-panel { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.piece-panel[hidden] { display: none; }
.piece-art { position: relative; overflow: hidden; aspect-ratio: 6 / 5; background: #fffdf9; border: 1px solid var(--line);
  margin-bottom: 12px; }
.piece-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.piece-art img.pop { animation: pop .35s ease; }
@keyframes pop { from { opacity: .2; transform: scale(.96); } to { opacity: 1; transform: none; } }
.piece-name { font: 500 1.3rem var(--serif); margin: 0 0 10px; }
.piece-chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.piece-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--line);
  border-radius: 20px; font-size: .78rem; background: var(--bg); }
.piece-chips li:not(:has(img, .dot)) { padding-left: 10px; }
.piece-chips img { width: 24px; height: 20px; object-fit: contain; }
.piece-chips .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15);
  box-shadow: inset 0 -3px 5px rgba(0,0,0,.15), inset 0 2px 3px rgba(255,255,255,.4); }
.piece-price { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 2px; }
.piece-price span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.piece-price strong { font: 500 1.9rem var(--serif); }
.piece-price small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.piece-note { font-size: .75rem; color: var(--muted); margin: 12px 0 0; font-style: italic; }
.how-it-works { border-top: 1px solid var(--line); }
.how-it-works .promise-grid { padding: 0; }
.center-block { margin-left: auto; margin-right: auto; }
.request-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.request-card .specs { margin-top: 0; padding-top: 0; border: 0; }
.request-photo { margin-top: 18px; max-height: 320px; width: auto; border: 1px solid var(--line); }
.request-price { display: grid; gap: 8px; align-content: start; border-left: 1px solid var(--line); padding-left: 28px; }
.request-price > span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.request-price strong { font: 500 2.2rem var(--serif); }
.quote-note { font: italic 1.05rem var(--serif); margin: 0 0 8px; }
.customise-link { display: inline-block; margin-top: 14px; font-size: .88rem; color: var(--gold); }
.design-promo { background: var(--gold-soft); }
.design-promo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.design-promo h2 { margin: 0 0 4px; }
.design-promo p { margin: 0; color: var(--muted); }

/* Members */
.account-link { display: flex; color: inherit; }
.tag-early { background: var(--gold); color: #fff; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wish-btn { background: none; border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; display: grid;
  place-items: center; cursor: pointer; color: var(--muted); flex: 0 0 auto; margin-top: 6px; transition: color .2s, border-color .2s; }
.wish-btn svg { fill: none; }
.wish-btn:hover, .wish-btn.on { color: #b23a48; border-color: #e3b7bd; }
.wish-btn.on svg { fill: #b23a48; }
.early-box { background: var(--gold-soft); padding: 16px 18px; margin-bottom: 14px; }
.early-box p { margin: 0 0 6px; }
.account-auth { padding-top: 48px; padding-bottom: 80px; }
.auth-card { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); padding: 34px 32px; }
.auth-card h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.auth-form { margin: 22px 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 4px 0 18px; line-height: 1.4; }
.check input { margin-top: 3px; accent-color: var(--gold); }
.perks { list-style: none; padding: 16px 0 0; margin: 0 0 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.perks strong { color: var(--ink); font-weight: 500; }
.perks li::before { content: '✦'; color: var(--gold); margin-right: 8px; }
.btn.danger { background: #8a3b2e; border-color: #8a3b2e; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.account-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; overflow-x: auto; }
.account-tabs a { text-decoration: none; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.account-section { padding-top: 36px; padding-bottom: 8px; scroll-margin-top: 90px; }
.account-section h2 { font-size: 1.6rem; margin-bottom: 14px; }
.account-row { display: grid; grid-template-columns: 1.1fr 2fr .8fr 1.1fr; gap: 14px; align-items: center; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; text-decoration: none; font-size: .9rem; }
.account-row > div:first-child { display: grid; }
a.account-row:hover { border-color: #cdbb9c; }
.status { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 12px;
  background: var(--gold-soft); margin-right: 8px; }
.status-shipped, .status-delivered, .status-paid { background: #e3eee6; color: #2f5d46; }
.details-form { max-width: 760px; }
.danger-zone { margin-top: 28px; }
.footer-h-gap { margin-top: 22px !important; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid h4 { font: 400 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-grid a:not(.logo) { display: block; text-decoration: none; font-size: .92rem; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); }

/* Tablet */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .piece-panel { position: static; display: grid; grid-template-columns: 120px 1fr; gap: 0 16px; padding: 14px; }
  .piece-panel .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
  .piece-art { grid-row: span 3; align-self: start; width: 120px; height: 100px; aspect-ratio: auto; margin: 0; }
  .piece-name { font-size: 1.1rem; margin-bottom: 6px; }
  .piece-chips { margin-bottom: 8px; }
  .piece-price { grid-column: 1 / -1; margin-top: 10px; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 12px; }
  .piece-price small, .piece-note { grid-column: 1 / -1; }
  .quotes-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .summary { position: static; }
}

/* Collapsed menu */
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* Phone */
@media (max-width: 760px) {
  .header-row { height: 60px; }
  .logo { font-size: 1.35rem; }
  .logo span { display: none; }
  .header-tools { gap: 12px; }
  .currency button { padding: 4px 7px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card-body h3 { font-size: 1rem; }
  .promise-grid { grid-template-columns: 1fr; gap: 24px; }
  .quotes-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .row-2, .request-card { grid-template-columns: 1fr; }
  .account-row { grid-template-columns: 1fr auto; }
  .account-row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .auth-card { padding: 26px 20px; }
  .request-price { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .pic-grid, .pic-grid-sm, .size-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* iOS Safari zooms the whole page when a field's text is under 16px. */
  body input:not([type=checkbox]):not([type=radio]):not([type=file]), body select, body textarea { font-size: 16px; }
  .pic-text { padding: 10px 10px 12px; }
  .pic-text strong { font-size: 1rem; }
  .pic-text small { font-size: .76rem; }
  .stats { flex-direction: column; gap: 4px; }
  .stats span + span::before { content: none; }
  .toolbar .code-search { width: 100%; max-width: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-photos { aspect-ratio: 4 / 3; }
  .product { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .line { grid-template-columns: 72px 1fr; }
  .line-img img, .line-img .noimg { width: 72px; height: 90px; }
  .line-price { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (min-width: 1101px) { .main-nav .nav-cat { display: none; } }
