:root {
  --bg: #0b0c10;
  --bg-alt: #111318;
  --surface: #16181f;
  --surface-2: #1d2029;
  --border: #262a35;
  --text: #eef0f4;
  --text-dim: #9aa1b2;
  --accent: #e8393c;
  --accent-2: #2f6fed;
  --accent-grad: linear-gradient(120deg, #e8393c 0%, #ff7a45 100%);
  --radius: 14px;
  --shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  --maxw: 1200px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,12,16,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-grad);
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
}
.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text small {
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 15% 20%, rgba(232,57,60,.25), transparent 60%),
    radial-gradient(700px 400px at 85% 30%, rgba(47,111,237,.2), transparent 60%),
    var(--bg);
  z-index: -1;
}
.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: .8rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero-desc {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(232,57,60,.6);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; }
.hero-stats span { color: var(--text-dim); font-size: .82rem; letter-spacing: .5px; }

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 32px;
  letter-spacing: -.3px;
}
.section-title.light { color: #fff; text-align: center; }

/* ---------- Categories ---------- */
.categories { padding: 70px 0 20px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
  text-align: left;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.cat-card .cat-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.cat-card .cat-count { color: var(--text-dim); font-size: .8rem; }

/* ---------- Products ---------- */
.products { padding: 70px 0 90px; }
.products-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}
.products-tools { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
#searchInput {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  min-width: 260px;
  font-size: .9rem;
}
#searchInput:focus { outline: 2px solid var(--accent-2); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.chip.active, .chip:hover { color: #fff; border-color: var(--accent); background: var(--accent); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .35s;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.badge-hot {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.product-info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  font-size: .7rem;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-name { font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.product-brand { color: var(--text-dim); font-size: .82rem; margin-bottom: 10px; }
.product-desc {
  color: var(--text-dim);
  font-size: .85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 800; color: var(--text); font-size: .9rem; }
.product-cta {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
}
.empty-state { text-align: center; color: var(--text-dim); padding: 60px 0; }

/* ---------- About ---------- */
.about { padding: 80px 0; background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text p { color: var(--text-dim); margin-bottom: 22px; }
.about-list li { color: var(--text); font-size: .95rem; margin-bottom: 10px; }
.about-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background:
    radial-gradient(400px 250px at 30% 30%, rgba(232,57,60,.35), transparent 60%),
    radial-gradient(400px 250px at 70% 70%, rgba(47,111,237,.3), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}

/* ---------- Contact ---------- */
.contact {
  padding: 80px 0;
  background: var(--accent-grad);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.contact-card {
  background: rgba(0,0,0,.18);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.contact-card h3 { margin: 0 0 10px; font-size: 1rem; }
.contact-card p { margin: 0 0 6px; font-weight: 700; font-size: 1.05rem; }
.contact-card span { font-size: .8rem; opacity: .85; }
.contact-tip { text-align: center; font-size: .82rem; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer { padding: 26px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: .78rem;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform .25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  z-index: 2;
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-image { background: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-image img { max-height: 380px; object-fit: contain; }
.modal-info { padding: 34px 30px; }
.modal-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.modal-info h3 { margin: 0 0 8px; font-size: 1.4rem; }
.modal-brand { color: var(--text-dim); font-size: .85rem; margin-bottom: 16px; }
.modal-desc { color: var(--text-dim); margin-bottom: 24px; }
.modal-price { font-weight: 800; font-size: 1.1rem; margin-bottom: 20px; }
.modal-cta { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .modal-body { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }
  .products-head { flex-direction: column; align-items: stretch; }
  .products-tools { align-items: stretch; }
  .filter-chips { justify-content: flex-start; }
  #searchInput { min-width: 0; width: 100%; }
}
