:root {
    --bg: #0f1115;
    --card: #141823;
    --muted: #98a2b3;
    --text: #e6e7ea;
    --line: #22283a;
    --accent: #5b8cff;
    --accent2: #7c5cff;
    --radius: 18px;
  }
  
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: radial-gradient(1200px 800px at 70% -20%, rgba(91,140,255,.18), transparent 60%),
                radial-gradient(900px 700px at 10% 10%, rgba(124,92,255,.14), transparent 55%),
                var(--bg);
    color: var(--text);
  }
  
  a { color: inherit; text-decoration: none; }
  .container { width: min(1100px, 92%); margin: 0 auto; }
  .muted { color: var(--muted); }
  
  .header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(15,17,21,.7);
    backdrop-filter: blur(10px);
  }
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* IMPORTANT: fills the box */
    object-position: center;
    display: block;
  }
  .brand__name { font-weight: 700; }
  .brand__tag { font-size: 12px; color: var(--muted); margin-top: 2px; }
  
  .nav { display: flex; gap: 14px; }
  .nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
  .nav a:hover { color: var(--text); }
  
  .hero { padding: 56px 0 30px; }
  .hero__inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
  }
  .hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 0 0 12px; }
  .hero__actions { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(91,140,255,.95), rgba(124,92,255,.95));
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 800;
  }
  .btn--ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text);
  }
  .btn--small { padding: 10px 12px; border-radius: 12px; font-size: 14px; }
  
  .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
  .chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }
  
  .hero__card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 18px;
  }
  .hero__cardTop { display: flex; justify-content: space-between; align-items: center; }
  .badge {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(91,140,255,.18);
    border: 1px solid rgba(91,140,255,.22);
  }
  .price { font-size: 18px; font-weight: 900; }
  .hero__cardTitle { margin-top: 14px; font-weight: 900; font-size: 18px; }
  .hero__cardImg {
    margin-top: 14px;
    height: 170px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,.18);
    display: grid;
    place-items: center;
    color: var(--muted);
    overflow: hidden;
  }
  .hero__cardImg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  
  .section { padding: 46px 0; }
  .section--alt { background: rgba(255,255,255,.02); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
  .section__head { margin-bottom: 16px; }
  .section__head h2 { margin: 0; font-size: 26px; }
  .section__head p { margin: 8px 0 0; }
  
  .controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: 18px 0 18px;
    flex-wrap: wrap;
  }
  .controls--simple { justify-content: flex-start; }

  .inventoryLayout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
  }

  .categoryPanel {
    position: sticky;
    top: 86px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 10px;
    display: grid;
    gap: 8px;
  }

  .categoryBtn {
    text-align: left;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: .02em;
  }
  .categoryBtn:hover { color: var(--text); border-color: rgba(255,255,255,.14); }
  .categoryBtn.is-active {
    color: var(--text);
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
  }
  .tabs { display: inline-flex; gap: 8px; background: rgba(255,255,255,.03); padding: 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); }
  .tab {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .tab.is-active { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
  
  .search {
    width: min(360px, 100%);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text);
    outline: none;
  }
  .search::placeholder { color: rgba(152,162,179,.8); }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .card {
    background: rgba(20,24,35,.65);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .card__img {
    height: 140px;
    background: rgba(255,255,255,.04);
    display: grid;
    place-items: center;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .card__imgPlaceholder { font-weight: 800; font-size: 13px; }
  .card__body { padding: 14px; }
  .card__title { font-weight: 900; }
  .card__meta { margin-top: 6px; font-size: 13px; }
  .card__row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
  .card__price { font-weight: 900; }

  .product__img { overflow: hidden; }
  .product__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .product.is-expanded { border-color: rgba(91,140,255,.35); box-shadow: 0 0 0 1px rgba(91,140,255,.08) inset; }
  
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
  .step { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
  .step__num { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: rgba(124,92,255,.2); border: 1px solid rgba(124,92,255,.25); }
  .step__title { font-weight: 900; }
  
  .contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
  .contact__box { padding: 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
  .contact__title { font-weight: 900; }
  .contact__value { margin-top: 8px; font-size: 18px; font-weight: 900; }
  
  .footer { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.06); }
  .footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  
  @media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .steps, .contact { grid-template-columns: 1fr; }
    .inventoryLayout { grid-template-columns: 1fr; }
    .categoryPanel {
      position: static;
      grid-auto-flow: column;
      grid-auto-columns: max-content;
      overflow-x: auto;
      white-space: nowrap;
    }
    .categoryBtn { width: auto; }
  }