/* r3d makes brand (branding/r3d-makes/kit). Fonts are self-hosted subsets in assets/brand/. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("brand/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("brand/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600 700; font-display: swap; src: url("brand/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Baloo Bhaijaan 2"; font-weight: 800; font-display: swap; src: url("brand/baloo-bhaijaan-2-800.woff2") format("woff2"); }

:root {
  --bg: #eef1f5;          /* Paper */
  --surface: #ffffff;
  --surface-2: #e6eaf0;
  --text: #1a1a1a;        /* Black */
  --muted: #565d68;
  --border: #dce1e8;
  --accent: #1a1a1a;      /* buttons and selected states */
  --accent-ink: #ffffff;
  --accent-soft: #fff1e6; /* orange tint */
  --link: #b34a00;        /* orange, dark enough for small text */
  --orange: #ff7e23;
  --yellow: #f8df20;
  --blue: #33aaee;
  --tint-1: #fff1e6;
  --tint-2: #fef9d4;
  --tint-3: #e3f2fc;
  --danger: #b42318;
  --viewer-bg: #e6eaf0;
  --model: #ff7e23;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 24, 30, 0.05), 0 4px 16px rgba(20, 24, 30, 0.05);
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Baloo Bhaijaan 2", "Poppins", system-ui, sans-serif;
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked one (theme.js sets data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-2: #2a2d31;
    --text: #eef1f5;
    --muted: #aeb4bd;
    --border: #2c3036;
    --accent: #f8df20;
    --accent-ink: #1a1a1a;
    --accent-soft: #3a2a14;
    --link: #ff9a4d;
    --tint-1: #2e2218;
    --tint-2: #2c2a16;
    --tint-3: #16262f;
    --danger: #ff8a7a;
    --viewer-bg: #24272b;
    --model: #ff7e23;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-2: #2a2d31;
  --text: #eef1f5;
  --muted: #aeb4bd;
  --border: #2c3036;
  --accent: #f8df20;
  --accent-ink: #1a1a1a;
  --accent-soft: #3a2a14;
  --link: #ff9a4d;
  --tint-1: #2e2218;
  --tint-2: #2c2a16;
  --tint-3: #16262f;
  --danger: #ff8a7a;
  --viewer-bg: #24272b;
  --model: #ff7e23;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, .hero h1, .page h1, .panel h1, .pay h2, .section-head h2, .colors-box h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 12px max(24px, calc((100% - 1152px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 38px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

.header-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-end .back-link, .header-end .cart-link { margin-left: 0; }
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; display: none; }
.theme-toggle:not([data-mode]) .i-system,
.theme-toggle[data-mode="system"] .i-system,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { display: block; }
.brand .brand-label { margin-left: 12px; font-weight: 600; font-size: 15px; }

.site-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--link); }

.back-link {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { color: var(--text); }

/* ---------- Landing ---------- */

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: center;
}
.hero-text { flex: 1 1 420px; min-width: 0; display: grid; gap: 18px; justify-items: start; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 0; text-wrap: balance; }
.hero p { color: var(--muted); max-width: 520px; margin: 0; font-size: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.pill.hot { background: var(--orange); border-color: var(--orange); color: #1a1a1a; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-actions .btn { padding: 13px 22px; font-size: 15px; }
.hero-media { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-media a { display: block; border-radius: 22px; padding: 10px; background: var(--surface); }
.hero-media a:first-child { grid-column: span 2; }
.hero-media a:nth-child(2) { background: var(--tint-2); }
.hero-media a:nth-child(3) { background: var(--tint-3); }
.hero-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.hero-media a:first-child img { aspect-ratio: 2 / 1; background: var(--tint-1); }

.steps { background: var(--surface); border-block: 1px solid var(--border); }
.steps ol { list-style: none; margin: 0 auto; max-width: 1200px; padding: 36px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 28px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 22px/1 var(--font-display); color: #1a1a1a; background: var(--orange); }
.steps li:nth-child(2) .n { background: var(--yellow); }
.steps li:nth-child(3) .n { background: var(--blue); }
.steps li:nth-child(4) .n { background: var(--surface-2); color: var(--text); }
.steps h3 { margin: 0; font-size: 16px; font-weight: 600; }
.steps p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.section-head { max-width: 1200px; margin: 0 auto; padding: 56px 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head h2 { margin: 0; font-size: 40px; line-height: 1.1; }
.design-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.design-filters button {
  font: 500 14px var(--font-text); min-height: 44px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.design-filters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.design-filters button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card[hidden] { display: none; }
.card:hover { transform: translateY(-2px); border-color: var(--text); }
.card:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

.card-thumb {
  padding: 10px;
  background: var(--tint-1);
  color: var(--muted);
}
.card:nth-child(3n+2) .card-thumb { background: var(--tint-2); }
.card:nth-child(3n) .card-thumb { background: var(--tint-3); }
.card-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 12px; }
.card-cta { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--link); }

.colors-box {
  max-width: 1152px; margin: 32px auto 64px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center;
}
@media (max-width: 1200px) { .colors-box { margin-inline: 24px; } }
.colors-box > div { flex: 1 1 260px; min-width: 0; }
.colors-box h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.colors-box p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.filaments { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px 16px; }
.filaments li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.filaments span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }

.card-body { padding: 16px 18px 18px; }
.card-body h2 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.site-footer { background: #1a1a1a; color: #eef1f5; border-top: 1px solid var(--border); }
.site-footer .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.site-footer img { display: block; height: 42px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; }

/* ---------- Customizer ---------- */

.customizer {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 400px);
  height: calc(100vh - 57px);
  height: calc(100dvh - 57px);
}

.panel {
  order: 2;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 20px 32px;
}

.panel h1 { font-size: 30px; line-height: 1.05; margin: 0 0 6px; }
.panel .lede { color: var(--muted); margin: 0 0 16px; font-size: 14px; }

.section {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--surface);
}
.section > summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section > summary::-webkit-details-marker { display: none; }
.section > summary::after { content: "▾"; color: var(--muted); transition: transform 0.15s; }
.section:not([open]) > summary::after { transform: rotate(-90deg); }
.section-body { padding: 4px 14px 14px; display: grid; gap: 14px; }

.field label.name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.field .val { font-variant-numeric: tabular-nums; color: var(--link); font-weight: 600; }
.field .desc { font-size: 12px; color: var(--muted); margin: -2px 0 6px; }

.field input[type="text"],
.field input[type="number"],
.field select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.field input[type="range"] { width: 100%; accent-color: var(--accent); }
.field .checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.field .checkbox input { accent-color: var(--accent); width: 16px; height: 16px; }
.field .vector { display: grid; grid-auto-flow: column; gap: 6px; }

.slider-row { display: grid; grid-template-columns: 1fr 72px; gap: 10px; align-items: center; }
.slider-row input[type="number"] { padding: 4px 6px; text-align: right; }

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px -20px 0;
  padding: 12px 20px;
  position: sticky;
  bottom: -32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); grid-column: 1 / -1; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.05); border-color: var(--accent); }

.viewer { position: relative; background: var(--viewer-bg); min-height: 300px; }
.viewer canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  box-shadow: var(--shadow);
}
.status.error { color: var(--danger); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.status.busy .dot { background: var(--accent); animation: pulse 1s infinite ease-in-out; }
.status.error .dot { background: var(--danger); }
@keyframes pulse { 50% { opacity: 0.3; } }

.viewer-tools { position: absolute; bottom: 14px; right: 14px; display: flex; gap: 8px; }
.viewer-tools .btn { box-shadow: var(--shadow); }

.dims {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.notice { padding: 40px 24px; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  .site-header { padding: 10px 16px; }
  .hide-sm { display: none; }
  .cart-link { padding: 8px 14px; }
  .header-end { gap: 8px; }
  .theme-toggle { width: 40px; height: 40px; }
  .brand img { height: 32px; }
  .site-nav { order: 3; width: 100%; gap: 16px; }
  .hero { padding: 32px 16px 32px; }
  .section-head { padding: 40px 16px 0; }
  .section-head h2 { font-size: 32px; }
  .grid { padding: 16px 16px 24px; }
  .steps ol { padding: 28px 16px; }
  .colors-box { margin-inline: 16px; padding: 20px; }
  .site-footer .wrap { padding-inline: 16px; }
  .customizer { display: flex; flex-direction: column; height: auto; }
  .viewer { order: -1; height: 55vh; height: 55dvh; flex: none; }
  .panel { border-left: 0; border-top: 1px solid var(--border); padding: 16px; overflow: visible; }
  .actions { margin: 16px -16px 0; padding: 12px 16px; bottom: 0; }
}

.fineprint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.site-footer a { color: inherit; }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--c);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.swatch[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.swatch-name { margin-top: 6px; font-size: 13px; color: var(--muted); }
.swatch.same {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--border) 4px 8px);
}
.field[hidden] { display: none; }

.price {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 2px 2px 4px;
}
.price[hidden] { display: none; }
.price-label { font-size: 13px; color: var(--muted); }
.price b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price-note { flex-basis: 100%; font-size: 12px; color: var(--muted); }

.cart-link {
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
}
.cart-link:hover { opacity: 0.9; }
.back-link + .cart-link { margin-left: 8px; }
.add-row { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.add-row .btn.primary { grid-column: auto; }
.qty { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.qty input {
  width: 56px; font: inherit; font-size: 14px; padding: 8px 6px; text-align: center;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.added { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; }
.added:hover { text-decoration: underline; }

/* ---------- Order pages ---------- */

.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
.page.narrow { max-width: 640px; }
.page h1 { font-size: 40px; line-height: 1.05; margin: 0 0 20px; }
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.box h2 { font-size: 16px; margin: 0 0 12px; }
.box h3 { font-size: 14px; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); font-size: 14px; margin: 0; }
.note { background: var(--accent-soft); padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.eyebrow { color: var(--link); font-weight: 700; margin: 0 0 6px; }
.btn.inline { display: inline-block; margin: 4px 6px 4px 0; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; }

.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.line-thumb { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--viewer-bg) center / cover no-repeat; }
.line h3 { margin: 0 0 4px; font-size: 15px; }
.line-details { margin: 0 0 8px; padding: 0; list-style: none; font-size: 12px; color: var(--muted); columns: 2; column-gap: 16px; }
.line-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.line-ctrl a { color: var(--muted); }
.line-price { margin-left: auto; font-size: 15px; }

.form { display: grid; gap: 12px; position: sticky; top: 16px; }
.form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 14px; font-weight: 400; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn.primary { width: 100%; }
.agree { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px; font-weight: 400 !important; font-size: 14px !important; }
.agree input { width: auto !important; margin-top: 3px; accent-color: var(--accent); }

.totals { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .total { font-weight: 700; font-size: 17px; padding-top: 6px; border-top: 1px dashed var(--border); }

.status-pill {
  display: inline-block; margin: 0 0 16px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--muted);
}
.status-pill.small { margin: 0; padding: 1px 8px; font-size: 11px; }
.status-pill[data-status="awaiting_payment"] { background: #fff3cd; color: #7a5b00; }
.status-pill[data-status="paid"], .status-pill[data-status="printing"] { background: #dbeafe; color: #1e3a8a; }
.status-pill[data-status="printed"] { background: #ede9fe; color: #4c1d95; }
.status-pill[data-status="shipped"], .status-pill[data-status="delivered"] { background: #dcfce7; color: #14532d; }
.status-pill[data-status="cancelled"] { background: #fee2e2; color: #7f1d1d; }

.pay { text-align: center; }
.pay h2 { font-size: 20px; }
.ipa { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 12px; }
.ipa code { font-size: 17px; font-weight: 700; padding: 6px 12px; background: var(--surface-2); border-radius: 8px; }
.qr { display: block; width: 200px; max-width: 70%; margin: 14px auto 4px; border-radius: 12px; background: #fff; }
.proof { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.proof label.btn { display: inline-block; cursor: pointer; }
.summary { list-style: none; margin: 0; padding: 0; }
.summary li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary p { margin: 2px 0 0; }
.summary-head { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- Admin ---------- */

.admin { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; height: calc(100dvh - 57px); }
.admin-list { overflow-y: auto; border-right: 1px solid var(--border); background: var(--surface); }
.admin-list ul { list-style: none; margin: 0; padding: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.chip { font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.order-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 14px; }
.order-row.on { background: var(--accent-soft); }
.order-row .amount { text-align: right; }
.admin-detail { overflow-y: auto; padding: 20px 24px 48px; }
.detail-head { display: flex; align-items: baseline; gap: 12px; }
.detail-head h1 { margin: 0 0 12px; font-size: 24px; }
.admin-detail p { margin: 4px 0; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-row select { font: inherit; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.photos figure { margin: 0; display: grid; gap: 4px; justify-items: start; }
.photos img { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.print-photos { display: grid; gap: 12px; }
.print-photos img { width: 100%; border-radius: 12px; }
.proof-img { max-width: 260px; max-height: 360px; border-radius: 8px; border: 1px solid var(--border); }

@media (max-width: 760px) {
  .page { padding: 20px 16px 48px; }
  .checkout { grid-template-columns: 1fr; }
  .form { position: static; }
  .form .row { grid-template-columns: 1fr; }
  .line { grid-template-columns: 84px 1fr; }
  .line-details { columns: 1; }
  .admin { display: block; height: auto; }
  .admin-list { border-right: 0; max-height: 45vh; }
}

[hidden] { display: none !important; }

.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.font-option {
  display: grid; gap: 2px; padding: 8px 6px 6px; border-radius: 10px; cursor: pointer; text-align: center;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit;
}
.font-option:hover { border-color: var(--muted); }
.font-option[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.font-sample { font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-name { font-size: 11px; color: var(--muted); }

/* contact lines: small line icon before the website, Instagram handle and email */
.contact { display: inline-flex; align-items: center; gap: 7px; }
.contact .ci { width: 16px; height: 16px; flex: none; }
.fineprint.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fineprint.follow .ci { width: 14px; height: 14px; }
