:root {
  --bg: #050508;
  --bg-2: #0c0c12;
  --ink: #f4f4f8;
  --muted: #a7a7b5;
  --line: rgba(255, 255, 255, 0.1);
  --neon: #7200ff;
  --neon-2: #9d4dff;
  --kako: #fb2840;
  --kako-dark: #e01f36;
  --green: #22c55e;
  --card: #12121a;
  --radius: 22px;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --glow: 0 0 18px rgba(114, 0, 255, 0.55), 0 0 40px rgba(114, 0, 255, 0.25);
  --glow-red: 0 0 16px rgba(251, 40, 64, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(114, 0, 255, 0.22), transparent 55%),
    radial-gradient(800px 420px at 90% 10%, rgba(251, 40, 64, 0.12), transparent 50%),
    radial-gradient(700px 500px at 50% 100%, rgba(114, 0, 255, 0.12), transparent 55%),
    var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,0.25), transparent);
  opacity: 0.35;
  z-index: 0;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 8, 0.72);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.nav a:hover,
.nav a.is-active { color: #fff; text-shadow: 0 0 10px rgba(114, 0, 255, 0.8); }

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

.header-search {
  position: relative;
  z-index: 50;
}

.header-search-input {
  width: min(220px, 28vw);
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(114, 0, 255, 0.75);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.header-search-input:focus {
  border-color: #7200ff;
}

/* Search modal */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 80;
}

.search-overlay[hidden],
.search-modal[hidden] { display: none; }

.search-modal {
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 28px));
  z-index: 90;
  padding: 1.1rem;
  border-radius: 20px;
  border: 1.5px solid rgba(114, 0, 255, 0.65);
  background: #0c0c12;
  color: #fff;
}

body.search-open { overflow: hidden; }

.search-modal-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.25rem 0.55rem 0.25rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(114, 0, 255, 0.75);
  background: rgba(0, 0, 0, 0.55);
}

.search-modal-field svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}

.search-modal-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.75rem 0;
  outline: none;
  font-size: 0.95rem;
  color: #fff;
}

.search-modal-input::placeholder { color: rgba(255, 255, 255, 0.45); }

.search-esc {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.search-browse { margin-top: 1.15rem; display: grid; gap: 1.15rem; }

.search-block h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.search-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.search-popular a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.search-popular a:hover { color: #9d4dff; }

.search-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
}

.search-cats a {
  display: flex;
  align-items: center;
  min-height: 38px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 0.25rem 0.15rem;
}

.search-cats a:hover { color: #9d4dff; }

.search-hits {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.2rem;
  max-height: 50vh;
  overflow: auto;
}

.search-hits[hidden],
.search-browse[hidden] { display: none; }

.search-suggest {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #fff;
}

.search-suggest svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.45);
  flex: 0 0 auto;
}

.search-suggest:hover,
.search-suggest.is-on {
  background: rgba(114, 0, 255, 0.22);
}

.search-suggest mark {
  background: transparent;
  color: #9d4dff;
  font-weight: 700;
}

.search-empty {
  margin: 0;
  padding: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .search-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-modal { top: 6%; padding: 0.9rem; }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--neon);
  border-radius: 10px;
  background: transparent;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-glow {
  border: 2px solid var(--neon);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: var(--glow);
}

.btn-solid {
  border: 0;
  background: linear-gradient(135deg, var(--kako), #ff5a1f);
  color: #fff;
  box-shadow: var(--glow-red);
}

.btn-buy {
  border: 0;
  background: var(--neon);
  color: #fff;
  box-shadow: none;
  width: 100%;
}

.btn-qc {
  border: 1px solid var(--green);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 100%;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 3vw, 2rem) 1.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--neon);
  text-shadow: none;
  line-height: 1;
}

.hero-sub {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.08em;
}

/* Featured rail */
.featured {
  padding: 1rem clamp(1rem, 3vw, 2rem) 2rem;
}

.featured-frame {
  position: relative;
  border: 2px solid rgba(114, 0, 255, 0.65);
  border-radius: 28px;
  box-shadow: var(--glow);
  background: rgba(10, 10, 16, 0.75);
  padding: 1.1rem;
  overflow: hidden;
}

.view-all {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 3;
  min-width: 140px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid var(--neon);
  background: rgba(0, 0, 0, 0.78);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: var(--glow);
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 22%);
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem 0.6rem;
  scrollbar-width: thin;
}

.product-card {
  background: var(--card);
  border: 1px solid rgba(114, 0, 255, 0.25);
  border-radius: 18px;
  padding: 0.7rem;
  min-width: 0;
}

.product-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a10;
  margin-bottom: 0.7rem;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.4em;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--neon);
}

.product-detail {
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem) 3rem;
}

.product-detail-card {
  padding: 1rem;
}

.product-card .price {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.product-card .tags {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
}

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

/* Promo */
.promo-band {
  margin: 1rem clamp(1rem, 3vw, 2rem) 2.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(114, 0, 255, 0.25), rgba(251, 40, 64, 0.18)),
    var(--bg-2);
  border: 1px solid rgba(114, 0, 255, 0.35);
  box-shadow: var(--glow);
}

.promo-band h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  letter-spacing: 0.04em;
}

/* Bestsellers */
.bestsellers,
.about,
.faq {
  padding: 0.5rem clamp(1rem, 3vw, 2rem) 3rem;
}

.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--neon-2);
  text-shadow: 0 0 16px rgba(114, 0, 255, 0.55);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1020px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* About */
.about-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(18, 18, 26, 0.9);
  border: 1px solid rgba(114, 0, 255, 0.35);
  box-shadow: var(--glow);
}

.about-lead {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--neon-2);
}

.about-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-card .btn { margin-top: 0.5rem; }

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid rgba(114, 0, 255, 0.3);
  border-radius: 14px;
  background: rgba(18, 18, 26, 0.85);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--neon);
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1rem, 3vw, 2rem) 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(114, 0, 255, 0.6);
}

.footer-note,
.footer-copy {
  margin: 0 auto 0.85rem;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

/* Content pages (About / Privacy / Contact) */
.content-page {
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
  max-width: 820px;
  margin: 0 auto;
}

.content-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(18, 18, 26, 0.9);
  border: 1px solid rgba(114, 0, 255, 0.35);
}

.content-card .page-title {
  margin-bottom: 1rem;
  text-align: left;
}

.content-lead {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--neon-2);
  line-height: 1.5;
}

.content-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.content-card h2 {
  margin: 1.5rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--neon-2);
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.7;
}

.content-card p { margin: 0 0 0.85rem; }

.content-card ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.content-card a {
  color: var(--neon-2);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.content-card a:hover { color: #fff; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
}

/* Best Versions */
.best-versions-page {
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1020px) {
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.brand-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 1.5px solid rgba(114, 0, 255, 0.7);
  overflow: hidden;
  background: #0a0a10;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.brand-tile:hover {
  border-color: #7200ff;
  transform: translateY(-2px);
}

.brand-tile-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  opacity: 0.38;
  filter: saturate(0.85) brightness(0.75);
}

.brand-tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-tile-bg img:only-child {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.brand-tile-name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  z-index: 1;
}

/* Products page */
.products-page {
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
  max-width: 1180px;
  margin: 0 auto;
}

.page-title {
  margin: 0.5rem 0 1.4rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.chip {
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(114, 0, 255, 0.75);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(114, 0, 255, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.chip.is-active {
  background: rgba(114, 0, 255, 0.35);
  box-shadow: var(--glow);
}

.btn-load-more {
  justify-self: center;
  border: 0;
  background: #fff;
  color: #7200ff;
  box-shadow: var(--glow);
  cursor: pointer;
  min-width: 140px;
}

.btn-load-more:hover {
  background: #efe5ff;
}

.search-wrap {
  display: block;
  position: relative;
  z-index: 5;
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--neon);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-shadow: none;
}

.search-input::placeholder { color: rgba(255, 255, 255, 0.55); }

.search-suggest {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0.35rem 0;
  border-radius: 16px;
  border: 1.5px solid rgba(114, 0, 255, 0.65);
  background: rgba(10, 10, 16, 0.96);
  overflow: hidden;
}

.search-suggest[hidden] { display: none; }

.search-suggest-item {
  padding: 0.7rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: rgba(114, 0, 255, 0.28);
  color: #fff;
}

.results-meta {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.products-catalog {
  margin-bottom: 1.25rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#products-more {
  display: flex;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }

  .nav {
    position: absolute;
    inset: 64px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(8, 8, 12, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .header-actions .btn-glow { display: none; }

  .header-search-input {
    width: min(150px, 36vw);
    min-height: 36px;
    font-size: 0.8rem;
  }

  .product-rail {
    grid-auto-columns: minmax(160px, 70%);
  }
}
