:root {
  --ink: #0e0e0e;
  --ink-2: #5a5a5a;
  --ink-3: #8f8f8f;
  --paper: #f5f4f0;
  --card: #fff;
  --tile: #eae9e5;        /* product photo background */
  --line: #e2e0db;
  --drip: #a3182c;        /* bow-tie / "DRIP" red */
  --drip-dark: #7d1020;
  --ok: #1f7a45;
  --ok-bg: #e3f1e8;
  --warn: #8f5400;
  --warn-bg: #fbeed6;
  --off: #6b6b6b;
  --off-bg: #ececec;
  --radius: 12px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 20px 80px; flex: 1; }

.kicker { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--drip); }
.muted { color: var(--ink-2); font-size: 13px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 6px 20px;
}
/* the logo PNG has lots of empty space around it — crop to the penguin + wordmark */
.brand { display: block; width: 48px; height: 64px; overflow: hidden; flex-shrink: 0; }
.brand img { height: 105px; width: auto; max-width: none; margin: -16.5px 0 0 -72px; }
.nav { min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button {
  text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; letter-spacing: .02em;
}
.nav a:hover, .nav button:hover { background: var(--paper); }
.nav a.active { background: var(--ink); color: #fff; }
.nav .pill { background: var(--drip); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 5px; }
.nav .lang { border: 1px solid var(--line); }
.nav .admin-link { color: var(--drip); }
.nav .admin-link.active { color: #fff; }

/* ---------- section headers (shared) ---------- */
.sec-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 24px;
}
.sec-head .num { font-family: var(--display); color: var(--drip); font-size: 18px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 4vw, 42px); line-height: 1; margin: 0; letter-spacing: .01em; }
.sec-head a, .sub-head a {
  margin-left: auto; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.sec-head a:hover, .sub-head a:hover { color: var(--drip); }

/* =====================================================================
   WELCOME PAGE
   ===================================================================== */
.w-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center;
  min-height: min(72vh, 640px); padding: 12px 0 24px;
}
.w-copy h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(46px, 7vw, 96px); line-height: .92; letter-spacing: .005em; margin: 14px 0 20px;
}
.w-copy h1 em { font-style: normal; color: var(--drip); }
.w-copy p { font-size: 17px; color: #2a2a2a; max-width: 50ch; margin: 0 0 28px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.w-browse { display: inline-block; margin-top: 22px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; border-bottom: 1px solid; }
.w-browse:hover { color: var(--drip); }
.w-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-tile { position: relative; background: var(--tile); border-radius: 10px; aspect-ratio: 1 / 1; overflow: hidden; }
.w-tile img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.18)); transition: transform .4s ease; }
.w-tile:hover img { transform: scale(1.05); }
.w-tile span { position: absolute; left: 12px; bottom: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); }
.w-tile:nth-child(2), .w-tile:nth-child(4) { transform: translateY(28px); }

.w-sec { margin-top: 88px; }
.w-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.w-steps li { border-top: 2px solid var(--ink); padding-top: 16px; }
.w-steps .n { font-family: var(--display); font-size: 30px; color: var(--drip); line-height: 1; }
.w-steps h3 { margin: 10px 0 6px; font-size: 16px; }
.w-steps p { margin: 0; color: var(--ink-2); font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tile { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.tile-ph { display: block; position: relative; background: var(--tile); border-radius: 10px; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 8px; }
.tile-ph img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; transition: transform .4s ease; }
.tile:hover .tile-ph img { transform: scale(1.06); }
.tile-ph.word { display: grid; place-items: center; padding: 12%; text-align: center; }
.tile-ph.word span { font-family: var(--display); font-size: 26px; line-height: 1.05; text-transform: uppercase; color: var(--ink-3); transition: transform .4s ease; }
.tile:hover .tile-ph.word span { transform: scale(1.06); }
.tile-name { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.tile-meta { font-size: 12px; color: var(--ink-3); }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 10px; }

.cat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-tile { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s; }
.cat-tile:hover { border-color: var(--ink); }
.cat-ph { display: block; position: relative; background: var(--tile); aspect-ratio: 4 / 3.4; }
.cat-ph img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; transition: transform .4s ease; }
.cat-ph img.logo { opacity: .35; filter: grayscale(1); }
.cat-tile:hover .cat-ph img { transform: scale(1.05); }
.cat-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.cat-body .tile-name { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .02em; }
.cat-subs { font-size: 13px; color: var(--ink-2); }

.w-request {
  margin-top: 88px; background: var(--ink); color: #fff; border-radius: 16px; padding: 28px 32px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
}
.w-request > img { width: 84px; height: 84px; object-fit: cover; background: #fff; border-radius: 50%; padding: 6px; }
.w-request h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; margin: 0 0 4px; }
.w-request p { margin: 0; color: #cfcfcf; }

/* =====================================================================
   SHOP — sidebar + Category > Sub-category > items
   ===================================================================== */
.shop { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 20px; }
.side a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; }
.side a span { color: var(--ink-3); font-weight: 500; font-size: 12px; letter-spacing: 0; }
.side-all, .side-cat > a { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; padding: 4px 0 4px 10px; border-left: 2px solid transparent; }
.side-cat ul { list-style: none; margin: 6px 0 0; padding: 0; }
.side-cat li a { font-size: 14px; color: var(--ink-2); padding: 4px 0 4px 22px; border-left: 2px solid transparent; }
.side a:hover { color: var(--ink); }
.side a.on { border-left-color: var(--drip); color: var(--ink); }
.side li a.on { font-weight: 600; }

.crumbs { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ink); }
.page-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 68px); line-height: .95; margin: 8px 0 22px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.filters-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; padding: 6px 13px; border-radius: 999px;
  cursor: pointer; font-weight: 600; font-size: 12px; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; }
.seg-block { display: flex; width: 100%; }
.seg-block button { flex: 1; padding: 9px 10px; font-size: 13px; }
.search { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; min-width: 0; width: 200px; max-width: 100%; font-size: 13px; }
.search:focus { outline: none; border-color: var(--ink); }

.mobile-tabs { display: none; }
.tabs-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs-row.sub { margin-top: 8px; }
.tabs-row.sub .chip { background: transparent; }
.tabs-row.sub .chip.on { background: var(--ink); }

.cat-sec { margin-bottom: 64px; }
.sub-sec { margin-bottom: 40px; }
.sub-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sub-head h3 { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.sub-head h3::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--drip); vertical-align: middle; margin-right: 10px; }
.sub-head .muted { font-size: 12px; }

.on-request { border: 1px dashed #c9c6bf; border-radius: 12px; padding: 18px 20px; margin-bottom: 36px; }
.or-names { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin: 6px 0 4px; }
.on-request p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 18px; }
.card { min-width: 0; cursor: pointer; display: flex; flex-direction: column; }
.card .ph { position: relative; aspect-ratio: 1 / 1; background: var(--tile); border-radius: 10px; overflow: hidden; }
.card .ph img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; transition: transform .45s ease; }
.card:hover .ph img { transform: scale(1.06); }
.card.sold .ph img { filter: grayscale(1); opacity: .4; }
.card .body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .brandname { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); font-weight: 700; }
.card .name { font-weight: 500; line-height: 1.3; font-size: 14px; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; }
.card.sold .price { color: var(--ink-3); text-decoration: line-through; }
.sizes-mini { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.sizes-mini span { font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-weight: 600; background: #fff; }
.sizes-mini span.out { color: #b8b8b8; text-decoration: line-through; background: transparent; }

.badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; }
.ph .badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.b-in { background: #fff; color: var(--ok); }
.b-low { background: var(--warn-bg); color: var(--warn); }
.b-out { background: var(--ink); color: #fff; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; cursor: pointer; font-size: 14px;
  background: var(--ink); color: #fff; text-decoration: none; letter-spacing: .01em;
}
.btn:hover { background: #000; }
.btn.red { background: var(--drip); }
.btn.red:hover { background: var(--drip-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }

label.f { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.in, select.in, textarea.in {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
}
.in:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
textarea.in { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--drip); width: 16px; height: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--drip); font-size: 13px; font-weight: 600; min-height: 18px; margin-top: 8px; }
h2.title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 40px; letter-spacing: .01em; margin: 0 0 20px; }
h3 { margin: 0 0 10px; font-size: 16px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-card {
  position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 860px;
  max-height: calc(100vh - 32px); overflow: auto; padding: 26px;
}
.modal-card.narrow { max-width: 420px; }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; cursor: pointer; line-height: 1; z-index: 2; }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pd .ph { position: relative; background: var(--tile); border-radius: 12px; aspect-ratio: 1/1; overflow: hidden; }
.pd .ph img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.pd h2 { margin: 8px 0 6px; font-size: 24px; line-height: 1.2; }
.size-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.size-pick button {
  min-width: 56px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; cursor: pointer;
}
.size-pick button:hover:not(:disabled) { border-color: var(--ink); }
.size-pick button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-pick button:disabled { background: var(--off-bg); color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; }
.size-pick small { display: block; font-weight: 500; font-size: 10px; opacity: .7; }

/* ---------- panels / cart / orders ---------- */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 64px; height: 64px; object-fit: contain; background: var(--tile); border-radius: 10px; padding: 4px; }
.line-item .meta { font-size: 13px; color: var(--ink-2); }
.line-item .x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; padding-top: 12px; border-top: 2px solid var(--ink); margin-top: 6px; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); }
.empty img { width: 110px; margin: 0 auto 10px; opacity: .9; }

.how { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.how li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14px; }
.how li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--drip); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.order-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center;
  padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
  text-decoration: none;
}
.order-row:hover { border-color: var(--ink); }
.order-row .id { font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.thumbs { display: flex; }
.thumbs img { width: 40px; height: 40px; object-fit: contain; background: var(--tile); border-radius: 8px; border: 2px solid #fff; margin-left: -8px; }
.thumbs img:first-child { margin-left: 0; }

.st { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.st-requested { background: var(--warn-bg); color: var(--warn); }
.st-confirmed { background: #e4ecfb; color: #234d9c; }
.st-meetup { background: #efe4fb; color: #5b2a9c; }
.st-completed { background: var(--ok-bg); color: var(--ok); }
.st-cancelled { background: var(--off-bg); color: var(--off); }

.timeline { display: flex; gap: 0; margin: 4px 0 18px; }
.timeline div { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-3); position: relative; padding-top: 22px; }
.timeline div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line); z-index: 1; }
.timeline div::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline div:first-child::after { display: none; }
.timeline div.done { color: var(--ink); }
.timeline div.done::before, .timeline div.done::after { background: var(--drip); }

.meet { border: 2px dashed var(--drip); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #fff7f8; }
.meet .big { font-size: 17px; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* chat */
.chat { display: flex; flex-direction: column; height: 460px; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 12px; }
.msg { max-width: 80%; padding: 9px 12px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.msg img { border-radius: 10px; margin-top: 6px; max-height: 260px; cursor: zoom-in; }
.msg .at { display: block; font-size: 10px; opacity: .6; margin-top: 4px; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: none; color: var(--ink-3); font-size: 12px; text-align: center; }
.composer { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 42px; max-height: 120px; }
.attach { cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 16px; line-height: 1; background: #fff; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

/* admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .n { font-family: var(--display); font-size: 34px; line-height: 1; }
.stat .l { font-size: 11px; color: var(--ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.stat.hot .n { color: var(--drip); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 980px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); background: #fafaf8; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl img { width: 48px; height: 48px; object-fit: contain; background: var(--tile); border-radius: 8px; }
.size-inputs { display: flex; gap: 6px; flex-wrap: nowrap; }
.size-inputs label { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.size-inputs input { width: 46px; padding: 5px; text-align: center; border: 1px solid var(--line); border-radius: 8px; }
.price-in { width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center;
}

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); background: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .w-hero, .layout-2, .pd { grid-template-columns: minmax(0, 1fr); }
  .w-hero { gap: 28px; min-height: 0; }
  .w-tile:nth-child(2), .w-tile:nth-child(4) { transform: none; }
  .shop { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { display: none; }
  .mobile-tabs { display: block; margin-bottom: 14px; }
  .w-request { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row .thumbs { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 20px 16px 64px; }
  .nav a, .nav button { padding: 6px 8px; font-size: 12px; }
  .two { grid-template-columns: 1fr; }
  .w-sec { margin-top: 56px; }
  .w-steps { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tiles { gap: 10px; }
  .cat-body .tile-name { font-size: 19px; }
  .cat-subs { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters-right { justify-content: space-between; }
  .search { flex: 1; width: auto; }
  .chat { height: 420px; }
}

/* ---------- admin: quick add + photo tool ---------- */
.qa { margin-bottom: 20px; }
.qa-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.qa-head h3 { margin: 0; font-size: 18px; }
.qa-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.qa-name { font-size: 17px; padding: 12px 14px; }
.auto { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ok); background: var(--ok-bg); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.price-wrap { position: relative; max-width: 180px; }
.price-wrap span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; }

.drop {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 12px; cursor: pointer; overflow: hidden;
  border: 2px dashed #c9c6bf; text-align: center;
  background: repeating-conic-gradient(#eeede9 0 25%, #f8f7f4 0 50%) 0 0 / 22px 22px;   /* checkerboard = transparent */
  transition: border-color .15s;
}
.drop:hover, .drop.over { border-color: var(--ink); }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; background: rgba(255,255,255,.85); border-radius: 12px; }
.drop-empty b { font-size: 15px; }
.drop-empty span:last-child { font-size: 12px; color: var(--ink-2); }
.drop-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 6px; }
.drop-img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: opacity .3s, filter .3s; }
.drop-img.working { opacity: .45; filter: grayscale(.6) blur(1px); }
.drop-progress { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); text-align: left; }
.drop-progress .bar { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.drop-progress .bar i { display: block; height: 100%; width: 0; background: var(--drip); border-radius: 999px; transition: width .3s; }
.drop-progress.indet .bar i { background: repeating-linear-gradient(90deg, var(--drip) 0 20px, #d9475a 20px 40px); background-size: 40px 100%; animation: indet 0.8s linear infinite; }
@keyframes indet { to { background-position: 40px 0; } }
.drop-progress .lbl { font-size: 12px; font-weight: 600; }
.drop-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.drop-tools .seg button:disabled { opacity: .35; cursor: not-allowed; }

.steppers { display: flex; gap: 8px; flex-wrap: wrap; }
.stp { display: grid; grid-template-columns: 30px auto 28px 30px; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px 4px 10px; background: #fff; }
.stp.has { border-color: var(--ink); }
.stp span { font-weight: 700; font-size: 13px; }
.stp b { text-align: center; font-size: 14px; }
.stp button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--paper); cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1; }
.stp button:hover { background: var(--ink); color: #fff; }

.thumb-btn { position: relative; border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.thumb-btn span { position: absolute; right: -4px; bottom: -4px; font-size: 12px; background: #fff; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.thumb-btn:hover img { outline: 2px solid var(--ink); }

@media (max-width: 860px) {
  .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .drop { max-width: 420px; }
}

/* ---------- red stars & reviews ---------- */
:root { --star: #d0142c; --star-off: #e3d6d6; }
.stars { display: inline-block; position: relative; font-size: 13px; line-height: 1; letter-spacing: 1px; color: var(--star-off); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--r); overflow: hidden; color: var(--star); white-space: nowrap; }
.stars.lg { font-size: 20px; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.rating b { font-weight: 700; }
.rating span:last-child { color: var(--ink-3); }
.rating.big { font-size: 14px; gap: 8px; }
.pd-rating { text-decoration: none; display: inline-block; margin-top: 8px; }
.reviews { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.rv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rv-head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.rv-form { background: var(--paper); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 8px; }
.star-pick { display: flex; gap: 2px; }
.star-pick button { border: 0; background: none; cursor: pointer; font-size: 30px; line-height: 1; color: var(--star-off); padding: 0 2px; transition: transform .1s; }
.star-pick button.on { color: var(--star); }
.star-pick button:hover { transform: scale(1.15); }
.rv-form .btn { justify-self: start; }
.rv-note { margin: 0 0 14px; }
.rv-list { display: grid; gap: 12px; }
.rv { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.rv:last-child { border-bottom: 0; }
.rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.rv p { margin: 6px 0 0; font-size: 14px; white-space: pre-wrap; }
.verified { font-size: 11px; color: var(--ok); font-weight: 600; }
.rv-del { margin-left: auto; border: 0; background: none; color: var(--drip); font-size: 12px; cursor: pointer; text-decoration: underline; }
.card .rating { margin-top: 2px; }

/* ---------- promo prices ---------- */
.price.sale { color: var(--drip); }
s.was { color: var(--ink-3); font-size: .85em; font-weight: 500; }
.b-promo { background: var(--drip); color: #fff; }
.ph .b-promo { left: auto; right: 10px; }
.pd-price { font-size: 22px; margin: 12px 0; }
.pd .ph .b-promo { position: absolute; top: 12px; right: 12px; z-index: 1; }

/* ---------- event banner + light animation ---------- */
.event-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--bar-bg, #000); color: var(--bar-fg, #fff); padding: 9px 16px; font-size: 13px; text-align: center;
  padding-top: calc(9px + env(safe-area-inset-top, 0px));
}
.event-bar b { letter-spacing: .04em; }
.event-bar .ev-count { color: var(--bar-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.event-bar a { color: var(--bar-accent); font-weight: 700; text-decoration: none; border-bottom: 1px solid; }
.ev-emoji { font-size: 16px; }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 15; overflow: hidden; }
body.is-admin .fx { display: none; }
.fx span { position: absolute; top: -40px; opacity: .45; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(calc(100vh + 80px)) rotate(300deg); } }
@media (prefers-reduced-motion: reduce) { .fx { display: none; } }
body[data-event="blackfriday"] .topbar { background: #000; border-bottom-color: #222; }
body[data-event="blackfriday"] .topbar .nav a, body[data-event="blackfriday"] .topbar .nav button { color: #fff; }
body[data-event="blackfriday"] .topbar .nav a:hover, body[data-event="blackfriday"] .topbar .nav button:hover { background: #222; }
body[data-event="blackfriday"] .topbar .nav a.active { background: var(--drip); }
body[data-event="blackfriday"] .w-copy h1 { color: #000; }
body[data-event="blackfriday"] .brand { background: #fff; border-radius: 10px; }
body[data-event="blackfriday"] .nav .lang { border-color: #444; }

/* ---------- admin: trends ---------- */
.tr-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tr-demo { display: flex; gap: 8px; align-items: center; }
.insights ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.insights h3 { margin-bottom: 8px; }
.tbl-wrap.flat { border: 0; border-radius: 0; }
.trend-tbl { min-width: 720px; }
.trend-tbl .rank { font-family: var(--display); font-size: 18px; color: var(--ink-3); width: 30px; }
.trend-tbl tr:nth-child(-n+3) .rank { color: var(--drip); }
.score-cell { min-width: 150px; }
.score-cell .bar-track { display: inline-block; vertical-align: middle; width: 90px; margin-right: 8px; }
.bar-track { display: block; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--drip); border-radius: 999px; }
.tr { font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.tr.up { color: var(--ok); }
.tr.down { color: var(--drip); }
.tr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 2px 0; }
.bar-row:hover .bar-track i { background: var(--drip-dark); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.searches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.searches li { display: flex; gap: 8px; align-items: center; }
.searches li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.restock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rs { display: flex; gap: 10px; align-items: center; background: var(--warn-bg); border-radius: 10px; padding: 8px; font-size: 13px; }
.rs img { width: 48px; height: 48px; object-fit: contain; background: var(--tile); border-radius: 8px; }

/* ---------- admin: events ---------- */
.ev-now { display: flex; flex-direction: column; gap: 4px; }
.ev-now h3 { margin: 0; font-size: 22px; }
.ev-now.live { background: var(--bar-bg); color: var(--bar-fg); border-color: transparent; }
.ev-now.live .kicker { color: var(--bar-accent); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ev-card { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.ev-card:hover { border-color: var(--ink); }
.ev-card.on { border: 2px solid var(--drip); padding: 13px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--drip) 15%, transparent); }
.ev-card .muted { font-size: 12px; }
.ev-sw { display: flex; gap: 4px; margin-bottom: 4px; }
.ev-sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

@media (max-width: 860px) { .tr-grid { grid-template-columns: minmax(0, 1fr); } }
.lines { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; }
.lines .muted { margin-right: 4px; font-weight: 600; }

/* events: groups + item picker */
.ev-group { grid-column: 1 / -1; margin: 10px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
.ev-live { font-size: 11px; font-weight: 700; color: var(--ok); }
.picker { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.picker-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.picker-head b { margin-right: auto; }
.pick-list { display: grid; gap: 6px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.pick { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.pick.on { border-color: var(--drip); box-shadow: inset 3px 0 0 var(--drip); }
.pick input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--drip); }
.pick img { width: 44px; height: 44px; object-fit: contain; background: var(--tile); border-radius: 8px; }
.pick-name { display: flex; flex-direction: column; min-width: 0; }
.pick-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.pick-pct { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pick-pct input { width: 58px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.pick-pct input:disabled { opacity: .35; }
.pick-price { min-width: 120px; text-align: right; font-size: 14px; }
@media (max-width: 640px) {
  .pick { grid-template-columns: auto 40px minmax(0, 1fr); }
  .pick-pct, .pick-price { grid-column: 3; text-align: left; }
}

/* ---------- photo touch-up editor ---------- */
.ed-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 12px; }
.ed { background: var(--card); border-radius: 16px; width: min(1100px, 100%); max-height: calc(100vh - 24px); display: flex; flex-direction: column; padding: 16px; gap: 10px; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-size { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ed-size input { width: 130px; accent-color: var(--drip); }
.ed-tip { margin: 0; font-size: 12px; }
.ed > * { min-width: 0; }
.ed-stage { flex: 1; min-height: 300px; overflow: auto; border-radius: 12px; display: flex; padding: 2px; }
.ed-stage[data-bg="check"] { background: repeating-conic-gradient(#e6e5e1 0 25%, #fafaf8 0 50%) 0 0 / 20px 20px; }
.ed-stage[data-bg="white"] { background: #fff; outline: 1px solid var(--line); }
.ed-stage[data-bg="black"] { background: #111; }
.ed-canvas-wrap { position: relative; margin: auto; flex-shrink: 0; }
.ed-canvas-wrap canvas { width: 100%; height: 100%; display: block; cursor: none; touch-action: none; }
.ed-cursor { position: absolute; pointer-events: none; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000; }
.ed-cursor[data-tool="erase"] { background: rgba(227, 19, 42, .18); }
.ed-cursor[data-tool="restore"] { background: rgba(31, 122, 69, .18); }
.ed-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* =====================================================================
   REAL-STORE PASS — calmer type, square-ish controls, proper phone layout
   (overrides the earlier, louder styles above)
   ===================================================================== */
:root { --display: "Archivo", "Inter", system-ui, sans-serif; --radius: 10px; }
body { overflow-x: clip; }

/* type: sentence case, tight bold headings instead of all-caps condensed */
.page-title, h2.title, .sec-head h2, .rv-head h3, .w-request h2, .or-names, .cat-body .tile-name, .home-hero h1, .home-head h2 {
  font-family: var(--display); font-weight: 800; text-transform: none; letter-spacing: -.025em; line-height: 1.05;
}
.page-title { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 18px; }
h2.title { font-size: clamp(24px, 3.4vw, 32px); }
.sec-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(20px, 2.6vw, 26px); }
.sec-head .num { display: none; }
.sec-head a, .sub-head a, .home-head a { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; text-decoration: none; }
.sub-head h3 { text-transform: none; letter-spacing: -.01em; font-size: 16px; font-weight: 700; }
.sub-head h3::before { display: none; }
.crumbs { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.kicker { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.stat .n { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.stat .l, .tbl th { text-transform: none; letter-spacing: 0; font-size: 12px; }
.badge { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 11px; padding: 3px 8px; border-radius: 4px; }
.card .brandname { letter-spacing: .04em; font-size: 11px; }
.card .ph, .w-tile, .tile-ph, .cat-ph, .pd .ph, .line-item img, .tbl img { border-radius: 4px; }
.btn { border-radius: 6px; font-weight: 600; padding: 11px 18px; }
.btn.sm { border-radius: 6px; }
.chip { border-radius: 6px; font-weight: 500; }
.seg { border-radius: 8px; }
.seg button { border-radius: 6px; font-weight: 500; }
.panel { border-radius: var(--radius); }
.side-all, .side-cat > a { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ---------- header (desktop: logo · nav · bag  /  phone: menu · logo · bag) ---------- */
.topbar { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; padding: 6px 20px; }
.topbar .nav { justify-content: flex-end; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--paper); }
.menu-btn { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--drip); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
body[data-event="blackfriday"] .icon-btn { color: #fff; }
body[data-event="blackfriday"] .icon-btn:hover { background: #222; }

/* ---------- event announcement: one thin line ---------- */
.event-bar { display: block; padding: 8px 16px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
.event-bar a { color: var(--bar-fg); text-decoration: none; border: 0; font-weight: 600; }
.event-bar .ev-until { color: var(--bar-accent); font-weight: 500; }

/* ---------- home ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 8px 0 12px; }
.home-hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 0 0 12px; }
.hh-copy p { font-size: 17px; color: #2b2b2b; max-width: 44ch; margin: 0 0 22px; }
.hh-copy .hh-login { font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.hh-drop { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; background: #c0c0c0; }
.hh-drop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform .5s ease; }
.hh-drop:hover img { transform: scale(1.03); }
.hh-drop-label { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 6px; padding: 12px 14px; display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.hh-drop-label small { font-size: 12px; color: var(--ink-2); }
.hh-drop-label b { font-size: 17px; }
.hh-drop-label span { font-size: 13px; font-weight: 600; color: var(--drip); }
.home-sec { margin-top: 56px; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.home-head h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); }
.brand-list { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-link { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.brand-link span { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.brand-link:hover { border-color: var(--ink); }
.how3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.how3 b { font-size: 15px; }
.how3 p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.home-note { margin: 40px 0 0; color: var(--ink-2); font-size: 14px; }

/* ---------- shop: never wider than the screen ---------- */
.shop-main { min-width: 0; }
.filters-right { flex-wrap: wrap; }
.search { flex: 1 1 180px; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .wrap { padding: 16px 16px 56px; }
  .topbar { grid-template-columns: 42px 1fr 42px; gap: 8px; padding: 4px 10px; }
  .menu-btn { display: inline-grid; }
  .brand { justify-self: center; }
  /* nav becomes a drawer */
  .topbar .nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 82vw); z-index: 45;
    background: var(--card); flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap;
    padding: calc(64px + env(safe-area-inset-top, 0px)) 12px 20px; gap: 2px;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: 4px 0 24px rgba(0,0,0,.15);
  }
  body.menu-open .topbar .nav { transform: none; }
  /* the blur on the header would trap the fixed drawer inside it → plain background on phones */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card); }
  body.menu-open .topbar { z-index: 50; }
  .topbar .nav a, .topbar .nav button { color: var(--ink) !important; text-align: left; font-size: 16px; padding: 12px; border-radius: 8px; }
  .topbar .nav a.active { background: var(--paper); color: var(--ink) !important; }
  .topbar .nav .lang { align-self: flex-start; margin-top: 8px; }
  .event-bar { font-size: 12px; padding: 7px 12px; }

  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hh-drop { aspect-ratio: 4 / 3; }
  .hh-copy p { font-size: 15px; }
  .home-sec { margin-top: 40px; }
  .how3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .page-title { font-size: 26px; margin-bottom: 12px; }
  .filters { padding: 10px 0; margin-bottom: 22px; gap: 10px; }
  .filters-right { width: 100%; }
  .filters-right .seg { flex: 0 0 auto; }
  .search { width: 100%; flex: 1 1 100%; }
  .cat-sec { margin-bottom: 40px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .card .name { font-size: 13px; }
  .card .row { flex-wrap: wrap; gap: 4px; }
  .sizes-mini { justify-content: flex-start; }

  /* product sheet slides up from the bottom */
  .modal { place-items: end center; padding: 0; }
  .modal-card { max-width: 100%; border-radius: 14px 14px 0 0; max-height: 92vh; padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .modal-card.narrow { max-width: 100%; }
  .pd { gap: 14px; }
  .pd .ph { aspect-ratio: 4 / 3; }
  .pd h2 { font-size: 20px; }
  .pd #add { position: sticky; bottom: 0; box-shadow: 0 -8px 16px var(--card); }

  .layout-2 { gap: 14px; }
  .line-item { grid-template-columns: 56px minmax(0, 1fr); }
  .line-item > div:last-child { grid-column: 2; }
  .chat { height: 60vh; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat .n { font-size: 24px; }
}

/* =====================================================================
   FOOTER · PAGES · COOKIES · MAINTENANCE · 404
   ===================================================================== */
.foot { display: block; padding: 40px 20px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot-cols { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-cols b { color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.foot-cols a, .linkish { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.foot-cols a:hover, .linkish:hover { color: var(--ink); text-decoration: underline; }
.foot-brand b { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.foot-base { max-width: 1280px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

.page { max-width: 760px; }
.page-body { font-size: 15px; line-height: 1.65; }
.page-body h3 { font-size: 17px; margin: 26px 0 6px; }
.page-body ul { padding-left: 20px; }
.page-body .todo { background: var(--warn-bg); color: var(--warn); padding: 1px 6px; border-radius: 4px; }
.qa-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.qa-item summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa-item summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; color: var(--ink-3); }
.qa-item[open] summary::after { content: "–"; }
.qa-item p { margin: 8px 0 0; color: var(--ink-2); }
.contact-kv { margin-top: 18px; }
.page-404 img { width: 90px; }

.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; justify-content: center; pointer-events: none; }
.consent-in { pointer-events: auto; width: min(560px, 100%); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 16px 18px; font-size: 14px; max-height: 80vh; overflow: auto; }
.consent-in p { margin: 6px 0 4px; color: var(--ink-2); }
.consent-in .check { margin: 10px 0 0; }
.consent-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.consent-btns .btn { padding: 9px 14px; font-size: 13px; }

body.maint-mode .topbar, body.maint-mode .event-bar, body.maint-mode .foot, body.maint-mode .fx { display: none !important; }
.maint { min-height: 80vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px; }
.maint img { width: 170px; height: 120px; object-fit: cover; }
.maint h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(28px, 6vw, 44px); margin: 8px 0 0; }
.maint p { max-width: 40ch; color: var(--ink-2); margin: 4px 0; }
.maint-admin { margin-top: 28px; font-size: 12px; color: var(--ink-3); }

/* =====================================================================
   ADMIN BACK-OFFICE — its own layout
   ===================================================================== */
body.admin-mode .topbar, body.admin-mode .event-bar, body.admin-mode .foot, body.admin-mode .fx, body.admin-mode .nav-scrim { display: none !important; }
body.admin-mode { background: #f4f4f2; }
body.admin-mode #app { max-width: none; padding: 0; }
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; background: #111; color: #e8e8e8; display: flex; flex-direction: column; padding: 14px 12px; gap: 12px; }
.adm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; padding: 4px 6px 12px; border-bottom: 1px solid #262626; }
.adm-brand img { width: 40px; height: 40px; object-fit: cover; object-position: 50% 30%; background: #fff; border-radius: 8px; }
.adm-brand span { display: flex; flex-direction: column; font-weight: 700; line-height: 1.1; }
.adm-brand small { color: #9a9a9a; font-weight: 500; font-size: 12px; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #cfcfcf; text-decoration: none; font-size: 14px; font-weight: 500; }
.adm-nav a:hover { background: #1d1d1d; color: #fff; }
.adm-nav a.on { background: #fff; color: #111; }
.adm-nav em { margin-left: auto; font-style: normal; background: var(--drip); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 7px; }
.adm-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #262626; padding-top: 10px; }
.adm-link { background: none; border: 0; color: #9a9a9a; text-align: left; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; border-radius: 8px; }
.adm-link:hover { color: #fff; background: #1d1d1d; }
.adm-status { padding: 7px 10px; font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.adm-status.open { color: #69db7c; }
.adm-status.closed { color: #fff; background: var(--drip); }
.adm-main { min-width: 0; padding: 24px 28px 60px; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-top h1 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 26px; }
.adm-warn { background: var(--drip); color: #fff; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.adm-warn a { color: #fff; font-weight: 700; }
.adm-body .stats { margin-bottom: 16px; }
.adm-body a.stat { text-decoration: none; color: inherit; }
.adm-body a.stat:hover { border-color: var(--ink); }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks a { display: block; padding: 10px 12px; background: var(--paper); border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 14px; }
.tasks a:hover { background: #ecebe7; }
.adm-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.adm-filters .chip .muted { font-size: 12px; margin-left: 2px; }
.chip.on .muted { color: #bbb; }
.set-block { margin-bottom: 16px; }
.set-block.danger { border-color: var(--drip); box-shadow: inset 4px 0 0 var(--drip); }
.set-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.set-head p { margin: 4px 0 0; max-width: 60ch; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 46px; height: 26px; border-radius: 13px; background: #69db7c; position: relative; transition: background .2s; flex-shrink: 0; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--drip); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 900px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  /* admin: sidebar becomes a top bar with a scrolling tab row */
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 10px; gap: 6px; }
  .adm-brand { border: 0; padding: 0; }
  .adm-brand img { width: 32px; height: 32px; }
  .adm-nav { order: 3; flex-basis: 100%; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav a { flex-shrink: 0; padding: 7px 10px; font-size: 13px; }
  .adm-nav a svg { display: none; }
  .adm-side-foot { margin: 0 0 0 auto; flex-direction: row; border: 0; padding: 0; gap: 2px; }
  .adm-side-foot .adm-link:not(#adm-logout) { display: none; }
  .adm-status { padding: 6px 8px; font-size: 12px; }
  .adm-main { padding: 16px 14px 48px; }
  .adm-top h1 { font-size: 22px; }
  .adm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .consent-btns .btn { flex: 1 1 auto; }
}
.nav-extra { display: none !important; }
@media (max-width: 760px) { .topbar .nav .nav-extra { display: block !important; } }
.ck-detail { margin-top: 4px; }

/* no pinch / double-tap zoom; 16px fields so iPhone doesn't zoom in on focus */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 760px) { input, select, textarea, .search, .in { font-size: 16px !important; } }
