:root {
  /* RNR Ranch Apparel — black, ranch red, cream & tan */
  --bg: #f3ebdd;           /* cream */
  --surface: #fbf7f0;      /* panels */
  --surface-2: #e8dcc6;    /* tan */
  --text: #161311;
  --muted: #6b5f52;
  --border: #d9c9ad;
  --accent: #7a1318;       /* Delmonico Red Pearl, like the Ram trucks */
  --accent-dark: #5c0d11;
  --accent-ink: #ffffff;
  --accent-soft: #f0d8d9;
  --navy: #161311;         /* heading color */
  --steel: #141111;        /* black: sidebar, header, footer */
  --on-steel: #f3ebdd;
  --on-steel-soft: #b8ab98;
  --ok: #2f6b3f;  --ok-soft: #dcebdc;
  --warn: #8a5a00; --warn-soft: #f5e3bd;
  --info: #3d4f6b; --info-soft: #e0e3e8;
  --danger: #a3302a; --danger-soft: #f3d6d2;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(20,17,15,.06);
  --serif: "Rye", "Rockwell Extra Bold", "Clarendon", Georgia, serif;   /* western Tuscan capitals, like the RnR logo */
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151210; --surface: #1e1a17; --surface-2: #2a241f; --text: #efe6d6; --muted: #b3a692;
    --border: #3a322b; --accent: #c4484f; --accent-dark: #a83a41; --accent-ink: #1a0e0b; --accent-soft: #3a211d; --navy: #efe6d6;
    --steel: #0c0a09; --on-steel: #efe6d6; --on-steel-soft: #a39784;
    --ok: #7cc79b; --ok-soft: #1f3328; --warn: #e6bb5c; --warn-soft: #3a3020; --info: #a9b6cc; --info-soft: #262c36;
    --danger: #ef8d86; --danger-soft: #3d2322; --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151210; --surface: #1e1a17; --surface-2: #2a241f; --text: #efe6d6; --muted: #b3a692;
    --border: #3a322b; --accent: #c4484f; --accent-dark: #a83a41; --accent-ink: #1a0e0b; --accent-soft: #3a211d; --navy: #efe6d6;
    --steel: #0c0a09; --on-steel: #efe6d6; --on-steel-soft: #a39784;
    --ok: #7cc79b; --ok-soft: #1f3328; --warn: #e6bb5c; --warn-soft: #3a3020; --info: #a9b6cc; --info-soft: #262c36;
    --danger: #ef8d86; --danger-soft: #3d2322; --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px;
  padding: 10px 16px; font: 500 .95rem var(--sans); cursor: pointer; text-decoration: none; background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--accent-dark); }
.btn.secondary:hover, .btn.ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.sm { padding: 6px 10px; font-size: .85rem; }
.btn.danger { background: var(--danger); color: #fff; }
label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- cards / panels ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

/* ---------- storefront ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-art { aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); border: 1px dashed var(--border); display: grid; place-items: center; }
.hero-art svg { width: 78%; height: 78%; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 280px; margin: 0 auto; } .hero { padding-top: 40px; } }
.section { padding: 56px 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature h3 { margin-bottom: .3em; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 10px 12px; font-size: .9rem; }
.gallery .g-item { position: relative; cursor: grab; transition: opacity .15s ease, box-shadow .15s ease; }
.gallery .g-item.dragging { opacity: .45; box-shadow: 0 0 0 2px var(--accent); cursor: grabbing; }
.gallery .g-pos { position: absolute; top: 8px; left: 8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  display: grid; place-items: center; background: var(--steel); color: var(--on-steel); font-weight: 700; font-size: .85rem; border: 2px solid var(--accent); }
.gallery .g-item .row { flex-wrap: wrap; gap: 6px; }
.gallery .g-item button[disabled] { opacity: .35; cursor: default; }
.empty { border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.site-footer { padding: 32px 0; background: var(--steel); color: var(--on-steel-soft); font-size: .9rem; }
.site-footer a { color: var(--on-steel); }

/* ---------- app shell (portal / admin) ---------- */
.app { padding: 24px 0 64px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: 500 .95rem var(--sans);
  color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.new, .badge.received, .badge.pending { background: var(--info-soft); color: var(--info); }
.badge.digitizing, .badge.quoted, .badge.proof_sent, .badge.changes_requested { background: var(--warn-soft); color: var(--warn); }
.badge.approved, .badge.in_production { background: var(--accent-soft); color: var(--accent); }
.badge.ready, .badge.completed, .badge.converted { background: var(--ok-soft); color: var(--ok); }
.badge.cancelled, .badge.declined { background: var(--danger-soft); color: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-size: 1.7rem; font-weight: 700; font-family: var(--serif); color: var(--navy); }
.stat .l { font-size: .82rem; color: var(--muted); }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.design-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.design-card .thumb { aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.design-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.design-card .body { padding: 10px 12px; }
.tag { display: inline-block; font-size: .72rem; background: var(--surface-2); border-radius: 4px; padding: 1px 6px; margin: 2px 2px 0 0; }
.proof-img { max-height: 420px; object-fit: contain; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--border); width: 100%; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.path { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* ---------- dialog ---------- */
dialog { border: 1px solid var(--border); border-radius: 14px; padding: 0; width: min(680px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15,18,25,.45); }
dialog .d-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
dialog .d-head h3 { margin: 0; }
dialog .d-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
dialog .d-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- toast / misc ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; z-index: 100; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--danger); color: #fff; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: .92rem; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.auth-card { max-width: 420px; margin: 48px auto; }
.hidden { display: none !important; }
.nav a.btn { color: var(--accent-ink); padding: 6px 12px; }
.nav a.btn:hover { background: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger { color: #1a0e0b; } }
:root[data-theme="dark"] .btn.danger { color: #1a0e0b; }

/* =====================================================================
   Owner dashboard — same structure as the KTR office portal:
   black sidebar, black header bar, stat strip, panels
   ===================================================================== */
body.dash { background: var(--bg); }
.app-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 214px; background: var(--steel); color: var(--on-steel);
  display: flex; flex-direction: column; z-index: 200; transition: transform .2s ease; overflow-y: auto; }
.app-sidebar .side-brand { padding: 18px 20px 16px; font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--on-steel);
  border-bottom: 1px solid rgba(255,255,255,.1); display: flex; gap: 10px; align-items: center; }
.app-sidebar .side-brand small { display: block; font: 400 11px var(--sans); color: var(--on-steel-soft); letter-spacing: .06em; text-transform: uppercase; }
.app-sidebar nav { padding: 10px 0; flex: 1; }
.app-sidebar a.side-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; font-size: 13.5px;
  text-decoration: none; color: var(--on-steel-soft); border-left: 3px solid transparent; }
.app-sidebar a.side-link:hover { background: rgba(255,255,255,.06); color: var(--on-steel); }
.app-sidebar a.side-link.active { color: var(--on-steel); border-left-color: var(--accent); background: rgba(255,255,255,.08); font-weight: 500; }
.app-sidebar .side-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.app-sidebar .side-foot { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }
.app-sidebar .side-foot a { color: var(--on-steel-soft); text-decoration: none; display: block; padding: 4px 0; }
.app-sidebar .side-foot a:hover { color: var(--on-steel); }
.dash-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: var(--steel); color: var(--on-steel);
  border-bottom: 3px solid var(--accent); }
.dash-title { font: 600 17px var(--serif); color: var(--on-steel); }
.signout { font-size: 13px; color: var(--on-steel-soft); cursor: pointer; background: none; border: none; font-family: inherit; }
.signout:hover { color: var(--on-steel); }
.dash-body { padding: 26px 28px 64px; max-width: 1280px; }
body.has-sidebar .dash-header, body.has-sidebar .dash-body { margin-left: 214px; }
.sidebar-toggle-btn { display: none; background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; padding: 2px 12px 2px 0; line-height: 1; }
.sidebar-overlay-bg { display: none; }
@media (max-width: 860px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  body.sidebar-open .app-sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay-bg { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 190; }
  body.has-sidebar .dash-header, body.has-sidebar .dash-body { margin-left: 0; }
  .sidebar-toggle-btn { display: inline-block; }
  .dash-body { padding: 20px 16px 64px; }
}
.section-title { font: 600 20px var(--serif); margin: 0 0 16px; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px; padding: 12px 16px; background: var(--surface);
  text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(20,17,15,.18); }
.stat-card.alert { border-left-color: var(--steel); }
.stat-card .stat-num { font: 700 22px var(--serif); }
.stat-card .stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-panel { border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; background: var(--surface); }
.dash-panel + .dash-panel { margin-top: 20px; }
.dash-panel h3 { margin: 0 0 10px; font: 600 14px var(--serif); }
.dash-panel .panel-link { float: right; font-size: 12px; font-weight: 500; color: var(--accent); text-decoration: none; }
.update-item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px;
  text-decoration: none; color: inherit; cursor: pointer; }
.update-item:last-child { border-bottom: none; }
.update-item:hover .update-label { color: var(--accent); }
.update-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.update-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }
.update-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; padding: 2px 7px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted); margin-right: 6px; }
.update-tag.red { background: var(--accent-soft); color: var(--accent); }
body.dash .table-wrap, body.dash .design-card, body.dash .card { border-radius: 6px; box-shadow: none; }
body.dash th { background: var(--surface-2); }
body.dash .table-wrap { background: var(--surface); }

/* ---------- RnR storefront: black header & hero like the Printify store ---------- */
.site-header.dark { background: var(--steel); border-bottom: 3px solid var(--accent); backdrop-filter: none; }
.site-header.dark .brand { color: var(--on-steel); }
.site-header.dark .nav a:not(.btn) { color: var(--on-steel-soft); }
.site-header.dark .nav a:not(.btn):hover { color: var(--on-steel); background: rgba(255,255,255,.06); }
.brand-logo { height: 40px; width: auto; }
.hero.dark { background: var(--steel); color: var(--on-steel); }
.hero.dark h1 { color: var(--on-steel); }
.hero.dark .lead { color: var(--on-steel-soft); }
.eyebrow { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: min(100%, 420px); height: auto; }
.btn.outline { background: transparent; color: var(--on-steel); border-color: rgba(255,255,255,.35); }
.btn.outline:hover { background: rgba(255,255,255,.08); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .products { grid-template-columns: 1fr 1fr; gap: 10px; } .product .p-body { padding: 10px; } .product .p-name { font-size: .85rem; } }
.product { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease; }
.product:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(20,17,15,.25); }
.product .p-img { background: #fff; aspect-ratio: 1; }
.product .p-img img { width: 100%; height: 100%; object-fit: contain; }
.product .p-body { padding: 12px 14px; border-top: 1px solid var(--border); }
.product .p-name { font-weight: 500; font-size: .95rem; line-height: 1.35; }
.product .p-price { color: var(--accent); font-weight: 600; margin-top: 4px; }
.site-footer #socials a { margin-left: 12px; }

/* ---------- RnR logo lettering: Rye for display type ---------- */
h1, h2, .brand, .dash-title, .app-sidebar .side-brand, .section-title, .stat-card .stat-num, .stat .n {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .08em;
}
h1 { letter-spacing: .06em; line-height: 1.2; }
.brand { font-size: 1.05rem; letter-spacing: .14em; }
.site-header.dark .brand { font-size: 1rem; }
/* small headings stay in the body face, spaced out like the logo's "APPAREL" line */
h3, .dash-panel h3 { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.feature h3, .step h3, .gallery figcaption strong { font-size: .9rem; }
.stat-card .stat-num { font-size: 24px; letter-spacing: .04em; }
.app-sidebar .side-brand { font-size: 13px; letter-spacing: .12em; line-height: 1.5; }
.dash-title { font-size: 16px; }
.eyebrow { letter-spacing: .2em; }

/* ---------- header badge ---------- */
.brand-badge { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .brand-badge { height: 38px; } }
.hero-logo img { width: min(100%, 440px); }
.hero-motto { font-family: var(--serif); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--on-steel); text-align: center; margin: 12px 0 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }
.about-text p { font-size: 1.05rem; max-width: 60ch; }
/* styled after the logo's double-ruled badge */
.fact-plate { margin: 0; background: var(--steel); color: var(--on-steel); padding: 22px 24px; border-radius: 4px;
  outline: 1.5px solid var(--on-steel-soft); outline-offset: -8px; }
.fact-plate div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.14); }
.fact-plate div:last-child { border-bottom: 0; }
.fact-plate dt { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-steel-soft); padding-top: 3px; }
.fact-plate dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.review blockquote::before { content: "\201C"; font: 400 2.2rem/0 var(--serif); color: var(--accent); vertical-align: -.45em; margin-right: 4px; }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: .9rem; }
.review figcaption span { color: var(--muted); font-size: .85rem; }
.stars { color: var(--accent); letter-spacing: .12em; }
.stars span { color: var(--border); }

.side-badge { display: flex; flex-direction: column; gap: 8px; }
.side-badge img { width: 100%; max-width: 170px; height: auto; }
.side-badge small { font: 600 10.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--on-steel-soft); }
/* small red text on black needs a lighter red to stay readable */
.hero.dark .eyebrow { color: #c4484f; }
.fact-plate dt { white-space: nowrap; }

/* footer social links: icon above the name */
.site-footer #socials { gap: 18px; }
.site-footer #socials a.social { margin-left: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-size: .8rem; }
.site-footer #socials a.social svg, .site-footer #socials a.social i { font-size: 1.6rem; height: 1.6rem; width: 1.6rem; }
.site-footer #socials a.social:hover span { text-decoration: underline; }

a.side-badge { text-decoration: none; }
a.side-badge:hover img { opacity: .85; }

/* quote form: shipping/pickup, checkboxes, fee note */
fieldset.choice-group { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.choice-group legend { font-size: .875rem; font-weight: 500; margin-bottom: 6px; padding: 0; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .95rem; cursor: pointer; margin: 0; }
.choices .choice { border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; background: var(--surface); }
.choices .choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input { width: auto; margin: 0; accent-color: var(--accent); }
.checks { display: grid; gap: 10px; }
.fee-note { font: 400 1rem var(--serif); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 4px 0 14px; }

/* ---------- shop picker + cart ---------- */
button.product { font: inherit; text-align: left; cursor: pointer; padding: 0; display: block; width: 100%; }
.pk-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.pk-top img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; flex: none; }
.pk-step { margin-top: 18px; }
.pk-label { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.chip:hover { border-color: var(--accent); }
.chip.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.chip.on .muted { color: inherit; opacity: .85; }
.chip .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: none; }
.pk-price { margin-right: auto; align-self: center; }
.ct-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ct-line { min-width: 76px; text-align: right; font-weight: 600; }
.ct-totals > div { display: flex; justify-content: space-between; padding: 3px 0; }
.ct-totals .ct-total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; }
.cart-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; gap: 14px; align-items: center;
  font: inherit; background: var(--steel); color: var(--on-steel); border: 2px solid var(--accent); border-radius: 999px; padding: 12px 20px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); cursor: pointer; max-width: calc(100vw - 32px); }
.cart-bar .cb-go { color: var(--on-steel-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .cart-bar { gap: 10px; padding: 10px 16px; font-size: .9rem; } .cart-bar .cb-go { display: none; } .ct-item { grid-template-columns: 1fr auto auto; } .ct-item .ct-line { grid-column: 1 / -1; text-align: left; } }
.chip.on .sw { border-color: rgba(255,255,255,.85); }

/* ---------- cart: review + edit ---------- */
.ct-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ct-row img, .ct-row .ct-ph { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--border); }
.ct-right { display: grid; gap: 8px; justify-items: end; text-align: right; }
.ct-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ct-step { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.ct-step button { background: none; border: 0; color: inherit; width: 32px; height: 32px; font-size: 1.1rem; cursor: pointer; padding: 0; }
.ct-step button:hover:not(:disabled) { background: var(--surface-2); }
.ct-step button:disabled { opacity: .35; cursor: default; }
.ct-step input { width: 44px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0; text-align: center; background: transparent; color: inherit; -moz-appearance: textfield; appearance: textfield; }
.ct-step input::-webkit-inner-spin-button, .ct-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ct-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-weight: 600; }
@media (max-width: 480px) { .ct-row { grid-template-columns: 52px 1fr; } .ct-row img, .ct-row .ct-ph { width: 52px; height: 52px; } .ct-right { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; justify-content: space-between; } }
#cartDlg .ct-row > img, #cartDlg .ct-row > .ct-ph { width: 64px; height: 64px; max-width: 64px; min-width: 0; margin: 0; }
@media (max-width: 480px) { #cartDlg .ct-row > img, #cartDlg .ct-row > .ct-ph { width: 52px; height: 52px; max-width: 52px; } }

/* ---------- dashboard: shop order designs ---------- */
.so-list { display: grid; gap: 6px; margin-top: 6px; }
.so-line { display: flex; gap: 10px; align-items: center; }
.so-line img, .so-ph { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--border); }
.so-design { font-family: var(--serif); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; line-height: 1.25; color: var(--text, inherit); }
.so-panel { border: 2px solid var(--accent); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; display: grid; gap: 14px; }
.so-head { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.so-line.big { align-items: flex-start; gap: 14px; }
.so-line.big img, .so-line.big .so-ph { width: 96px; height: 96px; flex-basis: 96px; }
.so-line.big .so-design { font-size: 1.3rem; margin-bottom: 6px; }
.so-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 4px; }
.so-specs b { font: 600 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #b3a692); margin-right: 4px; }
@media (max-width: 560px) { .so-line.big img, .so-line.big .so-ph { width: 72px; height: 72px; flex-basis: 72px; } }

/* ---------- shop: build-your-own customizer ---------- */
.cz-entry { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 28px; align-items: center; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px; color: inherit; cursor: pointer; font: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cz-entry:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); border-color: var(--accent); }
.cz-entry-img { background: #efeae2; border-radius: 8px; padding: 18px; }
.cz-entry-img svg { display: block; width: 100%; height: auto; }
.cz-entry h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 1.6rem; margin: 0 0 10px; }
@media (max-width: 640px) { .cz-entry { grid-template-columns: 1fr; gap: 16px; padding: 16px; } .cz-entry h3 { font-size: 1.3rem; } }

dialog.cust-dlg { width: min(1040px, calc(100vw - 24px)); max-width: none; }
.cz-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 0; overflow: auto; max-height: calc(100vh - 170px); }
.cz-preview { position: sticky; top: 0; align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; background: #efeae2; }
.cz-preview figure { margin: 0; }
.cz-view svg { display: block; width: 100%; height: auto; }
.cz-preview figcaption { text-align: center; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6b6257; margin-top: 4px; }
.cz-steps { padding: 18px 20px; }
.cz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cz-card { display: grid; gap: 6px; padding: 6px; background: var(--surface-2, transparent); border: 2px solid var(--border); border-radius: 8px; cursor: pointer; color: inherit; font: inherit; text-align: center; }
.cz-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.cz-thumb { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); }
.cz-thumb svg { width: 100%; height: 100%; }
.cz-none { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .55; color: #888; background: rgba(255,255,255,.8); padding: 3px 6px; border-radius: 4px; }
.cz-card-name { font-size: .78rem; line-height: 1.25; }
@media (max-width: 760px) {
  .cz-wrap { grid-template-columns: 1fr; max-height: calc(100vh - 150px); }
  .cz-preview { padding: 10px; z-index: 2; box-shadow: 0 6px 12px -8px rgba(0,0,0,.4); }
  .cz-preview svg { max-height: 30vh; }
  .cz-steps { padding: 14px; }
}
#cartDlg .ct-row > .ct-pic { width: 64px; height: 72px; background: #efeae2; border-radius: 6px; border: 1px solid var(--border); padding: 2px; }
#cartDlg .ct-pic svg { width: 100%; height: 100%; display: block; }
@media (max-width: 480px) { #cartDlg .ct-row > .ct-pic { width: 52px; height: 60px; } }

dialog.cust-dlg { margin-top: 12px; margin-bottom: auto; }
/* ---------- dashboard: customizer builds on orders ---------- */
.so-mock { width: 52px; height: 60px; flex: 0 0 52px; background: #efeae2; border-radius: 6px; border: 1px solid var(--border); padding: 2px; }
.so-mock svg { width: 100%; height: 100%; display: block; }
.so-build { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 16px; align-items: start; }
.so-mocks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #efeae2; border-radius: 8px; padding: 8px; }
.so-mocks figure { margin: 0; } .so-mocks svg { width: 100%; height: auto; display: block; }
.so-mocks figcaption { text-align: center; font: 600 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6b6257; }
.so-build .so-design { font-size: 1.3rem; margin-bottom: 8px; }
.so-build .so-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin-bottom: 8px; }
.so-build .so-specs b { display: block; }
.so-sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(127,127,127,.6); vertical-align: -2px; margin-right: 6px; }
@media (max-width: 640px) { .so-build { grid-template-columns: 1fr; } }
.pr-art { display: flex; gap: 12px; align-items: center; }
.pr-art-prev { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 6px; border: 1px solid var(--border); background: #3a3a3a; display: grid; place-items: center; overflow: hidden; }
.pr-art-prev img { max-width: 92%; max-height: 92%; }

/* customizer v2: one big preview + front/back switch */
dialog.cust-dlg { width: min(1200px, calc(100vw - 24px)); }
.cz-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.cz-preview { display: block; padding: 16px 20px 14px; }
.cz-main svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 290px); margin: 0 auto; }
.cz-sides { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.cz-side { display: grid; gap: 2px; justify-items: center; width: 78px; padding: 4px; background: rgba(255,255,255,.5); border: 2px solid transparent; border-radius: 8px; cursor: pointer;
  font: 600 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6b6257; }
.cz-side.on { border-color: var(--accent); background: #fff; }
.cz-side svg { display: block; width: 100%; height: auto; max-height: none; }
@media (max-width: 760px) { .cz-preview { padding: 8px 10px; } .cz-main svg { max-height: 40vh; } .cz-side { width: 54px; } .cz-side svg { max-height: none; } }
.so-build { grid-template-columns: minmax(240px, 420px) 1fr; }
