:root{
  --bg:#0b0a0a;
  --panel:#141011;
  --panel2:#120e0f;
  --text:#f5f1ee;
  --muted:#b8a9a0;
  --line:#2a1f20;
  --brand:#b61f2d;      /* KINGFISHER deep red */
  --brand2:#e0b15f;     /* warm gold accent */
  --danger:#ff4d6d;
  --ok:#43f7a1;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 600px at 30% -10%, rgba(182,31,45,.18), transparent 60%),
              radial-gradient(1200px 600px at 80% 10%, rgba(224,177,95,.12), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit}
.wrap{max-width:1100px;margin:0 auto;padding:24px}
.topbar{
  position:sticky;top:0;z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.72);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}

.brand{display:flex;align-items:center;gap:12px}
.logo{
  width:40px;height:40px;border-radius:12px;
  display:grid;place-items:center;
  font-weight:800;
  background: linear-gradient(135deg, rgba(182,31,45,.32), rgba(224,177,95,.24));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.brandtext .name{font-weight:800;letter-spacing:.12em}
.brandtext .tag{font-size:12px;color:var(--muted)}
.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:10px 14px;border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .08s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.16)}
.btn:active{transform: translateY(0)}
.btn.primary{
  background: linear-gradient(135deg, rgba(182,31,45,.28), rgba(224,177,95,.22));
  border-color: rgba(182,31,45,.28);
}
.btn.ghost{background: transparent}
.btn.full{width:100%}
.pill{
  display:inline-grid;place-items:center;
  min-width:22px;height:22px;padding:0 8px;border-radius:999px;
  background: rgba(182,31,45,.18);
  border:1px solid rgba(224,177,95,.20);
  font-size:12px;
}

.hero{display:grid;grid-template-columns:1.3fr .7fr;gap:18px;align-items:stretch;margin-top:12px}
.hero h2{margin:0 0 10px 0;font-size:32px;line-height:1.1}
.muted{color:var(--muted)}
.tiny{font-size:12px}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size:12px;color:var(--muted)
}
.hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.hero-card{
  background: linear-gradient(180deg, rgba(20,16,17,.80), rgba(18,14,15,.80));
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:16px;
  box-shadow: var(--shadow);
}
.hero-media{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,.18);
}
.hero-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
}
.hero-media:after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,10,10,.15), rgba(11,10,10,.75));
}
.hero-media .hero-media-caption{
  position:absolute;
  left:14px; right:14px; bottom:12px;
  z-index:2;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-end;
}
.hero-media .hero-media-caption .title{font-weight:900; letter-spacing:.08em}
.hero-media .hero-media-caption .sub{color:var(--muted); font-size:12px}
.hero-card-title{font-weight:800;margin-bottom:10px}
.rules{margin:0;padding-left:18px;color:var(--muted)}
.rules li{margin:8px 0}

.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.search,.select, input, textarea, select{
  width:100%;
  padding:12px 12px;border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  outline:none;
}
.search{flex:1 1 320px}
.select{flex:0 0 220px}
textarea{resize:vertical}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}
.card{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(20,16,17,.78), rgba(18,14,15,.78));
  padding:14px;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}
.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.cat{font-size:12px;color:var(--muted)}
.name{font-weight:800;margin-top:4px}
.meta{font-size:12px;color:var(--muted);margin-top:10px}
.price{font-weight:900;margin-top:10px;font-size:18px}
.stock{font-size:12px;margin-top:10px}
.stock.ok{color:var(--ok)}
.stock.no{color:var(--danger)}
.card-actions{display:flex;gap:10px;margin-top:12px}

.cart{
  position:fixed;top:0;right:0;height:100%;width:390px;max-width:92vw;
  background: rgba(20,16,17,.92);
  border-left:1px solid rgba(255,255,255,.08);
  box-shadow: -20px 0 60px rgba(0,0,0,.45);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index:40;
  display:flex;flex-direction:column;
}
.cart.open{transform: translateX(0)}
.cart-header,.cart-footer{padding:16px;border-bottom:1px solid rgba(255,255,255,.07)}
.cart-footer{border-bottom:none;border-top:1px solid rgba(255,255,255,.07);margin-top:auto}
.cart-title{font-weight:900}
.cart-items{padding:10px 16px;overflow:auto;display:flex;flex-direction:column;gap:10px}
.item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:12px;
  background: rgba(0,0,0,.12);
}
.item-row{display:flex;justify-content:space-between;gap:12px}
.item-name{font-weight:800}
.qty{
  display:flex;align-items:center;gap:8px;margin-top:10px
}
.qty button{width:34px;height:34px;border-radius:12px}
.line{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.line.total{font-size:18px;font-weight:900}

.toast{
  position:fixed;bottom:18px;left:50%;transform:translateX(-50%);
  padding:10px 12px;border-radius:14px;
  background: rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.10);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity:0;pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index:60;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(-6px)}

.modal-backdrop{
  position:fixed;inset:0;
  background: rgba(0,0,0,.75);
  display:none;
  place-items:center;
  padding:20px;
  z-index:80;
}
.modal-backdrop.open{display:grid}
.modal{
  width:520px;max-width:100%;
  background: linear-gradient(180deg, rgba(20,16,17,.95), rgba(18,14,15,.95));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
}
.modal h1{margin:0 0 10px 0}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.field{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.check{display:flex;gap:10px;align-items:flex-start;margin-top:12px;color:var(--muted)}
.check input{margin-top:4px}

.two{display:grid;grid-template-columns:1.25fr .75fr;gap:16px;align-items:start}
.panel{
  background: linear-gradient(180deg, rgba(20,16,17,.78), rgba(18,14,15,.78));
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
}
.panel h1{margin:0 0 8px 0}
.panel h2{margin:0 0 12px 0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.error{margin-top:12px;color:var(--danger)}
.summary{display:flex;flex-direction:column;gap:10px;margin:10px 0 14px}
.summary .srow{display:flex;justify-content:space-between;gap:12px;color:var(--muted)}
.orders{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.order{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:12px;
  background: rgba(0,0,0,.12);
}
.prose p{color:var(--muted);line-height:1.7}

@media (max-width: 980px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,1fr)}
  .two{grid-template-columns:1fr}
}
@media (max-width: 620px){
  .grid{grid-template-columns:1fr}
  .select{flex:1 1 220px}
  .grid2{grid-template-columns:1fr}
}
