/* =========================================================
   DioKey — Main Stylesheet  v2.0
   Design: gaming marketplace, plati.ru inspired, original
   Supports: light / dark mode via [data-theme]
   ========================================================= */

/* ---------- CSS Variables (Light default) ---------- */
:root {
  --bg:          #f0f3fa;
  --bg2:         #e6eaf5;
  --card:        #ffffff;
  --card2:       #f8f9ff;
  --text:        #1c1f38;
  --text2:       #5a6181;
  --text3:       #9ca3c8;
  --border:      rgba(0,0,0,0.07);
  --border2:     rgba(0,0,0,0.12);
  --acc:         #6c3fff;
  --acc-h:       #5a2edb;
  --acc-rgb:     108,63,255;
  --acc-light:   rgba(108,63,255,0.10);
  --acc-glow:    rgba(108,63,255,0.25);
  --header-bg:   #10132a;
  --nav-bg:      #181c38;
  --nav-item:    rgba(255,255,255,0.85);
  --nav-item-h:  #ffffff;
  --shadow-s:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-m:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-l:    0 10px 40px rgba(0,0,0,0.14);
  --radius:      12px;
  --radius-s:    8px;
  --radius-xs:   6px;
  --green:       #10b981;
  --yellow:      #f59e0b;
  --red:         #ef4444;
  --trans:       0.22s ease;
  --trans-slow:  0.4s ease;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --bg:          #0b0d1a;
  --bg2:         #111425;
  --card:        #171a2f;
  --card2:       #1d2040;
  --text:        #e6e9f8;
  --text2:       #8b92b8;
  --text3:       #5a6181;
  --border:      rgba(255,255,255,0.06);
  --border2:     rgba(255,255,255,0.10);
  --acc:         #7c4dff;
  --acc-h:       #6c3fff;
  --acc-rgb:     124,77,255;
  --acc-light:   rgba(124,77,255,0.14);
  --acc-glow:    rgba(124,77,255,0.30);
  --header-bg:   #080a14;
  --nav-bg:      #0e1022;
  --shadow-s:    0 1px 4px rgba(0,0,0,0.45);
  --shadow-m:    0 4px 16px rgba(0,0,0,0.55);
  --shadow-l:    0 10px 40px rgba(0,0,0,0.70);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 14px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  transition: background var(--trans-slow), color var(--trans-slow);
  min-height: 100vh;
}

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

/* ---------- Typography ---------- */
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: .95rem; font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: .875rem;
  transition: all var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--acc);
  color: #fff;
}
.btn-primary:hover {
  background: var(--acc-h);
  box-shadow: 0 4px 16px var(--acc-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--acc);
  border: 1.5px solid var(--acc);
}
.btn-outline:hover {
  background: var(--acc-light);
}

.btn-ghost {
  background: var(--border);
  color: var(--text2);
}
.btn-ghost:hover {
  background: var(--border2);
  color: var(--text);
}

.btn-sm {
  padding: 6px 14px;
  font-size: .8rem;
}

.btn-lg {
  padding: 13px 30px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-full { width: 100%; }

.btn i { font-size: .9em; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-top {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  height: 38px;
  width: auto;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--acc); }

/* Search */
.header-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}
.header-search form {
  display: flex;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.header-search form:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow);
}
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  color: #fff;
  font-size: .9rem;
}
.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search button {
  padding: 10px 16px;
  background: var(--acc);
  color: #fff;
  font-size: 1rem;
  transition: background var(--trans);
}
.header-search button:hover { background: var(--acc-h); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-switcher {
  display: flex;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.lang-switcher a {
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: all var(--trans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: #fff;
  background: var(--acc);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-s);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  background: var(--acc-light);
  color: var(--acc);
  border-color: var(--acc);
}

.header-btn-purchases {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.8);
  font-size: .82rem;
  font-weight: 500;
  transition: all var(--trans);
}
.header-btn-purchases:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-s);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  color: var(--nav-item);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--trans), background var(--trans);
  border-bottom: 2px solid transparent;
}
.nav-link img.nav-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--nav-item-h);
  border-bottom-color: var(--acc);
}
.nav-link .arrow {
  font-size: .65rem;
  opacity: .6;
  margin-left: auto;
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  padding: 8px;
  z-index: 500;
}
.nav-item:hover .nav-dropdown,
.nav-item.is-open .nav-dropdown { display: flex; flex-wrap: wrap; gap: 2px; }

.nav-dropdown.wide {
  min-width: 500px;
  max-width: 700px;
}

.dropdown-col {
  flex: 1;
  min-width: 160px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  color: var(--text2);
  font-size: .83rem;
  transition: all var(--trans);
}
.dropdown-item img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}
.dropdown-item:hover {
  background: var(--acc-light);
  color: var(--acc);
}

.dropdown-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  color: var(--acc);
  font-size: .82rem;
  font-weight: 600;
  transition: background var(--trans);
}
.dropdown-more:hover { background: var(--acc-light); }

/* ---------- MAIN CONTENT ---------- */
.main-content { padding: 28px 0 60px; }

/* ---------- Section Header ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.section-title .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-s);
  background: var(--acc-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc);
  font-size: 1rem;
  flex-shrink: 0;
}

.section-bg-label {
  display: none;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--acc);
  border: 1.5px solid var(--acc);
  padding: 5px 12px;
  border-radius: var(--radius-s);
  transition: all var(--trans);
  flex-shrink: 0;
}
.view-all-link:hover {
  background: var(--acc);
  color: #fff;
}

/* ---------- Slider Container ---------- */
.slider-wrap { position: relative; margin-bottom: 36px; }

.slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.slider-track::-webkit-scrollbar { display: none; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--border2);
  color: var(--text2);
  box-shadow: var(--shadow-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  z-index: 10;
  transition: all var(--trans);
}
.slider-btn:hover {
  background: var(--acc);
  color: #fff;
  border-color: var(--acc);
  box-shadow: 0 4px 16px var(--acc-glow);
}
.slider-btn.prev { left: -18px; }
.slider-btn.next { right: -18px; }

/* ---------- Product Card ---------- */
.product-card {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-3px);
  border-color: var(--border2);
}

/* Grid mode (catalog, search) */
.product-grid .product-card {
  width: 100%;
  flex-shrink: unset;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg2);
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

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

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--acc);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  pointer-events: none;
  line-height: 1.4;
}

.card-badge.reward {
  background: linear-gradient(135deg, #10b981, #059669);
  top: 8px;
  left: auto;
  right: 8px;
}

.card-badge.preorder {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-buy-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform var(--trans);
  display: flex;
}
.product-card:hover .card-buy-overlay {
  transform: translateY(0);
}
.card-buy-overlay .btn {
  flex: 1;
  font-size: .82rem;
  padding: 8px;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.card-title {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text3);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--yellow);
}
.card-rating .val { color: var(--text2); }

.card-sales { color: var(--text3); }

.card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--acc);
}

.card-price-old {
  font-size: .78rem;
  color: var(--text3);
  text-decoration: line-through;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--header-bg);
  padding: 60px 0;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,77,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text { max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--acc);
  background: var(--acc-light);
  border: 1px solid rgba(var(--acc-rgb), 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-title span { color: var(--acc); }

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Trust badges */
.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: .82rem;
}
.trust-item i {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: var(--acc-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc);
  font-size: .85rem;
}

/* Hero preorders (right side) */
.hero-preorders {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 10px;
  flex-shrink: 0;
}

.hero-preorders .product-card {
  width: 120px;
}

/* ---------- Category Quick Links ---------- */
.cat-quick {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 32px;
  padding-bottom: 2px;
}
.cat-quick::-webkit-scrollbar { display: none; }

.cat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text2);
  font-size: .83rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--trans);
  flex-shrink: 0;
}
.cat-chip img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}
.cat-chip:hover {
  background: var(--acc-light);
  color: var(--acc);
  border-color: var(--acc);
}
.cat-chip.active {
  background: var(--acc);
  color: #fff;
  border-color: var(--acc);
}

/* ---------- Product Grid (Catalog) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.catalog-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}

.sidebar-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text3);
  margin-bottom: 14px;
}

.sidebar-list { display: flex; flex-direction: column; gap: 2px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  color: var(--text2);
  font-size: .84rem;
  transition: all var(--trans);
}
.sidebar-link img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--acc-light);
  color: var(--acc);
}
.sidebar-link.active { font-weight: 600; }

/* Catalog top bar */
.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.catalog-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  padding: 7px 12px;
  background: var(--card);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: .82rem;
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--acc); }

.result-count {
  font-size: .82rem;
  color: var(--text3);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-s);
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text2);
  font-size: .84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.page-btn:hover { border-color: var(--acc); color: var(--acc); }
.page-btn.active { background: var(--acc); color: #fff; border-color: var(--acc); }
.page-btn:disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Product Detail Page ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

.product-gallery { position: sticky; top: 80px; }

.product-main-img {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.product-thumb {
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--trans);
  aspect-ratio: 1;
  background: var(--bg2);
}
.product-thumb.active { border-color: var(--acc); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text3);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.product-breadcrumb a:hover { color: var(--acc); }
.product-breadcrumb .sep { opacity: 0.5; }

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.product-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--text2);
}
.stat-item .star-row { color: var(--yellow); font-size: .85rem; }
.stat-item strong { color: var(--text); }

.product-price-box {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.price-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--acc);
  line-height: 1;
  margin-bottom: 4px;
}

.price-sub {
  font-size: .8rem;
  color: var(--text3);
  margin-bottom: 16px;
}

.product-buy-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--acc-light);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.feature-text strong { display: block; font-size: .82rem; font-weight: 700; }
.feature-text span { font-size: .75rem; color: var(--text3); }

.product-desc-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.desc-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.desc-body {
  font-size: .88rem;
  color: var(--text2);
  line-height: 1.75;
}
.desc-body a { color: var(--acc); text-decoration: underline; }
.desc-body img { border-radius: var(--radius-s); margin: 8px 0; max-width: 100%; }

/* Seller card */
.seller-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.seller-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.seller-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--acc-light);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }

.seller-name { font-weight: 700; margin-bottom: 4px; }
.seller-stat { font-size: .78rem; color: var(--text3); }

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 12px; }

.review-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.review-author { font-weight: 600; font-size: .85rem; }
.review-date { font-size: .76rem; color: var(--text3); }
.review-stars { color: var(--yellow); font-size: .85rem; }

.review-text { font-size: .84rem; color: var(--text2); line-height: 1.65; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text3);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--acc); }
.breadcrumb .sep { opacity: 0.5; font-size: .7rem; }
.breadcrumb .current { color: var(--text2); font-weight: 500; }

/* ---------- Search Page ---------- */
.search-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.search-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.search-sub { font-size: .88rem; color: var(--text3); }

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 7rem;
  font-weight: 900;
  color: var(--acc);
  opacity: 0.15;
  line-height: 1;
}

.error-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.error-desc { color: var(--text2); margin-bottom: 28px; font-size: .95rem; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text { font-size: 1.3rem; color: #fff; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: .84rem; line-height: 1.7; color: rgba(255,255,255,0.45); max-width: 280px; }

.footer-col-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: .84rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--trans);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,0.3);
}

.footer-langs {
  display: flex;
  gap: 10px;
}
.footer-langs a {
  font-size: .76rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--trans);
}
.footer-langs a:hover, .footer-langs a.active { color: var(--acc); }

/* ---------- Utilities ---------- */
.text-accent { color: var(--acc); }
.text-muted { color: var(--text3); }
.text-success { color: var(--green); }
.text-warning { color: var(--yellow); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-accent { background: var(--acc-light); color: var(--acc); }
.badge-green { background: rgba(16,185,129,0.12); color: var(--green); }
.badge-yellow { background: rgba(245,158,11,0.12); color: var(--yellow); }

.divider { height: 1px; background: var(--border); margin: 24px 0; }

.loading-placeholder {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--card2) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-s);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.mobile-nav.open { display: flex; }

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}

.mobile-nav-panel {
  position: relative;
  width: 300px;
  max-width: 90vw;
  background: var(--card);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 6px;
  transform: translateX(-100%);
  transition: transform var(--trans-slow);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-close {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg2);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--trans);
}
.mobile-nav-link:hover { background: var(--acc-light); color: var(--acc); }
.mobile-nav-link img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-preorders { display: none; }
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .product-features { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .hero { padding: 40px 0; }
  .hero-title { font-size: 1.75rem; }
  .site-nav { display: none; }
  .header-search { max-width: none; }
  .header-btn-purchases { display: none; }
  .mobile-menu-btn { display: flex; }
  .product-card { width: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-content { padding: 20px 0 48px; }
  .product-main-img { aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { width: 140px; }
  .hero-trust { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .header-actions .lang-switcher { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
