/* Logovo Shop — dark survival theme */
:root {
  --bg: #0b0a08;
  --bg-soft: #100f0c;
  --panel: #151310;
  --panel-2: #1a1713;
  --text: #e9e2d1;
  --muted: #a49b88;
  --line: rgba(232, 225, 208, 0.10);
  --line-strong: rgba(232, 225, 208, 0.18);
  --accent: #e2d8bd;
  --accent-ink: #17130d;
  --amber: #b55236;
  --danger: #d96a57;
  --ok: #8fb573;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  z-index: -2;
}

.bg-glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(45% 60% at 22% 20%, rgba(226, 216, 189, 0.10), transparent 70%),
    radial-gradient(40% 55% at 78% 8%, rgba(196, 138, 92, 0.08), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #f3eeda; }

img { max-width: 100%; display: block; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: #e6dcc3;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 12px; }

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 12px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.brand-logo.small { width: 28px; height: 28px; border-radius: 8px; }

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--accent), #a89a78);
  color: var(--accent-ink);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(226, 216, 189, 0.18);
}
.brand-mark.small { width: 24px; height: 24px; border-radius: 7px; font-size: 0.8rem; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; }

.nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.94rem;
  transition: 0.15s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--text); background: rgba(226, 216, 189, 0.10); }

.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.cart-link { color: var(--text); font-size: 0.94rem; position: relative; display: inline-flex; align-items: center; gap: 8px; }
.cart-link:hover { color: var(--accent); }
.cart-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.account-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.92rem; }
.account-link:hover { color: var(--accent); }

.avatar { border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); }
.avatar.big { width: 48px; height: 48px; }

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--panel-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-bg: linear-gradient(180deg, var(--accent), #c6b994);
  --btn-fg: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(226, 216, 189, 0.18);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(226, 216, 189, 0.28); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.03); }
.btn-danger { --btn-bg: rgba(217, 106, 87, 0.10); --btn-fg: #f0b6a8; border-color: rgba(217, 106, 87, 0.3); }
.btn-steam { --btn-bg: linear-gradient(180deg, #2b6ea8, #1f4f7a); --btn-fg: #fff; border-color: transparent; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.88rem; border-radius: 9px; }
.btn-xs { min-height: 30px; padding: 4px 10px; font-size: 0.8rem; border-radius: 7px; }
.btn-block { width: 100%; }

.inline { display: inline; }
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}
.icon-btn:hover { color: var(--danger); border-color: rgba(217, 106, 87, 0.4); }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text); }

/* ----------------------------------------------------------------- notice */

.notice {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(226, 216, 189, 0.28);
  background: rgba(226, 216, 189, 0.07);
  color: #e9e1c8;
}
.notice.error { border-color: rgba(217, 106, 87, 0.35); background: rgba(217, 106, 87, 0.08); color: #f2c5ba; }
.notice.warn { border-color: rgba(196, 138, 92, 0.35); background: rgba(196, 138, 92, 0.08); color: #e7c3a3; margin-bottom: 24px; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 { margin-bottom: 20px; }
.accent { color: var(--accent); }

.lead { font-size: 1.08rem; color: #c3c9c0; max-width: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-stats div { margin: 0; }
.hero-stats dt { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-stats dd { margin: 4px 0 0; font-weight: 700; font-size: 1.02rem; }

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-emblem {
  position: absolute;
  width: min(540px, 92%);
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
  filter: contrast(1.05);
}
.hero-emblem img { width: 100%; height: auto; border-radius: 50%; }

.hero-card {
  position: relative;
  width: min(430px, 100%);
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30, 38, 34, 0.96), rgba(16, 20, 18, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  z-index: 2;
  transform: rotate(-2deg);
}
.hero-card img { border-radius: 12px; background: #0d110f; }
.hero-card-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-weight: 600; }
.hero-card-row.small { margin-top: 6px; color: var(--muted); font-size: 0.84rem; font-weight: 500; justify-content: flex-start; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }

.hero-orbit {
  position: absolute;
  border: 1px dashed rgba(226, 216, 189, 0.18);
  border-radius: 50%;
  z-index: 1;
}
.hero-orbit.one { width: 420px; height: 420px; }
.hero-orbit.two { width: 540px; height: 540px; opacity: 0.5; }

/* --------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 20px 0 54px;
}
.feature {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.feature-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(226, 216, 189, 0.10); margin-bottom: 14px; font-size: 1.15rem; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------------------------------------------------------------- catalog */

.catalog { padding: 24px 0 44px; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.catalog-head h2 { margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(175deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(226, 216, 189, 0.28); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }

.card-media { position: relative; display: block; background: #0c100e; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-media img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: #f7e9dd;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.card-title { font-size: 1.02rem; margin: 0 0 6px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-short { color: var(--muted); font-size: 0.87rem; margin: 0 0 16px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; }
.price.big { font-size: 1.9rem; }

/* ------------------------------------------------------------------- how */

.how { padding: 34px 0 64px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.steps li > span { color: var(--accent); font-weight: 800; font-family: var(--mono); font-size: 0.9rem; }
.steps h3 { margin-bottom: 4px; font-size: 1rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.9rem; }

/* ------------------------------------------------------------------ crumbs */

.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.86rem; padding: 28px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ----------------------------------------------------------------- product */

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 28px 0 48px; align-items: start; }
.product-media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #0c100e; position: sticky; top: 100px; }
.product-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.product-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.price-row { display: flex; align-items: center; gap: 16px; margin: 18px 0 22px; }
.pill { padding: 5px 12px; border-radius: 999px; background: rgba(226, 216, 189, 0.10); border: 1px solid rgba(226, 216, 189, 0.25); color: var(--accent); font-size: 0.78rem; font-weight: 600; }

.buy-form { display: flex; align-items: flex-end; gap: 12px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.qty { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.qty input { width: 86px; }

.product-meta { display: grid; gap: 10px; margin: 22px 0; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.product-meta > div { display: flex; justify-content: space-between; gap: 14px; font-size: 0.9rem; }

.panel { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); margin-bottom: 18px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 10px; }
.panel p:last-child { margin-bottom: 0; }

.mini-steps { margin: 0 0 12px; padding-left: 20px; color: #cfc8b8; }
.mini-steps li { margin-bottom: 6px; }

/* -------------------------------------------------------------------- cart */

.page-head { padding: 36px 0 20px; }
.page-head h1 { margin-bottom: 6px; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding-bottom: 56px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }

.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
}
.cart-row img { border-radius: 8px; object-fit: cover; background: #0c100e; }
.cart-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-row-title { color: var(--text); font-weight: 600; }
.cart-row-title:hover { color: var(--accent); }
.cart-row-sum { font-weight: 700; white-space: nowrap; }
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-form input { width: 64px; }
.cart-clear { text-align: right; }

.summary {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(175deg, var(--panel-2), var(--panel));
  position: sticky;
  top: 96px;
}
.summary h2 { font-size: 1.12rem; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-row.total { font-size: 1.05rem; padding-top: 14px; }
.summary-row.total strong { font-size: 1.3rem; }
.summary .btn { margin-top: 14px; }
.summary .muted { margin-top: 12px; }

.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-bottom: 56px; }
.empty p { color: var(--muted); font-size: 1.05rem; }

/* ---------------------------------------------------------------- checkout */

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding-bottom: 56px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.steam-box { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: rgba(226, 216, 189, 0.05); border: 1px solid rgba(226, 216, 189, 0.16); }
.steam-box > div { flex: 1; }
.steam-box .link-btn { white-space: nowrap; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.field em { font-style: normal; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: #0c100e;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  min-height: 42px;
  width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(226, 216, 189, 0.35); outline-offset: 1px; border-color: rgba(226, 216, 189, 0.4); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: #cfc8b8; }
.check input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--accent); }

/* ------------------------------------------------------------------ status */

.status-card { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 24px; }
.status-card.ok { border-color: rgba(143, 181, 115, 0.35); background: rgba(143, 181, 115, 0.06); }
.status-card.wait { border-color: rgba(196, 138, 92, 0.32); background: rgba(196, 138, 92, 0.06); }
.status-card.error { border-color: rgba(217, 106, 87, 0.32); background: rgba(217, 106, 87, 0.06); }
.status-icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.06); font-size: 1.3rem; }
.status-card h2 { margin-bottom: 6px; font-size: 1.3rem; }
.status-card p { margin-bottom: 8px; }

/* ------------------------------------------------------------------- table */

.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { padding: 14px 12px; font-weight: 700; border-top: 1px solid var(--line-strong); }

/* ----------------------------------------------------------------- account */

.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 36px 0 8px; }
.account-id { display: flex; align-items: center; gap: 16px; }
.account-id h1 { font-size: 1.7rem; margin: 0; }

.orders { display: flex; flex-direction: column; gap: 10px; padding-bottom: 56px; }
.order-row {
  display: grid;
  grid-template-columns: 200px 1fr 120px 170px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}
.order-row:hover { border-color: rgba(226, 216, 189, 0.3); color: var(--text); }
.order-main { display: flex; flex-direction: column; }
.order-items { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-total { font-weight: 700; text-align: right; }
.order-status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--muted); white-space: nowrap; }
.status.paid, .status.pending, .status.created { border-color: rgba(196, 138, 92, 0.3); background: rgba(196, 138, 92, 0.08); color: #e7c3a3; }
.status.delivered { border-color: rgba(143, 181, 115, 0.34); background: rgba(143, 181, 115, 0.08); color: #c2dcae; }
.status.canceled, .status.failed { border-color: rgba(217, 106, 87, 0.3); background: rgba(217, 106, 87, 0.08); color: #f0b6a8; }
.status.refunded { border-color: rgba(190, 170, 140, 0.3); background: rgba(190, 170, 140, 0.08); color: #d6c9b2; }

/* ------------------------------------------------------------------- login */

.login-page { display: grid; place-items: center; padding: 64px 0; }
.login-panel { width: min(480px, 100%); text-align: center; padding: 36px; }
.login-logo {
  display: block;
  width: 220px;
  max-width: 82%;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.steam-logo { display: inline-block; padding: 8px 16px; border-radius: 10px; background: #1f4f7a; color: #fff; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 18px; }
.login-panel h1 { font-size: 1.7rem; }
.check-list { list-style: none; margin: 20px 0 24px; padding: 0; text-align: left; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 9px; color: #cfc8b8; font-size: 0.92rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* -------------------------------------------------------------------- legal */

.legal { max-width: 820px; padding: 40px 0 64px; }
.legal h1 { margin-bottom: 18px; }
.legal section { margin-top: 28px; }
.legal h2 { font-size: 1.18rem; margin-bottom: 8px; }
.legal p { color: #cfc8b8; }
.legal .lead { color: var(--text); }

/* -------------------------------------------------------------------- admin */

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 36px 0 22px; }
.admin-head h1 { margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 1.35rem; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; align-items: center; }
.filters input, .filters select { min-height: 36px; padding: 6px 10px; font-size: 0.85rem; }
.filters input { width: 210px; }

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.admin-table { min-width: 860px; }
.admin-table .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.admin-table .actions form { margin: 0; }

.inline-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.inline-form .field { min-width: 220px; flex: 1; }

.product-edit { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.012); }
.product-edit summary { cursor: pointer; padding: 14px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; list-style: none; }
.product-edit summary::-webkit-details-marker { display: none; }
.product-edit summary strong { min-width: 180px; }
.product-edit summary code { margin-right: auto; }
.product-edit summary span { font-size: 0.86rem; }
.product-edit[open] { padding-bottom: 16px; }
.add-product { border-style: dashed; }

.product-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.product-form .field.wide { grid-column: span 3; }
.product-form .check { align-self: center; }
.product-form .form-actions { display: flex; align-items: flex-end; justify-content: flex-end; }
.product-form textarea { min-height: 76px; }

/* ------------------------------------------------------------------- error */

.error-page { padding: 80px 0; max-width: 640px; }
.error-page .lead { margin-bottom: 24px; }

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 34px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.footer-col p { margin: 0 0 6px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .product-form { grid-template-columns: repeat(2, 1fr); }
  .product-form .field.wide { grid-column: span 2; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { min-height: 320px; }
  .features { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product-media { position: static; }
  .steps { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-items { display: none; }
  .nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .wrap, .topbar-inner { width: calc(100% - 28px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .top-actions .account-link span { display: none; }
  .cart-row { grid-template-columns: 72px 1fr auto; row-gap: 10px; }
  .cart-row img { width: 72px; height: 48px; }
  .qty-form, .cart-row-sum { grid-column: 2; }
  .cart-row > form:last-child { grid-column: 3; grid-row: 1; }
  .buy-form { flex-wrap: wrap; }
  .buy-form .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .product-form { grid-template-columns: 1fr; }
  .product-form .field.wide { grid-column: span 1; }
  .filters { width: 100%; }
  .filters input { flex: 1; width: auto; }
  .footer { padding-bottom: 28px; }
}

@media (max-width: 430px) {
  .grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
}

/* ------------------------------------------------------------ winter season */

.bg-glow {
  background:
    radial-gradient(55% 45% at 50% -5%, rgba(190, 218, 232, 0.12), transparent 72%),
    radial-gradient(45% 60% at 22% 20%, rgba(226, 216, 189, 0.10), transparent 70%),
    radial-gradient(40% 55% at 78% 8%, rgba(196, 138, 92, 0.08), transparent 70%);
}

.snow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.8;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
}

.snow::before,
.snow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/img/snow.svg");
  background-repeat: repeat;
  will-change: background-position;
}

.snow::before {
  background-size: 220px 220px;
  opacity: 0.5;
  animation: snow-fall-a 34s linear infinite;
}

.snow::after {
  background-size: 360px 360px;
  opacity: 0.28;
  animation: snow-fall-b 58s linear infinite;
  animation-delay: -22s;
}

@keyframes snow-fall-a {
  from { background-position: 0 0; }
  to { background-position: 0 660px; }
}

@keyframes snow-fall-b {
  from { background-position: 0 0; }
  to { background-position: 0 720px; }
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(190, 218, 232, 0.55) 18%,
    rgba(226, 216, 189, 0.7) 38%,
    rgba(181, 82, 54, 0.55) 58%,
    rgba(226, 216, 189, 0.7) 78%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: winter-shimmer 9s linear infinite;
}

@keyframes winter-shimmer {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

.season-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.season-line .eyebrow {
  margin-bottom: 0;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(190, 218, 232, 0.28);
  background: linear-gradient(135deg, rgba(190, 218, 232, 0.12), rgba(226, 216, 189, 0.05));
  color: #e3edf1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 20px rgba(190, 218, 232, 0.06);
}

.season-note {
  color: #c8d7dd;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 26px;
  right: 26px;
  height: 4px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 240, 244, 0.65) 18%,
    rgba(244, 248, 250, 0.9) 50%,
    rgba(232, 240, 244, 0.55) 82%,
    transparent
  );
  filter: blur(0.4px);
}

@media (prefers-reduced-motion: reduce) {
  .snow::before,
  .snow::after,
  .topbar::after {
    animation: none;
  }
}

@media print {
  .snow,
  .topbar::after {
    display: none;
  }
}
