:root {
  --bg: #0b0a09;
  --panel: #141210;
  --panel-2: #1b1815;
  --line: #2a2622;
  --text: #f6f2ec;
  --muted: #a59d93;
  --amber: #F0B101;
  --kraft: #c9a47a;
  --red: #c8574f;
  --ok: #7bc47f;
  --bad: #e07a6f;
  --radius: 16px;
  --display: "Zilla Slab", Georgia, serif;
  --mono: "Courier Prime", ui-monospace, monospace;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body);
  background-image:
    radial-gradient(1200px 500px at 85% -10%, #f0b10112, transparent 60%),
    radial-gradient(800px 400px at -10% 30%, #c9a47a0d, transparent 60%);
  min-height: 100vh;
}
body::after {   content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }


.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 1140px; margin: 0 auto; background: #0b0a09e6; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 50%; }
.top nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { text-decoration: none; padding: 7px 11px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; }
.top nav a.on, .top nav a:hover { color: var(--text); background: var(--panel-2); }
#cart-count:not(:empty) { margin-left: 6px; background: var(--amber); color: #000; border-radius: 999px; padding: 0 7px; font: 700 12px/18px var(--mono); display: inline-block; }
@media (max-width: 520px) { .brand span { display: none; } .top nav a { padding: 7px 9px; font-size: 14px; } }

main { max-width: 1140px; margin: 0 auto; padding: 8px 16px 64px; outline: none; min-height: 60vh; }
.page-head { padding: 28px 0 8px; }
.hero.single { grid-template-columns: 1fr; }
h1.h-product { font-size: clamp(38px, 7vw, 60px); }
h1.h-admin { font-size: clamp(34px, 6vw, 52px); }
.small { font-size: 14px; } .tiny { font-size: 12px; }
.gap-top { margin-top: 14px; } .gap-top-sm { margin-top: 6px; } .gap-bottom { margin-bottom: 16px; }
.flat { margin: 0; } .strong { color: var(--text); }
.btn.block { width: 100%; }
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
.panel.inset { background: var(--panel-2); }
.sum.total.flat { border: 0; margin: 0; padding: 0; }
label.f.end { align-content: end; }
img.preview { max-height: 120px; border-radius: 10px; margin-top: 6px; }
.loading { color: var(--muted); padding: 40px 0; font-family: var(--mono); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 12px; letter-spacing: -.015em; }
h1 { font-size: clamp(40px, 9vw, 84px); }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 21px; }
.dot { color: var(--amber); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.eyebrow { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; display: block; }

.rise > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.rise > *:nth-child(2) { animation-delay: .07s; } .rise > *:nth-child(3) { animation-delay: .14s; }
.rise > *:nth-child(4) { animation-delay: .21s; } .rise > *:nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .rise > * { animation: none; } }

.hero { display: grid; gap: 28px; padding: 28px 0 40px; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; padding: 48px 0 64px; } }
.hero p { font-size: 19px; max-width: 30em; color: var(--muted); margin: 0 0 22px; }
.pack {
  position: relative; aspect-ratio: 3/4; max-width: 380px; width: 100%; justify-self: center; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0 24%, var(--kraft) 24% 72%, #262220 72%);
  box-shadow: 0 40px 80px -30px #000, inset 0 0 0 1px #ffffff14; transform: rotate(-3deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.pack:hover { transform: rotate(0deg) translateY(-4px); }
.pack::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 14px; border-radius: 99px; background: var(--bg); transform: translateX(-50%); }
.pack img { position: absolute; inset: 12% 8% 0; width: 84%; height: 88%; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; mix-blend-mode: multiply; filter: contrast(1.05); }
.pack .label { position: absolute; left: 16px; bottom: 16px; font: 700 13px/1.2 var(--mono); color: #fff; background: #000a; padding: 6px 10px; border-radius: 8px; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-size: 15px; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { border-color: #4a433c; transform: translateY(-1px); }
.btn.primary { background: var(--amber); color: #000; border-color: var(--amber); }
.btn.primary:hover { background: #ffc21a; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.section { padding: 36px 0; border-top: 1px dashed var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; position: relative; }
a.card:hover { transform: translateY(-3px); border-color: #4a433c; }
.card .body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.card .price { color: var(--amber); font: 700 16px/1.2 var(--mono); margin-top: 4px; }
.card .ribbon { position: absolute; top: 12px; left: 12px; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--amber); color: #000; padding: 6px 9px; border-radius: 6px; }

.ph { aspect-ratio: 1; background: linear-gradient(135deg, #2a2420, #141210); display: grid; place-items: center; position: relative; color: var(--muted); font-size: 13px; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .tag { position: absolute; left: 10px; bottom: 10px; background: #000c; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; font-family: var(--mono); }
.ph svg { width: 30%; opacity: .85; }
.ph video, .ph model-viewer { width: 100%; height: 100%; object-fit: cover; background: #000; }

.crumbs { font-size: 14px; color: var(--muted); margin: 8px 0 14px; font-family: var(--mono); }
.crumbs a { color: var(--muted); }
.product { display: grid; gap: 28px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.05fr 1fr; align-items: start; } .product > div:last-child { position: sticky; top: 90px; } }
.stage { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stage .ph { aspect-ratio: 4/5; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 14px; color: var(--muted); background: var(--panel); }
.thumbs a.on { border-color: var(--amber); color: var(--text); }
.tagline { color: var(--amber); font: 700 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.price-big { font: 700 34px/1 var(--mono); color: var(--amber); margin: 14px 0 4px; }
.opt { margin: 20px 0; }
.opt .label { font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; background: var(--panel); cursor: pointer; }
.chips .on { border-color: var(--amber); background: #F0B10117; }
.chips small { color: var(--muted); margin-left: 4px; font-family: var(--mono); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: var(--panel); border: 0; width: 40px; height: 44px; cursor: pointer; font-size: 18px; }
.qty span { min-width: 36px; text-align: center; font-family: var(--mono); font-weight: 700; }
.note { font-size: 14px; color: var(--muted); border: 1px dashed var(--line); padding: 12px 14px; border-radius: 12px; margin-top: 16px; }
.note.warn { border-color: #f0b10166; color: var(--text); }

.steps { display: grid; gap: 12px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--muted); font-size: 15px; }
.steps li::before { content: "0" counter(s); display: block; font: 700 26px/1 var(--mono); color: var(--amber); margin-bottom: 10px; }
.eps { display: grid; gap: 8px; }
@media (min-width: 760px) { .eps { grid-template-columns: 1fr 1fr; } }
.eps a { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--panel); }
.eps a:hover { border-color: var(--amber); }

.form { display: grid; gap: 14px; max-width: 520px; }
.form.wide { max-width: none; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
label.f > span { font-weight: 600; color: var(--text); }
input, select, textarea { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); outline: none; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--amber); }
input[type="file"] { padding: 10px; }
.err { color: var(--bad); font-size: 14px; min-height: 1em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 14px; }
.stack { display: grid; gap: 14px; }
.two { display: grid; gap: 24px; }
@media (min-width: 860px) { .two { grid-template-columns: 1.3fr 1fr; align-items: start; } }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.line img, .line .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--panel-2); }
.line .meta { font-size: 14px; color: var(--muted); }
.sum { display: flex; justify-content: space-between; padding: 6px 0; }
.sum.total { font: 700 20px/1.2 var(--mono); color: var(--amber); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.addr { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--panel); }
.addr:has(input:checked) { border-color: var(--amber); }
.pay { background: linear-gradient(135deg, #f0b1011f, transparent 60%), var(--panel); border-color: #f0b10155; }
.handle { font: 700 20px/1.3 var(--mono); word-break: break-all; }
.timeline { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.timeline span { font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 9px; border-radius: 6px; background: var(--panel-2); color: var(--muted); }
.timeline span.done { background: #f0b10126; color: var(--amber); }
.timeline span.now { background: var(--amber); color: #000; }
.badge { font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.badge.awaiting_payment { color: var(--amber); } .badge.payment_sent { background: var(--amber); color: #000; }
.badge.confirmed, .badge.published { color: var(--ok); } .badge.shipped { background: #7bc47f26; color: var(--ok); }
.badge.cancelled { color: var(--bad); } .badge.soon { color: var(--kraft); }
.shot { max-height: 420px; border-radius: 12px; border: 1px solid var(--line); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 22px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.tabs a { text-decoration: none; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-weight: 500; background: var(--panel); }
.tabs a.on { color: #000; background: var(--amber); border-color: var(--amber); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table td, .table th { padding: 12px 10px; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: middle; }
.table th { font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: var(--panel); }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.editor-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; align-items: center; }
.editor-row.head { grid-template-columns: 1fr auto; }
.editor-row.upload { grid-template-columns: 110px 1fr; }
select.mini { padding: 6px; width: 90px; }
.media-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.media-row .ph { width: 56px; height: 56px; aspect-ratio: auto; border-radius: 8px; font-size: 10px; }
.icon-btns { display: flex; gap: 4px; }
.icon-btns button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.logos .logo { aspect-ratio: 3/2; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 14px; background: var(--panel); text-align: center; font-family: var(--mono); }
.logos .logo img { max-height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.4); }
.quote { font: 600 20px/1.4 var(--display); }
.quote::before { content: "“"; color: var(--amber); font-size: 40px; line-height: 0; vertical-align: -14px; margin-right: 4px; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 40px); opacity: 0; background: var(--text); color: #000; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: .25s; pointer-events: none; z-index: 20; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.foot { max-width: 1140px; margin: 0 auto; padding: 24px 16px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; border-top: 1px dashed var(--line); }
@media (max-width: 640px) {
  .editor-row:not(.head):not(.upload) { grid-template-columns: minmax(0, 1fr) 90px; }
  .editor-row:not(.head) > .icon-btns { grid-column: 1 / -1; justify-self: start; }
  .table td.mono { white-space: nowrap; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.section { scroll-margin-top: 80px; }
