/* ==========================================================================
   Daba Dairy Farm - storefront styles (mobile first)
   Theme: white, farm green and cream
   ========================================================================== */
:root {
    --green: #2e7d32;
    --green-dark: #1b5e20;
    --green-soft: #e8f3e8;
    --green-line: #cfe5cf;
    --cream: #fbf6ea;
    --cream-deep: #f3e9d2;
    --butter: #f4c84a;
    --ink: #1d2a1e;
    --muted: #677366;
    --line: #ebe6da;
    --white: #ffffff;
    --danger: #c62828;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(29, 42, 30, .06);
    --shadow-lg: 0 10px 30px rgba(29, 42, 30, .12);
    --bottom-nav-h: 62px;
    --bs-primary: #2e7d32;
    --bs-primary-rgb: 46, 125, 50;
    --bs-link-color: #2e7d32;
    --bs-link-hover-color: #1b5e20;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--white);
    font-size: .95rem;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
.text-muted { color: var(--muted) !important; }
.bg-cream { background: var(--cream) !important; }
.text-green { color: var(--green) !important; }
.fw-600 { font-weight: 600; }
.section { padding: 2rem 0; }
@media (min-width: 768px) { .section { padding: 3rem 0; } }
.section-title { font-weight: 700; font-size: 1.2rem; margin: 0; }
@media (min-width: 768px) { .section-title { font-size: 1.5rem; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head a { font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover, .btn-green:focus { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline-green { border: 1.5px solid var(--green); color: var(--green); background: #fff; }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-cream { background: var(--cream); border: 1px solid var(--cream-deep); color: var(--ink); }
.btn-cream:hover { background: var(--cream-deep); }
.btn-whatsapp { background: #25d366; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.form-control, .form-select { border-radius: 10px; padding: .65rem .85rem; border-color: #ddd8cc; font-size: 16px; /* 16px stops iOS zoom */ }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(46, 125, 50, .15); }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.form-label { font-weight: 500; font-size: .88rem; margin-bottom: .3rem; }

/* ---------- Top strip & header ---------- */
.top-strip { background: var(--green-dark); color: #e9f5e9; font-size: .78rem; padding: .35rem 0; }
.top-strip a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .header-row { display: flex; align-items: center; gap: .75rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.brand-name { font-weight: 700; line-height: 1.05; font-size: 1.02rem; }
.brand-name small { display: block; font-size: .64rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search .form-control { padding-left: 2.4rem; background: var(--cream); border-color: transparent; }
.header-search .form-control:focus { background: #fff; }
.header-search .fa-magnifying-glass { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.header-link { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9rem; position: relative; background: none; border: 0; }
.header-link:hover, .header-link.active { background: var(--green-soft); color: var(--green-dark); }
.cart-badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.cart-badge[data-count="0"] { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); text-decoration: none; position: relative; background: var(--cream); }
.mobile-search { padding: 0 0 .65rem; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
    display: flex; box-shadow: 0 -4px 16px rgba(0, 0, 0, .05);
}
.bottom-nav a, .bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 500; position: relative;
    background: none; border: 0;
}
.bottom-nav i { font-size: 1.15rem; }
.bottom-nav .active { color: var(--green); font-weight: 600; }
.bottom-nav .cart-badge { top: 4px; right: calc(50% - 22px); }

/* Sticky "view cart" bar above the bottom nav on phones */
.cart-bar {
    position: fixed; left: 10px; right: 10px; z-index: 1034;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 8px);
    background: var(--green); color: #fff; border-radius: 14px; padding: .6rem .9rem;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    text-decoration: none; box-shadow: var(--shadow-lg);
    transition: transform .2s ease, opacity .2s ease;
}
.cart-bar:hover { color: #fff; }
.cart-bar.is-empty { transform: translateY(150%); opacity: 0; pointer-events: none; }
.cart-bar small { display: block; opacity: .85; font-size: .72rem; }
.has-cart-bar main { padding-bottom: 70px; }
@media (min-width: 992px) { .cart-bar { display: none; } .has-cart-bar main { padding-bottom: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--green-dark); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 60, 24, .92) 0%, rgba(20, 60, 24, .7) 50%, rgba(20, 60, 24, .25) 100%); }
.hero-content { position: relative; z-index: 1; padding: 2.5rem 0 2.75rem; max-width: 620px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .25rem .75rem; font-size: .75rem; font-weight: 500; }
.hero h1 { font-weight: 700; font-size: 1.75rem; line-height: 1.2; margin: .9rem 0 .6rem; }
.hero h1 span { color: var(--butter); }
.hero p { opacity: .92; font-size: .95rem; margin-bottom: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-actions .btn { padding: .7rem 1.2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.4rem; font-size: .8rem; opacity: .95; }
.hero-points i { color: var(--butter); }
@media (min-width: 768px) {
    .hero-content { padding: 4.5rem 0 5rem; }
    .hero h1 { font-size: 2.75rem; }
    .hero p { font-size: 1.05rem; }
}

/* ---------- Category chips / tiles ---------- */
.cat-scroller { display: flex; gap: .65rem; overflow-x: auto; scrollbar-width: none; padding: .15rem .1rem .4rem; scroll-snap-type: x proximity; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-tile {
    flex: 0 0 auto; width: 92px; text-align: center; text-decoration: none; color: var(--ink);
    scroll-snap-align: start; font-size: .76rem; font-weight: 500; line-height: 1.25;
}
.cat-tile .cat-icon {
    width: 72px; height: 72px; margin: 0 auto .45rem; border-radius: 20px; display: grid; place-items: center;
    background: var(--cream); border: 1px solid var(--cream-deep); color: var(--green); font-size: 1.5rem; transition: .2s;
}
.cat-tile:hover .cat-icon, .cat-tile.active .cat-icon { background: var(--green); color: #fff; border-color: var(--green); }
.cat-tile small { display: block; color: var(--muted); font-size: .68rem; font-weight: 400; }
@media (min-width: 992px) { .cat-scroller { justify-content: space-between; overflow: visible; } }

.chip-row { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 576px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Horizontal scrolling row on phones, grid on larger screens */
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: .75rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
.product-row::-webkit-scrollbar { display: none; }
.product-row > * { scroll-snap-align: start; }
@media (min-width: 576px) { .product-row { grid-auto-columns: 31%; } }
@media (min-width: 992px) { .product-row { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; gap: 1rem; } }

.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; height: 100%; transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--cream); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.badge-off { position: absolute; top: 8px; left: 8px; background: var(--green); color: #fff; font-size: .66rem; font-weight: 700; padding: .2rem .45rem; border-radius: 6px; }
.badge-stock { position: absolute; inset: auto 0 0 0; background: rgba(29, 42, 30, .78); color: #fff; text-align: center; font-size: .72rem; font-weight: 600; padding: .3rem; }
.product-card.is-out .product-img img { filter: grayscale(.7); opacity: .75; }
.product-body { padding: .6rem .7rem .75rem; display: flex; flex-direction: column; flex: 1; }
.veg-mark { width: 14px; height: 14px; border: 1.5px solid #188a30; display: inline-grid; place-items: center; border-radius: 3px; flex-shrink: 0; }
.veg-mark::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #188a30; }
.product-meta { display: flex; align-items: center; gap: .35rem; font-size: .68rem; color: var(--muted); margin-bottom: .2rem; }
.product-name { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .86rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.25em; }
.product-name:hover { color: var(--green); }
.product-unit { color: var(--muted); font-size: .76rem; margin: .15rem 0 .5rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .4rem; flex-wrap: wrap; }
.price { font-weight: 700; font-size: .98rem; line-height: 1.1; }
.price del { color: var(--muted); font-weight: 400; font-size: .74rem; margin-left: .2rem; }
@media (min-width: 768px) { .product-name { font-size: .92rem; } .price { font-size: 1.05rem; } }

/* ---------- Quantity control (Add -> stepper) ---------- */
.qty-control { min-width: 84px; }
.qty-control form { margin: 0; }
.qty-control .qty-stepper { display: none; }
.qty-control.has-qty .qty-add { display: none; }
.qty-control.has-qty .qty-stepper { display: flex; }
.btn-add {
    width: 100%; min-height: 36px; padding: .3rem .9rem; border-radius: 9px; border: 1.5px solid var(--green);
    background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .8rem; letter-spacing: .02em;
}
.btn-add:hover { background: var(--green); color: #fff; }
.qty-stepper { align-items: center; justify-content: space-between; background: var(--green); border-radius: 9px; min-height: 36px; overflow: hidden; }
.qty-stepper button { width: 34px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 1.05rem; font-weight: 700; }
.qty-stepper button:hover { background: var(--green-dark); }
.qty-stepper .qty-value { color: #fff; font-weight: 700; min-width: 20px; text-align: center; font-size: .9rem; }
.qty-control.is-busy { opacity: .6; pointer-events: none; }
.btn-out { min-height: 36px; padding: .3rem .7rem; border-radius: 9px; border: 1px dashed #c9c3b5; color: var(--muted); font-size: .74rem; background: #faf8f3; font-weight: 600; }
@media (max-width: 400px) {
    .product-foot { flex-direction: column; align-items: stretch; }
    .product-foot .qty-control, .product-foot .btn-out { width: 100%; }
}
.qty-control.qty-lg { min-width: 150px; }
.qty-control.qty-lg .btn-add, .qty-control.qty-lg .qty-stepper { min-height: 46px; font-size: .95rem; }
.qty-control.qty-lg .qty-stepper button { width: 46px; height: 46px; }

/* ---------- Feature strip ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 992px) { .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.feature { background: #fff; border: 1px solid var(--cream-deep); border-radius: var(--radius); padding: 1rem; display: flex; gap: .75rem; align-items: flex-start; }
.feature i { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.feature h6 { margin: 0 0 .15rem; font-weight: 600; font-size: .85rem; }
.feature p { margin: 0; font-size: .74rem; color: var(--muted); }

/* ---------- Steps / call banner ---------- */
.step { text-align: center; padding: 1rem; }
.step-num { width: 52px; height: 52px; margin: 0 auto .75rem; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.step h6 { font-weight: 600; }
.step p { font-size: .82rem; color: var(--muted); margin: 0; }
.call-banner { background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.call-banner h3 { font-weight: 700; font-size: 1.25rem; margin: 0 0 .25rem; }
.call-banner p { margin: 0; opacity: .9; font-size: .88rem; }
@media (min-width: 768px) { .call-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem 2.5rem; } }

/* ---------- Generic cards / panels ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
@media (min-width: 768px) { .panel { padding: 1.4rem; } }
.panel-title { font-weight: 600; font-size: 1rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.panel-title i { color: var(--green); }
.page-head { background: var(--cream); border-bottom: 1px solid var(--cream-deep); padding: 1.1rem 0; }
.page-head h1 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.breadcrumb { font-size: .78rem; margin: 0 0 .2rem; }
.breadcrumb a { text-decoration: none; }

/* ---------- Product detail ---------- */
.detail-img { border-radius: 18px; overflow: hidden; background: var(--cream); aspect-ratio: 1 / 1; position: relative; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-price { font-size: 1.6rem; font-weight: 700; }
.detail-price del { font-size: 1rem; color: var(--muted); font-weight: 400; }
.save-pill { background: var(--green-soft); color: var(--green-dark); font-weight: 600; font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .86rem; }
.info-list i { color: var(--green); width: 20px; }
.detail-actions-mobile { position: sticky; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); padding: .65rem 0; z-index: 5; }

/* ---------- Cart ---------- */
.cart-line { display: flex; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--cream); flex-shrink: 0; }
.cart-line .line-info { flex: 1; min-width: 0; }
.cart-line .line-name { font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none; display: block; }
.cart-line .line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.link-remove { background: none; border: 0; color: var(--muted); font-size: .76rem; padding: 0; }
.link-remove:hover { color: var(--danger); }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .3rem 0; }
.summary-total { border-top: 1px dashed #d8d1c0; margin-top: .4rem; padding-top: .7rem; font-weight: 700; font-size: 1.05rem; }
.free-delivery { background: var(--cream); border-radius: 12px; padding: .7rem .85rem; font-size: .8rem; }
.free-delivery .progress { height: 6px; background: #eadfc4; margin-top: .45rem; }
.free-delivery .progress-bar { background: var(--green); }
.sticky-summary { position: sticky; top: 84px; }
.mobile-checkout-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); padding: .65rem 1rem; z-index: 1033; display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 -6px 16px rgba(0, 0, 0, .06); }
.mobile-checkout-bar .total { font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.mobile-checkout-bar small { color: var(--muted); font-size: .7rem; }
.has-checkout-bar main { padding-bottom: 80px; }
@media (min-width: 992px) { .mobile-checkout-bar { display: none; } .has-checkout-bar main { padding-bottom: 0; } }

/* ---------- Checkout ---------- */
.slot-option, .pay-option { position: relative; }
.slot-option input, .pay-option input { position: absolute; opacity: 0; }
.slot-option label, .pay-option label { display: flex; align-items: center; gap: .65rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; font-size: .86rem; height: 100%; }
.slot-option input:checked + label, .pay-option input:checked + label { border-color: var(--green); background: var(--green-soft); }
.slot-option input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.slot-option label i, .pay-option label i { color: var(--green); font-size: 1.15rem; }
.guest-note { background: var(--cream); border: 1px dashed #d9c9a0; border-radius: 12px; padding: .75rem .9rem; font-size: .84rem; }

/* ---------- Orders ---------- */
.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1rem; display: block; text-decoration: none; color: var(--ink); transition: box-shadow .2s; }
.order-card:hover { box-shadow: var(--shadow-lg); color: var(--ink); }
.order-no { font-weight: 700; font-size: .95rem; }
.status-badge { font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; }
.status-Pending { background: #fff4d6; color: #8a6100; }
.status-Confirmed { background: #e0f0ff; color: #0b5ea8; }
.status-Delivered { background: var(--green-soft); color: var(--green-dark); }
.status-Cancelled { background: #fde4e4; color: #a32020; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: .5rem 0 0; padding: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 12%; right: 12%; height: 3px; background: var(--line); }
.timeline li { flex: 1; text-align: center; position: relative; font-size: .72rem; color: var(--muted); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto .35rem; position: relative; font-size: .75rem; }
.timeline li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 1rem; animation: pop .45s ease; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 80% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 220px); display: flex; align-items: center; padding: 1.5rem 0; background: var(--cream); }
.auth-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.5rem; width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 576px) { .auth-card { padding: 2.25rem; } }
.auth-card h1 { font-size: 1.4rem; font-weight: 700; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .form-control { padding-left: 2.5rem; }
.guest-login { background: var(--cream); border: 1px dashed #d9c9a0; border-radius: 14px; padding: 1rem; }
.guest-pill { background: var(--cream-deep); color: #6b5520; font-size: .66rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; vertical-align: middle; }
.input-icon .prefix { position: absolute; left: 2.4rem; top: 50%; transform: translateY(-50%); color: var(--ink); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #17331a; color: #c9d8c9; padding: 2.5rem 0 1.25rem; font-size: .86rem; margin-top: 2rem; }
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: .8rem; }
.site-footer a { color: #c9d8c9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 1.75rem; padding-top: 1rem; font-size: .76rem; color: #93a893; }

/* ---------- Toast & alerts ---------- */
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-nav-h) + 80px); z-index: 1090; width: min(92vw, 380px); display: grid; gap: .5rem; pointer-events: none; }
@media (min-width: 992px) { .toast-stack { bottom: 24px; left: auto; right: 24px; transform: none; } }
.toast-msg { background: var(--ink); color: #fff; border-radius: 12px; padding: .7rem 1rem; font-size: .85rem; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: center; animation: toastIn .25s ease; pointer-events: auto; }
.toast-msg.error { background: var(--danger); }
.toast-msg i { color: #9be29f; }
.toast-msg.error i { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.alert { border-radius: 12px; font-size: .88rem; }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .empty-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--cream); color: var(--green); display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 1rem; }
.pagination { --bs-pagination-active-bg: var(--green); --bs-pagination-active-border-color: var(--green); --bs-pagination-color: var(--green); }
.offcanvas { --bs-offcanvas-width: 300px; }
