@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0f0f12;
  --bg-elevated: #18181f;
  --bg-card: #1e1e28;
  --border: #2a2a38;
  --text: #ececf2;
  --text-muted: #8b8b9e;
  --lime: #c6f135;
  --lime-dim: #a3c92a;
  --magenta: #ff5c8a;
  --sidebar-w: 248px;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --display: 'Syne', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--bg-elevated);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; padding: 28px 0;
}
.sidebar-logo {
  font-family: var(--display); font-size: 1.35rem; font-weight: 800;
  padding: 0 24px 28px; letter-spacing: -0.03em; line-height: 1.1;
}
.sidebar-logo span { color: var(--lime); display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
.side-nav { list-style: none; margin: 0; padding: 0 12px; flex: 1; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  font-size: 14px; font-weight: 500; color: var(--text-muted); border-radius: 4px;
  margin-bottom: 2px; transition: background 0.15s, color 0.15s;
}
.side-nav a:hover { background: var(--bg-card); color: var(--text); }
.side-nav a.active { background: var(--lime); color: #0f0f12; font-weight: 600; }
.side-nav .dot { width: 6px; height: 6px; border-radius: 1px; background: currentColor; opacity: 0.5; }
.side-nav a.active .dot { opacity: 1; }
.sidebar-foot { padding: 16px 24px; font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border); }
.sidebar-cart {
  margin: 0 16px 16px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600;
}
.sidebar-cart .count {
  background: var(--magenta); color: #fff; min-width: 22px; height: 22px; border-radius: 2px;
  display: none; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.sidebar-cart .count.show { display: flex; }

.main-wrap { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }
.main-inner { max-width: 980px; margin: 0 auto; padding: 32px 28px 64px; }

.mobile-bar {
  display: none; position: sticky; top: 0; z-index: 900;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  padding: 14px 18px; align-items: center; justify-content: space-between;
}
.mobile-bar .logo-sm { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.menu-btn { background: none; border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }

.btn {
  display: inline-block; padding: 11px 22px; font-size: 13px; font-weight: 600;
  border-radius: 4px; border: none; cursor: pointer; font-family: var(--font); transition: all 0.15s;
}
.btn-lime { background: var(--lime); color: #0f0f12; }
.btn-lime:hover { background: var(--lime-dim); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover { opacity: 0.9; }

.hero-block {
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  margin-bottom: 36px; background: var(--bg-card);
}
.hero-block img { width: 100%; height: 280px; object-fit: cover; display: block; filter: saturate(0.85); }
.hero-block-body { padding: 28px 32px 32px; }
.hero-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.hero-block h1 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.03em; line-height: 1.08; }
.hero-block p { color: var(--text-muted); font-size: 15px; max-width: 520px; margin: 0 0 22px; }

.stat-line {
  display: flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 40px;
}
.stat-line div { flex: 1; padding: 18px 16px; text-align: center; border-right: 1px solid var(--border); background: var(--bg-elevated); }
.stat-line div:last-child { border-right: none; }
.stat-line strong { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--lime); display: block; }
.stat-line span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.section-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); margin-bottom: 6px; }
.section-h { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin: 0 0 20px; letter-spacing: -0.02em; }

/* 2-column large product cards — NOT 4-col grid */
.product-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 40px; }
.product-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 14px;
  transition: border-color 0.15s;
}
.product-row:hover { border-color: var(--lime); }
.product-row img { width: 140px; height: 100px; object-fit: cover; border-radius: 3px; }
.product-row .meta h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.product-row .meta h3 a:hover { color: var(--lime); }
.product-row .tag-sm { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.product-row .price { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--lime); }
.product-row .actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.product-row .actions .btn { padding: 8px 14px; font-size: 12px; white-space: nowrap; }
.product-list .product-row.hidden { display: none; }

/* Shop grid variant — 2 col cards */
.shop-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 40px; }
.shop-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  transition: border-color 0.15s;
}
.shop-card:hover { border-color: var(--lime); }
.shop-card img { width: 100%; height: 160px; object-fit: cover; }
.shop-card-body { padding: 14px 16px 16px; }
.shop-card .tag-sm { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta); margin-bottom: 6px; }
.shop-card h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
.shop-card .price { font-family: var(--display); font-size: 1.15rem; color: var(--lime); margin-bottom: 10px; }
.shop-card .btns { display: flex; gap: 6px; }
.shop-card .btn { flex: 1; padding: 8px; font-size: 11px; text-align: center; }
.shop-grid-2 .shop-card.hidden { display: none; }

.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  padding: 7px 14px; font-size: 12px; font-weight: 600; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-muted); border-radius: 2px; cursor: pointer;
}
.chip.active, .chip:hover { background: var(--lime); border-color: var(--lime); color: #0f0f12; }

.page-top { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.page-top .cat { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 6px; }
.page-top h1 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.page-top .lead { color: var(--text-muted); margin: 0; font-size: 15px; }

.article-split { display: grid; grid-template-columns: 1fr 260px; gap: 28px; padding-bottom: 48px; }
.article-split .hero-img { width: 100%; height: 320px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; border: 1px solid var(--border); }
.article-split p { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.article-split h2 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; margin: 22px 0 8px; color: var(--lime); }

.buy-panel {
  background: var(--bg-elevated); border: 1px solid var(--border); border-left: 3px solid var(--lime);
  padding: 20px; border-radius: 4px; position: sticky; top: 24px;
}
.buy-panel img { width: 100%; height: 130px; object-fit: cover; border-radius: 3px; margin-bottom: 12px; }
.buy-panel h3 { font-size: 1rem; margin: 0 0 8px; }
.buy-panel .price { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--lime); margin-bottom: 4px; }
.buy-panel .note { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }
.buy-panel .btn { width: 100%; margin-bottom: 6px; }
.buy-panel .added { font-size: 11px; color: var(--magenta); display: none; text-align: center; margin-top: 6px; }
.buy-panel .added.show { display: block; }

.cart-block { border: 1px solid var(--border); border-radius: 4px; background: var(--bg-card); }
.cart-empty { text-align: center; padding: 48px 24px; }
.cart-line {
  display: grid; grid-template-columns: 56px 1fr 100px 70px 40px; gap: 12px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.cart-line img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; }
.cart-line h4 { font-size: 13px; margin: 0 0 3px; }
.cart-line a { font-size: 11px; color: var(--lime); }
.qty-ctrl { display: flex; gap: 4px; align-items: center; }
.qty-ctrl button { width: 24px; height: 24px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 2px; cursor: pointer; font-weight: 700; font-size: 12px; }
.qty-ctrl span { min-width: 16px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-total-box { padding: 20px 18px; background: var(--bg-elevated); border-top: 1px solid var(--border); max-width: 340px; margin-left: auto; }
.cart-total-box .line { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.cart-total-box .total { font-family: var(--display); font-size: 1.2rem; font-weight: 800; color: var(--lime); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; }
.cart-total-box .btn { width: 100%; margin-top: 12px; }
.cart-remove { background: none; border: none; color: var(--magenta); font-size: 11px; cursor: pointer; text-decoration: underline; }

.faq-dark .faq-item { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 6px; background: var(--bg-card); }
.faq-dark .faq-q { width: 100%; padding: 14px 16px; background: none; border: none; text-align: left; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; color: var(--text); }
.faq-dark .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-dark .faq-item.open .faq-a { max-height: 220px; }
.faq-dark .faq-a-inner { padding: 0 16px 12px; color: var(--text-muted); font-size: 14px; }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-card); color: var(--text); font-family: var(--font); margin-bottom: 10px;
}
.contact-form textarea { min-height: 100px; resize: vertical; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 3000; display: none; align-items: flex-start; justify-content: center; padding: 60px 20px; }
.modal-overlay.show { display: flex; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 24px; width: min(420px,100%); position: relative; }
.modal-close { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }
.search-input { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); margin-bottom: 10px; font-family: var(--font); }
.search-results a { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.search-results a:hover { color: var(--lime); }

#cookieBar { position: fixed; bottom: 0; left: var(--sidebar-w); right: 0; z-index: 2500; background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 12px 20px; transform: translateY(100%); transition: transform 0.3s; }
#cookieBar.show { transform: translateY(0); }
.cookie-inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 12px; color: var(--text-muted); flex: 1; }
.cookie-inner a { color: var(--lime); }
.cookie-btns button { padding: 7px 14px; font-size: 11px; font-weight: 600; cursor: pointer; border: none; border-radius: 2px; margin-left: 6px; }
#cookieAccept { background: var(--lime); color: #0f0f12; }
#cookieDecline { background: transparent; border: 1px solid var(--border); color: var(--text); }

#toastContainer { position: fixed; bottom: 20px; right: 20px; z-index: 2600; }
.toast { background: var(--lime); color: #0f0f12; padding: 11px 18px; font-size: 13px; font-weight: 600; border-radius: 4px; margin-top: 8px; }

.text-page p { color: var(--text-muted); font-size: 15px; line-height: 1.85; margin-bottom: 14px; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .mobile-bar { display: flex; }
  #cookieBar { left: 0; }
  .shop-grid-2 { grid-template-columns: 1fr; }
  .article-split, .contact-split { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 100px 1fr; }
  .product-row .actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .stat-line { flex-wrap: wrap; }
  .stat-line div { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); }
  .cart-line { grid-template-columns: 48px 1fr; gap: 8px; }
}
