/* ============ TEVIS store — dark volt theme ============ */
:root {
  --bg: #0a0a0f;
  --bg2: #0f0f17;
  --card: #14141e;
  --card2: #1a1a26;
  --line: #262635;
  --text: #f3f3f7;
  --muted: #9a9ab0;
  --accent: #d4ff3f;
  --accent-ink: #11130a;
  --accent2: #7c5cff;
  --danger: #ff5470;
  --ok: #3fe0a0;
  --r: 18px;
  --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-disp: 'Unbounded', 'Arial Black', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
  outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2c3c; border-radius: 8px; }

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; letter-spacing: .3px;
  transition: transform .18s, box-shadow .18s, background .18s, opacity .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 8px 30px rgba(212, 255, 63, .35); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; transition: border-color .2s, color .2s; position: relative;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============ header ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 15, .65);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.scrolled { border-color: var(--line); background: rgba(10, 10, 15, .9); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo {
  font-family: var(--font-disp); font-weight: 900; font-size: 22px;
  letter-spacing: 1px;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--card); }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  font-size: 11px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; padding: 0 5px;
}
.cart-count:empty, .cart-count[data-n="0"] { display: none; }

/* ============ preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: transform .8s cubic-bezier(.76, 0, .24, 1);
}
.preloader.done { transform: translateY(-101%); }
.pre-logo {
  font-family: var(--font-disp); font-size: clamp(44px, 9vw, 96px);
  font-weight: 900; letter-spacing: 4px; display: flex; overflow: hidden;
}
.pre-logo i {
  font-style: normal; display: inline-block;
  transform: translateY(110%);
  animation: letterUp .7s cubic-bezier(.2, .8, .2, 1) forwards;
}
.pre-logo i:nth-child(1) { animation-delay: .05s; }
.pre-logo i:nth-child(2) { animation-delay: .12s; }
.pre-logo i:nth-child(3) { animation-delay: .19s; }
.pre-logo i:nth-child(4) { animation-delay: .26s; }
.pre-logo i:nth-child(5) { animation-delay: .33s; }
.pre-logo i:nth-child(6) { animation-delay: .40s; color: var(--accent); }
@keyframes letterUp { to { transform: translateY(0); } }
.pre-bar {
  width: min(320px, 70vw); height: 3px; background: var(--line);
  border-radius: 4px; margin-top: 34px; overflow: hidden;
}
.pre-bar-fill {
  height: 100%; width: 0%; background: var(--accent); border-radius: 4px;
}
.pre-count {
  margin-top: 14px; font-family: var(--font-disp); font-size: 14px;
  color: var(--muted); letter-spacing: 2px;
}
.pre-tag {
  position: absolute; bottom: 36px; font-size: 12px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--muted);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ============ hero ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 0 60px;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
  pointer-events: none;
}
.hero-blob.b1 { width: 560px; height: 560px; background: var(--accent2); top: -160px; right: -120px; }
.hero-blob.b2 { width: 420px; height: 420px; background: var(--accent); bottom: -180px; left: -120px; opacity: .16; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 40%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 40%, #000 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 26px;
}
.hero-tag b { color: var(--accent); font-weight: 800; }
.hero-title {
  font-family: var(--font-disp); font-weight: 900;
  font-size: clamp(42px, 7.2vw, 96px); line-height: .98;
  text-transform: uppercase; letter-spacing: -1px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.loaded .hero-title .line > span { animation: letterUp .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.loaded .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .outline {
  color: transparent; -webkit-text-stroke: 2px var(--accent);
}
.hero-sub { color: var(--muted); font-size: 18px; max-width: 480px; margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-promo {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px dashed var(--accent); border-radius: 14px;
  padding: 12px 18px; font-size: 14px; color: var(--muted);
}
.hero-promo code { color: var(--accent); font-weight: 800; font-size: 16px; letter-spacing: 2px; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.hero-shoe {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floaty 5s ease-in-out infinite;
  transform: rotate(-18deg);
  will-change: transform;
  user-select: none;
  pointer-events: none;
}
.hero-shoe-img {
  width: clamp(280px, 32vw, 420px);
  max-width: 90vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .7));
}
@keyframes floaty {
  0%, 100% { transform: rotate(-18deg) translateY(0); }
  50% { transform: rotate(-14deg) translateY(-26px); }
}
.hero-ring {
  position: absolute; width: min(440px, 40vw); aspect-ratio: 1;
  border: 2px dashed var(--line); border-radius: 50%;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-chip {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 16px; font-size: 13px; font-weight: 700;
  animation: chipFloat 6s ease-in-out infinite;
}
.hero-chip.c1 { top: 8%; right: 6%; animation-delay: .4s; }
.hero-chip.c2 { bottom: 12%; left: 0; animation-delay: 1.2s; }
.hero-chip b { color: var(--accent); }
@keyframes chipFloat { 50% { transform: translateY(-12px); } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ marquee ============ */
.marquee {
  border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden;
  background: var(--bg2);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee span {
  font-family: var(--font-disp); font-weight: 800; font-size: 20px;
  text-transform: uppercase; letter-spacing: 2px; white-space: nowrap;
  display: flex; align-items: center; gap: 48px;
}
.marquee span::after { content: '✦'; color: var(--accent); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ sections ============ */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-title {
  font-family: var(--font-disp); font-weight: 800;
  font-size: clamp(28px, 4vw, 46px); text-transform: uppercase; letter-spacing: -1px;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub { color: var(--muted); max-width: 420px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-text p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.about-text p strong { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 18px; text-align: center;
}
.stat-num {
  font-family: var(--font-disp); font-weight: 900; font-size: clamp(26px, 3vw, 38px);
  color: var(--accent);
}
.stat-label { color: var(--muted); font-size: 13px; margin-top: 6px; }
.about-cards { display: grid; gap: 16px; }
.about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: flex; gap: 18px; align-items: flex-start;
  transition: transform .25s, border-color .25s;
}
.about-card:hover { transform: translateX(8px); border-color: var(--accent); }
.about-card .ico {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: rgba(212, 255, 63, .12); display: flex; align-items: center;
  justify-content: center; font-size: 24px;
}
.about-card h3 { font-size: 17px; margin-bottom: 6px; }
.about-card p { color: var(--muted); font-size: 14px; }

/* categories */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-card {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; padding: 32px; border: 1px solid var(--line);
  transition: transform .3s;
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card .cat-emoji {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 170px; transition: transform .4s;
}
.cat-card:hover .cat-emoji { transform: scale(1.12) rotate(-6deg); }
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(5, 5, 10, .9));
}
.cat-card.sneakers { background: linear-gradient(135deg, #2a1f5e, #14141e); }
.cat-card.clothing { background: linear-gradient(135deg, #3f2a12, #14141e); }
.cat-info { position: relative; }
.cat-info h3 { font-family: var(--font-disp); font-size: 28px; text-transform: uppercase; }
.cat-info p { color: var(--muted); margin: 6px 0 14px; }
.cat-link { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: 1px; }

/* ============ product cards ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.p-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .25s, border-color .25s, box-shadow .25s; cursor: pointer;
}
.p-card:hover { transform: translateY(-6px); border-color: #3a3a50; box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.p-img { aspect-ratio: 4/3; background: var(--bg2); overflow: hidden; position: relative; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:hover .p-img img { transform: scale(1.06); }
.p-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 900; font-size: 13px; padding: 5px 12px; border-radius: 999px;
}
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-cat { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.p-name { font-weight: 800; font-size: 16px; }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-price { font-weight: 900; font-size: 18px; }
.p-price .old { color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: line-through; margin-right: 8px; }
.p-add {
  background: var(--card2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 9px 16px; font-weight: 800; font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.p-add:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.benefit {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px; transition: border-color .25s, transform .25s;
}
.benefit:hover { border-color: var(--accent); transform: translateY(-4px); }
.benefit .b-ico { font-size: 34px; margin-bottom: 16px; }
.benefit h3 { font-size: 16px; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 14px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; color: var(--muted); }
.footer a { display: block; color: var(--muted); padding: 4px 0; font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ shop page ============ */
.page-head { padding: 140px 0 40px; }
.filters {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 34px;
}
.filter-pills { display: flex; gap: 8px; }
.pill {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-weight: 700; font-size: 14px;
  transition: all .2s;
}
.pill:hover { color: var(--text); }
.pill.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filters input[type="search"] { max-width: 260px; }
.filters select { width: auto; padding-right: 36px; }

/* цветовой фильтр и свотчи */
.c-dot {
  display: inline-block; border-radius: 50%; flex: none;
  border: 1px solid var(--line); vertical-align: middle;
}
.color-filters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cf-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.c-reset {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--muted); font-size: 12px; cursor: pointer;
}
.c-reset:hover { color: var(--text); border-color: var(--danger); }
.p-color { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pm-colors { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.c-sw {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--card); display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s; padding: 0;
}
.c-sw:hover { border-color: var(--muted); transform: scale(1.08); }
.c-sw.active { border-color: var(--accent); }
.empty-state { text-align: center; padding: 80px 0; color: var(--muted); }
.empty-state .big { font-size: 60px; margin-bottom: 16px; }

/* ============ cart drawer ============ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(5, 5, 10, .6);
  backdrop-filter: blur(3px); z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 94vw);
  background: var(--bg2); border-left: 1px solid var(--line); z-index: 210;
  transform: translateX(105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: var(--font-disp); font-size: 19px; text-transform: uppercase; }
.drawer-items { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; align-items: center;
}
.cart-item img { width: 74px; height: 60px; object-fit: cover; border-radius: 10px; }
.ci-name { font-weight: 700; font-size: 14px; }
.ci-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ci-price { font-weight: 800; font-size: 14px; margin-top: 6px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font-weight: 800; font-size: 15px;
}
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.ci-remove { background: none; border: none; color: var(--muted); font-size: 17px; align-self: start; }
.ci-remove:hover { color: var(--danger); }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; }
.promo-row { display: flex; gap: 10px; margin-bottom: 16px; }
.promo-row input { text-transform: uppercase; }
.totals { font-size: 14px; display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.totals .row { display: flex; justify-content: space-between; color: var(--muted); }
.totals .row.disc { color: var(--ok); }
.totals .row.total { color: var(--text); font-size: 19px; font-weight: 900; border-top: 1px solid var(--line); padding-top: 10px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart-empty .big { font-size: 52px; margin-bottom: 12px; }

/* ============ modal ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 5, 10, .7); z-index: 300;
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 24px;
  width: min(880px, 100%); max-height: 90vh; overflow-y: auto;
  transform: translateY(24px) scale(.98); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.modal-overlay.open .modal { transform: none; }
.modal.sm { width: min(520px, 100%); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  font-size: 18px;
}
.modal-close:hover { border-color: var(--danger); color: var(--danger); }

/* product modal */
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm-gallery { padding: 24px; }
.pm-main { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--card); }
.pm-main img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pm-thumbs img {
  width: 64px; height: 48px; object-fit: cover; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer; opacity: .6; transition: all .2s;
}
.pm-thumbs img.active, .pm-thumbs img:hover { border-color: var(--accent); opacity: 1; }
.pm-info { padding: 30px 30px 30px 6px; display: flex; flex-direction: column; gap: 14px; }
.pm-name { font-family: var(--font-disp); font-size: 24px; font-weight: 800; }
.pm-desc { color: var(--muted); font-size: 14px; }
.pm-price { font-size: 28px; font-weight: 900; }
.pm-price .old { color: var(--muted); font-size: 17px; font-weight: 600; text-decoration: line-through; margin-right: 10px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 46px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-weight: 700; font-size: 14px; transition: all .15s;
}
.size-btn:hover { border-color: var(--accent); }
.size-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.size-btn.disabled, .size-btn:disabled {
  opacity: .35;
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: var(--line);
  background: var(--bg);
}
.stock-hint { font-size: 12px; font-weight: 700; margin-top: 4px; }
.stock-hint.low { color: #f2c418; }
.stock-hint.ok { color: var(--ok); }
.stock-hint.out { color: var(--danger); }
.pm-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.pm-actions .qty { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; }

/* checkout */
.co { padding: 34px; }
.co h3 { font-family: var(--font-disp); font-size: 22px; margin-bottom: 22px; text-transform: uppercase; }
.co-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-form .full { grid-column: 1 / -1; }
.co-summary { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 18px 0; font-size: 14px; }
.co-summary .row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.co-summary .row.total { color: var(--text); font-weight: 900; font-size: 17px; }
.success-box { text-align: center; padding: 50px 30px; }
.success-box .check {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px;
  background: rgba(63, 224, 160, .15); color: var(--ok);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  animation: pop .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success-box h3 { font-family: var(--font-disp); margin-bottom: 10px; }
.success-box p { color: var(--muted); }

/* ============ toast ============ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--card2); border: 1px solid var(--line); color: var(--text);
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  animation: toastIn .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; align-items: center; gap: 10px;
}
.toast.ok { border-color: var(--ok); }
.toast.err { border-color: var(--danger); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }

/* ============ admin ============ */
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  width: min(420px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px; text-align: center;
}
.login-card h1 { font-family: var(--font-disp); font-size: 26px; margin: 14px 0 6px; }
.login-card p { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }

.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line); background: var(--bg2);
  padding: 26px 18px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { margin-bottom: 30px; padding: 0 8px; }
.side-link {
  padding: 12px 16px; border-radius: 12px; color: var(--muted); font-weight: 700;
  font-size: 14px; display: flex; gap: 12px; align-items: center;
  border: none; background: none; text-align: left; width: 100%;
  transition: all .2s;
}
.side-link:hover { color: var(--text); background: var(--card); }
.side-link.active { background: var(--accent); color: var(--accent-ink); }
.sidebar .bottom { margin-top: auto; }
.admin-main { padding: 34px; overflow-x: hidden; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-head h2 { font-family: var(--font-disp); font-size: 26px; text-transform: uppercase; }
.period-switch { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.period-btn { padding: 8px 16px; border-radius: 9px; border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: all .2s; font-family: inherit; }
.period-btn:hover { color: var(--text); }
.period-btn.active { background: var(--accent); color: var(--accent-ink); }

.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; padding: 14px 16px; color: var(--muted); font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--card2); }
.td-img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; }
.td-actions { display: flex; gap: 8px; }
.mini-btn {
  padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  transition: all .15s;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.mini-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
}
.badge.new { background: rgba(124, 92, 255, .18); color: #b9a6ff; }
.badge.processing { background: rgba(242, 196, 24, .15); color: #f2c418; }
.badge.shipped { background: rgba(15, 184, 168, .15); color: #4de8d8; }
.badge.done { background: rgba(63, 224, 160, .15); color: var(--ok); }
.badge.cancelled { background: rgba(255, 84, 112, .15); color: var(--danger); }
.status-select { padding: 7px 10px; font-size: 13px; width: auto; }

/* admin product form */
.ap-form { padding: 30px; }
.ap-form h3 { font-family: var(--font-disp); font-size: 20px; margin-bottom: 22px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-grid .full { grid-column: 1 / -1; }
.sizes-check { display: flex; gap: 8px; flex-wrap: wrap; }
.size-check input { display: none; }
.size-check span {
  display: inline-flex; min-width: 44px; padding: 9px 12px; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 13px;
  color: var(--muted); cursor: pointer; transition: all .15s;
}
.size-check input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.dropzone {
  border: 2px dashed var(--line); border-radius: 16px; padding: 30px;
  text-align: center; color: var(--muted); cursor: pointer; transition: all .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: var(--accent); background: rgba(212, 255, 63, .04); }
.dropzone .dz-ico { font-size: 34px; margin-bottom: 8px; }
.photo-list { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.photo-item {
  position: relative; width: 96px; height: 72px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 7px; border: none; background: rgba(0, 0, 0, .65); color: #fff;
  font-size: 12px; line-height: 1;
}
.photo-item .del:hover { background: var(--danger); }
.photo-item.uploading::after {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5);
}
.url-row { display: flex; gap: 10px; margin-top: 12px; }
.url-row .btn { flex: none; }

/* order details */
.order-items { font-size: 13px; color: var(--muted); }
.order-items div { padding: 2px 0; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.order-card-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.order-id { font-weight: 800; font-family: monospace; font-size: 14px; }
.order-date { color: var(--muted); font-size: 13px; }
.order-cols { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 20px; align-items: start; }
.order-total { font-weight: 900; font-size: 18px; text-align: right; }
.order-total small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }

.promo-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 12px; margin-bottom: 24px; align-items: end; }
.switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.switch input { display: none; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line);
  transition: background .2s; cursor: pointer;
}
.switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.mt20 { margin-top: 20px; }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pm { grid-template-columns: 1fr; }
  .pm-info { padding: 6px 24px 26px; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .logo { margin: 0 12px 0 0; }
  .sidebar .bottom { margin-top: 0; }
  .promo-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav a { padding: 8px 10px; font-size: 13px; }
  .cats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .co-form { grid-template-columns: 1fr; }
  .ap-grid { grid-template-columns: 1fr; }
  .order-cols { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .admin-main { padding: 20px 14px; }
}
