/* Storefront styles. Colors, fonts and corner radius come from store.config.js
   as CSS variables (--bg, --text, --accent, --font-head ...), so most visual
   changes don't need edits here. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, .h3 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; } h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-text); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; } .skip:focus { left: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .row.end { justify-content: flex-end; }
.inline { display: flex; gap: 8px; align-items: center; } .inline input { flex: 1; }
.stack { display: grid; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.page-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 24px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.text-link { font-weight: 500; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); } .danger { color: #B42318; }
.empty { text-align: center; padding: 48px 0; } .empty-note { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius); border: 1px solid transparent; font: 500 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); } .btn-primary:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); } .btn-ghost:hover { border-color: var(--text); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* Header */
.announce { background: var(--text); color: var(--bg); text-align: center; font-size: .82rem; padding: 8px 16px; letter-spacing: .02em; }
/* Demo mode only (DEMO=on) */
.demo-bar { background: #FDE68A; color: #3B2F04; text-align: center; font-size: .84rem; line-height: 1.4; padding: 8px 16px; }
.demo-bar a { color: inherit; font-weight: 600; white-space: nowrap; }
.demo-callout { background: #FEF6D8; border: 1px solid #F1D98A; color: #3B2F04; border-radius: 10px; padding: 12px 14px; margin: 16px 0; font-size: .92rem; }
.demo-callout a { color: inherit; font-weight: 600; }
.demo-sim p { margin: 0 0 10px; }
.demo-sample { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-sample p { margin: 0; }
.demo-list { margin: 0 0 24px; padding-left: 1.2em; line-height: 1.6; }
.demo-card { display: grid; gap: 14px; max-width: 440px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--surface, var(--bg)); }
.demo-card .field { display: grid; gap: 6px; }
.demo-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--bg); color: var(--muted); }
.demo-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-card-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.wordmark { font: var(--head-weight) 1.3rem/1 var(--font-head); letter-spacing: -0.02em; }
.logo-img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); border-color: var(--text); }
.cart-link { position: relative; display: inline-flex; padding: 8px; color: var(--text); }
.cart-count { position: absolute; top: 0; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; flex-direction: column; justify-content: space-around; }
.menu-btn span:not(.sr-only) { display: block; height: 1.5px; background: var(--text); transition: transform .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.hero .lead { max-width: 30em; margin-bottom: 28px; }
.hero-img { border-radius: calc(var(--radius) * 1.6); overflow: hidden; aspect-ratio: 13 / 10; background: var(--surface); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-text-only .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 48px 0; } .hero-text-only .lead { margin-inline: auto; }

/* Product grid */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; } .section-head a:not(.btn) { color: var(--muted); font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; }
.card { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.card-img .alt-img { opacity: 0; }
.card:hover .card-img img:first-child { transform: scale(1.03); }
.card:hover .card-img .alt-img { opacity: 1; }
.card-body { padding-top: 12px; }
.card-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; margin: 0 0 2px; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.price { color: var(--text); } .was { color: var(--muted); font-size: .9em; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--surface); color: var(--text); font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.badge.sale { background: var(--sale); color: var(--sale-text); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 3rem var(--font-head); color: var(--muted); background: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.chip { text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 40px) 1px no-repeat; }
.highlights h3 { font-size: 1.05rem; } .highlights p { color: var(--muted); margin: 0; }
.about-teaser > div { max-width: 640px; } .about-teaser p { font-size: 1.1rem; }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 36px; padding-bottom: 36px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1.5px solid transparent; border-radius: calc(var(--radius) * .6); overflow: hidden; cursor: pointer; background: var(--surface); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb[aria-current] { border-color: var(--text); }
.buy { position: sticky; top: 92px; }
.buy h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.buy-price { font-size: 1.35rem; margin-bottom: 14px; }
.buy-form { margin: 24px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.options { border: 0; padding: 0; margin: 0 0 8px; } .options legend { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.opt input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt.is-out span { color: var(--muted); text-decoration: line-through; }
.stock-note { min-height: 1.4em; font-size: .9rem; color: var(--sale); margin: 6px 0 14px; }
.buy-row { display: flex; gap: 12px; } .buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); height: 52px; }
.qty button { width: 40px; height: 100%; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--text); }
.qty input[type=number] { width: 40px; min-height: 0; height: 100%; padding: 0; text-align: center; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; color: var(--text); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.small { height: 40px; } .qty.small button { width: 32px; } .qty.small input[type=number] { width: 34px; }
.prose { max-width: 62ch; } .prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .3em; } .prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.assure { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: .9rem; }
.assure li::before { content: "✓"; margin-right: 10px; color: var(--text); }

/* Forms */
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font: var(--head-weight) 1.1rem var(--font-head); margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; } .field.wide { grid-column: 1 / -1; }
.field label, .var-row label span { font-size: .875rem; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .7); background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.alert, .error { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.alert { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.error { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; } .error ul { margin: 0; padding-left: 1.2em; }

/* Cart + checkout */
.cart-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto 90px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 84px; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) * .6); overflow: hidden; background: var(--surface); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: grid; gap: 2px; justify-items: start; } .cart-total { text-align: right; font-weight: 500; }
.cart-foot { margin-top: 20px; display: grid; justify-items: end; gap: 16px; }
.free-note { margin: 0; font-size: .9rem; color: var(--muted); }
.totals { display: grid; grid-template-columns: auto auto; gap: 6px 0; margin: 0; min-width: 260px; }
.totals dd { margin: 0; padding-left: 40px; text-align: right; } .totals .grand { font-weight: 600; font-size: 1.1rem; padding-top: 8px; border-top: 1px solid var(--line); }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.summary { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.summary .totals { min-width: 0; margin: 16px 0 12px; }
.sum-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sum-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; font-size: .95rem; }
.sum-thumb { position: relative; width: 56px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--line); }
.sum-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sum-thumb b { position: absolute; top: 3px; right: 3px; background: var(--text); color: var(--bg); font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
.pay-box { display: grid; gap: 10px; }
.attest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; }
.attest legend { float: left; width: 100%; } .attest legend + * { clear: both; }

.table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td:last-child, .table tfoot td { text-align: right; } .table tfoot th { font-weight: 400; color: var(--muted); }
.table .total th, .table .total td { font-weight: 600; color: var(--text); }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 24px 0; }
.panel summary { cursor: pointer; font-weight: 500; } .panel[open] summary { margin-bottom: 14px; }

/* Accounts */
.auth { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: 32px; }
.auth-card .page-title { font-size: 1.7rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 600 .8rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; } .footer-grid nav a { text-decoration: none; } .footer-grid nav a:hover { text-decoration: underline; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 40px) 1px no-repeat; color: var(--muted); font-size: .85rem; }
.footer-base p { margin: 0; }

/* Age gate + toast */
.age-gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 70%, #000); backdrop-filter: blur(12px); }
.age-gate[hidden] { display: none; } .gated { overflow: hidden; }
.age-card { background: var(--surface); border-radius: calc(var(--radius) * 1.4); padding: 36px; max-width: 440px; text-align: center; display: grid; gap: 12px; justify-items: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.age-card h2 { margin: 12px 0 0; } .age-card p { color: var(--muted); margin: 0 0 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; width: max-content; transform: translate(-50%, 16px); opacity: 0; transition: opacity .25s, transform .25s; display: flex; gap: 18px; align-items: center; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.2); font-size: .95rem; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast a { color: inherit; font-weight: 600; white-space: nowrap; }

/* Coming soon */
.coming-soon { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.coming-soon h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin: 24px 0 12px; }

/* Admin */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-nav a { text-decoration: none; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a[aria-current] { border-color: var(--text); font-weight: 600; } .admin-nav a.muted { margin-left: auto; font-size: .9rem; }
.admin .page-title { font-size: 1.8rem; }
.admin-table td:last-child { text-align: left; }
.thumb-cell { width: 64px; } .thumb-cell img, .thumb-cell .ph { width: 48px; height: 60px; object-fit: cover; border-radius: 6px; position: static; font-size: 1.2rem; }
.admin-form { max-width: 900px; }
.admin-form fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.admin-form legend { float: left; width: 100%; } .admin-form legend + * { clear: both; }
.var-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr .8fr auto; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.var-row label { display: grid; gap: 4px; } .var-row em { font-style: normal; color: var(--muted); font-weight: 400; }
[data-rows=variant] + template + .btn { margin-top: 14px; }
.img-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.img-row { border: 1px solid var(--line); border-radius: calc(var(--radius) * .7); overflow: hidden; background: var(--bg); }
.img-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.img-row:first-child { outline: 2px solid var(--text); } .img-row:first-child [data-img-first] { display: none; }
.img-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding: 6px 8px; } .img-actions .link-btn { font-size: .78rem; white-space: nowrap; }
.upload-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; } .upload-btn { cursor: pointer; }
.danger-zone { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); }
.order-card summary { display: grid; grid-template-columns: 1.6fr 1.2fr auto 90px; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.order-card summary::-webkit-details-marker { display: none; } .order-card summary span:last-child { text-align: right; font-weight: 500; }
.order-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 0 18px 18px; border-top: 1px solid var(--line); }
.status { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--line); white-space: nowrap; }
.s-paid { background: #FEF0C7; color: #93370D; } .s-shipped, .s-delivered { background: #D1FADF; color: #05603A; } .s-cancelled, .s-refunded { background: #F2F4F7; color: #667085; } .s-pending_payment { background: #E0EAFF; color: #3538CD; }

/* Payment choices, order payment steps, proof upload */
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.pay-method input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.pay-method:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.pm-body { display: grid; gap: 2px; } .pm-name { font-weight: 600; } .pm-hint { font-size: .875rem; color: var(--muted); }
.pay-steps { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.pay-steps p { margin: 0 0 6px; } .pay-steps .btn { margin-top: 8px; }
.hold-note { font-size: .95rem; color: var(--muted); }
.proof-box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.proof-box p { margin: 4px 0 10px; }
.ledger { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 6px; font-size: .92rem; }
.ledger li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.ledger li.neg b { color: #B42318; } .ledger b { font-weight: 600; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; word-break: break-all; }
.proof-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; } .proof-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.admin-form textarea { min-height: 110px; }

/* Theme touches */
.theme-warm h1, .theme-warm .wordmark { letter-spacing: -0.01em; font-variation-settings: "SOFT" 50; }
.theme-midnight .btn-primary:hover { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.theme-midnight .error { background: #3b1513; color: #FECDCA; border-color: #7A271A; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .header-row { gap: 8px; height: 60px; } .brand { margin-right: auto; }
  .site-nav { position: fixed; inset: 60px 0 auto; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .menu-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .hero-grid, .product, .checkout-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 16px; } .hero-img { order: -1; }
  .buy, .summary { position: static; } .summary { order: -1; }
  .highlights { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; }
  .order-detail { grid-template-columns: 1fr; } .order-card summary { grid-template-columns: 1fr auto; } .order-card summary .muted { display: none; }
  .var-row { grid-template-columns: 1fr 1fr; } .var-row label:first-of-type { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .section { padding-top: 32px; padding-bottom: 32px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .fields, .two-col { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr auto; gap: 12px; } .cart-thumb { width: 64px; } .cart-total { grid-column: 2 / -1; text-align: left; }
  .cart-foot, .totals { justify-items: stretch; min-width: 0; width: 100%; } .cart-foot .row { justify-content: stretch; } .cart-foot .row .btn { flex: 1; }
  .auth-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
