/* ================= Amon Electric Accessories ================= */
:root {
  --bg: #0b0e14;
  --bg2: #11151f;
  --bg3: #181d2b;
  --border: #232a3b;
  --text: #e8ecf4;
  --muted: #9aa3b5;
  --primary: #2563eb;
  --primary2: #3b82f6;
  --accent: #22d3ee;
  --green: #22c55e;
  --green2: #16a34a;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary2); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Announcement ---------- */
.announcement { background: linear-gradient(90deg, var(--primary), #4f46e5); color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 8px 16px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(11,14,20,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logo img { height: 42px; width: 42px; object-fit: contain; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 18px; display: block; }
.brand-tag { font-size: 12px; color: var(--muted); }
.header-search { flex: 1; display: flex; max-width: 480px; min-width: 220px; }
.header-search input { flex: 1; background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: 10px 0 0 10px; font-size: 14px; outline: none; }
.header-search input:focus { border-color: var(--primary); }
.header-search button { background: var(--primary); border: none; color: #fff; padding: 0 16px; border-radius: 0 10px 10px 0; font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.whatsapp-btn { background: var(--green2); color: #fff; padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.whatsapp-btn:hover { background: var(--green); color: #fff; }
.cart-btn { position: relative; background: var(--bg3); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 10px; font-size: 18px; }
.cart-btn:hover { border-color: var(--primary); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(800px 400px at 80% 0%, rgba(37,99,235,.18), transparent), radial-gradient(600px 300px at 10% 100%, rgba(34,211,238,.12), transparent), var(--bg2); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; padding: 70px 20px; align-items: center; }
.hero-title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1.15; background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 16px 0 22px; max-width: 520px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge { background: var(--bg3); border: 1px solid var(--border); padding: 7px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: .2s; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary2); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary2); }
.btn-light { background: #fff; color: #0b0e14; }
.btn-light:hover { background: var(--accent); }
.btn-whatsapp { background: var(--green2); color: #fff; }
.btn-whatsapp:hover { background: var(--green); }
.btn-block { width: 100%; }
.hero-art { position: relative; min-height: 260px; }
.art-box { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 22px; font-size: 60px; box-shadow: var(--shadow); border: 1px solid var(--border); background: linear-gradient(145deg, var(--bg3), var(--bg2)); }
.art-big { width: 200px; height: 200px; top: 10px; right: 60px; }
.art-small { width: 120px; height: 120px; bottom: 0; right: 200px; font-size: 40px; }
.art-small2 { width: 90px; height: 90px; top: 0; right: 20px; font-size: 32px; }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg2); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 24px 20px; text-align: center; }
.stat strong { display: block; font-size: 26px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Products ---------- */
.products { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-title { font-size: 28px; font-weight: 800; }
.section-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip { background: var(--bg3); border: 1px solid var(--border); color: var(--muted); padding: 7px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.cat-chip:hover { border-color: var(--primary); color: var(--text); }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sort-select { background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.product-img { position: relative; aspect-ratio: 3/2; background: var(--bg3); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); font-size: 14px; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.tag-discount { background: var(--red); color: #fff; }
.tag-bulk { background: var(--amber); color: #111; }
.tag-featured { background: var(--primary); color: #fff; }
.tag-out { background: #374151; color: #fff; }
.product-info { padding: 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: 15px; font-weight: 600; line-height: 1.35; min-height: 40px; }
.product-price-row { display: flex; align-items: center; gap: 10px; }
.price { font-size: 18px; font-weight: 800; color: var(--accent); }
.old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.bulk-price { font-size: 12px; color: var(--green); font-weight: 600; }
.product-actions { display: flex; gap: 8px; margin-top: 10px; }
.product-actions .btn { flex: 1; padding: 9px 10px; font-size: 13px; text-align: center; }
.btn-cart { background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; }
.btn-cart:hover { background: var(--primary2); }
.btn-bulk { background: transparent; border: 1px solid var(--green); color: var(--green); border-radius: 8px; font-weight: 600; }
.btn-bulk:hover { background: var(--green); color: #fff; }
.stock-info { font-size: 12px; color: var(--muted); }

.load-more-wrap { text-align: center; margin-top: 30px; }
.empty-state { text-align: center; padding: 50px 0; color: var(--muted); font-size: 16px; }

/* ---------- Why / Bulk CTA ---------- */
.why { padding: 60px 0; background: var(--bg2); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 26px; }
.why-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.why-icon { font-size: 34px; margin-bottom: 10px; }
.why-card h3 { font-size: 16px; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: 14px; }
.bulk-cta { padding: 50px 0; background: linear-gradient(90deg, var(--primary), #4f46e5); }
.bulk-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bulk-cta h2 { font-size: 26px; color: #fff; }
.bulk-cta p { color: rgba(255,255,255,.85); margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: #080b11; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 50px 20px 30px; }
.footer-col h4 { margin-bottom: 14px; font-size: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; font-size: 13px; color: var(--muted); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dev-credit { color: var(--muted); }
.dev-credit a { color: var(--accent); font-weight: 600; }

/* ---------- Cart Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; opacity: 0; pointer-events: none; transition: .25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: -460px; width: 440px; max-width: 100vw; height: 100vh; background: var(--bg2); border-left: 1px solid var(--border); z-index: 210; display: flex; flex-direction: column; transition: right .3s ease; box-shadow: -10px 0 30px rgba(0,0,0,.4); }
.cart-drawer.open { right: 0; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-head h3 { font-size: 18px; }
.close-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text); width: 34px; height: 34px; border-radius: 8px; font-size: 18px; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--muted); display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #000; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--accent); font-weight: 700; }
.bulk-tag { display: inline-block; background: rgba(245,158,11,.15); color: var(--amber); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-control button { background: var(--bg2); border: 1px solid var(--border); color: var(--text); width: 26px; height: 26px; border-radius: 6px; font-size: 14px; }
.qty-control .qty { min-width: 28px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-item-remove { background: none; border: none; color: var(--red); font-size: 16px; align-self: flex-start; }
.cart-foot { border-top: 1px solid var(--border); padding: 16px 20px; background: var(--bg3); }
.cart-summary { margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 3px 0; }
.summary-row.total { font-size: 17px; font-weight: 800; color: var(--text); border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; }
.checkout-note p { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkout-note input, .checkout-note textarea, .checkout-note select { width: 100%; background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 9px 12px; border-radius: 8px; font-size: 13px; outline: none; margin-bottom: 8px; font-family: inherit; }
.checkout-note textarea { resize: vertical; min-height: 50px; }
.checkout-note input:focus, .checkout-note textarea:focus { border-color: var(--primary); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--bg3); border: 1px solid var(--green); color: var(--text); padding: 12px 22px; border-radius: 10px; font-size: 14px; z-index: 300; opacity: 0; transition: .3s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero-art { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .header-search { order: 3; flex-basis: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
}
