:root{
  --bg:#181818;
  --fg:#F0E8E0;
  --muted:rgba(240,232,224,0.72);
  --card:rgba(240,232,224,0.06);
  --border:rgba(240,232,224,0.14);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial}
a{color:var(--fg);text-decoration:none}
.wrap{max-width:980px;margin:0 auto;padding:18px}
.header{position:sticky;top:0;background:rgba(24,24,24,0.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.header-row{display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:800;letter-spacing:0.12em}
.nav a{margin-left:14px;color:var(--muted)}
.nav a:hover{color:var(--fg)}
.footer{border-top:1px solid var(--border);margin-top:24px}
.footer-row{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}

h1{margin:10px 0 14px 0;letter-spacing:0.08em}
.muted{color:var(--muted)}
.desc{color:var(--muted);line-height:1.35}

.topline{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}

.grid{display:grid;grid-template-columns:repeat(3, minmax(0,1fr));gap:14px}
.grid2{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:14px}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.grid,.grid2{grid-template-columns:1fr}}

.card{border:1px solid var(--border);background:var(--card);border-radius:16px;padding:14px}
.card-title{font-weight:700;letter-spacing:0.03em;margin-bottom:6px}
.price{margin:10px 0}
.product-img{width:100%;height:160px;object-fit:cover;border-radius:12px;margin-bottom:10px}

.row{display:flex;gap:10px;align-items:center}
.right{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.stack{display:flex;flex-direction:column;gap:10px}

.input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(24,24,24,0.6);
  color:var(--fg);
  outline:none;
}
textarea.input{resize:vertical}

.btn{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--fg);
  background:transparent;
  color:var(--fg);
  cursor:pointer;
  font-weight:650;
}
.btn:hover{background:rgba(240,232,224,0.08)}
.btn-ghost{border-color:var(--border);color:var(--muted)}
.btn-ghost:hover{color:var(--fg);border-color:var(--fg)}

.cart-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}
.cart-row:last-child{border-bottom:none}

.totals{
  margin:14px 0;
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px 12px;
  max-width:420px;
}

.hr{border:none;border-top:1px solid var(--border);margin:14px 0}
.smallrow{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}
.smallrow:last-child{border-bottom:none}

.alert{
  border:1px solid rgba(240,232,224,0.35);
  background:rgba(240,232,224,0.08);
  padding:10px 12px;
  border-radius:12px;
  margin:10px 0 14px 0;
}
label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:13px}
