/* SREE Medicare — storefront styles (teal medical theme) */
:root {
  --teal: #0e7490;
  --teal-dark: #155e75;
  --teal-light: #22a6c3;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --sree: #16a34a;
  --oem: #b45309;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; padding-bottom: 72px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--teal), var(--teal-light)); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand-txt b { color: var(--teal); }
.hdr-cart { position: relative; width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); background: #ecfeff; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--sree); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 55%, var(--teal-light) 100%); color: #fff; }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 44px 16px 40px; }
.hero-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.hero p { max-width: 640px; font-size: 15.5px; color: rgba(255,255,255,.94); margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 15px; font-weight: 600; padding: 12px 24px; border-radius: 11px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: #fff; color: var(--teal-dark); border-color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-full { width: 100%; }

/* Filters */
.filters { position: sticky; top: 59px; z-index: 30; background: var(--bg); padding: 14px 16px 8px; border-bottom: 1px solid var(--line); }
.search-wrap { max-width: 1120px; margin: 0 auto 12px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--muted); }
.search-wrap input { flex: 1; border: none; outline: none; font: inherit; color: var(--ink); background: transparent; }
.chips { max-width: 1120px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); cursor: pointer; white-space: nowrap; }
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Grid */
.wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-cat { font-size: 11px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.card h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.card-specs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card-brands { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.card-brands b { color: var(--ink); font-weight: 600; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; border-radius: 6px; margin-bottom: 10px; }
.badge.sree { background: #dcfce7; color: #166534; }
.badge.oem { background: #fef3c7; color: #92400e; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 34px; height: 36px; border: none; background: #f1f5f9; font-size: 18px; font-weight: 700; color: var(--teal-dark); cursor: pointer; }
.qty input { width: 42px; height: 36px; border: none; text-align: center; font: inherit; font-weight: 600; }
.add-btn { flex: 1; height: 38px; border: none; border-radius: 10px; background: var(--teal); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.add-btn.added { background: var(--sree); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.disclaimer { margin-top: 26px; font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }

/* Drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: #fff; z-index: 60; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.18); }
.drawer.open { transform: translateX(0); }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-hd h2 { font-size: 18px; }
.drawer-x { width: 34px; height: 34px; border: none; background: #f1f5f9; border-radius: 9px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.enq-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.enq-row .er-name { flex: 1; font-size: 14px; font-weight: 500; }
.enq-row .er-cat { font-size: 11px; color: var(--muted); }
.enq-row .qty { transform: scale(.9); }
.er-del { border: none; background: none; color: #ef4444; cursor: pointer; font-size: 18px; }
.enq-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.drawer-form { border-top: 1px solid var(--line); padding: 16px 18px; background: var(--bg); }
.drawer-form h3 { font-size: 15px; margin-bottom: 10px; }
.drawer-form input, .drawer-form textarea { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 9px; background: #fff; }
.drawer-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.wa-link { display: block; text-align: center; margin-top: 10px; font-size: 13.5px; color: var(--teal-dark); font-weight: 600; }
.form-msg { margin-top: 10px; font-size: 13.5px; padding: 10px 12px; border-radius: 9px; }
.form-msg.ok { background: #dcfce7; color: #166534; }
.form-msg.err { background: #fee2e2; color: #991b1b; }

/* Sticky cart (mobile) */
.sticky-cart { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; border: none; background: var(--teal); color: #fff; font: inherit; font-weight: 600; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
.sticky-go { font-size: 14px; }

/* Footer */
.ftr { background: #0f172a; color: #cbd5e1; margin-bottom: 0; }
.ftr-in { max-width: 1120px; margin: 0 auto; padding: 30px 16px 16px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.ftr-in strong { color: #fff; }
.ftr-in p { font-size: 13px; max-width: 360px; margin-top: 4px; }
.ftr-links { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.ftr-links a:hover { color: #fff; }
.ftr-legal { max-width: 1120px; margin: 0 auto; padding: 12px 16px 26px; font-size: 11.5px; color: #64748b; border-top: 1px solid #1e293b; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .sticky-cart { display: none !important; }
}
