:root {
    /* ---------- Light Green Theme Palette ---------- */
    --primary-green: #A8E6A3;
    --secondary-green: #DFFFE0;
    --dark-green: #2E7D32;
    --button-green: #4CAF50;
    --button-hover-green: #388E3C;
    --red-accent: #C62828;
    --page-bg: #F6FFF6;
    --card-bg: #FAFFFA;
    --border-green: #C8E6C9;
    --text-green: #1B5E20;
    --secondary-text: #4B6F44;

    /* Brand-standard secondary + accent (spec: #81C784 / #FFC107). */
    --secondary-brand: #81C784;
    --accent: #FFC107;
    --accent-dark: #FFA000;

    /* Map legacy brand vars onto the green palette so existing
       markup (bg-brand / text-brand / btn-brand) stays green. */
    --brand: var(--button-green);
    --brand-dark: var(--button-hover-green);
    --brand-light: var(--secondary-green);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--page-bg);
    color: var(--text-green);
}

/* Headings and general links pick up the dark green accent */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-green);
}

a {
    color: var(--dark-green);
}

a:hover {
    color: var(--button-hover-green);
}

.text-muted {
    color: var(--secondary-text) !important;
}

/* ---------- Brand / theme colours ---------- */
.bg-brand {
    background-color: var(--dark-green) !important;
}

.text-brand {
    color: var(--dark-green) !important;
}

.btn-brand {
    background-color: var(--button-green);
    border-color: var(--button-green);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--button-hover-green);
    border-color: var(--button-hover-green);
    color: #fff;
}

.btn-brand:focus,
.btn-brand:active {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.35);
}

.btn-outline-brand {
    border-color: var(--button-green);
    color: var(--dark-green);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: var(--button-green);
    border-color: var(--button-green);
    color: #fff;
}

/* ---------- Navbar ---------- */
.navbar.bg-brand {
    background-color: var(--dark-green) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Active / current menu item highlighted with light green */
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--text-green);
    background-color: var(--primary-green);
    font-weight: 600;
}

.navbar-brand {
    color: #fff !important;
}

/* Cart count badge — contrasting amber on the green navbar */
.navbar .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #1b1b1b !important;
}

/* ---------- Hero banner ---------- */
.hero {
    position: relative;
    height: 250px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    /* Glossy green & red food-promo gradient */
    background: linear-gradient(120deg, #1B5E20 0%, #4CAF50 55%, #C62828 100%);
    box-shadow: 0 0.75rem 1.75rem rgba(27, 94, 32, 0.30);
}

/* Dark transparent overlay so text stays readable */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.30) 50%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

/* Glossy shine effect */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0) 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background-color: var(--red-accent, #C62828);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
    max-width: 38rem;
}

.hero-btn {
    background-color: #fff;
    color: var(--dark-green);
    font-weight: 600;
    padding: 0.5rem 1.4rem;
    border-radius: 0.6rem;
    border: 1px solid #fff;
    box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.25);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hero-btn:hover,
.hero-btn:focus {
    background-color: #C62828;
    border-color: #C62828;
    color: #fff;
    transform: translateY(-1px);
}

/* Tighten hero text on small screens so it fits the 250px height */
@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* ---------- Hero carousel (auto-rotating banner slider) ---------- */
.hero-carousel {
    overflow: hidden;
    box-shadow: 0 0.75rem 1.75rem rgba(27, 94, 32, 0.30);
}

.hero-slide {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: #fff;
    overflow: hidden;
}

/* Themed gradient slides (no external image assets required). */
.hero-slide--burger { background: linear-gradient(120deg, #1B5E20 0%, #4CAF50 55%, #C62828 100%); }
.hero-slide--pizza  { background: linear-gradient(120deg, #2E7D32 0%, #66BB6A 50%, #FFA000 100%); }
.hero-slide--family { background: linear-gradient(120deg, #1B5E20 0%, #43A047 45%, #FFC107 100%); }

/* Readability overlay + glossy shine. */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.30) 50%, rgba(0, 0, 0, 0.12) 100%);
    z-index: 1;
}
.hero-slide::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0) 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 40rem;
    padding-left: 1rem;
}

.hero-title {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* Make indicator dots and arrow controls sit above the overlay. */
.hero-carousel .carousel-indicators { z-index: 4; margin-bottom: 0.75rem; }
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    transition: background-color 0.2s ease;
}
.hero-carousel .carousel-indicators .active { background-color: #fff; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { z-index: 4; width: 8%; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    padding: 1rem;
    background-size: 50% 50%;
}

/* Desktop 250px / mobile 200px (per spec). */
@media (max-width: 767.98px) {
    .hero-slide { height: 200px; padding: 0 0.75rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-slide .hero-subtitle { font-size: 0.9rem; }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next { width: 12%; }
}

/* ---------- Promotional banners ---------- */
.promo-banner {
    position: relative;
    height: 250px;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Glassmorphism / soft shadow */
    box-shadow: 0 0.75rem 1.5rem rgba(46, 125, 50, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: flex-end;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(46, 125, 50, 0.28);
}

/* Dark transparent overlay for text readability */
.promo-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Glossy shine effect */
.promo-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0) 70%);
    z-index: 2;
    pointer-events: none;
}

.promo-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 1.25rem;
    text-align: left;
}

.promo-banner-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.promo-banner-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.promo-banner-btn {
    background-color: var(--button-green);
    border: 1px solid var(--button-green);
    color: #fff;
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border-radius: 0.6rem;
    box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.25);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.promo-banner-btn:hover,
.promo-banner-btn:focus {
    background-color: var(--button-hover-green);
    border-color: var(--button-hover-green);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Cards ---------- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-green);
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(46, 125, 50, 0.08);
}

.card .card-title {
    color: var(--text-green);
}

/* Light green summary / highlight cards */
.card-summary,
.bg-summary {
    background-color: var(--secondary-green) !important;
    border-color: var(--border-green);
}

/* ---------- Category buttons ---------- */
.category-btn {
    background-color: var(--secondary-green);
    border: 1px solid var(--border-green);
    color: var(--text-green);
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.category-btn:hover,
.category-btn:focus {
    background-color: var(--primary-green);
    color: var(--text-green);
    transform: translateY(-1px);
}

.category-btn.active {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    color: #fff;
}

/* ---------- Product cards ---------- */
.product-card {
    border: 1px solid var(--border-green);
    border-radius: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(46, 125, 50, 0.18) !important;
    border-color: var(--primary-green);
}

.product-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--secondary-green);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Price highlight */
.product-card .text-brand,
.price {
    color: var(--dark-green) !important;
    font-weight: 700;
}

/* Clickable card image / title link — keep theme text colour, no underline */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover .card-title {
    color: var(--button-hover-green);
}

/* ---------- Product details page ---------- */
/* Glossy / glassmorphism card */
.glossy-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, var(--secondary-green) 100%);
    border: 1px solid var(--border-green);
    box-shadow: 0 1rem 2.5rem rgba(46, 125, 50, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.product-details-img-wrap {
    position: relative;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    background: var(--secondary-green);
}

.product-details-img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-details-img-wrap:hover .product-details-img {
    transform: scale(1.05);
}

/* Glossy shine sweep over the product image */
.product-details-img-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.product-details-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.85rem;
    z-index: 2;
}

.product-details-body {
    background: rgba(255, 255, 255, 0.55);
}

/* Category pill */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    background-color: var(--primary-green);
    color: var(--text-green);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

/* Promotional highlight text */
.promo-text {
    color: var(--red-accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Red accent badge */
.bg-danger-accent {
    background-color: var(--red-accent) !important;
    color: #fff;
}

/* Detailed product description callout on the details page */
.product-detail-description {
    background-color: var(--secondary-green);
    border: 1px solid var(--border-green);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
}

.product-detail-description p {
    color: var(--secondary-text);
    line-height: 1.5;
}

/* ---------- Quantity selector (- / +) ---------- */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-green);
    border-radius: 0.7rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0.25rem 0.6rem rgba(46, 125, 50, 0.1);
}

.qty-btn-step {
    border: none;
    background-color: var(--secondary-green);
    color: var(--dark-green);
    width: 44px;
    height: 44px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.qty-btn-step:hover:not(:disabled) {
    background-color: var(--button-green);
    color: #fff;
}

.qty-btn-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-value {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-green);
    border-right: 1px solid var(--border-green);
    font-weight: 700;
    color: var(--text-green);
    background-color: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-value:focus {
    outline: none;
    box-shadow: none;
}

.quantity-selector.disabled {
    opacity: 0.55;
}

/* ---------- Large green gradient Add to Cart button ---------- */
.btn-add-to-cart {
    background: linear-gradient(120deg, var(--button-green) 0%, var(--dark-green) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
    border-radius: 0.7rem;
    box-shadow: 0 0.4rem 0.9rem rgba(46, 125, 50, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-add-to-cart:hover:not(:disabled),
.btn-add-to-cart:focus:not(:disabled) {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0.6rem 1.2rem rgba(46, 125, 50, 0.4);
    filter: brightness(1.05);
}

.btn-add-to-cart:disabled {
    background: #b9c9b6;
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border: 1px solid var(--border-green);
    border-radius: 0.6rem;
    color: var(--text-green);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--button-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-label {
    color: var(--secondary-text);
    font-weight: 500;
}

.form-check-input:checked {
    background-color: var(--button-green);
    border-color: var(--button-green);
}

.form-check-input:focus {
    border-color: var(--button-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Validation messages stay clearly red for readability */
.text-danger,
.validation-summary-errors {
    color: #c62828 !important;
}

.input-validation-error {
    border-color: #c62828 !important;
}

/* ---------- Tables ---------- */
.table > thead.table-light th {
    background-color: var(--secondary-green);
    color: var(--text-green);
}

/* ---------- Badges ---------- */
.badge.bg-success {
    background-color: var(--button-green) !important;
}

/* ---------- Alerts ---------- */
.alert-success {
    background-color: var(--secondary-green);
    border-color: var(--border-green);
    color: var(--text-green);
}

/* ---------- Cart ---------- */
.cart-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-green);
}

/* Quantity stepper buttons — green outline style */
.qty-btn {
    border-color: var(--button-green);
    color: var(--dark-green);
}

.qty-btn:hover,
.qty-btn:focus {
    background-color: var(--button-green);
    border-color: var(--button-green);
    color: #fff;
}

/* ---------- Footer ---------- */
.footer {
    font-size: 0.9rem;
    position: relative;
    background: linear-gradient(160deg, #14401A 0%, #1B5E20 45%, #2E7D32 100%);
    color: #DCEFDD;
    border-top: 3px solid var(--primary-green);
    box-shadow: 0 -0.25rem 1rem rgba(27, 94, 32, 0.25);
}

.footer span {
    color: rgba(255, 255, 255, 0.9);
}

/* Trust / assurance strip across the top of the footer */
.footer-trust {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.1rem 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.15rem 0.25rem;
}
.trust-item i {
    font-size: 1.6rem;
    color: var(--primary-green);
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 230, 163, 0.14);
}
.trust-text { display: flex; flex-direction: column; line-height: 1.2; }
.trust-title { color: #fff; font-weight: 600; font-size: 0.92rem; }
.trust-sub { color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; }

/* Brand block in footer */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand i {
    color: var(--primary-green);
    font-size: 1.6rem;
}

.footer-about {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Column headings with an accent underline */
.footer-heading {
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
}
.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-green);
}

/* Inline mini-heading (e.g. "We Accept") */
.footer-heading-inline {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

/* Payment badges */
.footer-payments { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}
.pay-badge i { color: var(--primary-green); }

/* Contact / info lists with icons */
.footer-contact li,
.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    color: #E8F5E9;
}

.footer-contact i,
.footer-info i {
    color: var(--primary-green);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: #E8F5E9;
    text-decoration: none;
    word-break: break-word;
}

.footer-contact a:hover {
    color: #fff;
}

/* Navigation / policy link lists */
.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: #E8F5E9;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #fff;
    padding-left: 0.35rem;
}

/* Bottom copyright bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.83rem;
}
.footer-copy { color: rgba(255, 255, 255, 0.75); }
.footer-bottom-links { gap: 0.25rem 1.25rem; }
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-bottom-links a:hover { color: #fff; }

/* Back-to-top button */
.footer-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--button-green);
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.footer-top-btn:hover { background: var(--primary-green); color: var(--text-green); transform: translateY(-2px); }

@media (max-width: 575.98px) {
    .footer-bottom .container { justify-content: center; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}

/* ---------- Footer social media ---------- */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E8F5E9;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.social-icon:hover,
.social-icon:focus {
    color: #fff;
    background-color: var(--button-green);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 0.4rem 0.9rem rgba(168, 230, 163, 0.45);
}

/* Brand-tinted hover accents */
.social-icon.facebook:hover { background-color: #1877F2; border-color: #1877F2; }
.social-icon.instagram:hover { background-color: #E1306C; border-color: #E1306C; }
.social-icon.twitter:hover { background-color: #000000; border-color: #000000; }
.social-icon.youtube:hover { background-color: #FF0000; border-color: #FF0000; }
.social-icon.whatsapp:hover { background-color: #25D366; border-color: #25D366; }

/* Center the social row when the footer stacks on small screens */
@media (max-width: 575.98px) {
    .social-icons {
        justify-content: center;
    }

    .footer-social {
        text-align: center;
    }
}

/* Keep navbar brand icon aligned */
.navbar-brand i {
    vertical-align: -2px;
}

/* ---------- Store selector (navbar) ---------- */
.store-dropdown {
    min-width: 260px;
    max-height: 70vh;
    overflow-y: auto;
}

.store-dropdown .dropdown-item {
    white-space: normal;
}

.store-dropdown form {
    margin: 0;
}

.store-dropdown .dropdown-item.active,
.store-dropdown .dropdown-item:active {
    background-color: var(--secondary-green);
    color: var(--text-green);
}

.store-dropdown .dropdown-item.active small {
    color: var(--dark-green) !important;
}

/* ---------- Selected store info card ---------- */
.store-info-card {
    background: linear-gradient(145deg, var(--secondary-green) 0%, #ffffff 100%);
    border: 1px solid var(--border-green);
    border-radius: 1rem;
}

.store-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--border-green);
    background-color: #fff;
    flex-shrink: 0;
}

.store-logo-sm {
    width: 56px;
    height: 56px;
}

.store-type-badge {
    background-color: var(--dark-green);
    color: #fff;
    font-weight: 500;
}

/* ---------- "Change store from the menu bar" pill button ---------- */
.change-store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.95rem;
    border-radius: 2rem;
    border: 1px solid var(--border-green);
    color: var(--dark-green);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    /* Soft glossy light gradient — professional, not flashy */
    background-image: linear-gradient(180deg, #ffffff 0%, var(--secondary-green) 100%);
    box-shadow: 0 0.2rem 0.5rem rgba(46, 125, 50, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.change-store-link:hover,
.change-store-link:focus {
    color: var(--button-hover-green);
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 0.85rem rgba(46, 125, 50, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    outline: none;
}

/* Press-down feedback on click */
.change-store-link:active {
    transform: translateY(0) scale(0.98);
    color: var(--button-green);
    box-shadow: inset 0 0.12rem 0.35rem rgba(46, 125, 50, 0.25);
}

.change-store-link i {
    font-size: 0.95rem;
}

/* Brief click-feedback flash before the scroll begins */
.change-store-link.flash {
    animation: cs-link-flash 0.45s ease;
}

@keyframes cs-link-flash {
    0% { box-shadow: 0 0.2rem 0.5rem rgba(46, 125, 50, 0.15); }
    45% {
        box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.45);
        background-image: linear-gradient(180deg, var(--secondary-green) 0%, var(--primary-green) 100%);
    }
    100% { box-shadow: 0 0.2rem 0.5rem rgba(46, 125, 50, 0.15); }
}

/* All store-related toasts (warning + success) share one anchored position
   below the store dropdown — see the ".store-toast" rules further down. */

/* ---------- Guided-attention highlight on the store dropdown ----------
   Calm, premium "look here" cue (brand green) — distinct from the red
   error state. Smooth fade in/out via transition; 2 gentle pulse cycles. */
.store-selector > .nav-link {
    transition: box-shadow 0.4s ease, background-color 0.4s ease, transform 0.4s ease;
}

.store-selector.store-guided > .nav-link {
    border-radius: 0.5rem;
    background-color: rgba(168, 230, 163, 0.22);
    box-shadow: 0 0 0 0.18rem rgba(76, 175, 80, 0.45), 0 0 1.1rem rgba(76, 175, 80, 0.55);
    animation: store-guided-pulse 1.1s ease-in-out 2;
}

@keyframes store-guided-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0.16rem rgba(76, 175, 80, 0.35), 0 0 0.7rem rgba(76, 175, 80, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 0.28rem rgba(76, 175, 80, 0.55), 0 0 1.45rem rgba(76, 175, 80, 0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-selector.store-guided > .nav-link { animation: none; }
    .change-store-link.flash { animation: none; }
}

/* ---------- Store-required validation state ---------- */
/* Persistent red highlight on the store dropdown until a store is selected */
.store-selector.store-invalid > .nav-link {
    border: 1.5px solid #ff8a80;
    border-radius: 0.5rem;
    color: #fff !important;
    background-color: rgba(198, 40, 40, 0.45);
    box-shadow: 0 0 0 0.15rem rgba(198, 40, 40, 0.35);
}

@keyframes store-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.store-selector .nav-link.shake {
    animation: store-shake 0.4s ease;
}

/* ---------- Unified store toast (anchored below the store dropdown) ----------
   Every store-related toast (validation warning + store-change success) uses
   this ONE position: directly below the store dropdown. .store-selector is
   position:relative (Bootstrap .dropdown), so this anchors against it. The two
   variants share width/padding/radius/font and differ only by shade + icon. */
.store-toast {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-green);
    border: 1px solid var(--border-green);
    box-shadow: 0 0.5rem 1rem rgba(46, 125, 50, 0.25);
    white-space: normal;
    width: max-content;
    max-width: 260px;
    z-index: 1090;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.store-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.store-toast i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Up-pointer connecting the toast to the dropdown. */
.store-toast::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 16px;
    border: 7px solid transparent;
}

/* Warning / validation variant — light green, warning icon, dark text. */
.store-toast--warning { background-color: var(--secondary-green); }
.store-toast--warning i { color: var(--button-hover-green); }
.store-toast--warning::before { border-bottom-color: var(--secondary-green); }

/* Success variant — deeper green, checkmark icon, dark text. */
.store-toast--success {
    background-color: var(--primary-green);
    border-color: #8fd98a;
}
.store-toast--success i { color: var(--dark-green); }
.store-toast--success::before { border-bottom-color: var(--primary-green); }

/* Fallback when the store dropdown is not on the page. */
.store-toast.store-toast--floating {
    position: fixed;
    top: 72px;
    left: 16px;
    pointer-events: auto;
}
.store-toast.store-toast--floating::before { display: none; }

/* ============================================================
   Password strength indicator (Register / Reset / Change)
   ============================================================ */
.password-strength { margin-top: 0.5rem; }

.password-strength__bar {
    height: 6px;
    border-radius: 4px;
    background-color: var(--border-green);
    overflow: hidden;
}

.password-strength__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.25s ease, background-color 0.25s ease;
    background-color: transparent;
}

/* Score-driven colours: weak → strong. */
.password-strength__fill.level-1 { background-color: #e53935; }
.password-strength__fill.level-2 { background-color: #fb8c00; }
.password-strength__fill.level-3 { background-color: #fdd835; }
.password-strength__fill.level-4 { background-color: #7cb342; }
.password-strength__fill.level-5 { background-color: var(--button-green); }

.password-strength__label { margin-top: 0.3rem; }

.password-strength__rules li {
    color: var(--secondary-text);
    transition: color 0.2s ease;
}
.password-strength__rules li i { margin-right: 0.35rem; color: #b0bec5; }
.password-strength__rules li.met { color: var(--dark-green); }
.password-strength__rules li.met i { color: var(--button-green); }

/* ============================================================
   Customer profile dashboard
   ============================================================ */
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--button-green));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.profile-stat { min-width: 84px; }

.profile-tabs .list-group-item {
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-green);
    font-weight: 500;
    cursor: pointer;
}
.profile-tabs .list-group-item i { margin-right: 0.5rem; }
.profile-tabs .list-group-item.active {
    background-color: var(--secondary-green);
    color: var(--dark-green);
    border-left-color: var(--button-green);
}
.profile-tabs .list-group-item:hover:not(.active) {
    background-color: var(--page-bg);
}

/* ============================================================
   Printable invoice
   ============================================================ */
@media print {
    header, footer, .d-print-none { display: none !important; }
    .invoice-sheet { box-shadow: none !important; border: none !important; }
    body { background: #fff !important; }
}

/* ============================================================
   Guest sign-up CTAs & account-benefit promos
   ============================================================ */
.guest-cta {
    background: linear-gradient(120deg, var(--secondary-green) 0%, var(--card-bg) 100%);
    border-left: 4px solid var(--button-green) !important;
}
.guest-cta-icon {
    font-size: 2rem;
    color: var(--button-green);
    flex-shrink: 0;
}

.guest-checkout-banner {
    background: linear-gradient(120deg, var(--secondary-green) 0%, var(--card-bg) 100%);
    border-left: 4px solid var(--button-green) !important;
}

.account-benefits {
    background: linear-gradient(160deg, var(--card-bg) 0%, var(--secondary-green) 140%);
}
.account-benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.5rem 1.25rem;
}
.account-benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-green);
    font-weight: 500;
}
.account-benefits-list li i { flex-shrink: 0; }

.guest-upsell {
    background: linear-gradient(160deg, var(--card-bg) 0%, var(--secondary-green) 160%);
}

/* Soft brand-tinted alert used for inline notices. */
.alert-brand-soft {
    background-color: var(--secondary-green);
    border: 1px solid var(--border-green);
    color: var(--text-green);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}
.alert-brand-soft a { color: var(--dark-green); font-weight: 600; }

/* ============================================================
   Premium product card redesign
   ============================================================ */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.75rem rgba(17, 24, 39, 0.14) !important;
    border-color: #D1D5DB;
}

/* --- Image section (compact: 180 desktop / 160 tablet / 140 mobile) --- */
.product-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #F3F4F6;
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-card-media { height: 160px; }
}
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.product-card:hover .product-card-img { transform: scale(1.08); }

/* Glossy overlay over the image */
.product-card-gloss {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0) 65%);
}

/* Out-of-stock: centred ribbon + dimmed image */
.out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: #6B7280;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
}
.product-card:has(.out-of-stock-badge) .product-card-img {
    filter: grayscale(0.5) brightness(0.9);
}

/* --- Image badge stacks --- */
.badge-stack {
    position: absolute;
    top: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.badge-stack-left { left: 12px; align-items: flex-start; }
.badge-stack-right { right: 12px; align-items: flex-end; }

/* Discount badge — top-left, red pill */
.discount-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 0.3rem 0.7rem;
    border-radius: 2rem;
    color: #FFFFFF;
    background: #EF4444;
    box-shadow: 0 0.2rem 0.5rem rgba(239, 68, 68, 0.35);
    white-space: nowrap;
}

/* Best seller badge — top-right, gold */
.best-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 0.6rem;
    color: #FFFFFF;
    background: #F59E0B;
    box-shadow: 0 0.2rem 0.5rem rgba(245, 158, 11, 0.4);
    white-space: nowrap;
}

/* Other primary badges (popular / chef / new / limited) */
.pc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 0.28rem 0.6rem;
    border-radius: 2rem;
    color: #fff;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}
.badge-popular    { background: linear-gradient(135deg, #f7971e, #ffd200); color: #5b4300; }
.badge-chef       { background: linear-gradient(135deg, #654ea3, #eaafc8); }
.badge-new        { background: linear-gradient(135deg, #11998e, #38ef7d); color: #05372f; }
.badge-limited    { background: linear-gradient(135deg, #c31432, #240b36); }
.badge-discount   { background: #EF4444; }

/* --- Wishlist heart --- */
.wishlist-btn {
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #EF4444;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.wishlist-btn:hover { transform: scale(1.12); background: #fff; }
.wishlist-btn.active i { animation: heart-pop 0.3s ease; }
@keyframes heart-pop {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* --- Quick View overlay button --- */
.quick-view-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.96);
    color: #16A34A;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease, color 0.15s ease;
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.quick-view-btn:hover { background: #22C55E; color: #fff; }
/* Touch devices can't hover — keep Quick View visible. */
@media (hover: none) {
    .quick-view-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* --- Card body (compact) --- */
.product-card-body {
    padding: 0.6rem 0.7rem 0.7rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.product-card-spacer { flex: 1 1 auto; }

/* Bottom row: price (left) + compact ADD (right), pinned to card bottom */
.product-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

/* Inline quantity pill (− value +) — glossy light-green, on every card */
.qty-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    min-width: 96px;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #F0FFF2 0%, #DFFFE0 100%);
    border: 1px solid var(--border-green);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 0.2rem 0.5rem rgba(46, 125, 50, 0.12);
}
.qty-pill-btn {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #22C55E;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.qty-pill-btn:hover:not(:disabled) {
    background: #16A34A;
    transform: scale(1.08);
    box-shadow: 0 0.25rem 0.6rem rgba(22, 163, 74, 0.4);
}
.qty-pill-btn:active:not(:disabled) { transform: scale(0.94); }
.qty-pill-btn:disabled {
    background: #C8E6C9;
    color: #FFFFFF;
    cursor: not-allowed;
    opacity: 0.7;
}
.qty-pill-num {
    flex: 1 1 auto;
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-green);
    user-select: none;
    padding: 0 0.15rem;
}
/* Zero state: muted number so the empty control reads clearly */
.qty-pill[data-qty="0"] .qty-pill-num { color: #9CA3AF; }

.qty-pill-oos {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9CA3AF;
}

/* Controls wrapper: swaps between the Add-to-Cart button and the qty stepper. */
.card-cart-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Prominent, glossy "Add to Cart" button — light-green brand, white text/icon. */
.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 1rem;
    border: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    color: #FFFFFF;
    background: linear-gradient(180deg, #66BB6A 0%, #4CAF50 55%, #43A047 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0.25rem 0.6rem rgba(46, 125, 50, 0.30);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.add-to-cart-btn i { font-size: 0.95rem; }
.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
    box-shadow: 0 0.35rem 0.85rem rgba(46, 125, 50, 0.42);
    transform: translateY(-1px);
}
.add-to-cart-btn:active:not(:disabled) { transform: translateY(0) scale(0.97); }
.add-to-cart-btn:disabled { opacity: 0.75; cursor: default; }
/* Brief "Added ✓" confirmation state. */
.add-to-cart-btn.added {
    background: linear-gradient(180deg, #2E7D32 0%, #1B5E20 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0.25rem 0.6rem rgba(27, 94, 32, 0.35);
}

@media (max-width: 767.98px) {
    .qty-pill { height: 34px; min-width: 90px; width: 100%; }
    .qty-pill-btn { width: 28px; height: 28px; }

    /* Full-width Add-to-Cart button on mobile, price stacked above it. */
    .product-card-foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .card-cart-controls { justify-content: stretch; }
    .add-to-cart-btn { width: 100%; height: 40px; font-size: 0.9rem; }
}

.pc-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    color: #16A34A;
    background: #ECFDF3;
    padding: 0.18rem 0.55rem;
    border-radius: 2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Veg / non-veg indicator (Indian food symbol) */
.veg-indicator {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.veg-indicator.veg { border-color: #2e7d32; }
.veg-indicator.nonveg { border-color: #b71c1c; }
.veg-dot { width: 8px; height: 8px; border-radius: 50%; }
.veg-indicator.veg .veg-dot { background: #2e7d32; }
.veg-indicator.nonveg .veg-dot { background: #b71c1c; }

/* Product name — 16px / 600 / #1F2937, max 2 lines */
.product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #1F2937;
    margin: 0 0 0.15rem;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-link { text-decoration: none; }
.product-card-link:hover .product-title { color: #16A34A; }

/* Short description — gray, single line, ellipsis */
.product-desc {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #6B7280;
    margin: 0 0 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Secondary labels --- */
.pc-labels { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pc-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 2rem;
}
.label-hot     { background: #fff0e6; color: #d84315; }
.label-most    { background: #e8f5e9; color: #2e7d32; }
.label-new     { background: #e3f2fd; color: #1565c0; }
.label-healthy { background: #e8f5e9; color: #2e7d32; }
.label-spicy   { background: #ffebee; color: #c62828; }
.label-offer   { background: #fff8e1; color: #ef6c00; }
.label-default { background: #ECFDF3; color: #16A34A; }

/* --- Rating (gold stars) --- */
.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-size: 0.85rem;
    color: #FFC107;
}
.product-rating .bi { font-size: 0.85rem; }
.product-rating-value { color: #374151; font-weight: 700; margin-left: 0.3rem; }
.product-rating-count { color: #6B7280; font-weight: 500; }
.product-rating--lg { font-size: 1.05rem; }
.product-rating--lg .bi { font-size: 1.05rem; }

/* --- Calories chip --- */
.pc-calories {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #d84315;
    background: #fff3e0;
    padding: 0.15rem 0.5rem;
    border-radius: 2rem;
}

/* Preparation time chip */
.pc-prep {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #00695c;
    background: #e0f2f1;
    padding: 0.15rem 0.5rem;
    border-radius: 2rem;
}

/* --- Price section --- */
.price-section { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; }
.price-sale { font-size: 1.1rem; font-weight: 700; color: #16A34A; }
.price-original { font-size: 0.82rem; font-weight: 600; color: #9CA3AF; text-decoration: line-through; }
/* Product details page keeps a larger price. */
.product-details-body .price-sale { font-size: 2rem; }
.price-savings {
    font-size: 0.7rem;
    font-weight: 700;
    color: #16A34A;
    background: #ECFDF3;
    padding: 0.1rem 0.45rem;
    border-radius: 2rem;
}

/* --- Buy Now button (primary, consistent everywhere) --- */
.buy-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 12px;
    background: #22C55E;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.buy-now-btn:hover:not(:disabled),
.buy-now-btn:focus:not(:disabled) {
    background: #16A34A;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 0.9rem rgba(22, 163, 74, 0.3);
}
.buy-now-btn:disabled { background: #D1D5DB; color: #6B7280; cursor: not-allowed; }

/* --- Add to Cart button (secondary, consistent everywhere) --- */
.add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    height: 42px;
    margin-top: 0.5rem;
    border: 1.5px solid #22C55E;
    border-radius: 12px;
    background: #FFFFFF;
    color: #16A34A;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.add-cart-btn:hover:not(:disabled),
.add-cart-btn:focus:not(:disabled) {
    background: #22C55E;
    color: #FFFFFF;
    box-shadow: 0 0.35rem 0.8rem rgba(34, 197, 94, 0.28);
}
.add-cart-btn.added { background: #16A34A; border-color: #16A34A; color: #FFFFFF; }

/* --- Navbar cart badge pop --- */
.cart-badge-pop { animation: cart-pop 0.35s ease; }
@keyframes cart-pop {
    0%   { transform: translate(-50%, -50%) scale(1); }
    50%  { transform: translate(-50%, -50%) scale(1.45); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Product-details action buttons share one row */
.details-actions .buy-now-btn,
.details-actions .add-cart-btn { flex: 1 1 0; margin-top: 0; }

/* "You May Also Like" carousel item sizing (~4 desktop / 2 tablet / 1 mobile) */
.related-rail-item { width: 260px; }
@media (min-width: 992px) {
    .related-rail-item { width: calc((100% - 3rem) / 4); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .related-rail-item { width: calc((100% - 1rem) / 2); }
}
@media (max-width: 767.98px) {
    .related-rail-item { width: 82%; }
}

/* ============================================================
   Category navigation — wraps on desktop, scrolls on mobile
   ============================================================ */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
@media (max-width: 767.98px) {
    .category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-green) transparent;
    }
    .category-nav::-webkit-scrollbar { height: 6px; }
    .category-nav::-webkit-scrollbar-thumb { background: var(--primary-green); border-radius: 3px; }
    .category-nav .category-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}

/* ============================================================
   Horizontal product rails (Most Ordered / Trending)
   ============================================================ */
.product-rail { position: relative; }
.rail-nav { display: flex; gap: 0.5rem; }
.rail-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-green);
    background: #fff;
    color: var(--dark-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rail-arrow:hover { background: var(--button-green); color: #fff; border-color: var(--button-green); }

.rail-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.35rem 0.25rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) transparent;
}
.rail-track::-webkit-scrollbar { height: 8px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--primary-green); border-radius: 4px; }
.rail-track::-webkit-scrollbar-track { background: transparent; }

.rail-item {
    flex: 0 0 auto;
    width: 235px;
    scroll-snap-align: start;
}
@media (max-width: 575.98px) {
    .rail-item { width: 78%; }
}

/* ============================================================
   Quick View modal
   ============================================================ */
.quick-view-modal .modal-content {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #FFFFFF;
}

/* Green header with a clearly visible white close (X) */
.qv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: #22C55E;
    color: #FFFFFF;
}
.qv-header-title {
    margin: 0;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qv-close-btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.qv-close-btn:hover { background: rgba(255, 255, 255, 0.32); transform: scale(1.05); }
.qv-close-btn .bi { font-size: 24px; }

.qv-img-wrap {
    position: relative;
    height: 100%;
    min-height: 300px;
    background: #F3F4F6;
    overflow: hidden;
}
.qv-img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; }
.qv-body { background: #FFFFFF; }
.qv-desc { color: #4B5563; }
.qv-actions { display: flex; flex-direction: column; align-items: stretch; }
.qv-actions .quantity-selector { align-self: flex-start; }
.qv-details-link {
    margin-top: 0.6rem;
    text-align: center;
    font-weight: 600;
    color: #16A34A;
    text-decoration: none;
}
.qv-details-link:hover { text-decoration: underline; color: #15803D; }

/* Mobile: full-screen quick view slides up from the bottom. */
@media (max-width: 767.98px) {
    .quick-view-modal .modal-content { border-radius: 0; min-height: 100%; }
    .quick-view-modal .qv-img-wrap { min-height: 220px; height: 240px; }
    .quick-view-modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    .quick-view-modal.show .modal-dialog { transform: translateY(0); }
}

/* ---------- Checkout fulfillment (delivery / pickup) — compact panel ---------- */
.fulfillment-panel {
    background: var(--secondary-green);
    border: 1px solid var(--border-green);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
}
.fulfillment-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-green);
    white-space: nowrap;
}
.fulfillment-single { font-size: 0.9rem; color: var(--text-green); }
.fulfillment-options {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
}
.fulfillment-option { margin: 0; cursor: pointer; flex: 1 1 160px; }
.fulfillment-option input { position: absolute; opacity: 0; pointer-events: none; }
.fulfillment-tile {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-green);
    border-radius: 0.6rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.fulfillment-tile i { font-size: 1.25rem; color: var(--button-green); flex: 0 0 auto; }
.fulfillment-tile-text { display: flex; flex-direction: column; line-height: 1.15; }
.fulfillment-tile-text small { font-size: 0.72rem; }
.fulfillment-option input:checked + .fulfillment-tile {
    border-color: var(--button-green);
    background: var(--secondary-green);
    box-shadow: 0 0.25rem 0.6rem rgba(76, 175, 80, 0.2);
}
.fulfillment-option input:focus-visible + .fulfillment-tile {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.35);
}
@media (max-width: 575.98px) {
    .fulfillment-option { flex: 1 1 45%; }
    .fulfillment-tile-text small { display: none; }
}

/* Sticky mobile add-to-cart bar (product details) */
.mobile-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: #fff;
    border-top: 1px solid var(--border-green);
    box-shadow: 0 -0.4rem 1rem rgba(46, 125, 50, 0.15);
}
.mobile-buy-bar .mobile-buy-price { display: flex; flex-direction: column; line-height: 1.1; }
.mobile-buy-bar .price-sale { font-size: 1.15rem; }
.mobile-buy-bar .price-original { font-size: 0.78rem; }
/* Spacer keeps the fixed bar from covering page content on mobile. */
.mobile-buy-spacer { display: none; }
@media (max-width: 767.98px) {
    .mobile-buy-spacer { display: block; height: 4.75rem; }
}
@media (min-width: 768px) {
    .mobile-buy-bar { display: none !important; }
}

/* Ingredients callout (details page + quick view) */
.product-ingredients {
    background: var(--secondary-green);
    border: 1px solid var(--border-green);
    border-radius: 0.75rem;
    padding: 0.6rem 0.85rem;
}

/* Mobile: image 140px + tightened card so 2-up stays compact. */
@media (max-width: 767.98px) {
    .product-card-media { height: 140px; }
    .product-card-body { padding: 0.55rem 0.6rem 0.6rem; }
    .product-title { font-size: 0.92rem; min-height: 2.4em; }
    .price-sale { font-size: 1rem; }
    .add-btn { min-width: 68px; height: 34px; font-size: 0.8rem; padding: 0 0.5rem; }
    .product-desc { font-size: 0.75rem; }
}
