:root {
  --cream: #fdf3dd;
  --paper: #fffdf8;
  --kraft: #e7d8c0;
  --kraft-dark: #c9b79a;
  --ink: #304254;
  --muted: #66727f;
  --accent: #ef601e;
  --accent-dark: #c94c10;
  --error: #d13b5a;
  --pink: #e59ca1;
  --rose: #f0b7bb;
  --hotpink: #ff7b96;
  --yellow: #ffcb64;
  --mint: #68cca8;
  --sky: #d6e8f7;
  --lilac: #caaacd;
  --white: #fffffe;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(48, 66, 84, .06), 0 8px 24px rgba(48, 66, 84, .08);
  --head: "League Spartan", system-ui, sans-serif;
  --body: "Didact Gothic", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }

/* ── hero ─────────────────────────────────────────────── */
.hero {
  background: var(--mint);
  background-image: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .22), transparent 45%),
                    radial-gradient(circle at 6% 95%, rgba(48, 66, 84, .10), transparent 50%);
  color: var(--ink); padding: 18px 16px 0; overflow: hidden;
}
.topbar { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--white); text-decoration: none; display: flex; align-items: baseline; gap: 8px; }
.brand-name { font: 800 26px/1 var(--head); letter-spacing: -.5px; }
.brand-by { font: 400 16px/1 var(--body); color: var(--white); }
.lang { display: flex; background: rgba(48, 66, 84, .1); border-radius: 99px; padding: 3px; }
.lang button, .lang a {
  border: 0; background: none; color: var(--ink); padding: 6px 12px; border-radius: 99px;
  cursor: pointer; font: 700 14px/1 var(--head); letter-spacing: .5px;
}
.lang a { text-decoration: none; }
.lang button.active, .lang a.active { background: var(--ink); color: var(--white); }

.hero-inner {
  max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 32px; align-items: center; padding: 40px 0 44px;
}
.tagline { margin: 0 0 12px; color: var(--white); font: 700 17px/1 var(--head); letter-spacing: .5px; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); font-weight: 800; letter-spacing: -2px; color: var(--white); }
.hero h1 .dot { color: var(--white); }
.h1-sub { display: inline-block; margin-top: 10px; font-size: .42em; letter-spacing: -.5px; color: var(--white); }
.lead { max-width: 560px; font-size: 18px; margin: 18px 0 20px; color: var(--white); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--white); }
.facts li { display: flex; gap: 12px; align-items: center; }
.facts .ic {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font: 800 15px/1 var(--head);
}

.hero-art { position: relative; height: 380px; }
.ha { position: absolute; width: 52%; border-radius: 6px; box-shadow: 0 18px 40px rgba(48, 66, 84, .28); background: var(--white); }
.ha1 { left: 4%; top: 30px; transform: rotate(-7deg); }
.ha2 { left: 44%; top: 0; transform: rotate(5deg); width: 46%; }
.ha3 { left: 26%; top: 150px; transform: rotate(-1deg); width: 44%; }


/* ── theme nav ────────────────────────────────────────── */
.theme-nav {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 10px; overflow-x: auto;
  padding: 10px 16px; background: rgba(255, 253, 248, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kraft); scrollbar-width: none; justify-content: safe center;
}
.theme-nav::-webkit-scrollbar { display: none; }
.theme-nav a {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px;
  border-radius: 99px; background: var(--c); color: var(--tink, var(--ink)); text-decoration: none;
  font: 700 15px/1 var(--head); white-space: nowrap;
}
.theme-nav img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--white); }
.tn-count:not(:empty) {
  background: var(--white); color: var(--ink); border-radius: 99px; padding: 3px 8px; font-size: 12px;
}

/* ── layout ───────────────────────────────────────────── */
main { max-width: 1180px; margin: 0 auto; padding: 32px 16px 40px; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; display: flex; align-items: center; gap: 12px; letter-spacing: -.5px; }
h2 .num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-size: 21px;
}

/* ── themes / cards ───────────────────────────────────── */
.theme { margin-bottom: 44px; }
.theme-head {
  display: flex; align-items: center; gap: 16px; background: var(--c); color: var(--tink, var(--ink));
  border-radius: var(--radius); padding: 12px 22px 12px 12px; margin-bottom: 18px; overflow: hidden;
}
.theme-head img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 12px; background: var(--white); }
.theme-head h3 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.5px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px 14px;
  display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
}
.card.on { border-color: var(--c); transform: translateY(-2px); }
.card .zoom { border: 0; padding: 0; background: var(--kraft); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.card .zoom img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .35s; }
.card .zoom:hover img { transform: scale(1.03); }
.card h4 { font: 400 18px/1.25 var(--body); text-align: center; min-height: 2.5em; display: grid; place-items: center; padding: 0 4px; }

.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; }
.st-btn {
  height: 44px; border-radius: 12px; border: 0; background: var(--cream); cursor: pointer;
  font: 700 22px/1 var(--head); color: var(--accent); transition: background .15s;
}
.st-btn:hover { background: var(--yellow); }
.stepper input {
  height: 44px; width: 100%; text-align: center; border: 2px solid var(--kraft); border-radius: 12px;
  font: 700 20px/1 var(--head); background: var(--white); -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; border-color: var(--mint); }
.card.on .stepper input { border-color: var(--c); background: var(--cream); }
.quick { display: flex; gap: 6px; justify-content: center; }
.quick button {
  border: 1px dashed var(--kraft-dark); background: none; border-radius: 99px; padding: 3px 12px;
  font-size: 14px; color: var(--muted); cursor: pointer;
}
.quick button:hover { border-style: solid; color: var(--ink); background: var(--cream); }

/* ── panels / form ────────────────────────────────────── */
.panel {
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 28px;
  margin-bottom: 28px; border-top: 6px solid var(--yellow);
}
.panel.summary { border-top-color: var(--mint); }
.panel > .muted { margin: 8px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); position: relative; padding-bottom: 20px; }
.f.wide { grid-column: span 3; }
.f em { color: var(--error); font-style: normal; }
.fl { display: block; }
.f input, .f textarea {
  border: 2px solid var(--kraft); border-radius: 12px; padding: 11px 14px; background: var(--paper);
  color: var(--ink); font-size: 16px; transition: border-color .15s, background .15s; width: 100%;
}
.f input:focus, .f textarea:focus { outline: none; border-color: var(--mint); background: var(--white); }
.f.bad input { border-color: var(--error); background: #fff4f6; }
.ferr { position: absolute; left: 2px; bottom: 0; color: var(--error); font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.delivery { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.delivery legend { padding: 0; margin-bottom: 6px; }
.pill { display: inline-flex; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  padding: 10px 18px; border-radius: 99px; border: 2px solid var(--kraft); color: var(--ink);
  background: var(--paper); transition: all .15s;
}
.pill input:checked + span { background: var(--mint); border-color: var(--mint); color: var(--white); }
.pill input:focus-visible + span { outline: 3px solid var(--yellow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── summary ──────────────────────────────────────────── */
.summary h2 { margin-bottom: 18px; }
.empty { text-align: center; color: var(--muted); padding: 24px; background: var(--paper); border-radius: 14px; }
.table-wrap { overflow-x: auto; }
table.lines { width: 100%; border-collapse: collapse; font-size: 16px; }
.lines th { text-align: left; font: 600 13px/1 var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--kraft); }
.lines td { padding: 8px; border-bottom: 1px solid #eee7da; vertical-align: middle; }
.lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines tr.grp td { font: 700 15px/1 var(--head); padding-top: 18px; border-bottom: 0; }
.dotc { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: -1px; }
.c-card { display: flex; align-items: center; gap: 12px; }
.c-card img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; background: var(--kraft); }
.sum-grid { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 24px; margin-top: 22px; align-items: start; }
.who p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.who a { font-size: 14px; }
.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; background: var(--cream); padding: 18px 20px; border-radius: 16px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font: 800 22px/1.2 var(--head); color: var(--ink); padding-top: 10px; border-top: 2px dashed var(--kraft-dark); }
.totals dd.grand { color: var(--accent-dark); }
.ship { font: 400 14px/1 var(--body); color: var(--muted); white-space: nowrap; }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.minline { margin: 8px 0 0; font-weight: 600; color: var(--accent-dark); }
.minline.ok { color: #2f8a67; }

.submit-row { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.err { color: var(--error); margin: 0; flex: 1; min-width: 200px; min-height: 3.1em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 99px; padding: 12px 22px; font: 700 16px/1 var(--head); text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn.primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 16px rgba(239, 96, 30, .3); }
.btn.primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.big { padding: 17px 32px; font-size: 19px; }
.btn.ghost { background: var(--cream); color: var(--ink); }
.btn.ghost:hover { background: var(--kraft); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* ── sticky cart bar ──────────────────────────────────── */
.cartbar {
  position: fixed; left: 50%; bottom: 14px; z-index: 30; width: min(720px, calc(100% - 24px));
  transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  background: var(--ink); color: var(--cream); border-radius: 22px; padding: 12px 12px 12px 20px;
  box-shadow: 0 16px 40px rgba(48, 66, 84, .35);
}
.cartbar.show { transform: translate(-50%, 0); }
.cb-info { flex: 1; min-width: 0; }
.cb-line { font-size: 16px; }
.cb-line b { font-family: var(--head); font-size: 19px; color: var(--yellow); }
.cartbar .ship { color: var(--kraft); }
.progress { height: 6px; background: rgba(255, 255, 255, .15); border-radius: 99px; overflow: hidden; margin: 7px 0 4px; }
.progress span { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 99px; transition: width .3s; }
.cartbar.ok .progress span { background: var(--mint); }
.cb-hint { font-size: 13px; color: var(--kraft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(33, 45, 58, .9); display: flex;
  flex-direction: column; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 80vh; border-radius: 10px; object-fit: contain; }
.lb-title { color: var(--cream); font: 700 22px/1.2 var(--head); margin: 14px 0 0; text-align: center; }
.lb-close {
  position: absolute; top: 14px; right: 18px; border: 0; background: var(--cream); color: var(--ink);
  width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer;
}

/* ── footer ───────────────────────────────────────────── */
.site-foot { text-align: center; padding: 30px 16px 120px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--kraft); }
.site-foot p { margin: 6px 0; }
.site-foot .copy { font-size: 13px; }

/* ── confirmation page ────────────────────────────────── */
.confirm-hero { background: var(--cream); color: var(--ink); padding: 18px 16px 40px; }
.confirm-hero .topbar .brand { color: var(--ink); }
.confirm-hero .brand-by { color: var(--accent-dark); }
.confirm-inner { max-width: 900px; margin: 30px auto 0; text-align: center; }
.confirm-inner .big-ic {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); color: var(--white);
  display: grid; place-items: center; font: 800 40px/1 var(--head);
}
.confirm-inner h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -1px; }
.confirm-inner p { font-size: 18px; margin: 12px auto 0; max-width: 620px; }
.order-no { display: inline-block; margin-top: 16px; background: var(--white); color: var(--ink); padding: 8px 18px; border-radius: 99px; font: 700 18px/1 var(--head); }
.doc { max-width: 900px; margin: -20px auto 0; padding: 0 16px 60px; position: relative; }
.doc .panel { border-top-color: var(--sky); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; margin: 0 0 20px; }
.kv div { padding: 8px 0; border-bottom: 1px solid #eee7da; }
.kv dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-family: var(--head); }
.kv dd { margin: 2px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.status-chip { display: inline-block; padding: 4px 12px; border-radius: 99px; font: 700 13px/1.2 var(--head); background: var(--cream); }
.st-new { background: var(--yellow); }
.st-confirmed { background: var(--sky); }
.st-shipped { background: var(--mint); color: var(--white); }
.st-cancelled { background: #eee; color: #888; text-decoration: line-through; }

/* ── admin ────────────────────────────────────────────── */
.admin-top { background: var(--ink); color: var(--cream); padding: 14px 16px; }
.admin-top .inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.admin-top a { color: var(--cream); }
.admin-top nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-top nav a, .admin-top nav button { color: var(--cream); background: rgba(255,255,255,.1); border: 0; padding: 7px 12px; border-radius: 99px; text-decoration: none; font-size: 14px; cursor: pointer; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters a { text-decoration: none; color: var(--ink); background: var(--white); padding: 7px 14px; border-radius: 99px; box-shadow: var(--shadow); font-size: 14px; }
.filters a.active { background: var(--ink); color: var(--cream); }
table.admin { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
table.admin th, table.admin td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee7da; }
table.admin th { background: var(--cream); font: 600 13px/1 var(--head); text-transform: uppercase; letter-spacing: .5px; }
table.admin tr:hover td { background: var(--paper); }
table.admin .num { text-align: right; }
.login { max-width: 380px; margin: 12vh auto; padding: 0 16px; }
.login .panel { text-align: center; }
.login input { width: 100%; margin: 16px 0; }
.admin-form { display: grid; gap: 12px; }
.admin-form select, .admin-form textarea { border: 2px solid var(--kraft); border-radius: 12px; padding: 10px; background: var(--paper); width: 100%; font: inherit; }
.flash { background: var(--mint); color: var(--white); padding: 10px 16px; border-radius: 12px; margin-bottom: 16px; }
.danger { background: none; border: 0; color: var(--error); cursor: pointer; text-decoration: underline; font: inherit; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-art { height: 260px; max-width: 420px; width: 100%; margin: 0 auto; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { max-width: none; }
  .f.wide { grid-column: span 2; }
  .sum-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 7px 7px 10px; gap: 8px; }
  .card h4 { font-size: 15px; }
  .stepper { grid-template-columns: 36px 1fr 36px; gap: 4px; }
  .st-btn, .stepper input { height: 40px; }
  .grid { grid-template-columns: 1fr; }
  .f.wide { grid-column: auto; }
  .panel { padding: 20px 16px; border-radius: 20px; }
  .theme-nav { justify-content: flex-start; }
  .lines .c-card img { width: 34px; height: 34px; }
  .lines td, .lines th { padding: 7px 4px; }
  .lines th:nth-child(3), .lines td:nth-child(3) { display: none; }
  .cartbar { padding: 10px 10px 10px 14px; }
  .cartbar .btn { padding: 11px 14px; font-size: 14px; }
  .btn.big { width: 100%; }
}

/* ── print ────────────────────────────────────────────── */
@media print {
  body { background: #fff; font-size: 12pt; }
  .no-print, .cartbar, .theme-nav, .actions, .admin-top, .lang { display: none !important; }
  .confirm-hero { background: none; color: var(--ink); padding: 0; }
  .confirm-inner { margin-top: 0; }
  .confirm-inner .big-ic { display: none; }
  .doc { margin-top: 10px; }
  .panel { box-shadow: none; border: 1px solid #ddd; }
  .order-no { border: 1px solid #999; }
}
