:root {
  --bg: #07111f;
  --ink: #eef4fb;
  --muted: rgba(238, 244, 251, 0.65);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7eb8e8;
  --chrome: #c8d7e6;
  --navy: #1f5f8b;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(31, 95, 139, 0.25), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #050b14 100%);
}
h1, h2, h3 { font-family: Oswald, sans-serif; letter-spacing: 0.02em; font-weight: 500; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(7, 17, 31, 0.95); border-bottom: 1px solid var(--line); }
.header-bar, .section-head, .pager, .header-actions { display: flex; align-items: center; gap: 16px; }
.header-bar { padding: 16px 0; }
.brand { color: white; }
.brand-kicker { display: block; font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase; color: #9eb4cc; }
.brand-name { font-size: 22px; font-weight: 650; }
.brand-name span { color: var(--accent); }
.search { display: flex; flex: 1; }
.search input, .filters input, .filters select, .panel input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
}
.search input { border-radius: 10px 0 0 10px; }
.search button, .btn {
  border: 0;
  border-radius: 10px;
  background: var(--chrome);
  color: #07111f;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}
.search button { border-radius: 0 10px 10px 0; background: var(--navy); color: white; }
.ghost, .btn-ghost { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; color: white; }
.cart-link { position: relative; background: var(--chrome); color: #07111f; border-radius: 10px; padding: 8px 14px; font-weight: 700; }
#cart-count { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--navy); color: white; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
#cart-count[hidden] { display: none; }
.added-note { margin-top: 12px; }
.btn:disabled { opacity: 0.7; cursor: wait; }
.main-nav { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.main-nav .wrap { display: flex; gap: 6px; overflow: auto; padding: 8px 0 10px; }
.main-nav a { color: rgba(255,255,255,.75); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.hero { border-bottom: 1px solid var(--line); }
.hero-grid, .product, .contact-grid, .cart-layout, .footer-grid { display: grid; gap: 24px; }
.hero-grid { padding: 64px 0; }
.eyebrow { color: var(--accent); letter-spacing: 0.28em; text-transform: uppercase; font-size: 13px; }
.lead, .meta, .legal, .footer-grid p, .footer-grid li { color: var(--muted); }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 12px 0; }
.hero-actions, .stats, .category-grid, .product-grid { display: grid; gap: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; margin: 24px 0; }
.stats { grid-template-columns: repeat(3, 1fr); }
.stats div, .category, .card, .highlight, .panel, .empty { border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 18px; }
.stats div, .category, .highlight, .panel { padding: 16px; }
.stats strong { display: block; font-size: 24px; }
.highlights { display: grid; gap: 12px; }
.section { padding: 48px 0; }
.section-head { justify-content: space-between; }
.category-grid, .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 18px; }
.card { color: inherit; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.card-media { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, #0f1f33, #16263d); display: flex; align-items: center; justify-content: center; }
.card-media img, .gallery img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.card-sku, .gallery-empty { color: rgba(255,255,255,.35); font-size: 28px; }
.pill { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.5); border-radius: 99px; padding: 4px 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 16px; margin: 0; }
.sku { color: var(--accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.price, .product-price { color: #d4e4f4; font-weight: 700; margin-top: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; align-items: center; }
.filters input, .filters select { width: auto; min-width: 180px; }
.filters label { font-size: 14px; color: var(--muted); }
.pager { justify-content: space-between; margin-top: 28px; }
.pager a, .pager span { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.disabled { opacity: .4; }
.empty { padding: 32px; text-align: center; }
.product { grid-template-columns: 1fr 1fr; align-items: start; margin-top: 18px; }
.gallery, .gallery-empty { min-height: 320px; border-radius: 18px; background: #0f1f33; display: flex; align-items: center; justify-content: center; }
.facts { display: grid; gap: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.panel { display: grid; gap: 10px; margin-top: 16px; }
.panel input { margin-top: 6px; }
.contact-grid { grid-template-columns: 1fr 1fr; }
.cart-layout { grid-template-columns: 1.2fr .8fr; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button, .cart-line button, .cart-toolbar button { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.error { color: #ffb4b4; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #050b14; }
.footer-grid { grid-template-columns: repeat(4, 1fr); padding: 40px 0; }
.footer-title { color: white; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.legal { text-align: center; font-size: 12px; padding-bottom: 16px; }
.narrow { max-width: 480px; }
.order ul { margin: 0; padding-left: 18px; }
@media (max-width: 800px) {
  .search, .ghost { display: none; }
  .hero-grid, .product, .contact-grid, .cart-layout, .footer-grid, .stats { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 1fr; }
}
