:root {
  --bg: #0c0b0a;
  --surface: #151311;
  --surface-2: #1c1916;
  --ink: #ebe4d6;
  --muted: #988f82;
  --line: #2b2723;
  --brass: #c9a35c;
  --brass-hi: #e6c789;
  --brass-ink: #14110c;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,163,92,.08), transparent 70%);
  background-repeat: no-repeat;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--brass-ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(12,11,10,.88); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 70px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { font: 600 1.15rem/1 var(--display); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.brand::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--brass); transform: rotate(45deg); flex: none; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--brass); }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(36px, 5vw, 64px); text-align: center; }
.eyebrow { font: 500 .75rem/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin: 0 0 22px; }
.hero h1 { font: 500 clamp(2.3rem, 6.5vw, 5rem)/1.04 var(--display); letter-spacing: .02em; margin: 0 auto 22px; max-width: 16ch; }
.hero p.lead { font: 400 clamp(1.15rem, 2.2vw, 1.45rem)/1.5 var(--serif); font-style: italic; color: var(--muted); max-width: 44ch; margin: 0 auto 34px; }
.hero .btn-row { justify-content: center; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(24px, 5vw, 64px); margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; list-style: none; }
.stats li { display: grid; gap: 4px; }
.stats strong { font: 500 clamp(1.4rem, 3vw, 1.9rem)/1 var(--display); color: var(--brass-hi); }
.stats span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-proof { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin-left: .45em; border: 1px solid currentColor; border-radius: 50%; font-size: .85em; letter-spacing: 0; line-height: 1; text-decoration: none; color: var(--muted); vertical-align: middle; opacity: .8; transition: color .15s, opacity .15s; }
.stat-proof:hover, .stat-proof:focus-visible { color: var(--brass-hi); opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 2px; border: 1px solid var(--brass);
  background: var(--brass); color: var(--brass-ink); text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--brass); color: var(--brass-hi); background: transparent; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Featured */
.featured { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.2vw, 16px); margin-bottom: clamp(64px, 9vw, 120px); }
.featured a { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface); text-decoration: none; }
.featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; filter: saturate(.92); }
.featured a:hover img { transform: scale(1.04); filter: none; }
.featured span { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; font: 500 .85rem/1.2 var(--display); letter-spacing: .04em; background: linear-gradient(transparent, rgba(0,0,0,.85)); }

/* Section heads + filters */
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font: 500 clamp(1.7rem, 3.5vw, 2.6rem)/1.1 var(--display); letter-spacing: .04em; margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); font: italic 1.15rem var(--serif); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filters button, .filters .filter-link {
  font: 500 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border-radius: 2px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.filters button:hover, .filters .filter-link:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed="true"], .filters .filter-link[aria-current="page"] { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.filters small { opacity: .65; margin-left: 4px; font-size: .9em; }
.toolbar { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: -12px 0 28px; }
.toolbar .search-input { width: min(340px, 100%); font-size: .9rem; padding: 9px 14px; }
.toolbar select { width: auto; font-size: .85rem; padding: 9px 12px; }
.cat-index { text-align: center; color: var(--muted); font-size: .8rem; line-height: 1.9; margin: -56px auto 72px; max-width: 72ch; }
.cat-index a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.cat-index a:hover { color: var(--brass-hi); border-color: var(--brass); }
.crumbs-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 22px; color: var(--muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.crumbs-nav a { color: var(--muted); text-decoration: none; }
.crumbs-nav a:hover { color: var(--brass-hi); }
.crumbs-nav [aria-current="page"] { color: var(--ink); }

/* Gallery grid */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: clamp(16px, 2vw, 28px); padding-bottom: 40px; }
.card { text-decoration: none; display: block; }
.card .frame { aspect-ratio: 4/5; overflow: hidden; background: var(--surface); position: relative; border: 1px solid var(--line); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.card .meta { padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 { font: 500 1.02rem/1.3 var(--serif); font-size: 1.15rem; margin: 0; }
.card .sub { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 3px 0 0; }
.card .price { color: var(--brass-hi); white-space: nowrap; font-size: .95rem; }
.badge { position: absolute; top: 10px; left: 10px; font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; background: rgba(0,0,0,.75); color: var(--ink); }
.more { display: flex; justify-content: center; padding-bottom: 110px; }

/* Detail */
.back { display: inline-block; margin: 28px 0; color: var(--muted); text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.back:hover { color: var(--brass-hi); }
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-bottom: 80px; align-items: start; }
.detail .frame { background: var(--surface); border: 1px solid var(--line); }
.detail .frame img { width: 100%; }
.detail .eyebrow { margin-bottom: 14px; }
.detail h1 { font: 500 clamp(1.9rem, 4vw, 2.9rem)/1.1 var(--display); margin: 0 0 18px; letter-spacing: .02em; }
.detail .big-price { font: 500 1.9rem/1 var(--serif); color: var(--brass-hi); margin: 0 0 26px; }
.detail .desc { font: 1.2rem/1.5 var(--serif); color: var(--muted); margin: 0 0 26px; }
/* Finish picker on a piece's page */
.finish-pick { margin: -6px 0 24px; }
.finish-label { margin: 0 0 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.finish-name { color: var(--ink); letter-spacing: .06em; }
.finish-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.finish-swatches button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background-size: cover; background-position: center; cursor: pointer; padding: 0; outline-offset: 3px; }
.finish-swatches button:hover { border-color: var(--muted); }
.finish-swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--brass); }
.cart-finish { font-size: .82rem; }
/* Size dropdown on a piece's page */
.size-pick { margin: -6px 0 24px; max-width: 320px; }
.size-pick select { font-size: .95rem; padding: 11px 12px; }
.big-price .from, .price .from { font-size: .62em; color: var(--muted); letter-spacing: .04em; }
/* Make an offer */
.offer-form { margin-top: 18px; border: 1px solid var(--line); border-left: 2px solid var(--brass); padding: 20px; background: var(--surface); gap: 14px; }
.offer-form[hidden] { display: none; }
.offer-head { margin: 0; font-size: .95rem; color: var(--ink); }
.offer-amt { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1.1rem; }
.offer-amt input { max-width: 180px; }
.offer-done { margin: 0; color: var(--brass-hi); line-height: 1.6; }
.offer-done strong { color: var(--ink); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; max-width: 1000px; }
.offer-grid .frame { background: var(--surface); border: 1px solid var(--line); }
.offer-grid .frame img { width: 100%; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; } .offer-form .row { grid-template-columns: 1fr; } }
.specs { border-top: 1px solid var(--line); margin: 28px 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--brass); padding: 18px 20px; font-size: .9rem; color: var(--muted); }
.info-box strong { color: var(--ink); }
.info-box a { color: var(--brass-hi); }
/* "Print it yourself" STL box on a piece's page */
.stl-box { margin-top: 18px; border: 1px solid var(--line); padding: 20px; font-size: .9rem; color: var(--muted); }
.stl-box h2 { margin: 0 0 8px; font: 500 1.25rem/1.2 var(--display); letter-spacing: .04em; color: var(--ink); }
.stl-box p { margin: 0 0 10px; }
.stl-box a:not(.btn) { color: var(--brass-hi); }
.stl-terms-h { color: var(--ink); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 14px !important; }
.stl-terms { margin: 0 0 12px; padding-left: 18px; }
.stl-terms li { margin: 4px 0; }
.stl-agree { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); margin: 14px 0; cursor: pointer; text-transform: none; letter-spacing: normal; font-size: .9rem; font-weight: 500; }
.stl-agree input { margin-top: 3px; accent-color: var(--brass); width: 16px; height: 16px; flex: none; }
.stl-go.is-disabled { opacity: .4; cursor: not-allowed; }
.detail-side { position: sticky; top: 94px; }
.related { padding-bottom: 110px; }
.related h2 { font: 500 1.4rem/1 var(--display); letter-spacing: .06em; margin: 0 0 24px; }

/* Pages */
.page { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 110px; }
.page h1 { font: 500 clamp(2.1rem, 5vw, 3.6rem)/1.05 var(--display); margin: 0 0 22px; letter-spacing: .02em; }
.lede { font: italic 1.35rem/1.5 var(--serif); color: var(--muted); max-width: 48ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose p { max-width: 60ch; }
/* Customer reviews (filled by reviews.js) */
.reviews { margin-bottom: clamp(64px, 9vw, 120px); }
.review-stars { color: var(--brass); letter-spacing: .12em; }
.reviews-head .eyebrow { font: 500 .75rem/1.6 var(--sans); color: var(--brass); margin-bottom: 14px; }
.reviews-summary .review-stars { font-style: normal; margin-right: 6px; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.review { margin: 0; padding: 24px 22px 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; flex: 1; font: 400 1.2rem/1.45 var(--serif); color: var(--ink); }
.review figcaption { font-size: .82rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.review-name { color: var(--ink); font-weight: 500; }
.review-piece { color: var(--brass-hi); text-decoration: none; font: 500 .8rem/1.3 var(--display); letter-spacing: .04em; }
a.review-piece:hover { text-decoration: underline; }
.reviews-more { text-align: center; margin: 24px 0 0; font-size: .9rem; }
.reviews-more a { color: var(--brass-hi); }
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .review-grid { grid-template-columns: 1fr; } }

/* Email signup block */
.signup-box { max-width: 640px; margin: clamp(56px, 8vw, 110px) auto; padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 40px); text-align: center; border: 1px solid var(--line); background: var(--surface, transparent); }
.signup-box h2 { font: 500 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--display); letter-spacing: .04em; margin: 0 0 10px; }
.signup-lede { color: var(--muted); margin: 0 auto 22px; max-width: 46ch; }
.signup { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.signup input[type=email] { flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 0 14px; font-size: 1rem; }
.signup .btn { min-height: 48px; }
.signup-msg { min-height: 1.4em; margin: 12px 0 0; font-size: .95rem; }
.signup-msg.is-ok { color: var(--brass-hi); }
.signup-msg.is-error { color: #e08a7a; }
.signup-fine { color: var(--muted); font-size: .8rem; margin: 10px auto 0; max-width: 52ch; }
.signup-fine a { color: var(--brass-hi); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.policy { max-width: 70ch; margin-left: auto; margin-right: auto; }
.policy h1 { margin-bottom: 6px; }
.policy h2 { font: 500 1.25rem/1.2 var(--display); letter-spacing: .04em; margin: 38px 0 10px; color: var(--ink); }
.policy p, .policy li { max-width: 66ch; color: var(--ink); line-height: 1.7; }
.policy ul { padding-left: 1.2em; margin: 8px 0 14px; }
.policy li { margin-bottom: 6px; }
.policy .updated { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.policy a { color: var(--brass-hi); }
.portrait { aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0; }
.process div { border-top: 1px solid var(--brass); padding-top: 14px; }
.process strong { display: block; font: 500 1rem var(--display); letter-spacing: .06em; margin-bottom: 6px; }
.process span { color: var(--muted); font-size: .9rem; }

/* Form */
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: 16px/1.4 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; width: 100%;
  letter-spacing: normal; text-transform: none;
}
input:focus, select:focus, textarea:focus { outline: 1px solid var(--brass); border-color: var(--brass); }
textarea { min-height: 150px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-done { padding: 22px; border: 1px solid var(--brass); color: var(--brass-hi); display: none; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .82rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brass-hi); }

@media (max-width: 900px) {
  .featured { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .detail, .two-col { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .row, .process { grid-template-columns: 1fr; }
  .site-header { position: static; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 14px; }
  .nav { gap: 0 16px; font-size: .75rem; letter-spacing: .1em; flex-wrap: wrap; }
  .nav a { white-space: nowrap; padding: 12px 0; }
  .featured span { font-size: .72rem; padding: 28px 8px 8px; }
  .detail .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card h3 { font-size: 1rem; }
  .card .meta { flex-direction: column; gap: 2px; }
}

/* Cart */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 11px; border-radius: 2px; cursor: pointer; }
.cart-btn:hover { border-color: var(--brass); color: var(--brass-hi); }
.cart-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brass); color: var(--brass-ink); font: 600 .7rem/18px var(--sans); text-align: center; }
.cart-count[hidden] { display: none; }
.cart-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(420px, 100%); z-index: 50; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.cart-drawer.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font: 500 1.2rem/1 var(--display); letter-spacing: .08em; }
.cart-close { background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.cart-close:hover { color: var(--ink); }
.cart-list { flex: 1 1 auto; min-height: 150px; overflow-y: auto; padding: 8px 22px; }
.cart-drawer { overflow-y: auto; } /* short screens: the whole drawer scrolls so items stay visible */
.cart-empty { text-align: center; color: var(--muted); padding: 48px 0; font: italic 1.2rem/1.6 var(--serif); }
.cart-empty a { color: var(--brass-hi); }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); }
.cart-item-info { display: grid; gap: 4px; min-width: 0; }
.cart-item-info > a { text-decoration: none; font: 500 1.05rem/1.25 var(--serif); }
.cart-item strong { font-weight: 500; color: var(--brass-hi); white-space: nowrap; }
.muted { color: var(--muted); font-size: .85rem; }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty button { width: 28px; height: 28px; background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer; border-radius: 2px; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 26px; text-align: center; font-size: .9rem; }
.qty .rm { width: auto; border: 0; color: var(--muted); font-size: .78rem; text-decoration: underline; margin-left: 8px; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-row { display: flex; justify-content: space-between; }
.cart-row strong { font: 500 1.3rem/1 var(--serif); color: var(--brass-hi); }
.cart-checkout { width: 100%; margin-top: 6px; }
.cart-note { margin: 0; text-align: center; font-size: .78rem; color: var(--muted); }
.cart-err { margin: 0; padding: 10px 12px; border: 1px solid #8a3b2e; color: #e8a493; font-size: .85rem; }
.cart-err[hidden] { display: none; }
.cart-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; }
.cart-zone select { width: auto; max-width: 65%; font-size: .85rem; padding: 7px 10px; }
.cart-paypal[hidden], .pp-note[hidden] { display: none; }
.cart-paypal.is-empty { opacity: .4; pointer-events: none; }
.cart-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin: 2px 0 8px; }
.cart-or::before, .cart-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .site-header .wrap { position: relative; }
  .brand { letter-spacing: .08em; font-size: 1.02rem; padding-right: 64px; }
  .cart-btn { position: absolute; right: var(--gutter); top: 10px; }
  .qty button { width: 40px; height: 40px; }
  .qty .rm { width: auto; padding: 12px 6px; }
  .cart-close { min-width: 44px; min-height: 44px; }
}

/* Sales: crossed-out regular price, "20% off" badge, banner above the header, savings in the cart */
.sale-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
s.was { color: var(--muted); font-weight: 400; text-decoration-thickness: 1px; margin-right: .25em; }
.card .price .now, .big-price .now { color: var(--brass-hi); }
.badge.sale { background: var(--brass); color: var(--brass-ink); }
.detail .big-price s.was { font-size: .62em; margin-right: .35em; }
.sale-note { margin: -14px 0 22px; font-size: .92rem; color: var(--brass-hi); }
.sale-note strong { font-weight: 600; }
.sale-bar { display: block; background: var(--brass); color: var(--brass-ink); text-align: center; text-decoration: none; padding: 9px 16px; font: 600 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.sale-bar:hover { background: var(--brass-hi); }
.cart-save { color: var(--brass-hi); font-size: .9rem; }
.cart-save[hidden] { display: none; }

/* Inline 3D turntable on piece pages */
.detail .frame { position: relative; }
.frame-3d-btn { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--brass); border-radius: 2px; background: rgba(12,11,10,.86); backdrop-filter: blur(8px); color: var(--brass-hi); font: 600 .72rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s; }
.frame-3d-btn:hover { background: var(--brass); color: var(--brass-ink); }
.viewer3d-stage { position: relative; width: 100%; aspect-ratio: 4/5; background: radial-gradient(ellipse 75% 65% at 50% 42%, #1d1915, #090807 80%); overflow: hidden; }
.viewer3d-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.viewer3d-stage canvas:active { cursor: grabbing; }
.viewer3d-status { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font: italic 1.1rem var(--serif); color: var(--muted); pointer-events: none; }
.viewer3d-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.viewer3d-bar > * { pointer-events: auto; }
.viewer3d-hint { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(12,11,10,.76); border: 1px solid var(--line); padding: 7px 10px; border-radius: 2px; backdrop-filter: blur(8px); }
.viewer3d-close { background: rgba(12,11,10,.86); border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; border-radius: 2px; font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.viewer3d-close:hover { border-color: var(--brass); color: var(--brass-hi); }

/* Finish guide + GolemSculpt showcase & FAQ */
.finish-hint { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.faq-list { display: grid; gap: 12px; margin: 24px 0 36px; max-width: 72ch; }
.faq-list details { border: 1px solid var(--line); background: var(--surface); padding: 14px 18px; }
.faq-list summary { cursor: pointer; font: 500 1rem/1.3 var(--display); letter-spacing: .04em; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brass); font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 12px 0 2px; color: var(--muted); font-size: .95rem; }
.sculpt-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 680px; }
.sculpt-badges span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 6px 11px; border-radius: 2px; background: var(--surface); }
.empty-msg { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 16px; font: italic 1.2rem/1.5 var(--serif); }

/* Sale countdown at the top of the home page (app.js renderSaleCountdown) */
.sale-countdown { display: inline-grid; justify-items: center; gap: 10px; margin: 0 auto 30px; padding: 16px 26px 14px; border: 1px solid var(--brass); background: rgba(200,160,90,.06); text-decoration: none; color: var(--ink); }
.sale-countdown:hover { background: rgba(200,160,90,.12); }
.sc-title { font: 600 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-hi); }
.sc-clock { display: flex; gap: 10px; }
.sc-unit { display: grid; justify-items: center; min-width: 54px; }
.sc-unit b { font: 500 clamp(1.6rem, 4vw, 2.2rem)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.sc-unit small { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sc-unit + .sc-unit { border-left: 1px solid var(--line); padding-left: 10px; }
.sc-ends { font: italic 1rem/1.3 var(--serif); color: var(--muted); }
.sale-left { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Menu button: only on phones, and only when app.js has set it up */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .site-header.has-menu .wrap { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .site-header.has-menu .brand { font-size: .84rem; letter-spacing: .06em; gap: 9px; padding-right: 104px; min-height: 40px; white-space: nowrap; }
  .site-header.has-menu .cart-btn { top: 10px; min-height: 40px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 10px; right: calc(var(--gutter) + 52px); width: 42px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); cursor: pointer; }
  .menu-btn:hover { border-color: var(--brass); }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .nav-open .menu-icon { background: transparent; }
  .nav-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  /* Closed: the links hide; the cart button (which lives in the nav) stays in the header row */
  .site-header.has-menu:not(.nav-open) .nav { display: contents; }
  .site-header.has-menu:not(.nav-open) .nav a { display: none; }
  .site-header.has-menu.nav-open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-top: 4px; }
  .site-header.has-menu.nav-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
  .site-header.has-menu.nav-open .nav a:last-child { border-bottom: 0; }

  /* Hero: shorter, two side-by-side buttons (the sculpt app and custom orders are in the menu) */
  .hero { padding-top: 36px; padding-bottom: 28px; }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .22em; margin-bottom: 14px; }
  .hero h1 { margin-bottom: 14px; }
  .hero p.lead { font-size: 1.05rem; margin-bottom: 22px; }
  .hero .btn-row { flex-wrap: nowrap; gap: 8px; }
  .hero .btn-row .btn { flex: 1 1 0; padding-left: 10px; padding-right: 10px; text-align: center; font-size: .68rem; letter-spacing: .1em; }
  .hero .btn-row .btn:nth-child(n+3) { display: none; }
  .stats { margin-top: 26px; flex-wrap: nowrap; gap: 14px; }
  .stats li { flex: 1 1 0; text-align: center; }
  .stats strong { font-size: 1.3rem; }
  .stats span { font-size: .6rem; letter-spacing: .08em; }
  .sale-countdown { padding: 12px 14px 10px; margin-bottom: 22px; }
  .sc-unit { min-width: 44px; }

  /* Filters: one row that scrolls sideways instead of five rows of buttons */
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 0 var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button, .filters .filter-link { flex: none; }
}

/* Quick 3D: turntable popup from collection cards */
.card-cell { position: relative; }
.quick3d-btn { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 7px 10px; border: 1px solid var(--brass); border-radius: 2px; background: rgba(12,11,10,.82); backdrop-filter: blur(6px); color: var(--brass-hi); font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s; }
.quick3d-btn:hover, .quick3d-btn:focus-visible { background: var(--brass); color: var(--brass-ink); }
html.quick3d-open { overflow: hidden; }
.quick3d { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(5,4,3,.82); backdrop-filter: blur(4px); animation: quick3d-in .18s ease; }
@keyframes quick3d-in { from { opacity: 0; } }
.quick3d-panel { width: min(520px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface, #12100e); border: 1px solid var(--line); }
.quick3d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px 10px; }
.quick3d-head .eyebrow { margin: 0 0 4px; }
.quick3d-head h2 { margin: 0; font: 500 1.3rem/1.2 var(--serif); }
.quick3d-x { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 2px; }
.quick3d-x:hover { border-color: var(--brass); color: var(--brass-hi); }
.quick3d-stage { min-height: 0; flex: 1 1 auto; display: flex; justify-content: center; }
.quick3d-stage .viewer3d-stage { max-height: calc(100dvh - 190px); width: auto; height: 100%; max-width: 100%; aspect-ratio: 4/5; flex: 1 1 auto; }
.quick3d .viewer3d-close { display: none; }
.quick3d .viewer3d-bar { justify-content: center; }
.quick3d-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 14px; }
.quick3d-foot .price { color: var(--brass-hi); font-size: 1.05rem; }
