:root{
    --bg: #0b1220; --muted:#94a3b8; --text:#e5eef9; --white:#fff;
    --accent:#f59e0b; --accent-2:#f97316; --ring:rgba(255,255,255,.35);
    --radius:20px; --shadow-lg:0 10px 30px rgba(0,0,0,.35);
  }
  *{ box-sizing:border-box } html,body{ height:100% }
  body{
    margin:0; background: radial-gradient(1200px 600px at 10% -10%, #0c1a33 0%, #0a1224 40%, #070e1a 100%);
    color:var(--text); font-family:Inter,system-ui,Segoe UI,Roboto,Arial; line-height:1.5;
  }
  .wrap{ max-width:1200px; margin:40px auto; padding:0 24px }
  
  /* Header / Nav */
  .site-header{ position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(6,10,18,.65), rgba(6,10,18,.45));
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .nav-wrap{ max-width:1200px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px }
  .brand{
    font-weight:800; letter-spacing:-.02em; font-size:22px; text-decoration:none;
    background:linear-gradient(90deg,var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip:text; background-clip:text; color:transparent;
    text-shadow:0 2px 16px rgba(249,115,22,.25);
  }
  .nav__menu{ margin:0; padding:0; list-style:none; display:flex; gap:10px; flex-wrap:wrap }
  .nav__link{
    display:inline-block; text-decoration:none; color:var(--text);
    padding:10px 14px; border-radius:10px;
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
    font-weight:600; font-size:14px; transition: background .18s ease, transform .18s ease;
  }
  .nav__link:hover{ background:rgba(255,255,255,.12); transform: translateY(-1px) }
  .nav__link.is-active{ outline:2px solid rgba(255,255,255,.22) }
  .badge-dot{ margin-left:6px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#fff; padding:2px 7px; border-radius:999px; font-size:12px }
  
  /* Hero */
  .hero{ position:relative; border-radius:var(--radius); overflow:hidden;
    background:
      linear-gradient(180deg, rgba(7,12,22,.6) 0%, rgba(7,12,22,.75) 35%, rgba(7,12,22,.85) 100%),
      url("images/hero-hoodie.jpg") center/cover no-repeat,
      linear-gradient(180deg, #0c1324, #0a0f1d);
    box-shadow:var(--shadow-lg); isolate:isolate;
  }
  .hero::after{ content:""; position:absolute; inset:0; border-radius:var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); z-index:0; pointer-events:none }
  .hero__content{ padding: clamp(28px,5vw,64px); max-width:720px; position:relative; z-index:2 }
  .pill{ display:inline-flex; align-items:center; gap:.6ch; padding:10px 14px; background:linear-gradient(135deg,var(--accent),var(--accent-2));
    color:var(--white); border-radius:999px; font-weight:700; font-size:14px; box-shadow:0 6px 18px rgba(249,115,22,.35) }
  h1{ font-weight:800; line-height:1.05; font-size:clamp(32px, 6vw, 64px); margin:18px 0 12px; letter-spacing:-.02em }
  .accent{ background:linear-gradient(90deg,var(--accent),var(--accent-2),#fb923c); -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:0 2px 24px rgba(249,115,22,.2) }
  .lede{ color:var(--muted); font-size:clamp(16px, 1.6vw, 18px); max-width:60ch; margin:10px 0 26px }
  
  /* Buttons */
  .cta-row{ display:flex; gap:16px; align-items:stretch; flex-wrap:wrap; margin-bottom:26px }
  .btn{
    --py:14px; --px:20px;
    display:inline-flex; align-items:center; gap:10px;
    padding:var(--py) var(--px);
    background:linear-gradient(135deg,var(--accent),var(--accent-2));
    color:#fff; border:0; border-radius:12px; font-weight:700; cursor:pointer;
    text-decoration:none; box-shadow:0 10px 24px rgba(249,115,22,.35);
    transition: transform .18s ease, filter .18s ease;
    position: relative; z-index: 3;
  }
  .btn:hover{ transform:translateY(-1px); filter:brightness(1.05) }
  .btn:active{ transform: translateY(0) scale(.99) }
  .btn:focus-visible{ outline:3px solid var(--ring); outline-offset:3px }
  .btn-dark{ background:#0f172a }
  
  /* Stats */
  .rule{ height:1px; background: rgba(255,255,255,.12); margin:16px 0 8px }
  .stats{ display:flex; gap:28px; flex-wrap:wrap; align-items:center; padding:6px 0 4px }
  .stat{ display:flex; align-items:center; gap:12px; min-width:190px }
  .stat__num{ font-weight:800; font-size:22px; letter-spacing:-.02em }
  .stat__label{ color:var(--muted); font-size:14px }
  
  /* Sections & Grid */
  .section{ margin-top:36px }
  .section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px }
  .section-title{ margin:0; font-size:24px; letter-spacing:-.01em }
  .link{ color:#fff; opacity:.9; text-decoration:none } .link:hover{ text-decoration:underline }
  .grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px }
  @media (max-width: 980px){ .grid{ grid-template-columns: repeat(3,1fr) } }
  @media (max-width: 680px){ .grid{ grid-template-columns: repeat(2,1fr) } }
  
  .card{
    background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
    border-radius:14px; overflow:hidden; backdrop-filter:saturate(120%);
  }
  .card img{ width:100%; height:220px; object-fit:cover; display:block; background:#0a1224 }
  .card .p{ padding:12px }
  .price{ font-weight:800 } .muted{ color:var(--muted) } .small{ font-size:12px }
  .actions{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:6px }
  
  /* Product page */
  .product{ display:grid; grid-template-columns: 1.1fr 1fr; gap:24px }
  @media (max-width: 980px){ .product{ grid-template-columns: 1fr } }
  .p-gallery{ background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:14px; overflow:hidden }
  .p-gallery .main-img{ width:100%; height:440px; object-fit:cover; display:block; background:#0a1224 }
  .p-thumbs{ display:flex; gap:10px; padding:10px; overflow-x:auto }
  .p-thumbs img{ width:80px; height:80px; object-fit:cover; border-radius:10px; border:1px solid rgba(255,255,255,.12); cursor:pointer; opacity:.85 }
  .p-thumbs img:hover{ opacity:1 }
  
  .p-info .title{ margin:0 }
  .p-info .rating{ display:flex; align-items:center; gap:8px; margin:6px 0 10px }
  .p-info .stars{ transform: translateY(1px) }
  .options{ display:grid; gap:12px; margin:12px 0 }
  .swatches{ display:flex; gap:8px; flex-wrap:wrap }
  .swatch{ width:28px; height:28px; border-radius:999px; border:2px solid rgba(255,255,255,.6); cursor:pointer; outline:2px solid transparent }
  .swatch[aria-checked="true"]{ outline-color:#fff }
  .sizes{ display:flex; gap:8px; flex-wrap:wrap }
  .size{ padding:8px 12px; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); cursor:pointer }
  .size[aria-checked="true"]{ background:rgba(255,255,255,.12) }
  .qty{ display:flex; align-items:center; gap:8px }
  .qty input{ width:72px; padding:8px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:#fff }
  .p-info .price{ font-size:22px; margin:8px 0 14px }
  
  /* Reviews */
  .reviews{ margin-top:22px }
  .review{ background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:12px; margin-top:10px }
  .review .meta{ display:flex; gap:10px; align-items:center; margin-bottom:6px }
  .review .name{ font-weight:700 } .review .date{ color:var(--muted); font-size:12px }
  
  /* Cart */
  .cart-table{ width:100%; border-collapse: collapse; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:12px; overflow:hidden }
  .cart-table th, .cart-table td{ padding:12px; text-align:left; border-bottom:1px solid rgba(255,255,255,.08) }
  .cart-table tfoot td{ font-weight:800 } .right{ text-align:right }
  .cart-actions{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap }
  
  /* Auth / Forms */
  .auth .card{ max-width: 420px; padding:18px; border-radius:14px; }
  .auth label{ display:block; font-weight:600; margin:8px 0 4px }
  .auth input{ width:100%; padding:10px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color:#fff }
  
  /* Checkout/Delivery forms */
  .form-card{ padding:18px; border-radius:14px }
  .subhead{ margin:6px 0 10px; font-size:18px }
  .form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px }
  .form-grid label{ display:block; font-weight:600 }
  .form-grid input, .form-grid select{
    width:100%; padding:10px 12px; border-radius:10px;
    border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color:#fff
  }
  .checkbox-row{ display:flex; align-items:center; gap:10px; margin:12px 0 4px }
  .billing-fields{ margin-top:6px }
  .form-actions{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap }
  
  .checkout-grid{ display:grid; grid-template-columns: 1.2fr .8fr; gap:24px }
  @media (max-width: 980px){ .checkout-grid{ grid-template-columns: 1fr } }
  
  /* Summary */
  .summary-card{ padding:16px }
  .summary-row, .summary-total{ display:flex; justify-content:space-between; align-items:center; margin-top:8px }
  .summary-total{ font-weight:800; font-size:18px }
  #summary-items .line{ display:flex; justify-content:space-between; gap:10px; margin-top:8px }
  #summary-items .line .muted{ display:block }
  
  /* Delivery page */
  .address-summary{ white-space:pre-line; margin-bottom:12px }
  .ship-option{ display:flex; gap:10px; align-items:flex-start; padding:10px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); margin-bottom:8px }
  .ship-option .ship-head{ display:flex; justify-content:space-between; align-items:center; gap:10px }
  .ship-option input{ margin-top:3px }
  
  /* Footer */
  .site-footer{ margin-top:36px; border-top:1px solid rgba(255,255,255,.08); background: rgba(6,10,18,.6) }
  .footer-wrap{ max-width:1200px; margin:0 auto; padding:18px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap }
  .site-footer p{ margin:0; color:var(--muted) }
  .site-footer nav a{ color:#fff; text-decoration:none; opacity:.9; padding:6px 8px; border-radius:8px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); margin-left:4px }
  .site-footer nav a:hover{ background:rgba(255,255,255,.12) }
  .sep{ color: rgba(255,255,255,.4); margin:0 6px }
  
  /* Helpers */
  .sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0 }
  @media (max-width:780px){ .cta-row{ flex-direction:column } .stat{ min-width:46% } }
  @media (prefers-reduced-motion: reduce){ .btn{ transition:none } }
  
  /* --- Bulletproof star sizing (fixes giant stars) --- */
  .stars { display:inline-flex; gap:4px; align-items:center; line-height:1; }
  svg.star {
    width:18px !important;
    height:18px !important;
    flex:0 0 18px;
    display:inline-block;
  }
  /* Keeps any stroke from scaling oddly */
  svg.star path { vector-effect: non-scaling-stroke; }
  
  /* Make sure hero content sits above any background elements */
  .hero { position:relative; overflow:hidden; }
  .hero__content, .hero__content * { position:relative; z-index:2; }
/* Auth tabs */
.tabs{ display:flex; gap:8px; margin:0 0 12px }
.tab{
  appearance:none; cursor:pointer; font-weight:700; color:#fff;
  padding:8px 12px; border-radius:10px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
}
.tab.active{ background:rgba(255,255,255,.14); }
/* --- Shop filters --- */
.filters{
  display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end;
  margin:8px 0 16px;
}
.filters label{
  display:flex; flex-direction:column; gap:6px;
  font-weight:600; font-size:0.92rem;
}
.filters select{
  padding:10px 12px; border-radius:12px; min-width:170px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
}
@media (max-width:720px){
  .filters select{ min-width:140px; }
}

/* Contact layout */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
@media (max-width: 840px){
  .contact-grid{ grid-template-columns:1fr; }
}

/* Alerts */
.alert{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
}
.alert.success{
  background:rgba(0,200,83,.12);
  border-color:rgba(0,200,83,.35);
}
