/* =========================================================
   Retro Hub — one stylesheet for the shop, auctions and admin.
   Brand colours come from the logo: stamp red + retro cyan.
   Change them here (the :root block) to re-brand for a client.
   ========================================================= */
:root {
  --brand: #a3120f;          /* stamp red */
  --brand-dark: #7d0d0b;
  --brand-soft: #f7e6e4;
  --accent: #4cbfdc;         /* "Retro hub" cyan */
  --accent-soft: #e3f5fa;
  --ink: #241c19;
  --muted: #7a6f69;
  --line: #e9e1d8;
  --paper: #fbf7f1;          /* warm antique paper */
  --card: #ffffff;
  --ok: #2f7d4a;
  --ok-soft: #e5f3ea;
  --warn: #b26a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36, 28, 25, .06), 0 6px 18px rgba(36, 28, 25, .06);
  --display: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
code { background: #f1ebe3; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
[hidden], .hidden { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 16px 48px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.text-right { text-align: right; }
.eyebrow { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--accent); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  background: var(--card); border-bottom: 3px solid var(--brand);
  position: sticky; top: 0; z-index: 20;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a, .link-btn {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  color: var(--ink); padding: 8px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .link-btn:hover { background: var(--brand-soft); text-decoration: none; }
.main-nav a.active { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.main-nav .nav-cta { background: var(--brand); color: #fff; }
.main-nav .nav-cta:hover, .main-nav .nav-cta.active { background: var(--brand-dark); color: #fff; box-shadow: none; border-radius: 999px; }
.inline-form { display: inline; margin: 0; }

@media (max-width: 640px) {
  .header-row { padding-top: 8px; padding-bottom: 6px; gap: 6px; }
  .brand img { width: 42px; height: 42px; }
  .brand-text small { display: none; }
  .main-nav { width: 100%; justify-content: space-between; overflow-x: auto; }
  .main-nav a, .link-btn { padding: 6px 10px; font-size: .8rem; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  font: 600 .9rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em;
  padding: 12px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: 8px 12px; font-size: .78rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #06343f; }
.btn-accent:hover { background: #33a9c7; border-color: #33a9c7; color: #06343f; }
.btn-whatsapp { background: #1f9d55; border-color: #1f9d55; }
.btn-whatsapp:hover { background: #17824a; border-color: #17824a; }
.btn-danger { background: #fff; color: #b3261e; border-color: #e6b8b5; }
.btn-danger:hover { background: #b3261e; color: #fff; border-color: #b3261e; }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=search], input[type=url], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { margin-top: 4px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 12px; border: 1px solid; }
.alert-success { background: var(--ok-soft); border-color: #bfe0ca; color: #1e5a33; }
.alert-error { background: #fdecea; border-color: #f2c4bf; color: #8f1d14; }
.alert-info { background: var(--accent-soft); border-color: #bfe5f0; color: #0d4b5c; }
.flash-wrap { padding-top: 16px; }

/* ---------- Live auction strip (home) ---------- */
.live-strip { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); padding: 14px 0 16px; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.strip-head h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin: 0; display: flex; align-items: center; gap: 8px; }
.small-link { font-size: .85rem; font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(163, 18, 15, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(163,18,15,.45); } 70% { box-shadow: 0 0 0 9px rgba(163,18,15,0); } 100% { box-shadow: 0 0 0 0 rgba(163,18,15,0); } }

.strip-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch;
}
.strip-scroll::-webkit-scrollbar { height: 6px; }
.strip-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.mini-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; }
.mini-img { display: block; aspect-ratio: 4 / 3; background: #eee5da; overflow: hidden; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mini-card:hover .mini-img img { transform: scale(1.04); }
.mini-body { padding: 8px 10px 10px; display: grid; gap: 6px; }
.mini-title { color: var(--ink); font-weight: 600; font-size: .85rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.mini-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mini-meta .price { font-size: .95rem; }
.mini-meta .countdown { font-size: .75rem; }

/* ---------- Section heads, search, tabs ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { margin: 0; }
.search { display: flex; gap: 8px; flex: 1 1 340px; max-width: 520px; }
.search select { max-width: 190px; }
@media (max-width: 640px) {
  .search { flex-wrap: wrap; flex-basis: 100%; }
  .search input { flex: 1 1 0; min-width: 0; }
  .search select { max-width: none; flex: 1 1 100%; order: 3; }
  .strip-scroll { grid-auto-columns: 158px; gap: 10px; }
  .countdown-xl { font-size: 1.15rem; }
  .price-xl { font-size: 1.7rem; }
}

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 16px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab .count { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 1px 8px; font-size: .75rem; margin-left: 4px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .card-text { display: none; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(36, 28, 25, .1); }
.card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #eee5da; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { margin: 0; font-family: var(--body); font-weight: 600; font-size: .98rem; line-height: 1.3; }
.card-title a { color: var(--ink); }
.card-text { margin: 0; color: var(--muted); font-size: .85rem; }
.card-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; }
.price { font-family: var(--display); font-weight: 700; color: var(--brand); font-size: 1.1rem; }

.badge { position: absolute; top: 10px; left: 10px; font: 700 .7rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; padding: 6px 9px; border-radius: 999px; background: #fff; color: var(--ink); }
.badge-static { position: static; display: inline-block; margin-bottom: 10px; }
.badge-live { background: var(--brand); color: #fff; }
.badge-upcoming { background: var(--accent); color: #06343f; }
.badge-ended { background: #3d3532; color: #fff; }

.countdown { white-space: nowrap; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.countdown.urgent { color: var(--brand); }
.flash-update { animation: flashy 1s ease; }
@keyframes flashy { 0% { background: var(--accent-soft); } 100% { background: transparent; } }

/* ---------- Detail pages ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 16px; }
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .detail { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.detail-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-media img { width: 100%; max-height: 640px; object-fit: contain; background: #f1ebe3; }
.price-xl { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--brand); line-height: 1.1; }
.countdown-xl { font-size: 1.5rem; }
.bid-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.bid-time { text-align: right; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 16px; }
.facts div { border-top: 1px dashed var(--line); padding-top: 6px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.bid-box { background: var(--accent-soft); border: 1px solid #c6e9f2; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.bid-form label { font-weight: 600; display: block; margin-bottom: 6px; }
.bid-row { display: flex; gap: 8px; }
.bid-row input { font-size: 1.1rem; font-weight: 600; }
.leader-note { margin: 0 0 10px; color: var(--ok); font-weight: 600; }
.form-msg { min-height: 1.4em; margin-top: 8px; font-weight: 500; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #b3261e; }
.description { white-space: normal; color: #3a302c; }
.stock { font-weight: 600; margin: 6px 0 16px; }
.stock.in { color: var(--ok); }
.stock.out { color: #b3261e; }
.bid-history { margin-top: 36px; }

.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: #f6f0e8; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.empty { padding: 40px 0; text-align: center; }

/* ---------- Auth pages ---------- */
.auth-card { max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { text-align: center; }
.auth-logo { width: 96px; height: 96px; margin: 0 auto 10px; object-fit: contain; }
.auth-page { min-height: 100vh; padding: 40px 16px; background: var(--paper); }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.checklist .ok { color: var(--ok); }
.checklist .bad { color: #b3261e; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #231b18; color: #d9cfc6; margin-top: 30px; padding: 24px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { background: #fff; border-radius: 50%; width: 40px; height: 40px; object-fit: contain; }
.footer-links { display: flex; gap: 16px; }
.site-footer a { color: var(--accent); }

/* =========================================================
   Admin panel
   ========================================================= */
.admin-body { background: #f5f1ec; }
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: #231b18; color: #e8dfd6; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 22px; }
.admin-brand:hover { text-decoration: none; }
.admin-brand img { width: 44px; height: 44px; background: #fff; border-radius: 50%; object-fit: contain; }
.admin-brand strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; display: block; line-height: 1.1; }
.admin-brand small { color: #b8aca2; font-size: .75rem; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a, .admin-nav button { display: block; text-align: left; width: 100%; color: #e8dfd6; padding: 10px 12px; border-radius: 8px; font: 600 .85rem var(--display); text-transform: uppercase; letter-spacing: .08em; background: none; border: 0; cursor: pointer; }
.admin-nav a:hover, .admin-nav button:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-nav hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 10px 0; }
.admin-main { padding: 26px 28px 60px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-top h1 { margin: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--brand); }
.stat span { color: var(--muted); font-size: .85rem; }
.thumb { width: 52px; min-width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #eee5da; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 .7rem var(--display); text-transform: uppercase; letter-spacing: .08em; }
.pill-live { background: var(--brand); color: #fff; }
.pill-upcoming { background: var(--accent); color: #06343f; }
.pill-ended { background: #3d3532; color: #fff; }
.pill-hidden { background: #eee; color: #666; }
.pill-manual { background: #fff4dc; color: var(--warn); }
.current-img { max-width: 220px; border-radius: 10px; border: 1px solid var(--line); }
.winner-box { background: var(--ok-soft); border: 1px solid #bfe0ca; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }

@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 12px; }
  .admin-brand { margin-bottom: 10px; }
  .admin-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin-nav hr { display: none; }
  .admin-main { padding: 18px 14px 40px; }
  .table-stack thead { display: none; }
  .table-stack tr { display: grid; grid-template-columns: 60px 1fr; gap: 4px 10px; padding: 10px; border-bottom: 1px solid var(--line); }
  .table-stack td { border: 0; padding: 2px 0; }
  .table-stack td:first-child { grid-row: span 4; }
}

/* =========================================================
   Auction winners
   ========================================================= */
.win-panel h3 { margin-top: 4px; }
.win-panel .ref { font-weight: 700; color: var(--brand); background: var(--brand-soft); }
.deadline { margin: 0 0 12px; }
.pill-unpaid { background: #fff4dc; color: var(--warn); }
.pill-paid { background: var(--ok); color: #fff; }
.pill-cancelled { background: #eee; color: #666; }
.pill-overdue { background: #fdecea; color: #b3261e; }
.offer-next { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 8px; justify-items: start; }
.offer-next h3 { margin: 0; font-size: .95rem; }
tr.muted td { color: var(--muted); }
.btn-pay { padding: 15px 18px; font-size: 1rem; margin-bottom: 4px; }

/* =========================================================
   Polish: smooth motion, phone fields, admin v2
   (motion is switched off for people who prefer reduced motion)
   ========================================================= */
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }   /* nothing (e.g. confetti) can widen the page on phones */
body { animation: page-in .35s ease-out both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.btn { transition: background .2s, border-color .2s, color .2s, transform .12s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn:hover { box-shadow: 0 6px 16px rgba(163, 18, 15, .18); }
.btn-ghost:hover, .btn-danger:hover { box-shadow: none; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #24653b; border-color: #24653b; color: #fff; box-shadow: 0 6px 16px rgba(47, 125, 74, .22); }
.text-ok { color: var(--ok); }
.text-bad { color: #b3261e; }
.card-img img, .mini-img img, .detail-media img { animation: img-in .6s ease both; }
@keyframes img-in { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(36, 28, 25, .08); }
input, select, textarea { transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
input, select, textarea, .btn { font-size: 16px; }   /* no iOS zoom on focus */
.btn-sm { font-size: .78rem; }

/* Phone number with country-code picker */
.field { display: grid; gap: 6px; font-weight: 500; }
.phone-field { display: flex; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.phone-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.phone-field select { width: auto; max-width: 112px; flex: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #faf6f0; padding-right: 6px; box-shadow: none; }
.phone-field input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; flex: 1; }
.phone-field select:focus, .phone-field input:focus { box-shadow: none; }

/* Toast messages */
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(520px, calc(100% - 24px)); }
.toasts .alert { margin: 0; box-shadow: 0 10px 30px rgba(36, 28, 25, .15); animation: toast-in .4s cubic-bezier(.2,.8,.2,1) both; cursor: pointer; transition: opacity .35s, transform .35s; }
.toasts .alert.hide { opacity: 0; transform: translateY(-12px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.98); } to { opacity: 1; transform: none; } }

/* Winner box + confetti */
.win-panel { position: relative; }
.win-panel h3 { animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; border-radius: 2px; z-index: 90; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }

/* Sticky bid bar on phones (auction page) */
.bid-bar { display: none; }
@media (max-width: 820px) {
  .bid-bar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
             align-items: center; gap: 12px; background: rgba(35, 27, 24, .94); color: #fff; padding: 10px 10px 10px 16px;
             border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); backdrop-filter: blur(8px);
             animation: bar-up .5s .3s cubic-bezier(.2,.8,.2,1) both; transition: transform .3s, opacity .3s; }
  .bid-bar.away { transform: translateY(140%); opacity: 0; }
  .bid-bar .price { color: #fff; font-size: 1.15rem; }
  .bid-bar small { display: block; color: #cfc4bb; font-size: .72rem; }
  .bid-bar .countdown { color: var(--accent); }
  .bid-bar .btn { margin-left: auto; }
  body.has-bid-bar .site-footer { padding-bottom: 96px; }
}
@keyframes bar-up { from { transform: translateY(140%); } to { transform: none; } }

/* ---------- Admin v2 ---------- */
.admin-nav a, .admin-nav button { display: flex; align-items: center; gap: 10px; transition: background .2s, color .2s; }
.admin-nav svg { flex: none; opacity: .9; }
.admin-main { animation: page-in .3s ease-out both; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 500; transition: all .2s; }
.chip:hover { text-decoration: none; border-color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-sep { width: 1px; background: var(--line); margin: 0 4px; }
.hint { margin: -6px 0 16px; }

.profit-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.profit-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.profit-card span { font-size: .82rem; color: var(--muted); font-weight: 500; }
.profit-card b { font: 700 1.6rem/1.1 var(--display); color: var(--ok); font-variant-numeric: tabular-nums; }
.profit-card small { color: var(--muted); font-size: .78rem; }
.profit-main { background: linear-gradient(135deg, #2f7d4a, #1f5a34); border: 0; color: #fff; }
.profit-main span, .profit-main small { color: rgba(255,255,255,.8); }
.profit-main b { color: #fff; font-size: 2.1rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.quick { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); display: grid; transition: transform .2s, box-shadow .2s, border-color .2s; }
.quick:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.quick b { font: 700 1.4rem var(--display); color: var(--brand); }
.quick span { font-size: .8rem; color: var(--muted); }
.dash-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.panel { border-radius: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.legend { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-rev { background: var(--brand-soft); border: 1px solid #e8c4c0; }
.lg-pro { background: var(--ok); }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 210px; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 4px; }
.bar-col span { font-size: .75rem; color: var(--muted); }
.bar-val { font-size: .68rem; color: var(--ok); font-weight: 600; min-height: 1em; }
.bar { align-self: end; height: var(--h); min-height: 3px; background: var(--brand-soft); border-radius: 8px 8px 4px 4px; position: relative; overflow: hidden; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.bar-profit { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: linear-gradient(180deg, #3d9a5e, var(--ok)); }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li.muted { display: block; }
.mini-list strong { display: block; font-weight: 600; font-size: .92rem; }
.mini-list small { display: block; font-size: .78rem; }
.mini-list .row-actions { display: flex; gap: 6px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: var(--brand); } .dot-blue { background: var(--accent); } .dot-amber { background: #e3a008; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: 1rem; transition: all .2s; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.icon-btn.wa { color: #1f9d55; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat-ok b { color: var(--ok); }

.admin-list { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; transition: box-shadow .2s, transform .2s; }
.admin-row:hover { box-shadow: var(--shadow); }
.thumb-lg { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #eee5da; }
.row-main { min-width: 0; display: grid; gap: 4px; }
.row-title { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta, .row-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; }
.sale-row { grid-template-columns: auto 1fr auto auto; }
.sale-date { width: 54px; text-align: center; background: var(--paper); border-radius: 12px; padding: 6px 0; }
.sale-date b { display: block; font: 700 1.3rem/1 var(--display); color: var(--brand); }
.sale-date small { font-size: .68rem; color: var(--muted); }
.sale-money { text-align: right; display: grid; }
.sale-money b { font: 700 1.05rem var(--display); }
.sale-money small { font-size: .78rem; }
.empty-state { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 36px 16px; }

/* Bottom sheet / dialog */
dialog.sheet { border: 0; border-radius: 20px; padding: 0; width: min(460px, calc(100% - 24px)); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
dialog.sheet::backdrop { background: rgba(35, 27, 24, .45); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: sheet-in .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
dialog.sheet form { padding: 18px 20px 20px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; }
.sheet-item { margin: 0; color: var(--muted); font-size: .9rem; }
.sell-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sell-summary div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.sell-summary small { display: block; color: var(--muted); font-size: .75rem; }
.sell-summary b { font: 700 1.3rem var(--display); }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 4px 0; }
details.more[open] summary { margin-bottom: 10px; }

@media (max-width: 1000px) {
  .profit-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .profit-main { grid-column: 1 / -1; }
  .profit-card:not(.profit-main) { padding: 12px; border-radius: 14px; }
  .profit-card:not(.profit-main) b { font-size: 1.2rem; }
  .profit-card:not(.profit-main) span { font-size: .72rem; }
  .dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Admin: app-style bottom navigation on phones */
  .admin-side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 50; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
                background: rgba(35, 27, 24, .97); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgba(0,0,0,.15); }
  .admin-brand, .side-only, .admin-nav hr { display: none !important; }
  .admin-nav { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: row; gap: 2px; overflow: visible; }
  .admin-nav a { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: .6rem; letter-spacing: .04em; text-align: center; border-radius: 10px; }
  .admin-nav a.active { background: transparent; color: #fff; }
  .admin-nav a.active svg { color: #ff8a80; transform: translateY(-1px); }
  .admin-nav a:not(.active) { color: #b8aca2; }
  .admin-main { padding: 16px 14px 100px; }
  .admin-top h1 { font-size: 1.45rem; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .stats-3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stats-3 .stat { padding: 10px; }
  .stats-3 .stat b { font-size: 1.1rem; }
  .admin-row { grid-template-columns: auto 1fr; }
  .admin-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .sale-row { grid-template-columns: auto 1fr auto; }
  .sale-row .sale-undo { grid-column: 3; grid-row: 1; }
  .sale-row .sale-money { grid-column: 2 / -1; text-align: left; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .thumb-lg { width: 60px; height: 60px; }
  dialog.sheet { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; }
  dialog.sheet form { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  .bars { height: 170px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Whish: copy-number button */
.whish-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; display: grid; gap: 10px; text-align: left; animation: pop .5s cubic-bezier(.2,1.3,.4,1) both; }
.whish-copy { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
              background: linear-gradient(135deg, #231b18, #3d2f2a); color: #fff; box-shadow: 0 10px 24px rgba(36,28,25,.22); transition: transform .15s, box-shadow .2s; font: inherit; }
.whish-copy:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(36,28,25,.28); }
.whish-copy:active { transform: scale(.98); }
.whish-copy .whish-logo { background: #fff; color: var(--ink); font-size: 1.15rem; padding: 9px 12px; border-radius: 10px; }
.whish-logo { font: 700 .95rem/1 var(--display); background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 8px; text-transform: lowercase; letter-spacing: .04em; }
.whish-logo-img { height: 42px; width: auto; border-radius: 10px; background: #fff; padding: 4px; }
.wc-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.wc-text small { color: rgba(255,255,255,.75); font-size: .74rem; }
.wc-text strong { font: 700 1.12rem/1.2 var(--display); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-text .muted { color: rgba(255,255,255,.6); }
.wc-icon { font-size: 1.3rem; opacity: .85; }
.whish-copy.copied { background: linear-gradient(135deg, #2f7d4a, #1f5a34); }
.whish-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip-copy { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, background .2s; }
.chip-copy small { grid-column: 1; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.chip-copy b { grid-column: 1; font: 700 1.05rem var(--display); color: var(--brand); }
.chip-copy i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; color: var(--muted); }
.chip-copy:hover { border-color: var(--brand); }
.chip-copy.copied { border-color: var(--ok); background: var(--ok-soft); }
.whish-steps { margin: 2px 0 0; padding-left: 20px; font-size: .88rem; color: #3a302c; display: grid; gap: 3px; }

/* Full-screen photo viewer (pinch / double-tap / wheel to zoom, drag to move) */
.zoomable { cursor: zoom-in; }
.detail-media { position: relative; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(35,27,24,.75); color: #fff; font-size: .75rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; pointer-events: none; backdrop-filter: blur(4px); }
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(12, 9, 8, .96); touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden;
          opacity: 0; transition: opacity .25s ease; }
.viewer.open { opacity: 1; }
.viewer img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; -webkit-user-drag: none; }
.viewer img.animate { transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.viewer-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
                background: rgba(255,255,255,.14); color: #fff; font-size: 1.3rem; cursor: pointer; backdrop-filter: blur(6px); }
.viewer-close:hover { background: rgba(255,255,255,.26); }
.viewer-tip { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .8rem;
              background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 999px; transition: opacity .4s; white-space: nowrap; }

/* =========================================================
   Cart, checkout, orders
   ========================================================= */
.narrow { max-width: 760px; }
.cart-link { position: relative; display: inline-flex !important; align-items: center; }
.cart-badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 .68rem/18px var(--body); text-align: center; letter-spacing: 0; box-shadow: 0 0 0 2px #fff; }
.cart-badge.bump { animation: bump .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.btn-add { background: var(--ink); border-color: var(--ink); }
.btn-add:hover { background: var(--brand); border-color: var(--brand); }
.btn.added { background: var(--ok); border-color: var(--ok); color: #fff; }
.buy-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 6px 0 12px; }
.buy-form .btn { flex: 1 1 150px; }
.qty-pick { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.qty-pick input { width: 84px; }
.ask-link { display: inline-flex; align-items: center; gap: 6px; color: #1f9d55; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.empty-icon { font-size: 2.6rem; margin-bottom: 6px; }
.block-link { display: block; margin-top: 10px; }

.cart-list { display: grid; gap: 10px; margin-bottom: 18px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.cart-info { display: grid; gap: 6px; min-width: 0; }
.cart-title { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-right { display: grid; justify-items: end; gap: 6px; }
.cart-right b { font: 700 1.1rem var(--display); }
.qty-form { margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.stepper button { width: 34px; height: 32px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--ink); transition: background .2s; }
.stepper button:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper span { min-width: 26px; text-align: center; font-weight: 600; }
.link-remove { background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; }
.link-remove:hover { color: #b3261e; }
.cart-summary, .order-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 10px; }
.sum-row span { font-weight: 600; }

.checkout-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .78rem; }
.steps li { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.steps li.done { background: var(--ok-soft); color: var(--ok); border-color: #bfe0ca; }
.steps li.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.checkout .order-box { position: sticky; top: 96px; }
.checkout-form fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0; background: #fff; display: grid; gap: 12px; }
.checkout-form legend { display: flex; align-items: center; gap: 8px; font: 700 1rem var(--display); padding: 0 6px; }
.checkout-form legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; }
.pin-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pin-row .btn { flex: none; }
.pin-row input { flex: 1 1 200px; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option span { display: block; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 600; cursor: pointer; transition: all .2s; }
.pay-option input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 3px rgba(163,18,15,.08); }
.pay-option input:focus-visible + span { outline: 2px solid var(--accent); }
.order-box h2 { font-size: 1.1rem; }
.order-lines { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.order-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.order-lines.plain li { grid-template-columns: 1fr auto; }
.order-lines img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.order-lines strong { display: block; font-size: .92rem; }
.order-lines small { display: block; }
.order-facts { margin-top: 10px; }
.order-facts .span-2 { grid-column: 1 / -1; }
.order-done { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 18px; margin-bottom: 18px; box-shadow: var(--shadow); display: grid; gap: 10px; justify-items: center; }
.order-done .whish-box, .order-done .btn-block { text-align: left; width: 100%; }
.order-done h1 { margin: 0; }
.order-done p { margin: 0; }
.done-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2rem; animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; box-shadow: 0 0 0 10px var(--ok-soft); }

/* Admin orders */
.nav-badge { margin-left: auto; font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 7px; font: 700 .7rem/18px var(--body); }
.admin-nav a.active .nav-badge { background: #fff; color: var(--brand); }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.order-card summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.order-card summary::-webkit-details-marker { display: none; }
.order-card[open] summary { border-bottom: 1px solid var(--line); background: #fcfaf7; }
.oc-main { display: grid; gap: 2px; min-width: 0; }
.oc-right { display: grid; justify-items: end; gap: 4px; }
.oc-right b { font: 700 1.1rem var(--display); }
.oc-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.row-actions.left { justify-content: flex-start; }

@media (max-width: 820px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout .order-box { position: static; order: -1; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-right { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; gap: 14px; }
}
@media (max-width: 640px) {
  .main-nav .cart-link { order: 0; }
  .nav-badge { position: absolute; top: 2px; right: 18%; padding: 0 5px; line-height: 16px; }
  .admin-nav a { position: relative; }
}

/* ---------- Info cards on item / auction pages (dark, collector-app style) ---------- */
.info-cards { display: grid; gap: 12px; margin-top: 16px; }
.info-card { background: #1c1c1e; color: #f2f2f2; border-radius: 18px; padding: 16px 18px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.info-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 1.15rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #9a9aa0; }
.info-card h3 svg { flex: none; }
.info-body { font-size: 1.02rem; line-height: 1.55; color: #f2f2f2; }
.info-body strong { color: #fff; }

/* ---------- Whish button (brand red) ---------- */
.whish-copy { background: linear-gradient(135deg, #e41844, #c4103a); box-shadow: 0 10px 24px rgba(228,24,68,.28); }
.whish-copy:hover { box-shadow: 0 14px 30px rgba(228,24,68,.36); }
.whish-copy .whish-logo-img { width: 48px; height: 48px; padding: 0; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); object-fit: cover; }
.whish-logo-img { width: 26px; height: 26px; padding: 0; border-radius: 7px; object-fit: cover; vertical-align: middle; background: none; }
.pay-whish span { display: flex; align-items: center; gap: 8px; }
.pay-whish input:checked + span { border-color: #e41844; background: #fde8ed; color: #c4103a; box-shadow: 0 0 0 3px rgba(228,24,68,.1); }
.chip-static { cursor: default; }
.whish-inline .whish-box { margin: 4px 0 6px; }
.pop-in { animation: pop .45s cubic-bezier(.2,1.3,.4,1) both; }

/* ---------- Admin: phone top bar with "View site" ---------- */
.admin-mobilebar { display: none; }
@media (max-width: 860px) {
  .admin-mobilebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 14px; }
  .amb-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
  .amb-brand:hover { text-decoration: none; }
  .amb-brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; object-fit: contain; }
  .view-site-btn { display: none; }
}

/* ---------- Categories ---------- */
.cat-combo { position: relative; }
.cat-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff;
            border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px rgba(36,28,25,.16); max-height: 280px; overflow: auto;
            animation: sheet-in .2s ease both; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.cat-list li small { color: var(--muted); font-weight: 400; }
.cat-list li.active, .cat-list li:hover { background: var(--brand-soft); color: var(--brand); }
.cat-list li.create { color: var(--ok); font-weight: 600; }
.cat-list li.create.active, .cat-list li.create:hover { background: var(--ok-soft); color: var(--ok); }
.cat-list mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.cat-suggest { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); }
.cat-suggest .chip { cursor: pointer; padding: 5px 12px; font: inherit; font-weight: 600; color: var(--brand); border-color: #e8c4c0; background: var(--brand-soft); }
.form .cat-field label { display: flex; align-items: baseline; gap: 8px; }
.cat-field label a { font-weight: 500; font-size: .85rem; }
.add-cat { display: flex; gap: 10px; padding: 14px; }
.add-cat input { flex: 1; }
.cat-row { grid-template-columns: auto 1fr auto; }
.cat-move { display: grid; gap: 4px; }
.cat-move form { margin: 0; }
.cat-move .icon-btn { width: 32px; height: 32px; }
.cat-move .icon-btn:disabled { opacity: .3; cursor: default; }
.cat-rename { display: flex; gap: 8px; }
.cat-rename input { font-weight: 600; padding: 8px 10px; }
.cat-merge { display: flex; gap: 6px; }
.cat-merge select { padding: 7px 8px; font-size: .85rem; width: auto; }
@media (max-width: 860px) { .cat-row { grid-template-columns: auto 1fr; } .cat-merge { flex: 1 1 100%; } .cat-merge select { flex: 1; } }
