:root{
  --brand:#16a34a;
  --brand-dark:#15803d;
  --text-dark:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --bg:#f8faf9;
  --amber:#d97706;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--text-dark);background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{max-width:1240px;margin:0 auto;padding:0 20px}

/* Top utility bar */
.top-bar{background:var(--text-dark);color:#fff;font-size:12.5px;padding:7px 0;text-align:center}

/* Header */
.site-header{border-bottom:1px solid var(--border);position:sticky;top:0;background:#fff;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;gap:20px}
.logo{font-size:22px;font-weight:800;color:var(--brand-dark);display:flex;align-items:center;gap:8px;white-space:nowrap}
.logo img{height:38px}
.main-nav{display:flex;gap:22px}
.main-nav a{font-weight:600;font-size:14.5px;color:var(--text-dark)}
.main-nav a:hover{color:var(--brand-dark)}
.search-box{flex:1;max-width:420px;display:flex}
.search-box input{flex:1;padding:9px 14px;border:1px solid var(--border);border-radius:8px 0 0 8px;font-size:14px}
.search-box button{padding:9px 16px;background:var(--brand);color:#fff;border:none;border-radius:0 8px 8px 0;cursor:pointer;font-weight:600}
.header-actions{display:flex;align-items:center;gap:16px}
.header-actions a{font-size:20px;position:relative}
.cart-count{position:absolute;top:-8px;right:-10px;background:var(--brand);color:#fff;font-size:11px;font-weight:700;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center}
.menu-toggle-btn{display:none;background:none;border:none;font-size:24px;cursor:pointer}

/* Category chips nav */
.cat-strip{background:var(--bg);border-bottom:1px solid var(--border);overflow-x:auto;white-space:nowrap}
.cat-strip .container{display:flex;gap:22px;padding-top:10px;padding-bottom:10px}
.cat-strip a{font-size:14px;font-weight:600;color:var(--text-dark);flex-shrink:0}
.cat-strip a:hover{color:var(--brand-dark)}

/* Hero */
.hero{background:linear-gradient(120deg,#ecfdf5,#f0fdf4);padding:50px 0;text-align:center}
.hero h1{font-size:32px;margin:0 0 10px;color:var(--text-dark)}
.hero p{color:var(--muted);font-size:16px;margin:0 0 20px}
.hero .btn-cta{display:inline-block;background:var(--brand);color:#fff;padding:12px 26px;border-radius:8px;font-weight:700}

/* Sections */
.section{padding:40px 0}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.section-head h2{font-size:22px;margin:0}
.section-head a{font-size:14px;font-weight:600;color:var(--brand-dark)}

.cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px}
.cat-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;text-align:center;padding:16px 10px;transition:box-shadow .15s}
.cat-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.08)}
.cat-card img{width:64px;height:64px;object-fit:cover;border-radius:50%;margin:0 auto 10px;background:#f1f5f9}
.cat-card .name{font-weight:600;font-size:14.5px}

.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}
.product-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.product-card .thumb{aspect-ratio:1/1;background:#f1f5f9;overflow:hidden}
.product-card .thumb img{width:100%;height:100%;object-fit:cover}
.product-card .body{padding:12px 14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.product-card .vendor{color:var(--muted);font-size:12px}
.product-card .name{font-weight:600;font-size:14.5px;line-height:1.3;min-height:2.5em}
.product-card .price{font-weight:700;font-size:16px}
.product-card .mrp{color:var(--muted);text-decoration:line-through;font-size:13px;font-weight:400;margin-left:6px}
.product-card .btn-add{margin-top:auto;background:var(--brand);color:#fff;border:none;padding:9px;border-radius:8px;font-weight:700;cursor:pointer;font-size:13.5px}
.product-card .btn-add:hover{background:var(--brand-dark)}

/* Buttons / forms generic */
.btn{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border-radius:8px;border:1px solid var(--border);background:#fff;color:var(--text-dark);font-size:14.5px;cursor:pointer;font-weight:600}
.btn-brand{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-brand:hover{background:var(--brand-dark)}
.form-group{margin-bottom:14px}
.form-group label{display:block;font-weight:600;font-size:13.5px;margin-bottom:5px}
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],select,textarea{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:14.5px;font-family:inherit
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:640px){.form-row{grid-template-columns:1fr}}

/* Product detail */
.pdp{display:grid;grid-template-columns:460px 1fr;gap:40px;padding:32px 0}
@media (max-width:900px){.pdp{grid-template-columns:1fr}}
.pdp-gallery img{border-radius:12px;border:1px solid var(--border);aspect-ratio:1/1;object-fit:cover}
.pdp-thumbs{display:flex;gap:8px;margin-top:10px}
.pdp-thumbs img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid var(--border);cursor:pointer}
.pdp-title{font-size:26px;font-weight:700;margin:0 0 6px}
.pdp-price{font-size:24px;font-weight:800;margin:10px 0}
.qty-box{display:flex;align-items:center;border:1px solid var(--border);border-radius:8px;width:fit-content}
.qty-box button{width:36px;height:36px;border:none;background:#fff;font-size:18px;cursor:pointer}
.qty-box input{width:46px;text-align:center;border:none}
.stock-badge{display:inline-block;background:#dcfce7;color:var(--brand-dark);padding:3px 10px;border-radius:20px;font-size:12.5px;font-weight:600}

/* Cart / Checkout */
.cart-table{width:100%;border-collapse:collapse}
.cart-table td,.cart-table th{padding:12px;border-bottom:1px solid var(--border);text-align:left;font-size:14.5px}
.cart-table img{width:56px;height:56px;object-fit:cover;border-radius:8px}
.summary-box{border:1px solid var(--border);border-radius:12px;padding:20px}
.summary-row{display:flex;justify-content:space-between;font-size:14.5px;margin-bottom:10px}
.summary-row.total{font-weight:800;font-size:17px;border-top:1px solid var(--border);padding-top:12px}
.payment-option{border:1px solid var(--border);border-radius:10px;padding:14px;margin-bottom:10px;cursor:pointer}
.payment-option.active{border-color:var(--brand);background:#f0fdf4}
.payment-option label{font-weight:700;display:flex;align-items:center;gap:8px;cursor:pointer}
.payment-detail{display:none;margin-top:10px;padding-top:10px;border-top:1px dashed var(--border);font-size:14px}
.payment-option.active .payment-detail{display:block}

/* Footer */
.site-footer{background:#0f172a;color:#cbd5e1;padding:44px 0 20px;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:26px;margin-bottom:26px}
.footer-grid h4{color:#fff;font-size:14.5px;margin:0 0 12px}
.footer-grid a{display:block;color:#94a3b8;font-size:13.5px;margin-bottom:8px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:18px;font-size:12.5px;color:#94a3b8;text-align:center}

.alert{padding:12px 16px;border-radius:8px;margin-bottom:18px;font-size:14.5px}
.alert-success{background:#dcfce7;color:var(--brand-dark)}
.alert-error{background:#fee2e2;color:#dc2626}

.breadcrumb{font-size:13px;color:var(--muted);margin:16px 0}
.breadcrumb a{color:var(--muted)}

@media (max-width:900px){
  .main-nav,.search-box{display:none}
  .menu-toggle-btn{display:block}
}
