
:root {
  --navy: #0b1424;
  --red: #b31e1e;
  --light: #f5f7fb;
  --text: #111319;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;background:#fff;color:var(--text)}
a{text-decoration:none;color:inherit}
.container{max-width:1200px;margin:0 auto;padding:0 16px}
header{position:sticky;top:0;z-index:50;background:var(--navy);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:12px}
.nav .left{display:flex;align-items:center;gap:16px}
.logo{display:flex;align-items:center;gap:10px}
.logo img{height:36px;width:auto;border-radius:4px}
.brand{font-weight:800;letter-spacing:.5px}
.nav .links a{margin:0 10px;opacity:.9}
.nav .links a:hover{opacity:1}
.cart-btn{background:#fff;color:var(--navy);padding:8px 12px;border-radius:10px;font-weight:700;cursor:pointer}
.cart-count{background:var(--red);color:#fff;border-radius:999px;padding:2px 8px;margin-left:6px;}

.hero{position:relative;overflow:hidden}
.hero .slides{position:relative;height:400px}
.hero .slide{position:absolute;inset:0;opacity:0;transition:opacity .6s}
.hero .slide.active{opacity:1}
.hero .slide img{width:100%;height:400px;object-fit:cover}
.hero .slide .caption{position:absolute;left:5%;bottom:14%;color:#fff;font-size:38px;font-weight:800;text-shadow:0 2px 20px rgba(0,0,0,.45)}

.cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:24px 0}
.cat{background:var(--light);padding:18px;border-radius:16px;border:1px solid #e8ecf7}
.cat:hover{transform:translateY(-2px);transition:.2s}
.cat .title{font-weight:700}

.section{padding:28px 0}
.section h2{margin:0 0 12px 0;font-size:24px}

#deals, #featured, #product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.deal-card, .product-card{border:1px solid #edf0f6;border-radius:18px;padding:12px;background:#fff;box-shadow:0 2px 6px rgba(10,18,35,.04);display:flex;flex-direction:column;gap:8px}
.deal-card .imgwrap, .product-card .imgwrap{background:#fff;border-radius:14px;overflow:hidden;height:220px;display:flex;align-items:center;justify-content:center}
.deal-card img, .product-card img{width:100%;height:100%;object-fit:contain;transition:transform .25s}
.product-card:hover img{transform:scale(1.06)}
.deal-badge{position:absolute;background:var(--red);color:#fff;padding:6px 10px;border-radius:999px;font-size:12px;margin:10px}
.deal-card{position:relative}
.price{display:flex;align-items:center;gap:8px}
.price .mrp{text-decoration:line-through;color:#666}
.price .sp{font-weight:800;color:var(--navy)}
.add-btn{margin-top:auto;background:var(--navy);color:#fff;border:none;padding:10px;border-radius:12px;cursor:pointer}
.add-btn:hover{opacity:.9}
.name{font-size:16px;margin:6px 0 2px 0}

.controls{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.controls input,.controls select{padding:10px;border-radius:10px;border:1px solid #e1e6f3;background:#fff}

.brands{overflow:hidden;white-space:nowrap;border:1px solid #edf0f6;border-radius:14px;padding:10px;background:var(--light)}
.brands-track{display:inline-flex;gap:24px;animation:marquee 18s linear infinite}
.brands img{height:40px;filter:grayscale(10%)}
@keyframes marquee { from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

.back-to-top{position:fixed;right:20px;bottom:20px;background:var(--red);color:#fff;border:none;padding:12px 14px;border-radius:999px;opacity:0;pointer-events:none;transition:.2s;font-weight:800}
.back-to-top.show{opacity:1;pointer-events:all}

footer{background:#0d1627;color:#d8dff1;margin-top:40px}
footer .container{padding:22px 16px}
footer .copy{opacity:.9}

.cart-drawer{position:fixed;top:0;right:-420px;width:360px;max-width:95vw;height:100vh;background:#fff;box-shadow:-8px 0 24px rgba(10,18,35,.2);z-index:100;transition:right .3s;display:flex;flex-direction:column}
.cart-open .cart-drawer{right:0}
.cart-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #eee}
.cart-body{flex:1;overflow:auto;padding:12px 16px;display:flex;flex-direction:column;gap:10px}
.cart-footer{border-top:1px solid #eee;padding:12px 16px;display:flex;flex-direction:column;gap:10px}
.cart-row{display:grid;grid-template-columns:56px 1fr auto auto;gap:8px;align-items:center;border-bottom:1px dashed #eee;padding-bottom:8px}
.cart-row img{width:56px;height:56px;object-fit:contain;border:1px solid #eee;border-radius:8px}
.cart-row .rmv{background:none;border:none;font-size:20px;color:#999;cursor:pointer}
.cart-row .qty{display:flex;align-items:center;gap:8px}
.cart-row .qbtn{background:#f0f3fb;border:none;padding:4px 8px;border-radius:6px;cursor:pointer}
.cart-total{font-weight:800}
.btn-primary{background:var(--red);color:#fff;border:none;padding:10px;border-radius:12px;cursor:pointer}

.contact-card{display:grid;grid-template-columns:1fr;gap:12px}
.contact-form input, .contact-form textarea{width:100%;padding:10px;border:1px solid #e1e6f3;border-radius:10px}
.contact-form button{background:var(--navy);color:#fff;padding:10px;border:none;border-radius:12px}

.checkout-wrap{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width:900px){ .checkout-wrap{grid-template-columns:1fr;} }
.sum-list{list-style:none;padding:0;margin:0}
.sum-list li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px dashed #eee}
.sum-total{display:flex;justify-content:space-between;margin-top:10px;font-size:18px}
