/* ==========================================================================
   Storefront styles. The accent colour and display font come from
   Admin → Settings → Appearance (set as --accent / --font-display).
   ========================================================================== */

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --wall: #ece7df;
  --ink: #1f1d1a;
  --ink-soft: #3a3631;
  --muted: #6e675d;
  --line: #e2dcd2;
  --accent: #9a4a2f;
  --accent-ink: #ffffff;
  --ok: #2f6f4f;
  --danger: #a3362a;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow-art: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 36px -18px rgba(30, 20, 10, 0.45);
  --gutter: 16px;
  color-scheme: light;
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---- type ---------------------------------------------------------------- */

.display, .display-sm, .section-title, .brand, .summary-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.display { font-size: clamp(38px, 5.6vw, 72px); margin: 0 0 18px; }
.display-sm { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); max-width: 36em; margin: 0 0 28px; }

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 4px;
  border: 1px solid transparent; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: var(--accent-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-large { min-height: 56px; font-size: 16px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn-row.center { justify-content: center; }
.link-arrow { font-weight: 500; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---- header ------------------------------------------------------------ */

.announcement { background: var(--ink); color: #f1ece4; text-align: center; font-size: 13px; padding: 9px var(--gutter); letter-spacing: .02em; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { font-size: 28px; text-decoration: none; margin-right: auto; line-height: 1; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; gap: 32px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:hover { border-bottom-color: currentColor; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-link, .menu-toggle {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: none; cursor: pointer; text-decoration: none;
}
.cart-link:hover, .menu-toggle:hover { background: var(--wall); color: var(--ink); }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; }

@media (max-width: 759px) {
  .header-inner { min-height: 62px; gap: 8px; }
  .brand { font-size: 24px; }
  .menu-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a:last-child { border-bottom: 0; }
}

/* ---- sections ---------------------------------------------------------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding-top: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.page-head-small .display { font-size: clamp(34px, 4.4vw, 54px); }
.page-head .display { margin-bottom: 8px; }

/* ---- hero -------------------------------------------------------------- */

.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
}
.hero-copy .display { font-size: clamp(42px, 6.2vw, 84px); }
.hero-art { margin: 0; }
.hero-frame {
  position: relative; display: block; aspect-ratio: 4 / 5; background: var(--wall);
  border-radius: 2px; overflow: hidden;
}
.hero-frame img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: 78%; max-height: 82%; box-shadow: var(--shadow-art);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
a.hero-frame:hover img { transform: scale(1.015); }
.hero-art figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-art figcaption a { text-decoration: none; color: var(--ink); }

.canvas-placeholder {
  position: absolute; inset: 0; margin: auto; width: 70%; height: 78%;
  box-shadow: var(--shadow-art);
  background:
    radial-gradient(circle at 70% 28%, #e9c46a 0 9%, transparent 9.5%),
    linear-gradient(180deg, #d98b65 0 46%, #c3633f 46% 58%, #2a6f6b 58% 100%);
}

/* ---- art grid ------------------------------------------------------------ */

.art-grid { display: grid; grid-template-columns: 1fr; gap: 48px 28px; }
@media (min-width: 560px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .art-grid { grid-template-columns: repeat(3, 1fr); gap: 64px 40px; } }
@media (min-width: 960px) { .art-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 40px 28px; } }

.art-card { display: block; text-decoration: none; color: var(--ink); }
.art-card:hover { color: var(--ink); }
.art-frame {
  position: relative; aspect-ratio: 4 / 5; background: var(--wall); border-radius: 2px;
  overflow: hidden; transition: background-color .3s;
}
.art-frame img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: 76%; max-height: 80%; box-shadow: var(--shadow-art);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
.art-card:hover .art-frame { background: color-mix(in srgb, var(--wall) 85%, #000 4%); }
.art-card:hover .art-frame img { transform: translateY(-4px) scale(1.01); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 28px 44px -20px rgba(30,20,10,.5); }
.art-meta { padding-top: 16px; }
.art-title { font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.2; margin: 0 0 4px; }
.art-sub { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.art-price { font-size: 15px; font-weight: 500; margin: 0; }

.img-missing {
  position: absolute; inset: 0; margin: auto; width: 60%; height: 70%;
  background: repeating-linear-gradient(135deg, #e2dbd0 0 10px, #ddd5c9 10px 20px);
}

.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tag-sold { background: var(--ink); color: #fff; }

.empty-state { padding: 64px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state p { margin: 0 auto 8px; max-width: 34em; }

/* ---- chips / filters ------------------------------------------------------ */

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.filter-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.select-label select, .field select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e675d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 40px 9px 14px; min-height: 42px; cursor: pointer;
}
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }

/* ---- highlights / about teaser ------------------------------------------- */

.highlights { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0; }
.highlight-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .highlight-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.highlight h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 0 0 6px; }
.highlight p { margin: 0; color: var(--muted); }

.about-teaser, .about-page { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .about-teaser { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .about-page { grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
}
.about-teaser.no-image, .about-page.no-image { grid-template-columns: 1fr; max-width: 820px; }
.about-photo img { width: 100%; border-radius: 2px; }
.about-page .about-photo { position: sticky; top: 100px; }

/* ---- painting page ------------------------------------------------------- */

.crumbs { padding: 24px 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
@media (min-width: 960px) {
  .detail-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
  .detail-info { position: sticky; top: 100px; }
}
.gallery-main {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: min(72vh, 760px); padding: clamp(24px, 5vw, 64px); background: var(--wall);
  border: 0; border-radius: 2px; cursor: zoom-in;
}
.gallery-main img { max-height: 64vh; width: auto; max-width: 100%; box-shadow: var(--shadow-art); }
.gallery-main .img-missing { position: static; width: 60%; height: 50vh; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 76px; height: 76px; padding: 6px; background: var(--wall); border: 2px solid transparent; border-radius: 4px; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--ink); }

.detail-info .display { font-size: clamp(36px, 4.2vw, 56px); margin-bottom: 8px; }
.byline { color: var(--muted); font-size: 16px; margin: 0 0 24px; }
.detail-price { font-size: 24px; font-weight: 500; margin: 0 0 4px; }
.stock-note { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.detail-info .btn-row { flex-direction: column; margin-bottom: 28px; }
.specs { margin: 0 0 28px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.fold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; margin-top: 24px; }
.fold summary { cursor: pointer; padding: 12px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font-size: 20px; line-height: 1; }
.fold[open] summary::after { content: "−"; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 16, 14, 0.94); padding: 56px 16px; animation: fade .2s ease;
}
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; transition: transform .25s; }
.lightbox.zoomed { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.lightbox.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox button {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 24px; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }
body.no-scroll { overflow: hidden; }

/* ---- prose ---------------------------------------------------------------- */

.prose { color: var(--ink-soft); }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.15; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose-lg { font-size: 18px; }
.prose a { color: var(--accent); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.legal-nav a { text-decoration: none; color: var(--muted); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---- cards & forms ---------------------------------------------------------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.card-title { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.notice { border-left: 3px solid var(--accent); margin-bottom: 20px; }
.notice-muted { border-left-color: var(--muted); }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }

.form, .checkout-form fieldset { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.field em { font-style: normal; font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface); border: 1px solid #d6cfc3; border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row-3 { grid-template-columns: 1.3fr 1fr 0.8fr; }
}
.form-error { margin: 0; padding: 12px 16px; border-radius: 6px; background: #fbeceb; color: var(--danger); font-size: 15px; }
.form-success p { margin: 0 0 6px; }

/* contact */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.contact-info p { margin: 0 0 22px; }
.contact-art { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--bg); border-radius: 8px; }
.contact-art img, .contact-art .img-missing { width: 64px; height: 64px; object-fit: contain; background: var(--wall); position: static; padding: 4px; }

/* ---- cart & checkout ---------------------------------------------------------- */

.cart-layout { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 380px; gap: 48px; } }
.line-items { list-style: none; margin: 0; padding: 0; }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { padding-top: 0; }
.cart-layout .line-item { grid-template-columns: 112px 1fr auto; gap: 20px; padding: 24px 0; }
.line-thumb { aspect-ratio: 1; background: var(--wall); display: grid; place-items: center; padding: 8px; border-radius: 2px; }
.line-thumb img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 6px 12px -6px rgba(0,0,0,.35); }
.line-info a { font-family: var(--font-display); font-size: 21px; text-decoration: none; line-height: 1.2; }
.line-info .muted { font-size: 14px; }
.line-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 14px; }
.line-actions select { padding: 6px 30px 6px 10px; min-height: 34px; border: 1px solid var(--line); border-radius: 6px; background-color: var(--surface); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--danger); }
.line-price { font-weight: 500; white-space: nowrap; }
.line-problem { color: var(--danger); font-size: 14px; margin-top: 4px; }

.summary-title { font-size: 28px; margin: 0 0 20px; }
.summary .line-item { grid-template-columns: 60px 1fr auto; padding: 12px 0; font-size: 15px; }
.summary .line-info a { font-size: 18px; }
.totals { margin: 16px 0 0; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 15px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 19px; font-weight: 600; }
.totals .total dt { color: var(--ink); }
.summary .btn { margin-top: 20px; }
.summary-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }

.checkout-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) {
  .checkout-grid { grid-template-columns: 1fr 400px; gap: 48px; }
  .summary { position: sticky; top: 96px; }
}
@media (max-width: 999px) { .checkout-grid .summary { order: -1; } }
.checkout-form { display: grid; gap: 20px; }
.checkout-form fieldset { margin: 0; min-width: 0; }
.checkout-form legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 4px; padding: 0; }
.checkout-form legend + * { clear: both; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 14px var(--font-body); }
.billing-fields { display: grid; gap: 16px; }
.payment-panel { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: var(--bg); border: 1px dashed #cfc6b8; border-radius: 8px; }
.payment-panel p { margin: 0; }
.payment-panel .muted { font-size: 15px; margin-top: 4px; }
.payment-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--accent); border: 1px solid var(--line); }
.payment-title { font-weight: 600; }

/* order page */
.order-page { display: grid; gap: 20px; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 8px; counter-reset: step; }
.progress li { position: relative; padding-top: 30px; font-size: 13px; color: var(--muted); text-align: center; }
.progress li::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
}
.progress li::after { content: ""; position: absolute; top: 10px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }
.progress li:last-child::after { display: none; }
.progress li.done { color: var(--ink); font-weight: 500; }
.progress li.done::before { background: var(--ok); border-color: var(--ok); }
.progress li.done::after { background: var(--ok); }
.address-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .address-grid { grid-template-columns: 1fr 1fr; } }
.address-grid p { margin: 0 0 6px; }
.just-placed .page-head .display { color: var(--ink); }

/* toast */
.toast {
  position: fixed; z-index: 150; right: 16px; bottom: 16px; left: 16px; max-width: 380px; margin-left: auto;
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0,0,0,.4);
  animation: rise .3s cubic-bezier(.2,.7,.2,1);
}
.toast img { width: 56px; height: 56px; object-fit: contain; background: var(--wall); padding: 4px; border-radius: 4px; }
.toast p { margin: 0 0 6px; font-size: 15px; }
.toast .toast-links { display: flex; gap: 16px; font-size: 14px; font-weight: 500; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

.loading { padding: 40px 0; }

/* ---- footer --------------------------------------------------------------- */

.site-footer { background: #1d1b18; color: #cfc8bd; margin-top: clamp(40px, 6vw, 80px); padding: 64px 0 28px; font-size: 15px; }
.site-footer a { color: #e9e3da; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; font-size: 30px; display: inline-block; margin-bottom: 12px; }
.site-footer p { margin: 0 0 6px; max-width: 26em; }
.site-footer .muted { color: #9d958a; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.footer-title { font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #9d958a; margin: 0 0 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #34302b; font-size: 13px; color: #9d958a; }
.footer-bottom a { display: inline; }

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