:root{
  --bg0:#070b12;
  --bg1:#0b1220;
  --card: rgba(10,16,28,.62);
  --card2: rgba(10,16,28,.78);
  --stroke: rgba(255,255,255,.09);
  --stroke2: rgba(255,255,255,.06);
  --txt:#e9eefc;
  --muted: rgba(206,218,255,.72);
  --green:#22c55e;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --r:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body.ganja{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--txt);
  background:
    radial-gradient(1100px 620px at 30% -10%, rgba(34,197,94,.18), transparent 55%),
    radial-gradient(900px 520px at 85% 0%, rgba(59,130,246,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}
body.ganja::before{
  content:"";
  position:fixed; inset:0;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.035) 0px,
      rgba(255,255,255,.035) 2px,
      transparent 2px,
      transparent 16px);
  opacity:.28;
  pointer-events:none;
}

.container{max-width:1180px; margin:0 auto; padding:0 18px;}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(7,11,18,.62);
  border-bottom:1px solid var(--stroke2);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:38px; height:38px; border-radius:12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(34,197,94,.75), transparent 55%),
    rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 6px rgba(34,197,94,.08);
}
.brand-title{font-weight:800; letter-spacing:.4px}
.brand-sub{font-size:12px; color:var(--muted)}

.top-actions{display:flex; gap:10px; align-items:center}

.btn{
  border:1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.16);
  color:var(--txt);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
}
.btn:hover{transform: translateY(-1px); background: rgba(34,197,94,.22); border-color: rgba(34,197,94,.40)}
.btn:active{transform: translateY(0px) scale(.99)}
.btn.ghost{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.btn.ghost:hover{background: rgba(255,255,255,.08)}
.btn.xl{padding:12px 16px; border-radius:16px; font-weight:700}

.input, .select, .textarea{
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:var(--txt);
  outline:none;
  padding:0 12px;
}
.textarea{
  height:auto;
  min-height:92px;
  padding:10px 12px;
}
.input::placeholder{color: rgba(206,218,255,.55)}
.select{padding:0 10px}

.section{padding:34px 0}
.hero{padding-top:18px}
.hero-inner{display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:stretch}
@media(max-width:980px){ .hero-inner{grid-template-columns:1fr} }

.hero-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.25;
}

.kicker{
  display:flex; align-items:center; gap:10px;
  color: rgba(206,218,255,.8);
  font-weight:800;
  letter-spacing:2.4px;
  font-size:12px;
}
.dot{
  width:10px;height:10px;border-radius:999px;background:var(--green);
  box-shadow: 0 0 0 6px rgba(34,197,94,.12), 0 0 28px rgba(34,197,94,.25);
}

.hero-title{font-size:44px; line-height:1.05; margin:10px 0 10px; letter-spacing:-.6px}
@media(max-width:980px){ .hero-title{font-size:36px} }
.hero-desc{color:var(--muted); max-width:560px; margin:0 0 14px}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 0}

.mini-stats{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}
.mini{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding:12px 14px;
  min-width: 170px;
}
.mini-k{font-size:12px; color:var(--muted)}
.mini-v{font-weight:900; margin-top:2px}
.mini-s{font-size:12px; color:rgba(206,218,255,.6)}

.panel{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  padding:16px;
  box-shadow: var(--shadow);
}
.panel.glass{
  background: rgba(10,16,28,.55);
  backdrop-filter: blur(14px);
}

.h2{font-size:18px; font-weight:900; margin-bottom:6px}
.muted{color:var(--muted)}
.small{font-size:12px}

.how-steps{display:flex; gap:10px; margin:12px 0 14px; flex-wrap:wrap}
.hstep{
  display:flex; gap:10px; align-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding:10px 12px;
  border-radius: 14px;
  color: rgba(206,218,255,.82);
}
.hstep span{
  width:22px; height:22px; border-radius:999px;
  display:grid; place-items:center;
  background: rgba(34,197,94,.18);
  border:1px solid rgba(34,197,94,.28);
  font-weight:900;
  color: var(--txt);
}

.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.shop-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
  margin-bottom:14px;
}
.sec-title{
  font-size:12px;
  letter-spacing:2.4px;
  color: rgba(206,218,255,.75);
  font-weight:900;
}
.sec-h{font-size:24px; font-weight:900; margin-top:4px}
.shop-tools{display:flex; gap:10px; flex-wrap:wrap}

.grid-products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media(max-width:1100px){ .grid-products{grid-template-columns: repeat(2, 1fr);} }
@media(max-width:680px){ .grid-products{grid-template-columns: 1fr;} }

.card{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,16,28,.55);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(34,197,94,.28);
  background: rgba(10,16,28,.62);
}

.badge{
  position:absolute;
  top:12px; left:12px;
  z-index:3;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.16);
  color: var(--txt);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.8px;
}

.card-media{
  height: 220px;
  background: rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
  background-size: cover;
  background-position: center;
}
.card-body{padding:14px}
.card-title{font-weight:900; font-size:16px; margin-bottom:6px}
.card-sub{color:rgba(206,218,255,.72); font-size:13px; margin-bottom:10px; min-height:34px}
.card-price{font-weight:900; font-size:16px}
.card-actions{display:flex; gap:10px; margin-top:12px}
.card-actions .btn{flex:1}

.chiprow{display:flex; gap:8px; flex-wrap:wrap; margin:10px 0}
.chip{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(206,218,255,.85);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}

.bottombar{
  position: sticky;
  bottom:0;
  z-index:40;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(7,11,18,.62);
  backdrop-filter: blur(14px);
}
.bottombar-inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0; flex-wrap:wrap}
.bb-pill{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius:999px;
  padding:8px 12px;
  display:flex; align-items:center; gap:10px;
}
.bb-online{color: rgba(206,218,255,.8)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

/* ===== PRODUCT PAGE ===== */
.product-page{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:14px;
}
@media(max-width:980px){ .product-page{grid-template-columns:1fr} }

.product-media{padding:14px}
.product-mainimg{
  height: 420px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  background-size: cover;
  background-position:center;
}
@media(max-width:980px){ .product-mainimg{height:340px} }

.product-thumbs{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:12px;
}
.thumb{
  width:76px; height:76px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  background-size: cover;
  background-position:center;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.thumb:hover{transform: translateY(-1px); border-color: rgba(34,197,94,.25)}

.product-buy{padding:16px}
.product-title{font-size:28px; font-weight:1000; margin:6px 0 10px; letter-spacing:-.4px}
.pricebox{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  padding:12px 14px;
  border-radius:16px;
  margin:14px 0;
}
.price{font-size:22px; font-weight:1000}
.field{margin:14px 0}
.label{font-size:12px; font-weight:900; letter-spacing:1.6px; color: rgba(206,218,255,.7); margin-bottom:8px}

.sizes{display:flex; gap:10px; flex-wrap:wrap}
.sz{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  cursor:pointer;
  font-weight:900;
  min-width:56px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.sz:hover{transform: translateY(-1px); border-color: rgba(34,197,94,.25)}
.sz.active{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.14);
  box-shadow: 0 0 0 6px rgba(34,197,94,.08);
}

/* ===== MODAL (Shipping / Address) ===== */
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:999;
}
.modal.open .modal-card{
  transform: translateY(0px);
  opacity:1;
}
.modal.open .modal-backdrop{
  opacity:1;
}
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  opacity:0;
  transition: opacity .16s ease;
}
.modal-card{
  position:relative;
  max-width: 860px;
  margin: 6vh auto;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,16,28,.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 52px rgba(0,0,0,.55);
  padding:16px;
  transform: translateY(10px);
  opacity:.0;
  transition: transform .16s ease, opacity .16s ease;
}
@media(max-width:920px){
  .modal-card{margin: 4vh 14px}
}
.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.iconbtn{
  width:40px;
  height:40px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  cursor:pointer;
}
.modal-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media(max-width:820px){
  .modal-grid{grid-template-columns:1fr}
}
.modal-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  align-items:center;
}
