/* =====================
   Darkown Shop — Premium v3
   Black / Red · Minimal · Sharp
   ===================== */

:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --bg-card: #111111;
  --bg-hover: #181818;
  --border: #1f1f1f;
  --border-strong: #2e2e2e;
  --text: #fafafa;
  --text-muted: #a1a1a1;
  --text-dim: #666;
  --accent: #e11d48;
  --accent-hover: #fb7185;
  --accent-soft: rgba(225, 29, 72, 0.12);
  --accent-glow: rgba(225, 29, 72, 0.4);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.25s var(--ease);
}

[data-theme="light"] {
  --bg: #f7f7f8;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f0f0f2;
  --border: #e8e8ec;
  --border-strong: #d4d4d8;
  --text: #0a0a0a;
  --text-muted: #52525b;
  --text-dim: #a1a1aa;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: rgba(225, 29, 72, 0.08);
  --accent-glow: rgba(225, 29, 72, 0.2);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.35s, color 0.35s;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -30%, rgba(225, 29, 72, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(225, 29, 72, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Network background */
.bg-network {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.4;
}
.bg-network canvas {
  width: 100%;
  height: 100%;
  display: block;
}
[data-theme="light"] .bg-network {
  opacity: 0.18;
}



a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select { font-family: inherit; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.925rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { background: #1b8ec4; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 1.85rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #be123c);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--border);
}

.icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 4% 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.hero {
  padding: 6rem 0 5rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.35rem;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 440px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-icon svg { width: 22px; height: 22px; }
.hero-card-title { font-weight: 700; font-size: 0.95rem; }
.hero-card-sub { font-size: 0.8rem; color: var(--text-muted); }

.hero-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color var(--transition);
}

.hero-card-row:hover { border-color: var(--border); }

.hero-card-row span:last-child {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.45s var(--ease) both;
}

.product-card:nth-child(1) { animation-delay: 0.03s; }
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.09s; }
.product-card:nth-child(4) { animation-delay: 0.12s; }
.product-card:nth-child(5) { animation-delay: 0.15s; }
.product-card:nth-child(6) { animation-delay: 0.18s; }
.product-card:nth-child(7) { animation-delay: 0.21s; }
.product-card:nth-child(8) { animation-delay: 0.24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
}

.product-badge.out { background: var(--text-dim); }

.product-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--border);
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding: 0 0.25rem;
}

.product-card .short {
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-grow: 1;
  padding: 0 0.25rem;
}

.stock-line {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
  padding: 0 0.25rem;
}

.stock-line.in { color: var(--success); }
.stock-line.out { color: var(--text-dim); }

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding: 0.75rem 0.25rem 0.25rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-weight: 800;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.product-price .old {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 0.35rem;
}

.product-actions { display: flex; gap: 0.45rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color var(--transition), transform var(--transition);
}

.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  transform: translateY(-2px);
}

.stat-card .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card .icon svg { width: 22px; height: 22px; }

.stat-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-box {
  background: linear-gradient(145deg, var(--bg-card) 0%, color-mix(in srgb, var(--accent) 6%, var(--bg-card)) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.55rem;
  letter-spacing: -0.03em;
  position: relative;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  position: relative;
}

.cta-box .btn { position: relative; }

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-elevated);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.25rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.55;
}

.footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.page-header {
  padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.25rem;
  padding-bottom: 4.5rem;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
}

.sidebar-group { margin-bottom: 1.85rem; }

.sidebar-group h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-list button {
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.sidebar-list button:hover,
.sidebar-list button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding: 2.75rem 0 4.5rem;
}

.product-gallery {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2.5rem;
}

.product-gallery img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-info h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.product-info .price-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.product-info .price {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: -0.02em;
}

.product-info .old-price {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.product-info .desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.85rem;
}

.feature-tag {
  padding: 0.4rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.qty-control button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.qty-control button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.qty-control span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 2rem 0 4.5rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.cart-item:hover { border-color: var(--border-strong); }

.cart-item-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.cart-item-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
}

.cart-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.summary-row.total {
  font-weight: 800;
  font-size: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  margin-bottom: 1.35rem;
}

.summary-row.total span:last-child {
  color: var(--accent);
  font-family: var(--mono);
}

.empty-cart {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}

.empty-cart svg {
  width: 52px;
  height: 52px;
  margin-bottom: 1.15rem;
  opacity: 0.35;
}

.order-layout {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.75rem 0 4.5rem;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.order-card h1 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.order-card > p {
  color: var(--text-muted);
  margin-bottom: 1.85rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.85rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.payment-method:hover,
.payment-method.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.payment-method input { accent-color: var(--accent); }

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.75rem 0 4.5rem;
}

.legal-content h1 {
  font-size: 1.95rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.85rem 0 0.7rem;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 200;
  opacity: 0;
  transition: all 0.35s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.85rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 300px; }
  .steps, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-page { grid-template-columns: 1fr; gap: 2rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-links { align-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header .btn-tg { display: none; }
  .burger { display: flex; }
  .steps, .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.75rem 0 3.25rem; }
  .section { padding: 3.5rem 0; }
  .cart-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .product-card .product-image,
  .product-image { height: 160px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .header-actions .btn-tg { display: none; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ========== MAX INTERACTIVITY ========== */

/* Smooth global */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Custom cursor glow (desktop) */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-glow { opacity: 1; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Hero text cascade */
.hero-badge {
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero h1 {
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.hero-desc {
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero-actions {
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero-stats {
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.hero-visual {
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Magnetic buttons feel */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}
.btn:hover::after { opacity: 1; }

.btn-primary:active {
  transform: scale(0.97);
}

/* Product cards — 3D tilt container */
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card .product-image,
.product-card h3,
.product-card .short,
.product-card .stock-line,
.product-card .product-meta {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-image {
  transform: translateZ(20px) scale(1.02);
}
.product-card:hover h3 {
  transform: translateZ(12px);
}

/* Image shine on hover */
.product-image {
  position: relative;
}
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.product-card:hover .product-image::after {
  transform: translateX(120%);
}

/* Steps pulse number */
.step-num {
  position: relative;
  display: inline-block;
}
.step:hover .step-num {
  animation: pulseNum 0.5s ease;
}
@keyframes pulseNum {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); color: #fb7185; }
}

/* Stat cards bounce icon */
.stat-card .icon {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-card:hover .icon {
  transform: scale(1.12) rotate(-6deg);
}

/* Nav link underline animation */
.nav a {
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

/* Logo hover */
.logo {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo:hover {
  transform: scale(1.03);
}
.logo-mark {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Cart badge pop */
.cart-badge {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-badge.pop {
  animation: badgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Icon btn spin theme */
.icon-btn[data-theme-toggle] svg {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.icon-btn[data-theme-toggle]:hover svg {
  transform: rotate(45deg);
}

/* Hero card enhanced float + glow */
.hero-card {
  animation: floatCard 5s ease-in-out infinite;
  transition: box-shadow 0.4s, border-color 0.4s;
}
.hero-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 24px 60px rgba(225, 29, 72, 0.2), var(--shadow);
  animation-play-state: paused;
}

.hero-card-row {
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.hero-card-row:hover {
  transform: translateX(4px);
  background: var(--bg-hover);
}

/* CTA pulse ring */
.cta-box .btn-primary {
  animation: softPulse 2.5s ease-in-out infinite;
}
@keyframes softPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
  50% { box-shadow: 0 4px 32px rgba(225, 29, 72, 0.55); }
}

/* Filter buttons scale */
.sidebar-list button,
.filter-btn {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar-list button:active,
.filter-btn:active {
  transform: scale(0.96);
}

/* Page header slide */
.page-header h1 {
  animation: heroIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-header p {
  animation: heroIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Toast bounce in */
.toast.show {
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Gradient text shimmer on accent */
.hero h1 .accent {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Section head reveal helper */
.section-head.reveal.visible h2 {
  animation: heroIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Smooth image load */
.product-image img {
  opacity: 0;
  animation: imgFade 0.5s ease 0.1s forwards;
}
@keyframes imgFade {
  to { opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ========== Profile ========== */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

.profile-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.35rem;
  text-align: center;
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  align-self: start;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #be123c);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.profile-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.profile-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  word-break: break-all;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.profile-nav button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.profile-nav button:hover,
.profile-nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.profile-main { min-width: 0; }

.profile-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.profile-panel h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.profile-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 0.85rem;
  text-align: center;
}

.profile-stat .num {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.profile-stat .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.order-row .muted {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.order-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.order-row-right .price {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

.status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-hover);
  color: var(--text-muted);
}

.status-paid, .status-delivered {
  background: var(--success-soft, rgba(52, 211, 153, 0.12));
  color: var(--success);
}

.status-pending {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Auth */
.auth-card {
  max-width: 420px;
  margin: 0 auto 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  grid-column: 1 / -1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  background: var(--bg-elevated);
  padding: 0.3rem;
  border-radius: 999px;
}

.auth-tabs button {
  border: none;
  background: transparent;
  padding: 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.auth-tabs button.active {
  background: var(--accent);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-form input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-error {
  color: var(--danger, #f87171);
  font-size: 0.875rem;
  margin: 0;
}

.auth-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.auth-note a { color: var(--accent); }

@media (max-width: 720px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
  }
  .profile-stats {
    grid-template-columns: 1fr;
  }
}
.api-banner {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--text);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.api-banner code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--bg-elevated);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.muted { color: var(--text-muted); font-size: 0.9rem; }

.profile-balance {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.profile-balance strong {
  color: var(--accent);
  font-family: var(--mono);
}
.oauth-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.tg-wrap { display: flex; justify-content: center; min-height: 40px; }
.inline-form { display: flex; gap: 0.35rem; align-items: center; }
