/* ===== Reset + Theme ===== */
:root{
  --bg:#0b0d12; --panel:#121722; --line:#232b3e;
  --text:#e8ebf3; --muted:#a7afc2; --brand:#79e0ff; --accent:#98ffae;
  --radius:14px; --gap:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--text);background:radial-gradient(1200px 800px at 20% -10%, #0f1421, transparent), var(--bg);}

/* ===== Header ===== */
.topbar{position:sticky;top:0;z-index:100;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));backdrop-filter:blur(8px);}
.logo{display:flex;gap:10px;align-items:center;color:var(--text);text-decoration:none;font-weight:700}
.logo span{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(180deg,#1a2133,#121828);border:1px solid #2a3146}
.search{justify-self:center;width:100%;max-width:680px}
.search input{width:100%;padding:10px 14px;border-radius:16px;border:1px solid #2a3046;background:var(--panel); box-shadow: inset 0 1px 0 rgba(255,255,255,.04);color:var(--text);outline:none}
.search input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(121,224,255,.4)}
.quick{display:flex;gap:8px;align-items:center}
.btn{border:1px solid #2a3146;background:#171c2a;color:var(--text);padding:8px 12px;border-radius:16px;text-decoration:none;cursor:pointer}
.btn.primary{background:linear-gradient(180deg,#1f2740,#151b2b);}
.btn.ghost{background:transparent;border-style:dashed}
.btn.icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:16px}

/* ===== Layout helpers ===== */
.container{max-width:1200px;margin:0 auto;padding:0 16px}
.center{display:grid;place-items:center;margin-top:12px}
.muted{color:var(--muted)}
.h1{margin:0 0 6px}

/* ===== Featured ===== */
.tabbar{display:flex;gap:8px;margin:24px 0 8px}
.tab{border:1px solid #2a3146;background:transparent;color:var(--muted);padding:8px 14px;border-radius:16px;cursor:pointer}
.tab.is-active{color:var(--text);background:linear-gradient(180deg,#1a2132,#151b2a);border-color:#3a4668}
.feature-wrap{display:grid;grid-template-columns:280px 1fr;gap:20px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.01));padding:16px}
.cover{border-radius:12px;display:grid;place-items:center;font-size:76px;background:radial-gradient(260px 160px at 70% 30%, rgba(121,224,255,.35), transparent) #0f1423;border:1px solid #29314b}
.meta{display:grid;grid-template-columns:120px 1fr;gap:6px 12px}
.meta dt{color:var(--muted)}
.share{display:flex;gap:8px;align-items:center;margin-top:8px}
.chip{border:1px solid #2a3146;background:transparent;color:var(--text);padding:6px 10px;border-radius:16px;cursor:pointer}
.cta{display:flex;gap:12px;align-items:center;margin-top:12px}
.price{font-weight:700}

/* ===== Carousels ===== */
.section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 10px}
.strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:12px;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.card{scroll-snap-align:start;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.01))}
.card .thumb{height:160px;display:grid;place-items:center;font-size:40px;background:#10162a;border-bottom:1px solid #22283a}
.card .body{padding:10px;display:grid;gap:6px}
.card .sub{color:var(--muted);font-size:.95rem}
.arrow{border:1px solid #2a3146;background:#171c2a;color:var(--text);padding:6px 10px;border-radius:10px;cursor:pointer}

/* ===== News ===== */
.news h2{margin:28px 0 10px}
.news-box{height:260px;border:1px dashed #43507a;border-radius:14px;display:grid;place-items:center;background:repeating-linear-gradient(45deg,#121830,#121830 10px,#0f1428 10px,#0f1428 20px)}

/* ===== Footer ===== */
.site-footer{margin-top:40px;border-top:1px solid var(--line);background:linear-gradient(0deg,rgba(255,255,255,.02),rgba(255,255,255,0))}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:20px;padding:24px 16px}
.logo-inline{display:flex;gap:10px;align-items:center}
.logo-inline span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#1a2133;border:1px solid #2a3146}
.fcol h3{margin-top:0;font-size:1rem}
.fcol ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.fcol a{color:var(--text);text-decoration:none}
.fcol a:hover{text-decoration:underline}
.footnote{border-top:1px solid var(--line);text-align:center;padding:12px;color:var(--muted);font-size:.95rem}

/* ===== CART Drawer ===== */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:999;cursor:pointer}
.overlay[hidden]{display:none}
.cart{position:fixed;top:0;right:0;width:380px;max-width:100%;height:100%;background:#0f1220;border-left:1px solid #242838;display:grid;grid-template-rows:auto 1fr auto;z-index:1000;transform:translateX(100%);transition:transform .28s ease}
body.cart-open .cart{transform:translateX(0)}
.cart-head,.cart-foot{padding:14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1c2030}
.cart-foot{border-top:1px solid #1c2030;border-bottom:none;flex-direction:column;gap:12px;align-items:stretch}
.cart-items{padding:14px;overflow:auto;display:grid;gap:10px}
.cart-item{display:grid;grid-template-columns:56px 1fr auto;gap:10px;align-items:center;border:1px solid #242838;border-radius:10px;padding:8px}
.cart-thumb{width:56px;height:56px;display:grid;place-items:center;background:#12162a;border-radius:8px}
.qty{display:inline-flex;align-items:center;gap:6px}
.qty button{width:28px;height:28px;border-radius:8px}
.qty input{width:44px;text-align:center;padding:6px;border-radius:8px;background:#12162a;border:1px solid #2a2f45;color:var(--text)}

/* ===== Responsive ===== */
@media (max-width:900px){
  .topbar{grid-template-columns:1fr auto auto}
  .search{grid-column:1 / -1}
  .feature-wrap{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .footer-grid{grid-template-columns:1fr}
}

/* Larger, nicer quick action pills */
.btn.pill-lg{ padding:10px 16px; border-radius:14px; font-weight:600; letter-spacing:.2px;
  box-shadow:0 6px 18px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.03);
  background:linear-gradient(180deg,#242b44,#1a2033);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn.pill-lg:hover{ transform:translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.06); border-color:#3a4672; }
.btn.icon.pill-lg{ width:auto; height:auto; padding:10px 14px; display:inline-flex; align-items:center; gap:10px; }
.btn.icon.pill-lg .cart-label{ font-weight:600; }
