/* ArunSelvi Crackers Shop – storefront styles (mobile first) */

/* Self-hosted font (OFL): Baloo Thambi 2 – Tamil + Latin */
@font-face { font-family: "Baloo Thambi 2"; font-style: normal; font-weight: 500; font-display: swap; src: url("../vendor/fonts/baloo-thambi-2-tamil-500-normal.woff2") format("woff2"); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }
@font-face { font-family: "Baloo Thambi 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("../vendor/fonts/baloo-thambi-2-tamil-700-normal.woff2") format("woff2"); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }
@font-face { font-family: "Baloo Thambi 2"; font-style: normal; font-weight: 500; font-display: swap; src: url("../vendor/fonts/baloo-thambi-2-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Baloo Thambi 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("../vendor/fonts/baloo-thambi-2-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
    --maroon: #5a0f1c;
    --maroon-2: #7d1426;
    --gold: #f4b400;
    --gold-2: #ffcf5c;
    --saffron: #ff7a00;
    --cream: #fff8ee;
    --ink: #2b1a14;
    --muted: #7a6a62;
    --line: #f0e2cf;
    --ok: #0f7b4a;
    --radius: 14px;
    --shadow: 0 6px 20px rgba(90, 15, 28, .08);
    --font: "Baloo Thambi 2", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    font-size: 16px;
    line-height: 1.45;
}
body.has-cart { padding-bottom: 72px; }
@media (min-width: 992px) { body.has-cart { padding-bottom: 0; } }
a { color: var(--maroon-2); }
a:hover { color: var(--maroon); }
.text-maroon { color: var(--maroon) !important; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: 6px 12px; border-radius: 8px; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 600; }
.btn-maroon { background: var(--maroon-2); color: #fff; border: 0; }
.btn-maroon:hover, .btn-maroon:focus { background: var(--maroon); color: #fff; }
.btn-outline-maroon { border: 1.5px solid var(--maroon-2); color: var(--maroon-2); background: transparent; }
.btn-outline-maroon:hover { background: var(--maroon-2); color: #fff; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #3a1900; border: 0; box-shadow: 0 4px 12px rgba(244, 180, 0, .35); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold); color: #2a1200; }
.btn-whatsapp { background: #1fa855; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #178a45; color: #fff; }

/* Top bar + header */
.topbar { background: var(--maroon); color: #ffe6b3; padding: 4px 0; }
.topbar a { color: #ffe6b3; text-decoration: none; }
.site-header { background: #fff; border-bottom: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.site-header .navbar { padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1 1 0; margin-right: 0; }
@media (min-width: 992px) { .brand { flex: 0 1 auto; } }
.brand-mark {
    width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, var(--gold-2), var(--saffron) 55%, var(--maroon-2));
    color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -1px; font-style: italic;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-weight: 700; color: var(--maroon); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; color: var(--muted); }
@media (min-width: 576px) { .brand-name { font-size: 19px; } }
.btn-cart { background: var(--cream); border: 1px solid var(--line); width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: var(--maroon); font-size: 20px; }
.btn-cart.active { background: var(--maroon-2); border-color: var(--maroon-2); color: #fff; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--saffron); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.navbar-toggler { border: 0; font-size: 26px; color: var(--maroon); padding: 2px 6px; }
.navbar-toggler:focus { box-shadow: none; }
.nav-link { font-weight: 600; color: var(--ink); }
.nav-link.active, .nav-link:hover { color: var(--maroon-2) !important; }
.cat-menu { max-height: 70vh; overflow: auto; }
.site-search { position: relative; max-width: 520px; }
.site-search .input-group-text { background: var(--cream); border-color: var(--line); color: var(--muted); border-radius: 999px 0 0 999px; }
.site-search .form-control { border-color: var(--line); border-radius: 0 999px 999px 0; }
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1050; max-height: 60vh; overflow: auto; border-radius: 12px; }
.search-suggest .list-group-item { display: flex; justify-content: space-between; gap: 8px; }
.search-suggest small { color: var(--muted); }

/* Hero */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: 36px 0 40px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 207, 92, .35), transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(255, 122, 0, .35), transparent 40%),
        linear-gradient(135deg, var(--maroon) 0%, #3a0812 100%);
}
.hero-sparks {
    position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, #ffe08a, transparent),
        radial-gradient(2px 2px at 70% 15%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 40% 70%, #ffcf5c, transparent),
        radial-gradient(2px 2px at 85% 60%, #ffd9a0, transparent),
        radial-gradient(1.5px 1.5px at 60% 85%, #fff, transparent),
        radial-gradient(2px 2px at 10% 55%, #ffcf5c, transparent);
}
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; font-size: 14px; color: var(--gold-2); }
.hero-title { font-size: clamp(30px, 7vw, 54px); font-weight: 700; letter-spacing: .5px; margin: 12px 0 4px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.hero-loc { color: #ffe6b3; margin-bottom: 16px; }
.hero-loc a { color: #fff; font-weight: 600; }
.hero-search { position: relative; display: flex; gap: 8px; max-width: 560px; }
.hero-search .form-control { border-radius: 999px; border: 0; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 22px 24px; }
.hero-card-title { color: var(--gold-2); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.hero-card li { margin-bottom: 4px; }

.offer-strip { background: #fff3d6; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.offer-strip i { color: var(--saffron); font-size: 22px; }

/* Sections */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.section-head h2 { font-size: 22px; font-weight: 700; color: var(--maroon); margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-head { background: linear-gradient(135deg, var(--maroon), #3a0812); color: #fff; padding: 18px 0; }
.page-head a { color: var(--gold-2); }
.page-head .breadcrumb-item.active, .page-head .breadcrumb-item + .breadcrumb-item::before { color: #ffe6b3; }
.page-title { font-size: clamp(22px, 5vw, 32px); font-weight: 700; margin: 0; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 576px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-tile {
    --c1: var(--maroon-2); --c2: var(--gold);
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; min-height: 112px;
    border-radius: var(--radius); text-decoration: none; color: #fff; overflow: hidden;
    background: linear-gradient(150deg, var(--c1), #2a0610);
    background: linear-gradient(150deg, var(--c1), color-mix(in srgb, var(--c1) 70%, #000));
    box-shadow: var(--shadow); transition: transform .15s ease;
}
.cat-tile:hover { transform: translateY(-2px); color: #fff; }
.cat-tile::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--c2); opacity: .35; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cat-num { font-size: 13px; opacity: .7; position: relative; }
.cat-name { font-weight: 700; font-size: 17px; line-height: 1.1; position: relative; }
.cat-ta { font-size: 13px; opacity: .9; position: relative; }
.cat-count { margin-top: auto; font-size: 12px; opacity: .8; position: relative; }

.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip { flex: none; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.chip.active, .chip:hover { background: var(--maroon-2); color: #fff; border-color: var(--maroon-2); }

.filter-toggle { margin-top: 10px; }
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-top: 10px; }

/* Product card */
.product-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #fbefe0; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.is-placeholder { aspect-ratio: 16 / 10; }
.product-placeholder {
    --c1: var(--maroon-2); --c2: var(--gold);
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: #fff; text-align: center; padding: 8px;
    background: radial-gradient(circle at 50% 35%, var(--c2) 0%, transparent 45%), linear-gradient(160deg, var(--c1), #2a0610);
    background: radial-gradient(circle at 50% 35%, var(--c2) 0%, transparent 45%), linear-gradient(160deg, var(--c1), color-mix(in srgb, var(--c1) 60%, #000));
}
.product-placeholder i { font-size: 34px; color: #fff; text-shadow: 0 0 12px var(--c2); }
.product-placeholder span { font-size: 12px; opacity: .9; font-weight: 600; letter-spacing: .3px; }
.product-placeholder.big { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.product-placeholder.big i { font-size: 72px; }
.badge-save { position: absolute; top: 8px; left: 8px; background: #d62828; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge-flag { position: absolute; top: 8px; right: 8px; background: var(--gold); color: #3a1900; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.product-body { padding: 10px 10px 12px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.product-name { font-size: 15px; font-weight: 700; line-height: 1.2; margin: 2px 0 0; }
.product-name a { color: var(--ink); text-decoration: none; }
.product-name a:hover { color: var(--maroon-2); }
.product-ta { font-size: 13px; color: var(--muted); line-height: 1.25; }
.product-unit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 6px; }
.price { font-size: 20px; font-weight: 700; color: var(--maroon); }
.mrp { font-size: 13px; color: var(--muted); }
.save { font-size: 13px; font-weight: 600; color: var(--ok); }
.stock-low { font-size: 12px; color: #c05600; font-weight: 600; }
.add-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
@media (min-width: 768px) { .add-form { flex-direction: row; } .add-form .qty-stepper { flex: none; } .add-form .btn-add { flex: 1; } }
.add-form-lg { flex-direction: row; max-width: 420px; }
.add-form-lg .btn-add { flex: 1; }
.btn-add { background: var(--maroon-2); color: #fff; border: 0; padding: 8px 12px; }
.btn-add:hover, .btn-add:focus { background: var(--maroon); color: #fff; }
.btn-add.added { background: var(--ok); }

.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty-stepper input { width: 46px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; padding: 6px 0; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { border: 0; background: transparent; width: 36px; height: 38px; color: var(--maroon-2); font-size: 18px; display: grid; place-items: center; }
.qty-btn:hover { background: var(--cream); }
.qty-stepper .qty-btn:first-child { margin-right: auto; }
.add-form .qty-stepper { justify-content: space-between; }
.qty-sm .qty-btn { width: 30px; height: 32px; }
.qty-sm input { width: 40px; }

/* Product page */
.product-title { font-size: clamp(24px, 5vw, 34px); font-weight: 700; color: var(--maroon); margin: 4px 0; }
.price-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0 16px; }
.gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid var(--line); border-radius: 10px; padding: 0; width: 72px; height: 54px; overflow: hidden; background: #fff; flex: none; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.safety-box { background: #eef8f1; border: 1px solid #cde9d6; color: #135d33; padding: 10px 12px; border-radius: 12px; }

/* Cart */
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "thumb info" "thumb qty" "sub sub"; gap: 6px 12px; padding: 12px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line.has-error { background: #fff5f5; }
@media (min-width: 768px) { .cart-line { grid-template-columns: 64px 1fr auto 130px; grid-template-areas: "thumb info qty sub"; } }
.cart-thumb { grid-area: thumb; width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(150deg, var(--maroon-2), #3a0812); display: grid; place-items: center; color: var(--gold-2); font-size: 22px; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { grid-area: info; min-width: 0; }
.cart-info a { color: var(--ink); text-decoration: none; }
.cart-qty { grid-area: qty; }
.cart-sub { grid-area: sub; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
@media (min-width: 768px) { .cart-sub { flex-direction: column; align-items: flex-end; } }

.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.totals { margin: 0; }
.totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals dt { font-weight: 500; }
.totals dd { margin: 0; font-weight: 600; }
.totals .grand { border-top: 2px dashed var(--line); margin-top: 6px; padding-top: 10px; font-size: 20px; color: var(--maroon); }
.totals .grand dt, .totals .grand dd { font-weight: 700; }
.checkout-items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--line); font-size: 14px; }

/* Checkout form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.form-card-title { font-size: 18px; font-weight: 700; color: var(--maroon); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.form-card-title span { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #3a1900; display: grid; place-items: center; font-size: 15px; }
.form-control, .form-select { border-radius: 10px; border-color: #e6d6c2; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(244, 180, 0, .25); }
.method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-option { position: relative; cursor: pointer; }
.method-option input { position: absolute; opacity: 0; }
.method-option > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 2px solid var(--line); border-radius: 12px; padding: 12px; height: 100%; }
.method-option i { font-size: 22px; color: var(--maroon-2); }
.method-option small { color: var(--muted); }
.method-option input:checked + span { border-color: var(--maroon-2); background: #fff6f0; }
.method-option input:focus-visible + span { outline: 3px solid var(--gold); }
.method-option.disabled { opacity: .5; cursor: not-allowed; }
.info-note { background: var(--cream); border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.pay-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-option { border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.pay-option:has(input:checked) { border-color: var(--maroon-2); background: #fff6f0; }

/* Success / tracking */
.success-card { max-width: 520px; background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 28px 22px; text-align: center; box-shadow: var(--shadow); }
.success-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 40px; color: #fff; background: radial-gradient(circle at 30% 30%, #34c77b, var(--ok)); }
.order-number-box { background: var(--cream); border: 2px dashed var(--gold); border-radius: 14px; padding: 12px; margin-top: 12px; }
.order-number { font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--maroon); word-break: break-all; }
.track-steps { list-style: none; display: flex; padding: 0; margin: 16px 0; counter-reset: s; }
.track-steps li { flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--muted); }
.track-steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%; background: #eee; color: #999; font-weight: 700; position: relative; z-index: 1; }
.track-steps li::after { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: #eee; }
.track-steps li:first-child::after { display: none; }
.track-steps li.done { color: var(--ink); }
.track-steps li.done::before { background: var(--ok); color: #fff; content: "✓"; }
.track-steps li.done::after { background: var(--ok); }
.track-steps li.current::before { background: var(--saffron); content: counter(s); }
.track-steps li.current { font-weight: 700; }
.timeline { list-style: none; padding-left: 0; border-left: 3px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 10px 16px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }

.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px 16px; text-align: center; color: var(--muted); }
.empty-state > i { font-size: 44px; color: var(--gold); }
.info-tile { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; height: 100%; }
.info-tile i { font-size: 26px; color: var(--maroon-2); }

/* Visit our shop – storefront photos + directions (home, contact) */
.shop-visit { display: grid; gap: 16px; background: linear-gradient(135deg, #5a0f1c, #8b1a2b); color: #fff; border-radius: var(--radius); padding: 12px; overflow: hidden; }
.shop-visit-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-visit-photo { display: block; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: #3d0a13; }
.shop-visit-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s ease; }
.shop-visit-photo:hover img, .shop-visit-photo:focus-visible img { transform: scale(1.04); }
.shop-visit-info { padding: 4px 6px 8px; }
.shop-visit-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffd166; margin-bottom: 4px; }
.shop-visit-title { font-size: 1.35rem; margin-bottom: 10px; color: #fff; }
.shop-visit-info i { color: #ffd166; }
.shop-visit-info .btn i { color: inherit; }
.shop-visit-info a:not(.btn) { color: #ffe6b3; }
@media (min-width: 768px) {
    .shop-visit { grid-template-columns: 3fr 2fr; align-items: center; padding: 16px; gap: 24px; }
    .shop-visit-photo img { aspect-ratio: 3 / 4; }
    .shop-visit-title { font-size: 1.6rem; }
}
.shop-visit-compact .shop-visit-photo img { aspect-ratio: 4 / 3; }

/* Footer */
.site-footer { background: #2a0610; color: #f3d9b8; }
.site-footer a { color: #ffe6b3; text-decoration: none; }
.site-footer h6 { color: var(--gold-2); text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.footer-brand { font-size: 20px; font-weight: 700; color: #fff; }
.site-footer .safety { color: #bfe8cc; }

/* Floating WhatsApp + mobile cart bar */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 1030; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; background: #178a45; }
body.has-cart .wa-float { bottom: 84px; }
@media (min-width: 992px) { body.has-cart .wa-float { bottom: 16px; } }
.mobile-cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: var(--maroon); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
.mobile-cart-bar[hidden] { display: none; }
@media (min-width: 992px) { .mobile-cart-bar { display: none; } }

.toast { border-radius: 12px; }

/* Quick estimate – "festival night" hero, sticky finder, numbered category cards, receipt summary */
.est-hero {
    position: relative; overflow: hidden; color: #fff; padding: 18px 0 22px;
    background:
        radial-gradient(circle at 12% 30%, rgba(255, 207, 92, .55) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .7) 0 1px, transparent 2px),
        radial-gradient(circle at 64% 78%, rgba(255, 122, 0, .6) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 34% 84%, rgba(255, 255, 255, .5) 0 1px, transparent 2px),
        radial-gradient(circle at 92% 64%, rgba(255, 207, 92, .5) 0 2px, transparent 3px),
        radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, .28), transparent 55%),
        linear-gradient(135deg, var(--maroon) 0%, #2a050c 100%);
}
.est-hero::after { /* soft burst behind the steps */
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    background: repeating-conic-gradient(rgba(255, 207, 92, .16) 0 6deg, transparent 6deg 18deg); pointer-events: none;
}
.est-hero .container { position: relative; z-index: 1; }
.est-hero a { color: var(--gold-2); }
.est-hero .breadcrumb { font-size: 13px; }
.est-hero .breadcrumb-item.active, .est-hero .breadcrumb-item + .breadcrumb-item::before { color: #ffe6b3; }
.est-eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-2); }
.est-title { margin: 0; font-size: clamp(28px, 7vw, 42px); font-weight: 700; line-height: 1.05;
    background: linear-gradient(90deg, #fff 0%, #ffe6b3 60%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.est-lead { color: #ffe6b3; max-width: 560px; margin: 6px 0 10px; }
.est-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.est-offer, .est-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.est-offer { background: var(--gold); color: #3a1900; box-shadow: 0 0 0 3px rgba(244, 180, 0, .25); }
.est-stat { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }

.est-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: est; }
.est-steps li {
    counter-increment: est; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 6px 8px; line-height: 1.15;
}
.est-steps li::before { content: counter(est); position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 700; color: var(--gold-2); opacity: .8; }
.est-step-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #3a1900; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.est-steps strong { display: block; font-size: 13.5px; }
.est-steps small { display: none; color: #ffe6b3; font-size: 12px; }
@media (min-width: 576px) { .est-steps small { display: block; } }
@media (min-width: 992px) {
    .est-hero { padding: 24px 0 30px; }
    .est-steps { grid-template-columns: 1fr; gap: 6px; }
    .est-steps li { flex-direction: row; text-align: left; gap: 12px; padding: 8px 12px 8px 26px; }
    .est-steps li::before { top: 50%; transform: translateY(-50%); }
}
.est-print-head { display: none; }

.est-wrap { margin-top: -10px; position: relative; z-index: 2; }

/* Finder: sticks under the site header (offset set by JS as --est-top) */
.est-toolbar {
    position: sticky; top: var(--est-top, 0px); z-index: 1010; margin-bottom: 14px; padding: 10px;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(90, 15, 28, .12);
}
.est-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }.est-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 14px; height: 42px;
    background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; cursor: text; }
.est-search:focus-within { border-color: var(--maroon-2); background: #fff; box-shadow: 0 0 0 3px rgba(125, 20, 38, .12); }
.est-search i { color: var(--muted); }
.est-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.est-search[hidden], .est-toggle[hidden], .est-tools[hidden] { display: none; }
.est-toggle { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; margin: 0; height: 42px; padding: 0 12px;
    border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; background: #fff; }
.est-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.est-switch { width: 34px; height: 20px; border-radius: 999px; background: #e3d6c6; position: relative; transition: background-color .2s ease; }
.est-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.est-toggle input:checked + .est-switch { background: var(--maroon-2); }
.est-toggle input:checked + .est-switch::after { transform: translateX(14px); }
.est-toggle input:focus-visible + .est-switch { outline: 2px solid var(--maroon-2); outline-offset: 2px; }

.est-jump { display: flex; gap: 6px; overflow-x: auto; padding: 0 2px 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.est-jump::-webkit-scrollbar { display: none; }
.est-jump a { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; transition: background-color .15s ease, color .15s ease; }
.est-jump-no { min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--cream); color: var(--maroon-2); }
.est-jump a:hover { border-color: var(--maroon-2); color: var(--maroon-2); }
.est-jump a.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.est-jump a.is-active .est-jump-no { background: var(--gold); color: #3a1900; }
.est-jump-count { background: var(--ok); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; line-height: 18px; }
.est-jump-count[hidden] { display: none; }
.est-empty { text-align: center; color: var(--muted); padding: 28px 0; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Category cards: number badge + own colour */
.est-cat { --c1: var(--maroon-2); --c2: var(--gold);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden;
    scroll-margin-top: calc(var(--est-top, 0px) + var(--est-tb, 110px) + 8px); box-shadow: var(--shadow); }
.est-cat-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 12px 12px 10px; font-size: 17px; font-weight: 700; color: var(--maroon);
    background: linear-gradient(90deg, #fff3d6, #fff 70%); border-bottom: 2px dashed var(--line); }
.est-cat-head::before { /* thin category-colour rule on the left */
    content: ""; align-self: stretch; width: 4px; margin: -12px 0 -12px -10px; background: linear-gradient(180deg, var(--c2), var(--c1)); }
.est-cat-no { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; color: #fff;
    background: var(--c1); box-shadow: inset 0 -3px 0 var(--c2), 0 3px 8px rgba(0, 0, 0, .15); transform: rotate(-4deg); }
.est-cat-name { min-width: 0; line-height: 1.15; }
.est-cat-name small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.est-cat-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.est-cat-items { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.est-cat-sum { font-size: 13px; font-weight: 700; color: #fff; background: var(--ok); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.est-cat-sum[hidden] { display: none; }
.est-cols { display: none; }

/* Item rows – phone: name on top, then price | qty | amount */
.est-row {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "item item" "price amt" "qty qty";
    gap: 6px 10px; align-items: center; padding: 12px 12px 12px 14px; border-bottom: 1px solid #f6ecdf; position: relative;
    transition: background-color .15s ease;
}
.est-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: transparent; transition: background-color .15s ease; }
.est-row:last-child { border-bottom: 0; }
.est-row.is-picked { background: linear-gradient(90deg, #fff6df, #fffdf8); }
.est-row.is-picked::before { background: linear-gradient(180deg, var(--c2), var(--c1)); }
.est-row.is-out { opacity: .55; }
.est-item { grid-area: item; min-width: 0; }
.est-name { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.2; font-size: 16px; }
.est-name:hover { color: var(--maroon-2); }
.est-row.is-picked .est-name::after { content: "\F26A"; font-family: "bootstrap-icons"; font-weight: 400; margin-left: 6px; color: var(--ok); font-size: 15px; vertical-align: -2px; }
.est-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.est-meta > span { line-height: 18px; }
.est-pack { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-weight: 600; color: var(--ink); }
.est-min { background: #fff1d6; color: #8a5300; border-radius: 6px; padding: 0 6px; font-weight: 700; }
.est-sku { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.est-price { grid-area: price; display: flex; align-items: baseline; gap: 6px; }
.est-price s { font-size: 13px; color: var(--muted); }
.est-price strong { font-size: 18px; color: var(--maroon); }
.est-qty { grid-area: qty; }
.est-qty.qty-stepper { display: flex; width: 100%; border-width: 2px; }
.est-qty.qty-stepper input { flex: 1; font-size: 17px; }
.est-qty .qty-btn { width: 52px; height: 42px; font-size: 22px; }
.est-qty .qty-btn:last-child { background: var(--maroon-2); color: #fff; border-radius: 0; }
.est-qty .qty-btn:last-child:hover { background: var(--maroon); }
.est-row.is-picked .est-qty.qty-stepper { border-color: var(--gold); }
.est-out-label { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; padding: 8px; border: 1.5px dashed var(--line); border-radius: 999px; }
.est-amt { grid-area: amt; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: #b9aaa1; }
.est-row.is-picked .est-amt { color: var(--ok); font-size: 17px; }

@media (min-width: 360px) {
    /* most phones: price + stepper + amount on one line (narrower screens stack the stepper full width) */
    .est-row { grid-template-columns: auto 1fr auto; grid-template-areas: "item item item" "price qty amt"; }
    .est-qty.qty-stepper { width: auto; justify-self: center; }
    .est-qty.qty-stepper input { width: 46px; flex: none; }
    .est-qty .qty-btn { width: 40px; height: 40px; }
    .est-amt { min-width: 84px; }
}
@media (min-width: 768px) {
    .est-cols { display: grid; grid-template-columns: 1fr 110px 150px 110px; gap: 12px; padding: 7px 14px 7px 18px; font-size: 11px; font-weight: 700;
        text-transform: uppercase; letter-spacing: .6px; color: var(--muted); background: #fffcf6; border-bottom: 1px solid var(--line); }
    .est-cols span:nth-child(2), .est-cols span:nth-child(4) { text-align: right; }
    .est-cols span:nth-child(3) { text-align: center; }
    .est-row { grid-template-columns: 1fr 110px 150px 110px; grid-template-areas: "item price qty amt"; gap: 12px; padding: 10px 14px 10px 18px; }
    .est-row:hover { background: #fffaf0; }
    .est-price { flex-direction: column; align-items: flex-end; gap: 0; }
    .est-qty.qty-stepper { justify-self: center; }
    .est-meta { margin-top: 2px; }
}

/* Receipt summary */
.est-summary { scroll-margin-top: calc(var(--est-top, 0px) + 12px); }
@media (min-width: 992px) { .est-summary { position: sticky; top: calc(var(--est-top, 0px) + 12px); } }
.est-receipt {
    position: relative; background: #fff; padding: 18px 16px 26px; border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 10px 30px rgba(90, 15, 28, .12); border-top: 6px solid var(--gold);
    font-variant-numeric: tabular-nums;
}
.est-receipt::after { /* torn paper edge */
    content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
    background: linear-gradient(-45deg, transparent 7px, #fff 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 7px, #fff 0) 0 0 / 14px 10px repeat-x;
    filter: drop-shadow(0 4px 3px rgba(90, 15, 28, .08));
}
.est-receipt-head { text-align: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px dashed var(--line); }
.est-receipt-shop { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.est-summary-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--maroon); }
.est-receipt-date { font-size: 12.5px; color: var(--muted); }
.est-lines { list-style: none; margin: 0 0 6px; padding: 0; max-height: 240px; overflow-y: auto; font-size: 14px; counter-reset: line; }
.est-lines li { counter-increment: line; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 4px 0; border-bottom: 1px dotted var(--line); align-items: baseline; }
.est-lines li:last-child { border-bottom: 0; }
.est-line-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-line-name::before { content: counter(line) ". "; color: var(--muted); }
.est-line-qty { color: var(--muted); font-size: 13px; }
.est-line-amt { font-weight: 700; text-align: right; min-width: 72px; }
.est-lines-empty { margin: 0 0 8px; padding: 12px; text-align: center; font-size: 14px; color: var(--muted); background: var(--cream); border-radius: 10px; }
.est-lines-empty[hidden] { display: none; }
.est-totals { border-top: 2px dashed var(--line); padding-top: 8px; }
.est-save { color: var(--ok); background: #eaf7f0; border-radius: 8px; padding: 4px 8px !important; margin: 2px -8px; }
.est-save[hidden] { display: none !important; }
.est-totals .grand { font-size: 22px; }
.est-minimum { margin: 8px 0 0; padding: 8px 10px; font-size: 13.5px; color: #8a1c1c; background: #fdecec; border-radius: 8px; }
.est-minimum[hidden] { display: none; }
.est-actions { display: grid; gap: 8px; margin-top: 22px; }
.est-actions [hidden] { display: none !important; }
.est-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.est-actions-row .btn { border: 1px solid var(--line); background: #fff; }
.est-note { margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); }

/* Phone / tablet bottom bar */
.est-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: linear-gradient(90deg, var(--maroon), #3a0812); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .22); border-top: 2px solid var(--gold); }
.est-bar-info { display: flex; flex-direction: column; line-height: 1.15; color: #fff; text-decoration: none; min-width: 0; }
.est-bar-info:hover { color: #fff; }
.est-bar-info small { opacity: .85; white-space: nowrap; }
.est-bar-info strong { font-size: 21px; }
.est-bar .btn { flex: none; padding-left: 20px; padding-right: 20px; font-weight: 700; }
body.has-est-bar { padding-bottom: 78px; }
body.has-est-bar .wa-float { bottom: 90px; }
body.has-est-bar .mobile-cart-bar { display: none; }  /* the estimate bar replaces it on this page */
@media (min-width: 992px) {
    .est-bar { display: none; }
    body.has-est-bar { padding-bottom: 0; }
    body.has-est-bar .wa-float { bottom: 16px; }
}

@media print {
    .topbar, .site-header, .site-footer, .wa-float, .est-hero, .est-toolbar, .est-bar, .est-cols, .est-actions, .est-note, .est-lines, .est-lines-empty, .qty-btn, .toast-container { display: none !important; }
    body, body.has-est-bar { background: #fff; padding: 0; }
    .est-wrap { margin-top: 0; }
    .est-print-head { display: block; margin: 0 0 12px; font-size: 14px; }
    .est-cat, .est-receipt { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    .est-receipt::after { display: none; }
    .est-cat:not(.has-picked) { display: none; }
    .est-row:not(.is-picked) { display: none; }
    .est-row { grid-template-columns: 1fr 90px 60px 90px; grid-template-areas: "item price qty amt"; background: none !important; }
    .est-row::before, .est-row.is-picked .est-name::after { display: none; }
    .est-qty.qty-stepper { border: 0; width: auto; }
    .est-qty input { width: auto; }
    .est-name { color: #000; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Category colour variants (placeholders + tiles) */
[data-cat="1"]{--c1:#7d1426;--c2:#f4b400}
[data-cat="2"]{--c1:#b3261e;--c2:#ffcf5c}
[data-cat="3"]{--c1:#0f5c4d;--c2:#9be7c4}
[data-cat="4"]{--c1:#4b2a85;--c2:#f7b7ff}
[data-cat="5"]{--c1:#a64b00;--c2:#ffd08a}
[data-cat="6"]{--c1:#124a7d;--c2:#9fd3ff}
[data-cat="7"]{--c1:#6a1b4d;--c2:#ffb3c7}
[data-cat="8"]{--c1:#3d5a00;--c2:#e2f59b}
[data-cat="9"]{--c1:#7d1426;--c2:#f4b400}
[data-cat="10"]{--c1:#b3261e;--c2:#ffcf5c}
[data-cat="11"]{--c1:#0f5c4d;--c2:#9be7c4}
[data-cat="12"]{--c1:#4b2a85;--c2:#f7b7ff}
[data-cat="13"]{--c1:#a64b00;--c2:#ffd08a}
[data-cat="14"]{--c1:#124a7d;--c2:#9fd3ff}
[data-cat="15"]{--c1:#6a1b4d;--c2:#ffb3c7}
[data-cat="16"]{--c1:#3d5a00;--c2:#e2f59b}
[data-cat="17"]{--c1:#7d1426;--c2:#f4b400}
[data-cat="18"]{--c1:#b3261e;--c2:#ffcf5c}
[data-cat="19"]{--c1:#0f5c4d;--c2:#9be7c4}
[data-cat="20"]{--c1:#4b2a85;--c2:#f7b7ff}
[data-cat="21"]{--c1:#a64b00;--c2:#ffd08a}
[data-cat="22"]{--c1:#124a7d;--c2:#9fd3ff}
[data-cat="23"]{--c1:#6a1b4d;--c2:#ffb3c7}
[data-cat="24"]{--c1:#3d5a00;--c2:#e2f59b}
[data-cat="25"]{--c1:#7d1426;--c2:#f4b400}
[data-cat="26"]{--c1:#b3261e;--c2:#ffcf5c}
[data-cat="27"]{--c1:#0f5c4d;--c2:#9be7c4}
[data-cat="28"]{--c1:#4b2a85;--c2:#f7b7ff}
[data-cat="29"]{--c1:#a64b00;--c2:#ffd08a}
[data-cat="30"]{--c1:#124a7d;--c2:#9fd3ff}
[data-cat="31"]{--c1:#6a1b4d;--c2:#ffb3c7}
[data-cat="32"]{--c1:#3d5a00;--c2:#e2f59b}
[data-cat="33"]{--c1:#7d1426;--c2:#f4b400}
[data-cat="34"]{--c1:#b3261e;--c2:#ffcf5c}
[data-cat="35"]{--c1:#0f5c4d;--c2:#9be7c4}
[data-cat="36"]{--c1:#4b2a85;--c2:#f7b7ff}
[data-cat="37"]{--c1:#a64b00;--c2:#ffd08a}
[data-cat="38"]{--c1:#124a7d;--c2:#9fd3ff}
[data-cat="39"]{--c1:#6a1b4d;--c2:#ffb3c7}
[data-cat="40"]{--c1:#3d5a00;--c2:#e2f59b}
