:root {
  --brand: #e4572e;
  --brand-dark: #c2411b;
  --navy: #1d3557;
  --sun: #ffc93c;
  --ink: #16202e;
  --muted: #5b6676;
  --line: #e3e6eb;
  --bg: #fbfaf7;
  --card: #ffffff;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --err: #c53030;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 32, 46, .06), 0 8px 24px rgba(22, 32, 46, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { font-family: Archivo, Inter, system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1em; }
a { color: var(--navy); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: .6em; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.pre { white-space: pre-wrap; }

/* header / footer */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: Archivo, sans-serif; font-size: 1.15rem; font-weight: 700; }
.logo b { color: var(--sun); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--brand); font-weight: 800; font-size: .95rem; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: #dfe4ea; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-footer { background: var(--ink); color: #c5ccd6; margin-top: 48px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 32px; padding-bottom: 32px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; font: 600 1rem Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 24px; font-size: 1.1rem; }

/* hero */
.hero { background: linear-gradient(135deg, #fff5ec 0%, #fbfaf7 55%, #eef3fa 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 span { color: var(--brand); display: block; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { position: relative; min-height: 280px; }
.float { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px; }
.float svg { display: block; width: 100%; height: auto; }
.f1 { width: 62%; top: 0; left: 4%; transform: rotate(-4deg); }
.f2 { width: 46%; top: 38%; right: 0; transform: rotate(5deg); }
.f3 { width: 42%; bottom: 0; left: 16%; transform: rotate(-2deg); }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(22, 32, 46, .12); }
.product-card p { color: var(--muted); flex: 1; }
.product-art { background: #f4f1ea; border-radius: 10px; padding: 18px 28px; margin-bottom: 16px; }
.product-art svg, .page-art svg { display: block; width: 100%; height: auto; }
.card-link { color: var(--brand); font-weight: 600; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; font-family: Archivo, sans-serif; font-size: 1.1rem; }
.steps span { color: var(--muted); }

/* order form */
.page-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.page-art { width: 120px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.order-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px 20px 20px; margin: 0 0 18px; min-width: 0; }
legend { font-family: Archivo, sans-serif; font-weight: 700; font-size: 1.05rem; padding: 0 6px; }
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 12px; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1.5px solid #cdd3dc; border-radius: 9px; font: 1rem Inter, sans-serif; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29, 53, 87, .15); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.row > .btn { align-self: end; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid #cdd3dc; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(228, 87, 46, .35); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--brand); }
.size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0 10px; }
.hint { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.hint.warn { color: var(--warn); }
.upload { border: 2px dashed #c5ccd6; border-radius: 12px; padding: 18px; background: #fafbfc; cursor: pointer; }
.upload input { border: 0; padding: 0; margin: 0 0 10px; background: transparent; }
.summary { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary h2 { font-size: 1.2rem; }
.quote-errors { color: var(--muted); font-size: .9rem; padding-left: 18px; }

/* totals & cards */
.totals { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
.totals td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.totals td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.totals .sub td { font-weight: 600; }
.totals .grand td { font-weight: 800; font-size: 1.15rem; border-bottom: 0; padding-top: 12px; font-family: Archivo, sans-serif; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h3:first-child, .card h2:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col h3 { margin-top: 0; }
.alert { padding: 14px 16px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3d58a; margin-bottom: 18px; }
.alert-error { background: #fdecec; border-color: #f2b8b8; color: #7a1f1f; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.prose h2 { margin-top: 1.4em; }

/* admin */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { margin: 0; }
.tabs { display: flex; gap: 6px; }
.tabs a { padding: 8px 14px; border-radius: 8px; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.orders { width: 100%; border-collapse: collapse; font-size: .93rem; }
.orders th, .orders td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.orders th { background: #f6f7f9; font-weight: 600; white-space: nowrap; }
.orders td:first-child, .orders td:nth-child(2), .orders td:nth-child(5) { white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eef0f3; white-space: nowrap; }
.badge-paid { background: #fde7df; color: #9a2e10; }
.badge-payment_review { background: #fdecec; color: #9b1c1c; }
.badge-in_production { background: #e6eefb; color: #1d3f82; }
.badge-ready, .badge-shipped { background: #e7f6ec; color: #17663a; }
.badge-completed { background: #eef0f3; color: #3c4655; }
.badge-canceled { background: #f1f1f1; color: #777; text-decoration: line-through; }
.badge-awaiting_payment { background: #fff4d6; color: #7a5a06; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.history { padding-left: 18px; font-size: .9rem; }

@media (max-width: 900px) {
  .order-form, .admin-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-art { min-height: 220px; max-width: 420px; }
}
@media (max-width: 560px) {
  .section { padding: 32px 16px; }
  .two-col { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-art { width: 96px; }
  nav a { padding: 6px 8px; font-size: .9rem; }
  .header-row { padding-top: 8px; padding-bottom: 8px; }
}

/* v2 additions */
.product-art.has-photo, .page-art.has-photo { padding: 0; overflow: hidden; }
.product-art img, .page-art img, .float img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.product-desc { margin-bottom: 20px; max-width: 760px; }
