:root{
  --bg:#090d12; --surface:#121821; --surface-2:#1a2230; --border:#232b38;
  --teal:#2dd4bf; --coral:#ff7a59; --text:#edf2f7; --muted:#8a96a6;
  --grad: linear-gradient(90deg, var(--coral), var(--teal));
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{ background:var(--bg); color:var(--text); font-family:'Inter',sans-serif; line-height:1.5; }
h1,h2,h3{ font-family:'Space Grotesk',sans-serif; }
.mono{ font-family:'JetBrains Mono',monospace; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
img,svg{ max-width:100%; display:block; }
.wrap{ max-width:1240px; margin:0 auto; padding:0 24px; }
.grad-text{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* TOPBAR */
.topbar{ background:var(--surface); border-bottom:1px solid var(--border); font-size:12.5px; color:var(--muted); }
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; padding:8px 24px; flex-wrap:wrap; gap:8px; }
.topbar a:hover{ color:var(--teal); }
.topbar .social{ display:flex; gap:14px; }

/* HEADER */
header{ position:sticky; top:0; z-index:60; background:rgba(9,13,18,.94); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.header-main{ display:flex; align-items:center; gap:24px; padding:16px 24px; max-width:1240px; margin:0 auto; }
.logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.logo svg{ width:32px; height:32px; }
.logo b{ font-size:17px; letter-spacing:-.01em; }
.logo small{ display:block; font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:.15em; color:var(--muted); text-transform:uppercase; margin-top:-2px; }
.search{ flex:1; display:flex; background:var(--surface); border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.search input{ flex:1; background:none; border:none; outline:none; color:var(--text); padding:12px 16px; font-size:14px; }
.search button{ background:var(--grad); border:none; padding:0 18px; color:#090d12; font-weight:600; }
.header-actions{ display:flex; align-items:center; gap:20px; flex-shrink:0; font-size:13px; }
.header-actions button{ background:none; border:none; color:var(--muted); display:flex; align-items:center; gap:8px; font-size:13px; }
.header-actions button:hover{ color:var(--text); }
.cart-count{ background:var(--coral); color:#090d12; font-size:11px; font-weight:700; border-radius:999px; width:18px; height:18px; display:flex; align-items:center; justify-content:center; }

.cat-nav{ border-top:1px solid var(--border); }
.cat-nav .wrap{ display:flex; gap:10px; padding:12px 24px; overflow-x:auto; }
.chip{ background:var(--surface); border:1px solid var(--border); color:var(--muted); font-size:13px; padding:8px 14px; border-radius:999px; white-space:nowrap; transition:.15s; }
.chip:hover{ color:var(--text); border-color:var(--muted); }
.chip.active{ background:var(--grad); color:#090d12; border-color:transparent; font-weight:600; }

/* PROMO */
.promo{ padding:28px 24px 0; }
.promo-banner{
  max-width:1240px; margin:0 auto;
  background:linear-gradient(120deg, rgba(45,212,191,.14), rgba(255,122,89,.12));
  border:1px solid var(--border); border-radius:20px;
  padding:44px 40px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.promo-banner h2{ font-size:clamp(22px,3vw,32px); max-width:520px; line-height:1.2; }
.eyebrow{ font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--teal); letter-spacing:.1em; text-transform:uppercase; margin-bottom:10px; display:block; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:13px 22px; border:none; border-radius:10px; font-weight:600; font-size:14.5px; transition:.2s; white-space:nowrap; }
.btn-primary{ background:var(--grad); color:#090d12; }
.btn-primary:hover{ filter:brightness(1.1); transform:translateY(-1px); }
.btn-ghost{ border:1px solid var(--border); background:none; color:var(--text); }
.btn-ghost:hover{ border-color:var(--muted); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

section{ padding:50px 24px; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:26px; flex-wrap:wrap; gap:12px; }
.section-head h2{ font-size:clamp(20px,2.4vw,26px); font-weight:600; }

/* PRODUCT GRID */
.prod-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.prod-card{ background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; transition:.2s; position:relative; }
.prod-card:hover{ border-color:var(--teal); transform:translateY(-4px); }
.prod-tag{ position:absolute; top:12px; left:12px; background:var(--coral); color:#090d12; font-size:10.5px; font-weight:700; padding:4px 9px; border-radius:6px; text-transform:uppercase; z-index:2; }
.prod-img{ aspect-ratio:1/1; background:var(--surface-2); display:flex; align-items:center; justify-content:center; padding:20px; }
.prod-img svg{ width:58%; opacity:.85; }
.prod-body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.prod-body h4{ font-size:13.5px; font-weight:600; line-height:1.35; min-height:36px; }
.prod-price{ margin-top:auto; }
.prod-price .old{ font-size:12px; color:var(--muted); text-decoration:line-through; }
.prod-price .now{ font-family:'Space Grotesk',sans-serif; font-size:19px; font-weight:700; color:var(--teal); display:block; }
.prod-price .inst{ font-size:11.5px; color:var(--muted); }
.prod-actions{ margin-top:10px; }
.prod-actions .btn{ width:100%; justify-content:center; padding:10px 12px; font-size:13px; }
.empty-msg{ color:var(--muted); font-size:14px; padding:40px 0; text-align:center; grid-column:1/-1; }

/* CART DRAWER */
.overlay{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:90; opacity:0; pointer-events:none; transition:.25s; }
.overlay.open{ opacity:1; pointer-events:auto; }
.drawer{ position:fixed; top:0; right:0; height:100%; width:min(420px,92vw); background:var(--surface); border-left:1px solid var(--border); z-index:95; transform:translateX(100%); transition:.3s ease; display:flex; flex-direction:column; }
.drawer.open{ transform:translateX(0); }
.drawer-head{ display:flex; justify-content:space-between; align-items:center; padding:20px 22px; border-bottom:1px solid var(--border); }
.drawer-head h3{ font-size:16px; }
.drawer-head button{ background:none; border:none; color:var(--muted); font-size:20px; }
.cart-items{ flex:1; overflow-y:auto; padding:16px 22px; }
.cart-item{ display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.cart-item .ic{ width:44px; height:44px; background:var(--surface-2); border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cart-item .ic svg{ width:60%; opacity:.8; }
.cart-item .info{ flex:1; min-width:0; }
.cart-item .info h5{ font-size:13px; font-weight:600; margin-bottom:6px; }
.qty{ display:flex; align-items:center; gap:8px; }
.qty button{ background:var(--surface-2); border:1px solid var(--border); color:var(--text); width:24px; height:24px; border-radius:6px; font-size:14px; }
.qty span{ font-size:13px; min-width:16px; text-align:center; }
.cart-item .price{ font-family:'Space Grotesk',sans-serif; font-weight:700; color:var(--teal); font-size:14px; white-space:nowrap; }
.remove-btn{ background:none; border:none; color:var(--muted); font-size:12px; margin-top:6px; text-decoration:underline; }
.drawer-foot{ padding:20px 22px; border-top:1px solid var(--border); }
.total-row{ display:flex; justify-content:space-between; margin-bottom:14px; font-size:15px; }
.total-row b{ font-family:'Space Grotesk',sans-serif; font-size:20px; color:var(--teal); }
.drawer-foot .btn{ width:100%; justify-content:center; }

/* CHECKOUT MODAL */
.modal{ position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center; padding:20px; }
.modal.open{ display:flex; }
.modal-box{ background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:32px; max-width:460px; width:100%; max-height:90vh; overflow-y:auto; }
.modal-box h3{ font-size:19px; margin-bottom:6px; }
.modal-box p.sub{ color:var(--muted); font-size:13px; margin-bottom:22px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; color:var(--muted); margin-bottom:6px; }
.field input, .field select, .field textarea{ width:100%; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:11px 13px; color:var(--text); font-size:14px; outline:none; font-family:inherit; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--teal); }
.field textarea{ resize:vertical; min-height:60px; }
.modal-actions{ display:flex; gap:10px; margin-top:20px; }
.modal-actions .btn{ flex:1; justify-content:center; }

/* TESTIMONIALS */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.testi-card{ background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:26px; }
.testi-stars{ color:var(--coral); font-size:14px; margin-bottom:12px; letter-spacing:2px; }
.testi-card p{ font-size:14px; color:var(--muted); margin-bottom:16px; }
.testi-name{ display:flex; align-items:center; gap:10px; }
.testi-avatar{ width:34px; height:34px; border-radius:50%; background:var(--grad); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; color:#090d12; }
.testi-name span{ font-size:13px; font-weight:600; }

.brand-strip{ background:var(--surface); padding:36px 24px; }
.brand-row{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; max-width:1240px; margin:0 auto; }
.brand-chip{ font-family:'JetBrains Mono',monospace; font-size:14px; color:var(--muted); letter-spacing:.05em; opacity:.7; }

footer{ border-top:1px solid var(--border); padding:50px 24px 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; margin-bottom:36px; }
.footer-grid h4{ font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.1em; margin-bottom:14px; font-family:'JetBrains Mono',monospace; }
.footer-grid a, .footer-grid p{ display:block; color:var(--muted); font-size:13.5px; margin-bottom:9px; }
.footer-grid a:hover{ color:var(--teal); }
.payment-icons{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.payment-icons span{ background:var(--surface-2); border:1px solid var(--border); border-radius:6px; padding:5px 8px; font-size:10.5px; font-family:'JetBrains Mono',monospace; color:var(--muted); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:20px; border-top:1px solid var(--border); color:var(--muted); font-size:12.5px; flex-wrap:wrap; gap:10px; }

.toast{ position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--surface); border:1px solid var(--teal); color:var(--text); padding:12px 20px; border-radius:10px; font-size:13.5px; z-index:110; opacity:0; pointer-events:none; transition:.25s; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width:1024px){
  .prod-grid{ grid-template-columns:repeat(3,1fr); }
  .testi-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:760px){
  .header-main{ flex-wrap:wrap; }
  .search{ order:3; flex:0 0 100%; }
  .prod-grid{ grid-template-columns:repeat(2,1fr); }
  .testi-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  .prod-grid{ grid-template-columns:1fr 1fr; }
  .header-actions .label{ display:none; }
}
