/* =====================================================================
   3D Home Fidelis — storefront
   Brand, unchanged: navy #14205A · gold #C99A1B · red #C8202B,
   Playfair Display + DM Sans (the faces the v1.x catalog already used).
   Signature: product photos sit in a church niche — a pointed arch.
   ===================================================================== */

@font-face { font-family: 'Playfair Display'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/playfair-display-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/playfair-display-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/playfair-display-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(/fonts/dm-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #14205A;
  --navy-deep: #0C1438;
  --gold: #C99A1B;
  --gold-ink: #7A5A00;
  --gold-tint: #F4EAD0;
  --red: #C8202B;
  --stone: #EEF0F5;
  --paper: #FFFFFF;
  --ink: #171C36;
  --muted: #565E80;
  --line: #D9DDE8;
  --ok: #1E6B4F;
  --ok-tint: #E2F1E9;
  --wa: #187A44;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --r: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` always wins over a component's display (e.g. the delivery address while Pickup is chosen) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr, .defs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }

.preview-bar { background: var(--red); color: #fff; text-align: center; font: 700 .82rem/1 var(--body); letter-spacing: .08em; padding: 9px 12px; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px;
  padding: 12px 22px; font: 700 .95rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { background: #B88A10; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-deep); }
.btn.ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn.ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa:hover { background: #12613A; }
.btn.small { padding: 8px 16px; font-size: .88rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------- header ---------------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(201,154,27,.35); }
.head-in { max-width: var(--wrap); margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 18px; }
.brand img { height: 60px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 10px 11px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.main-nav a:hover { color: var(--navy); background: var(--stone); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; background: var(--stone); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; }
.search input { border: 0; background: transparent; font: inherit; font-size: .92rem; width: 190px; padding: 7px 0; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,27,.25); }
.search button, .cart-btn, .menu-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--navy); position: relative; }
.search button svg, .cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:hover, .menu-btn:hover { background: var(--stone); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font: 700 .7rem/19px var(--body); text-align: center; }
.lang { font: 700 .8rem/1 var(--body); letter-spacing: .06em; text-decoration: none; color: var(--navy); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 11px; }
.lang:hover { border-color: var(--navy); }
.menu-btn { display: none; flex-direction: column; gap: 4px; }
.menu-btn i { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

@media (max-width: 1080px) {
  .search input { width: 130px; }
}
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--gold); box-shadow: 0 18px 30px rgba(12,20,56,.15); }
  .site-head.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  .search { display: none; }
  .brand img { height: 48px; }
  .head-in { gap: 10px; padding: 6px 14px; }
}

/* ---------------- niches (the signature) ---------------- */
.niche { display: block; position: relative; aspect-ratio: 3 / 4; clip-path: url(#arch); background: linear-gradient(180deg, #E4E7EF, #D9DDE7); overflow: hidden; }
.niche.soft { clip-path: url(#arch-soft); }
.niche img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3rem; color: var(--gold); }

/* ---------------- hero ---------------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; border-bottom: 4px solid var(--gold); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 78% 30%, rgba(201,154,27,.22), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-eyebrow { font: 700 .8rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 15ch; }
.hero-tag { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.45rem); color: #E9D9A8; margin: 6px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: block; justify-self: center; width: min(100%, 380px); text-decoration: none; }
/* the gold line follows the niche itself, whatever the caption does */
.hero-frame { --hero-pad: 14px; position: relative; display: block; padding: var(--hero-pad); }
/* Inline CSS polygon clips the HTML photograph. Both polygon and gold SVG
   polyline are sampled from the same arch curves in render.js. */
.hero-niche { width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.arch-line { position: absolute; left: var(--hero-pad); top: var(--hero-pad); width: calc(100% - 2 * var(--hero-pad)); height: calc(100% - 2 * var(--hero-pad)); overflow: visible; fill: none; stroke: var(--gold); stroke-width: 5; stroke-linejoin: round; pointer-events: none; z-index: 2; }
.arch-line polyline { vector-effect: non-scaling-stroke; }
/* photo position, zoom and fit come from Settings → Catalog Design; never stretched */
.hero-niche img { object-fit: cover; object-position: var(--hx, 50%) var(--hy, 30%); transform: scale(var(--hz, 1)); transform-origin: var(--hx, 50%) var(--hy, 30%); transition: none; }
.hero-niche.fit-contain img { object-fit: contain; }
.hero-niche.fit-contain { background: radial-gradient(120% 90% at 50% 30%, #F4F5F9, #DCE0EA); }
.hero-caption { display: block; text-align: center; margin-top: 4px; font: 500 italic 1rem/1.3 var(--display); color: #E9D9A8; }
.hero-in.no-art { grid-template-columns: 1fr; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; gap: 34px; }
  .hero-art { width: min(78%, 320px); }
}

/* ---------------- bands & grids ---------------- */
.band { padding: 56px 0; }
.band + .band { padding-top: 0; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.band-head h2 { margin: 0; }
.more { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.eyebrow { display: block; font: 700 .72rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 16px 34px rgba(20,32,90,.12); transform: translateY(-2px); }
.card:hover .niche img { transform: scale(1.04); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card .niche { margin: 12px 12px 0; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 16px; flex: 1; }
.card-name { font: 600 1.08rem/1.25 var(--display); color: var(--navy); }
/* short description: two lines on desktop, cards stay aligned when texts differ */
.card-desc { font-size: .88rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.price { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; color: var(--muted); font-size: .8em; }
.price.por { font-weight: 500; color: var(--muted); font-size: .9rem; }
.price.big { font: 700 1.7rem/1.2 var(--display); display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price.big.por { font: 500 1.1rem/1.3 var(--body); }
.price .taxnote { font: 500 .82rem/1 var(--body); color: var(--muted); }
.avail { display: inline-block; font: 700 .7rem/1 var(--body); letter-spacing: .03em; padding: 5px 8px; border-radius: 999px; }
.avail.ok { color: var(--ok); background: var(--ok-tint); }
.avail.mto { color: var(--gold-ink); background: var(--gold-tint); }
.avail.off { color: var(--muted); background: var(--stone); }
.avail.cz { color: var(--navy); background: #E4E8F5; }
@media (max-width: 520px) { .card-body { padding: 10px 12px 14px; } .card .niche { margin: 8px 8px 0; } .card-name { font-size: .98rem; } .card-desc { font-size: .82rem; -webkit-line-clamp: 3; line-clamp: 3; min-height: 4.35em; } }

/* collections */
.colls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.colls.big { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 60px; }
@media (max-width: 900px) { .colls, .colls.big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .colls, .colls.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.coll { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit; }
.coll .niche { width: 100%; border-bottom: 3px solid var(--gold); }
.coll:hover .niche img { transform: scale(1.05); }
.coll-name { margin-top: 12px; font: 600 1.1rem/1.2 var(--display); color: var(--navy); }
.coll-n { font-size: .85rem; color: var(--muted); }
.coll-d { font-size: .9rem; color: var(--muted); margin-top: 6px; }

.gifts { background: var(--gold-tint); padding: 44px 0 !important; margin: 20px 0 56px; }
.gifts-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gifts h2 { margin-bottom: 6px; }
.gifts p { max-width: 60ch; margin: 0; color: #3D3A2A; }

.about-in, .about-page { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.about-in img, .about-page img { width: 180px; height: auto; justify-self: center; filter: drop-shadow(0 12px 20px rgba(12,20,56,.18)); }
.about-page { padding: 20px 20px 50px; }
.tagline { font: 500 italic 1.3rem/1.4 var(--display); color: var(--navy); border-left: 3px solid var(--gold); padding-left: 16px; }
@media (max-width: 640px) { .about-in, .about-page { grid-template-columns: 1fr; text-align: center; } .about-in img, .about-page img { width: 130px; } .tagline { border-left: 0; padding: 0; } }

.band.contact-band { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 52px; }
.contact-in { text-align: center; }
.contact-in p { color: var(--muted); max-width: 56ch; margin: 0 auto 20px; }
.contact-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------------- page heads ---------------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 38px 0 26px; margin-bottom: 26px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { margin: 0; }

/* ---------------- shop ---------------- */
.shop { padding-bottom: 60px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.chip { flex: none; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 15px; font-weight: 500; font-size: .92rem; }
.chip small { color: var(--muted); margin-left: 3px; }
.chip:hover { border-color: var(--navy); }
.chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-current="true"] small { color: #C8CEEA; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.filters input[type=search], .filters select { font: inherit; font-size: .95rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--paper); color: var(--ink); }
.f-search { flex: 1 1 220px; display: flex; }
.f-search input { width: 100%; }
.f-sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.f-check { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.f-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.count { color: var(--muted); font-size: .92rem; margin: 6px 0 18px; }
.empty { text-align: center; padding: 50px 20px; background: var(--paper); border-radius: var(--r); }

/* ---------------- product ---------------- */
.product { padding-top: 18px; padding-bottom: 50px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: start; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; gap: 26px; } }
.gallery { position: sticky; top: 88px; }
@media (max-width: 860px) { .gallery { position: static; } }
.stage { position: relative; background: var(--paper); border-radius: var(--r); padding: 22px 22px 0; }
.stage-btn { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.stage .niche { max-width: 520px; margin: 0 auto; }
.stage .niche img { object-fit: contain; background: #E9ECF3; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(20,32,90,.82); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.g-nav.prev { left: 10px; } .g-nav.next { right: 10px; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 4px; }
.thumbs button { flex: none; width: 66px; height: 88px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--paper); cursor: pointer; opacity: .75; }
.thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 6px 0 4px; }
.alt-name { font: 500 italic 1.05rem/1.4 var(--display); color: var(--muted); margin-bottom: 14px; }
.pd-price { margin: 10px 0 10px; }
.pd-avail { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-desc { border-top: 1px solid var(--line); padding-top: 16px; color: #2C3150; }
.pd-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 12px 0; }
.pd-facts dt { font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd-facts dd { margin: 4px 0 0; font-weight: 500; }
.lead-time { font-size: .92rem; color: var(--gold-ink); }
.buy { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; margin: 14px 0; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 1.2rem; color: var(--navy); cursor: pointer; }
.stepper button:hover { background: var(--stone); }
.stepper input { width: 52px; text-align: center; border: 0; font: 700 1rem var(--body); background: transparent; -moz-appearance: textfield; }
  .field .stepper input { border: 0; box-shadow: none; padding: 0; width: 52px; border-radius: 0; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.related { margin-top: 56px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(8,12,34,.94); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.7rem; cursor: pointer; }

/* ---------------- forms ---------------- */
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field input:not([type=radio]):not([type=checkbox]), .field textarea, .field select { width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--paper); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,27,.22); }
.field [aria-invalid="true"] { border-color: var(--red) !important; }
.field.qty { grid-template-columns: auto; justify-items: start; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radios legend { width: 100%; margin-bottom: 6px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.radios input { width: 18px; height: 18px; accent-color: var(--navy); }
.err { color: var(--red); font-style: normal; font-size: .85rem; min-height: 0; }
.err:empty { display: none; }
.form-err { background: #FBE9EA; color: #8E1219; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.inq { display: grid; gap: 16px; background: var(--paper); border-radius: var(--r); padding: 22px; border: 1px solid var(--line); }
.inq h2 { font-size: 1.4rem; margin: 0; }

/* ---------------- cart ---------------- */
.cart { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 30px; align-items: start; padding-bottom: 60px; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } }
.cart-lines { display: grid; gap: 12px; }
.cline { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; background: var(--paper); border-radius: var(--r); padding: 14px; align-items: start; }
.cline .niche { width: 84px; }
.cline h3 { font: 600 1.05rem/1.3 var(--display); margin: 0 0 4px; }
.cline h3 a { text-decoration: none; color: var(--navy); }
.cline .meta { font-size: .88rem; color: var(--muted); }
.cline .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.cline textarea { width: 100%; margin-top: 8px; font: inherit; font-size: .9rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.cline .line-price { font-weight: 700; color: var(--navy); white-space: nowrap; text-align: right; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--red); font: 500 .88rem var(--body); text-decoration: underline; cursor: pointer; }
.cart-side { display: grid; gap: 14px; position: sticky; top: 88px; }
@media (max-width: 900px) { .cart-side { position: static; } }
.sum { display: flex; justify-content: space-between; align-items: baseline; background: var(--paper); border-radius: var(--r); padding: 16px 18px; font-size: 1.05rem; }
.sum strong { font: 700 1.4rem var(--display); color: var(--navy); }
@media (max-width: 520px) { .cline { grid-template-columns: 64px 1fr; } .cline .niche { width: 64px; } .cline .line-price { grid-column: 2; text-align: left; } }

/* ---------------- thanks / custom / track ---------------- */
.thanks { text-align: center; padding: 56px 20px 50px; }
.seal { width: 74px; height: 92px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 2rem; color: var(--gold); background: var(--navy); clip-path: url(#arch); }
.closed-logo { width: 220px; height: auto; margin: 0 auto 22px; }
.ref-label { font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ref { font: 700 2rem/1.2 var(--display); color: var(--navy); letter-spacing: .06em; }
.custom { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: start; padding-bottom: 60px; }
@media (max-width: 860px) { .custom { grid-template-columns: 1fr; } }
.steps { background: var(--paper); border-radius: var(--r); padding: 22px 24px; }
.steps h2 { font-size: 1.4rem; }
.steps ol { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.steps li::marker { font-family: var(--display); font-weight: 700; color: var(--gold); }
.track { padding: 40px 20px 50px; }
.track-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 22px 0 14px; }
.track-steps li { border-top: 4px solid var(--line); padding-top: 8px; font-size: .9rem; color: var(--muted); }
.track-steps li.done { border-color: var(--navy); color: var(--navy); }
.track-steps li.now { border-color: var(--gold); color: var(--navy); font-weight: 700; }
.track-state.off { color: var(--red); font-weight: 700; }
.track-when { font-weight: 500; color: var(--navy); }
.track-lines { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; margin-top: 18px; }
.track-lines td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.track-lines .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.track-lines tr.tot td { font-weight: 700; color: var(--navy); }

/* ---------------- footer ---------------- */
.site-foot { background: var(--navy-deep); color: #C7CCE6; border-top: 4px solid var(--gold); margin-top: 0; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px 26px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; align-items: start; }
.foot-brand { display: grid; grid-template-columns: 70px 1fr; gap: 4px 18px; align-items: center; }
.foot-brand img { width: 70px; height: auto; grid-row: span 2; align-self: start; }
.foot-tag { font: 500 italic 1.1rem/1.35 var(--display); color: #fff; margin: 0; }
.foot-brand p:last-child { margin: 0; font-size: .9rem; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.foot-nav a { color: #DDE1F3; text-decoration: none; }
.foot-nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-mail { color: #DDE1F3; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px 26px; font-size: .82rem; color: #8F97BE; border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------------- toast ---------------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-weight: 500; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 30px); }
.toast a { color: var(--gold); font-weight: 700; }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   v2.1 — design choices (Settings → Catalog Design). Only variations of the
   existing palette, type and arch; the logo is never styled here.
   ===================================================================== */
/* grid density */
[data-d-density="compact"] .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
[data-d-density="spacious"] .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1100px) { [data-d-density="compact"] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { [data-d-density="compact"] .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { [data-d-density] .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* spacing between cards */
[data-d-spacing="tight"] .grid { gap: 12px; }
[data-d-spacing="airy"] .grid { gap: 36px; }
@media (max-width: 700px) { [data-d-spacing] .grid { gap: 14px; } }
/* card layout */
[data-d-card="framed"] .card { box-shadow: inset 0 0 0 1px rgba(201,154,27,.55); }
[data-d-card="framed"] .card .niche { border-bottom: 3px solid var(--gold); }
[data-d-card="simple"] .card { background: transparent; }
[data-d-card="simple"] .card .niche { margin: 0; clip-path: none; border-radius: var(--r); }
[data-d-card="simple"] .card-body { padding: 12px 2px 6px; }
/* product image fitting */
[data-d-fit="contain"] .card .niche img, [data-d-fit="contain"] .cline .niche img { object-fit: contain; }
[data-d-fit="contain"] .card .niche { background: radial-gradient(120% 90% at 50% 30%, #F7F8FB, #E2E6EE); }
/* hover */
[data-d-hover="zoom"] .card:hover { transform: none; box-shadow: none; }
[data-d-hover="none"] .card:hover { transform: none; box-shadow: none; }
[data-d-hover="none"] .card:hover .niche img, [data-d-hover="lift"] .card:hover .niche img { transform: none; }
[data-d-hover="zoom"] .card:hover .niche img { transform: scale(1.05); }
/* category presentation */
[data-d-cats="tiles"] .colls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
[data-d-cats="tiles"] .coll { flex-direction: row; align-items: center; text-align: left; gap: 14px; background: var(--paper); border-radius: var(--r); padding: 10px 14px 10px 10px; }
[data-d-cats="tiles"] .coll .niche { width: 58px; flex: none; border-bottom: 0; }
[data-d-cats="tiles"] .coll-name { margin-top: 0; font-size: 1.02rem; }
[data-d-cats="tiles"] .coll-n { display: none; }
[data-d-cats="tiles"] .coll .coll-d { display: none; }
@media (max-width: 900px) { [data-d-cats="tiles"] .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* section backgrounds */
[data-d-bands="white"] { --stone: #FFFFFF; }
[data-d-bands="white"] .card, [data-d-bands="white"] .coll .niche { box-shadow: inset 0 0 0 1px var(--line); }
[data-d-bands="white"] .card { background: #FBFBFD; }
[data-d-bands="parchment"] { --stone: #F7F2E6; --line: #E6DCC2; }
/* headings */
[data-d-headings="rule"] .band-head { border-bottom: 0; padding-bottom: 0; }
[data-d-headings="rule"] .band-head h2::after { content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 10px; border-radius: 2px; }
[data-d-headings="centered"] .band-head { flex-direction: column; align-items: center; text-align: center; border-bottom: 0; gap: 6px; }
[data-d-headings="centered"] .band-head h2::before { content: '✝'; display: block; font-size: .8em; color: var(--gold); margin-bottom: 4px; }
/* corners and borders */
[data-d-corners="square"] { --r: 3px; }
[data-d-corners="arched"] .card { border-radius: 140px 140px var(--r) var(--r) / 110px 110px var(--r) var(--r); }
[data-d-borders="hairline"] .card { box-shadow: inset 0 0 0 1px var(--line); }
[data-d-borders="gold"] .card { box-shadow: inset 0 0 0 1px rgba(201,154,27,.6); }
.spotlight .band-head h2 { color: var(--navy); }

/* design preview frame (admin only): look, don't navigate */
.preview-bar.design { background: var(--gold); color: var(--navy-deep); }
.design-preview a, .design-preview button, .design-preview form, .design-preview input, .design-preview select { pointer-events: none; }

/* header account icon (desktop) and menu entry (mobile) */
.acc-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--navy); }
.acc-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.acc-btn:hover { background: var(--stone); }
.acc-btn.on svg { fill: rgba(201,154,27,.25); }
.main-nav .nav-acc { display: none; }
@media (max-width: 920px) { .main-nav .nav-acc { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; } .acc-btn { display: none; } }

/* small helper text under a label */
.hint { display: block; font-size: .84rem; color: var(--muted); font-weight: 400; line-height: 1.4; }
.field .hint { margin-top: -2px; }
/* independent checkboxes (contact preferences) */
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.checks legend { width: 100%; margin-bottom: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.checks input { width: 18px; height: 18px; accent-color: var(--navy); }
.checks .hint { width: 100%; }
.pers-field { display: grid; gap: 4px; margin-top: 8px; }
.pers-field > span { font-weight: 700; font-size: .86rem; color: var(--navy); }
.pers-field textarea { margin-top: 0 !important; }
.pd-desc.other-lang .lang-note { font-size: .84rem; color: var(--gold-ink); font-weight: 700; margin-bottom: 6px; }

/* the optional account prompt */
.modal-wrap { position: fixed; inset: 0; z-index: 85; background: rgba(8,12,34,.62); display: grid; place-items: center; padding: 20px; animation: fade .18s ease; }
.modal-wrap[hidden] { display: none; }
.modal { background: var(--paper); border-radius: 18px; max-width: 440px; width: 100%; padding: 30px 26px 22px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.3); border-top: 4px solid var(--gold); }
.modal-logo { display: block; width: auto; height: 84px; max-width: 80%; margin: 2px auto 16px; }
@media (max-width: 520px) { .modal-logo { height: 68px; } }
.modal h2 { font-size: 1.45rem; }
.modal p { color: var(--muted); }
.modal-btns { display: grid; gap: 10px; margin-top: 18px; }
.btn.link { background: none; border-color: transparent; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* customer account pages */
.acc-auth { padding: 40px 20px 60px; display: grid; place-items: center; }
.acc-card { width: 100%; max-width: 460px; background: var(--paper); border-radius: 18px; padding: 30px 26px; border-top: 4px solid var(--gold); }
.acc-card h1 { font-size: 1.7rem; text-align: center; }
.acc-card > .muted { text-align: center; }
.acc-form { display: grid; gap: 14px; margin-top: 10px; }
.acc-form.inline { grid-template-columns: 1fr auto; align-items: start; }
.acc-form.inline .form-err { grid-column: 1 / -1; }
@media (max-width: 560px) { .acc-form.inline { grid-template-columns: 1fr; } }
.acc-alt { text-align: center; margin: 14px 0 0; font-size: .94rem; }
.acc-head { margin-bottom: 0; padding-bottom: 0; }
.acc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; align-items: center; }
.acc-tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 3px solid transparent; }
.acc-tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.acc-tabs .link-btn { margin-left: auto; color: var(--muted); }
.acc-body { padding: 26px 20px 60px; display: grid; gap: 30px; }
.acc-body h2 { font-size: 1.35rem; }
.acc-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 30px; align-items: start; }
@media (max-width: 860px) { .acc-cols { grid-template-columns: 1fr; } }
.acc-box { background: var(--paper); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; margin-bottom: 16px; }
.acc-box h2, .acc-box h3 { margin: 0; }
.ocard { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--paper); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.ocard-thumbs { display: grid; grid-template-columns: repeat(2, 36px); gap: 4px; }
.ocard-thumbs img, .ocard-thumbs .noimg { width: 36px; height: 44px; object-fit: cover; border-radius: 8px 8px 3px 3px; background: var(--stone); font-size: 1rem; }
.ocard h3 { font: 700 1.08rem/1.3 var(--display); margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ocard h3 a { color: var(--navy); text-decoration: none; }
.ocard p { margin: 0; }
.ocard-items { font-size: .92rem; margin-top: 4px !important; }
.ocard-money { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 8px 0 0; }
.ocard-money dt { font: 700 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ocard-money dd { margin: 3px 0 0; font-variant-numeric: tabular-nums; }
.ocard-acts { display: grid; gap: 8px; }
@media (max-width: 640px) { .ocard { grid-template-columns: auto 1fr; } .ocard-acts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
.ost, .ist { display: inline-block; font: 700 .72rem/1 var(--body); padding: 5px 9px; border-radius: 999px; background: var(--stone); color: var(--navy); }
.ost-printing, .ist-quoted { background: var(--gold-tint); color: var(--gold-ink); }
.ost-ready, .ist-approved, .ost-delivered, .ist-converted { background: var(--ok-tint); color: var(--ok); }
.ost-cancelled, .ist-declined, .ist-cancelled { background: #FBE9EA; color: #8E1219; }
.ilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.irow { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); border-radius: var(--r); padding: 12px 14px; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .04em; }
.track-lines td.th { width: 52px; padding-right: 0; }
.track-lines td.th img, .track-lines td.th .noimg { width: 40px; height: 50px; object-fit: cover; border-radius: 8px 8px 3px 3px; background: var(--stone); font-size: 1rem; }
.acc-order h2 { font-size: 1.5rem; }
