/* BuzzCart.in : styles */
:root {
  --bg: #FFFCF5;
  --surface: #FFFFFF;
  --ink: #1B1A17;
  --ink-2: #57534A;
  --line: #ECE6D8;
  --brand: #FFC21A;        /* buzz yellow */
  --brand-ink: #1B1A17;
  --brand-soft: #FFF3CC;
  --accent: #0F6B5C;       /* trust green */
  --accent-soft: #E3F2EE;
  --danger: #B3261E;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27,26,23,.06), 0 8px 24px rgba(27,26,23,.06);
  --max: 1160px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* announcement + header */
.announce { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 8px 16px; }
.announce b { color: var(--brand); }
header.site { position: sticky; top: 0; z-index: 30; background: rgba(255,252,245,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.logo svg { width: 34px; height: 34px; }
.logo .dot { color: var(--ink-2); font-weight: 600; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { background: var(--brand); color: var(--brand-ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; }
@media (max-width: 720px) { .nav-links { display: none; } .cart-btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 2px 0 #D9A200; }
.btn-primary:hover { background: #FFCB3D; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33312C; }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* hero */
.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: #7A5A00; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--brand) 62%); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 0; list-style: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--accent); }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-art a { border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); box-shadow: var(--shadow); }
.hero-art a:first-child { grid-column: span 2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.hero-art a:first-child img { aspect-ratio: 16 / 9; object-fit: contain; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 28px; } }

/* sections */
section.block { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-2); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb { position: relative; display: block; background: var(--brand-soft); }
.card .thumb img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.badge.hot { background: var(--ink); color: var(--brand); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1rem; margin: 0; }
.card h3 a { text-decoration: none; }
.card .hook { font-size: .88rem; color: var(--ink-2); margin: 0; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-weight: 800; font-size: 1.2rem; }
.compare { color: var(--ink-2); text-decoration: line-through; font-size: .9rem; }
.card .btn { padding: 11px 16px; font-size: .92rem; }

/* combo banner */
.combo-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.combo-band h2 { color: #fff; }
.combo-band p { color: #D9D4C7; }
.combo-band .tag { color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.combo-band img { border-radius: var(--radius); background: var(--brand-soft); }
@media (max-width: 760px) { .combo-band { grid-template-columns: 1fr; padding: 22px; } }

/* steps + features */
.steps, .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step, .feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.feature svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.step p, .feature p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--ink-2); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--ink-2); margin: 0 0 14px; }

/* product page */
.crumbs { font-size: .85rem; color: var(--ink-2); padding: 18px 0 6px; }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 10px 0 40px; align-items: start; }
.pdp .gallery { border-radius: 20px; overflow: hidden; background: var(--brand-soft); position: sticky; top: 84px; }
.pdp .gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.pdp .hook { font-size: 1.08rem; color: var(--ink-2); }
.pdp .price { font-size: 1.8rem; }
.tax-note { font-size: .82rem; color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 40px; text-align: center; border: 0; font: inherit; font-weight: 700; background: none; }
.buy-row { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 150px; }
.perks { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 8px; font-size: .92rem; font-weight: 600; color: #0B4A40; }
.perks div { display: flex; gap: 8px; align-items: center; }
.perks svg { width: 18px; height: 18px; flex: none; }
.pdp-section { margin-top: 26px; }
.pdp-section ul, .pdp-section ol { padding-left: 20px; margin: 0; }
.pdp-section li { margin-bottom: 6px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 22px; } .pdp .gallery { position: static; } }

/* cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(27,26,23,.4); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--bg); z-index: 41; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.12); }
body.cart-open .drawer { transform: none; }
body.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.25rem; margin: 0; }
.icon-btn { border: 0; background: none; cursor: pointer; padding: 6px; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 64px; border-radius: 10px; background: var(--brand-soft); object-fit: cover; }
.line-item .name { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.line-item .mini-qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; }
.line-item .mini-qty button { border: 0; background: none; width: 28px; height: 28px; cursor: pointer; font-size: 1rem; }
.line-item .remove { border: 0; background: none; color: var(--ink-2); font-size: .8rem; cursor: pointer; text-decoration: underline; margin-left: 8px; }
.drawer-foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.ship-meter { font-size: .86rem; margin-bottom: 10px; }
.meter { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.totals { display: grid; gap: 6px; margin: 10px 0 14px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 800; font-size: 1.1rem; border-top: 1px dashed var(--line); padding-top: 8px; }
.empty { text-align: center; color: var(--ink-2); padding: 40px 0; }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; padding: 24px 0 56px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .err { color: var(--danger); font-size: .82rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--brand-soft); }
.pay-opt input { margin-top: 4px; accent-color: var(--ink); }
.pay-opt small { display: block; color: var(--ink-2); }
.summary .line-item { grid-template-columns: 52px 1fr auto; }
.summary .line-item img { width: 52px; height: 52px; }
.hp { display: none; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .summary-col { order: -1; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* thank you */
.thanks { max-width: 640px; margin: 0 auto; padding: 40px 0 64px; text-align: center; }
.thanks .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; }
.thanks .tick svg { width: 38px; height: 38px; }
.thanks .panel { text-align: left; margin-top: 22px; }
.order-id { font-family: ui-monospace, Consolas, monospace; background: var(--brand-soft); padding: 2px 8px; border-radius: 6px; }

/* content pages */
.page { max-width: 780px; margin: 0 auto; padding: 32px 0 64px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page h2 { font-size: 1.25rem; margin-top: 1.6em; }
.page p, .page li { color: #36342E; }
.page .updated { color: var(--ink-2); font-size: .9rem; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }
.info-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.info-card dt { font-weight: 700; }
.info-card dd { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) { .info-card dl { grid-template-columns: 1fr; gap: 2px; } .info-card dd { margin-bottom: 8px; } }

/* footer */
footer.site { background: var(--ink); color: #CFC9BA; padding: 44px 0 28px; margin-top: 32px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer.site h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { text-decoration: none; color: #CFC9BA; }
footer.site a:hover { color: var(--brand); }
footer.site .logo { color: #fff; margin-bottom: 10px; }
.legal-line { border-top: 1px solid #3A3832; margin-top: 30px; padding-top: 18px; font-size: .82rem; color: #A39D8E; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* whatsapp float + toast */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 25; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; transition: all .25s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* COD on/off (set codEnabled in config.js) */
.prepaid-only { display: none !important; }
.no-cod .prepaid-only { display: revert !important; }
.no-cod .cod-only { display: none !important; }
.notice { background: #FDECEA; color: #8C1D18; border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin-bottom: 12px; }
