:root{
  --accent:#ff6f61;
  --muted:#666;
  --card:#fff;
  --shadow: 0 6px 18px rgba(8,8,10,0.08);
  --radius:12px;
  --max-width:1100px;
}
*{box-sizing:border-box}
body{font-family:Inter,ui-sans-serif,system-ui,Arial;background:linear-gradient(180deg,#f7f7f9,#ffffff);color:#111;margin:0;min-height:100vh}
.wrap{max-width:var(--max-width);margin:0 auto;padding:1rem}
.site-header{backdrop-filter: blur(6px);background:rgba(255,255,255,0.7);box-shadow:var(--shadow);position:sticky;top:0;z-index:40}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.logo{font-size:1.15rem;letter-spacing:0.4px;color:#111;margin:0;padding:.4rem 0}
.nav button{background:transparent;border:1px solid rgba(0,0,0,0.06);padding:.5rem .7rem;border-radius:10px;cursor:pointer}
.main-grid{display:grid;grid-template-columns:1fr 360px;gap:1.25rem;padding-top:1.25rem}
.products{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.product{background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .28s cubic-bezier(.2,.9,.3,1)}
.product:hover{transform:translateY(-6px)}
.thumb{width:100%;aspect-ratio:16/9;object-fit:cover;background:linear-gradient(135deg,#eee,#ddd);display:block}
.card-body{padding:0.9rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.title{font-weight:600;font-size:1rem}
.meta{color:var(--muted);font-size:0.9rem}
.row{display:flex;align-items:center;justify-content:space-between;margin-top:auto;gap:.5rem}
.price{font-weight:700;color:var(--accent)}
.add-btn{background:var(--accent);color:white;border:none;padding:.5rem .7rem;border-radius:8px;cursor:pointer}
.cart-panel{position:sticky;top:88px;background:var(--card);padding:1rem;border-radius:12px;height:fit-content;box-shadow:var(--shadow);align-self:start}
.cart-items{display:flex;flex-direction:column;gap:.6rem;max-height:240px;overflow:auto;padding-right:6px}
.cart-item{display:flex;gap:.6rem;align-items:center;background:linear-gradient(180deg,#fff,#fbfbfb);padding:.5rem;border-radius:8px;border:1px solid rgba(0,0,0,0.04)}
.cart-item img{width:56px;height:40px;object-fit:cover;border-radius:6px}
.qty{display:flex;gap:.3rem;align-items:center}
.qty button{width:28px;height:28px;border-radius:6px;border:1px solid rgba(0,0,0,0.08);background:#fff;cursor:pointer}
.cart-summary{margin-top:.75rem;padding-top:.5rem;border-top:1px dashed rgba(0,0,0,0.06);display:flex;flex-direction:column;gap:.4rem;font-size:0.95rem}
.grand{font-size:1.05rem}
.checkout-form{display:flex;flex-direction:column;gap:.5rem;margin-top:.6rem}
.checkout-form label{display:flex;flex-direction:column;font-size:.9rem;color:var(--muted)}
.checkout-form input, .checkout-form textarea, .checkout-form select{padding:.5rem;border-radius:8px;border:1px solid rgba(0,0,0,0.06);margin-top:.35rem}
.buttons{display:flex;gap:.5rem;margin-top:.5rem}
.btn{padding:.5rem .8rem;border-radius:8px;border:1px solid rgba(0,0,0,0.06);background:#fff;cursor:pointer}
.primary{background:var(--accent);color:#fff;border:none}
.close{margin-top:.6rem;background:transparent;border:none;color:var(--muted);cursor:pointer}
.site-footer{padding:1.2rem 0;color:var(--muted);font-size:.9rem;text-align:center;margin-top:2rem}
@media (max-width:1000px){
  .products{grid-template-columns:repeat(2,1fr)}
  .main-grid{grid-template-columns:1fr 320px}
}
@media (max-width:720px){
  .main-grid{grid-template-columns:1fr}
  .cart-panel{position:relative;top:0;margin-top:1rem}
  .products{grid-template-columns:1fr}
  .nav button{display:none}
}
