/* Simple, fast, static site */
:root{
  --bg:#0b0f14;
  --panel:#111826;
  --card:#0f1522;
  --text:#e8eef6;
  --muted:#a9b6c6;
  --accent:#39d98a;
  --border:rgba(255,255,255,0.10);
  --shadow:0 10px 25px rgba(0,0,0,0.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 0%, #132036 0%, var(--bg) 55%);
}

.hero{
  border-bottom:1px solid var(--border);
  background: linear-gradient(180deg, rgba(17,24,38,0.92), rgba(17,24,38,0.70));
  backdrop-filter: blur(8px);
}
.hero-inner{
  max-width:1200px;
  margin:0 auto;
  padding:18px 16px;
  display:grid;
  gap:14px;
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:42px;height:42px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(57,217,138,0.12);
  border:1px solid rgba(57,217,138,0.35);
  font-weight:800; letter-spacing:0.5px;
}
.brand-name{font-weight:800; font-size:20px; line-height:1.1}
.brand-sub{color:var(--muted); font-size:13px}

.promo{
  padding:12px 14px;
  border:1px solid rgba(57,217,138,0.30);
  background: rgba(57,217,138,0.08);
  border-radius:14px;
  box-shadow: var(--shadow);
}
.promo-line{font-size:16px}
.promo-note{color:var(--muted); font-size:12px; margin-top:6px}

.controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.controls input, .controls select{
  background: rgba(255,255,255,0.06);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.controls input{flex:1; min-width:220px}
.controls select{min-width:190px}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:18px 16px;
}

main.wrap{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:16px;
}

.grid-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
  margin-bottom:10px;
}
.count{font-weight:700}
.hint{color:var(--muted); font-size:12px; max-width:680px}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}

.card{
  border:1px solid var(--border);
  background: rgba(15,21,34,0.88);
  border-radius:14px;
  padding:12px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.title{
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  color:var(--text);
}
.title:hover{color:var(--accent)}
.meta{display:flex; justify-content:space-between; gap:8px; align-items:center}
.price{font-weight:800}
.badge{
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.16);
  color:var(--muted);
}
.badge.sale{
  color:#0b0f14;
  background: var(--accent);
  border-color: rgba(57,217,138,0.45);
  font-weight:800;
}
.qty{
  display:flex;
  gap:8px;
  align-items:center;
}
.qty label{color:var(--muted); font-size:12px}
.qty input{
  width:84px;
  background: rgba(255,255,255,0.06);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:8px 10px;
  outline:none;
}

.cart{
  position: sticky;
  top: 12px;
  align-self:start;
  border:1px solid var(--border);
  background: rgba(17,24,38,0.75);
  border-radius:16px;
  padding:12px;
  box-shadow: var(--shadow);
  height: fit-content;
}
.cart-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.cart-title{font-weight:800; font-size:16px}
.cart-items{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: 46vh;
  overflow:auto;
  padding-right:4px;
}
.cart-item{
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  padding:10px;
  background: rgba(255,255,255,0.04);
}
.cart-item .name{
  font-weight:700;
  font-size:13px;
  line-height:1.2;
}
.cart-item .row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}

.totals{
  margin-top:10px;
  border-top:1px solid rgba(255,255,255,0.10);
  padding-top:10px;
}
.totals .row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:4px 0;
  color:var(--muted);
}
.totals .row.total{
  color:var(--text);
  font-weight:800;
  font-size:16px;
  padding-top:8px;
}
.small{color:var(--muted); font-size:12px}
.note{margin-top:10px}

.btn-primary, .btn-secondary{
  width:100%;
  border-radius:12px;
  padding:10px 12px;
  border:1px solid var(--border);
  cursor:pointer;
}
.btn-primary{
  background: rgba(57,217,138,0.16);
  border-color: rgba(57,217,138,0.45);
  color:var(--text);
  font-weight:800;
}
.btn-primary:hover{background: rgba(57,217,138,0.22)}
.btn-secondary{
  background: rgba(255,255,255,0.06);
  color:var(--text);
}
.btn-secondary:hover{background: rgba(255,255,255,0.09)}

.footer{
  border-top:1px solid var(--border);
  margin-top:14px;
  padding:14px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

@media (max-width: 1020px){
  main.wrap{grid-template-columns:1fr}
  .cart{position:relative; top:auto}
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 640px){
  .grid{grid-template-columns: 1fr;}
}

/* Logo styling */
.brand {
  text-align: center;
  padding: 20px 0 10px 0;
}

.site-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
}
