﻿/* ============================================
   FOOTER STYLES - BROWN THEME
   ============================================ */

.section-divider-mini {
    height: 2px;
    background: linear-gradient(to right, transparent, #d4c4b0, transparent);
}

/* Footer Base */
.footer-ecommerce {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: #f5f1ed;
    position: relative;
    overflow: hidden;
}

.footer-ecommerce::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f4d9a6, transparent);
}

/* Footer Headings */
.footer-heading {
    color: #f4d9a6;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #f4d9a6;
}

/* Footer Text */
.footer-text {
    color: rgba(245, 241, 237, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-subtitle {
    color: #f4d9a6;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #f4d9a6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #f4d9a6;
    color: white;
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(245, 241, 237, 0.85) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f4d9a6;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #f4d9a6;
    padding-left: 5px;
}

.footer-links a:hover::before {
    width: 100%;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: rgba(245, 241, 237, 0.85);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-contact svg {
    color: #f4d9a6;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Payment & Security Badges */
.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #705542;
    padding: 0.375rem 0.75rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-badge:hover {
    background: white;
    border-color: #f4d9a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.15);
    color: #a5d6a7;
    padding: 0.375rem 0.75rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(165, 214, 167, 0.3);
}

.security-badge svg {
    color: #a5d6a7;
}

.security-badge-protected {
    display: inline-flex;
    align-items: center;
    background: rgba(33, 150, 243, 0.15);
    color: #90caf9;
    padding: 0.375rem 0.75rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(144, 202, 249, 0.3);
}

.security-badge-protected svg {
    color: #90caf9;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(244, 217, 166, 0.2);
}

.footer-bottom small {
    color: rgba(245, 241, 237, 0.75);
}

.footer-bottom-link {
    color: rgba(245, 241, 237, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #f4d9a6;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 767px) {
    .footer-ecommerce {
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .payment-badge,
    .security-badge,
    .security-badge-protected {
        margin: 0.25rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-heading {
        font-size: 0.95rem;
    }

    .footer-text,
    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
    }
}

/* Footer Animation on Scroll */
@media (prefers-reduced-motion: no-preference) {
    .footer-ecommerce {
        animation: fadeInUp 0.6s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Body and Background */
body {
    padding-top: 84px; /* 28px banner + 56px navbar - consolidated value */
    background-image: url('../img/site/bgsite7.webp');
    background-size: cover;
    background-position: center top; /* Start from top */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Fixed attachment for smooth parallax effect */
    position: relative;
    min-height: 100vh;
}

/* Parallax scrolling effect - moves background as you scroll */
@media (min-width: 768px) {
    body {
        background-size: 100% auto; /* Full width, auto height to show full image */
    }
}

/* Optional: Add a subtle overlay to improve text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0.70) 100%
    ); /* Gradient overlay - lighter at top, more opaque at bottom */
    z-index: -1;
    pointer-events: none;
    will-change: opacity; /* Hint to browser for optimization */
}

/* Removes default margin for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure all main content stays above background overlay */
.container,
.container-fluid {
    position: relative;
    z-index: 1;
    isolation: isolate; /* Create new stacking context */
    opacity: 1 !important; /* Force visibility - prevent flickering */
    visibility: visible !important; /* Force visibility */
}

/* Additional protection for main content areas */
main,
.main-content,
[role="main"] {
    position: relative;
    z-index: 1;
    isolation: isolate;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Sets a smooth transition for all elements */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.text-muted {
    color: #868e96 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.top-0 {
    top: 0 !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.start-0 {
    left: 0 !important;
}

.end-0 {
    right: 0 !important;
}

.z-index-1 {
    z-index: 1 !important;
}

.z-index-1030 {
    z-index: 1030 !important;
}

.z-index-1031 {
    z-index: 1031 !important;
}

/* Main content spacing - body already has correct padding-top */
.main-content {
    margin-top: 0 !important;
    padding-top: 2.5rem; 

}

.top-banner {
    background-color: #705542;
    color: #ffffff;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1031;
    min-height: 28px; /* Ensure minimum height for consistency */
}

.top-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap; /* Prevent wrapping on mobile */
}

.top-banner-message {
    margin: 0;
    padding: 0;
    transition: opacity 0.5s ease-in-out;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile: Smaller font to prevent wrapping */
@media (max-width: 576px) {
    .top-banner {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .top-banner-message {
        white-space: nowrap; /* Keep nowrap to maintain consistent banner height */
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .top-banner-content {
        flex-wrap: nowrap; /* Keep nowrap to maintain consistent banner height */
    }
}

/* Base Navbar Styles - FIXED BELOW BANNER */
.navbar.sticky-top {
    position: fixed !important;
    top: 28px !important; /* Height of top banner */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    min-height: 56px;
}

/* Body padding is now consolidated in the Global Styles section above */

.navbar .container {
    min-height: 56px;
    display: flex;
    align-items: center;
}

.navbar .btn-link {
    text-decoration: none;
    color: #000000;
    transition: color 0.2s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar .btn-link:hover {
    color: #705542;
}

.navbar .btn-link:focus,
.navbar .btn-link:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Add spacing after sticky navbar */
.navbar.sticky-top + .container,
header + .container {
    margin-top: 1rem;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none !important;
    padding: 0.4rem 0.6rem !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1.25rem;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Brand */
.brand-logo {
    height: 30px;
    transition: height 0.3s ease;
}

.brand-text {
    display: inline-block;
    font-size: 1rem;
}

/* Mobile Actions */
.mobile-actions {
    gap: 0.25rem;
    height: 100%;
    align-items: center;
}

.mobile-search-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

    .mobile-search-collapse input {
        border: 1.5px solid #7e644f;
        border-radius: 5px;
    }

    .mobile-search-collapse input:focus {
        border-color: #7e644f;
        outline: 0;
        box-shadow: none;
    }

    .mobile-search-collapse input::placeholder {
        color: #8b6f47;
        opacity: 0.7;
    }

/* Navbar nav - Equal Spacing */
.navbar-nav {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    gap: 0.5rem;
}

/* Desktop Mega Menu Styles */
.dropdown-mega {
    position: static;
}

.mega-menu {
    position: fixed;
    top: 84px; /* Fixed below banner + navbar */
    left: 0;
    right: 0;
    width: 100vw;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    border-top: none;
    border-bottom: 1px solid #dee2e6;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
}

    .mega-menu.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Ensure container inside mega-menu is properly sized */
.mega-menu .container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.mega-menu-link {
    display: inline-block;
    padding: 0.625rem 1rem;
    color: #7e644f;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.15s ease-in-out;
    background-color: transparent;
    position: relative;
}

    .mega-menu-link::after {
        content: '';
        position: absolute;
        bottom: 0.5rem;
        left: 1rem;
        width: calc(100% - 2rem);
        height: 2px;
        background-color: #7e644f;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.2s ease-in-out;
    }

    .mega-menu-link:hover {
        color: #7e644f;
        font-weight: 700;
    }

        .mega-menu-link:hover::after {
            transform: scaleX(1);
        }

.categories-grid {
    display: grid;
    gap: 0.5rem;
    padding: 1.5rem 0;
}

/* Mobile Offcanvas Styles - Full Screen */
.offcanvas {
    width: 100vw !important;
    max-width: 100vw !important;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 1.5rem 1rem;
}

.offcanvas-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* Main Menu Offcanvas - Perfectly Centered Vertically and Horizontally */
.offcanvas-menu-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: calc(100vh - 85px);
}

.offcanvas-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
}

.offcanvas-nav-link {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.75rem;
    font-weight: 500;
    text-align: center;
    color: #7e644f /* #000000*/;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

    .offcanvas-nav-link:link,
    .offcanvas-nav-link:visited,
    .offcanvas-nav-link:focus,
    .offcanvas-nav-link:active {
        color: #000000;
        text-decoration: none;
    }

    .offcanvas-nav-link::after {
        content: '';
        position: absolute;
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 80%;
        height: 2px;
        background-color: #705542;
        transition: transform 0.3s ease-in-out;
        transform-origin: center;
    }

    .offcanvas-nav-link:hover {
        color: #705542;
        font-weight: 700;
    }

        .offcanvas-nav-link:hover::after {
            transform: translateX(-50%) scaleX(1);
        }

    /* Categories Offcanvas - Centered with scroll */
    .offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    min-height: calc(100vh - 85px);
}

/* Add padding for centering first category */
#categoriesOffcanvas .offcanvas-body {
    justify-content: flex-start;
    padding-top: 40vh;
    padding-bottom: 40vh;
}

.categories-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-link {
    display: block;
    padding: 1.25rem 2rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    color: #7e644f;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

    .category-link::after {
        content: '';
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 60%;
        height: 2px;
        background-color: #7e644f;
        transition: transform 0.3s ease-in-out;
        transform-origin: center;
    }

    .category-link:hover,
    .category-link:active {
        color: #7e644f;
        font-weight: 700;
    }

        .category-link:hover::after,
        .category-link:active::after {
            transform: translateX(-50%) scaleX(1);
        }

    /* Search - Equal Spacing */
.search-container {
    position: relative;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    margin: 0 1rem;
}

.search-form-full {
    width: 100%;
}

/* Search Input Wrapper with Icon */
.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7e644f;
    pointer-events: none;
    z-index: 2;
}

.search-input-wrapper input {
    padding-left: 36px !important;
}

    .search-form-full input,
    .search-input-wrapper input {
        width: 100%;
        min-width: 0;
        border: 1.5px solid #7e644f;
        border-radius: 5px;
        transition: border-color 0.15s ease-in-out;
    }

        .search-form-full input:focus {
            border-color: #7e644f;
            outline: 0;
            box-shadow: none;
        }

        .search-form-full input::placeholder {
            color: #8b6f47;
            opacity: 0.7;
        }

.search-icon-toggle {
    margin-left: auto;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #000000;
    transition: color 0.2s ease;
}

    .search-icon-toggle:hover {
        color: #705542 !important;
    }

    .search-icon-toggle:focus,
    .search-icon-toggle:active {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        color: #705542;
    }

.desktop-search-collapse {
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .desktop-search-collapse input {
        border: 1.5px solid #7e644f;
        border-radius: 5px;
    }

    .desktop-search-collapse input:focus {
        border-color: #7e644f;
        outline: 0;
        box-shadow: none;
    }

    .desktop-search-collapse input::placeholder {
        color: #8b6f47;
        opacity: 0.7;
    }

.nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
}

/* Desktop Navigation Layout - Equal Spacing */
.d-none.d-sm-flex.justify-content-between.w-100 {
    gap: 1rem;
    align-items: center;
}

    .d-none.d-sm-flex.justify-content-between.w-100 > .navbar-nav {
        flex-shrink: 0;
        gap: 0.75rem;
    }

        .d-none.d-sm-flex.justify-content-between.w-100 > .navbar-nav:last-child {
            margin-left: 0.5rem;
        }

/* Desktop Navigation Hover Effect */
.d-none.d-sm-flex .navbar-nav .nav-item .nav-link {
    position: relative;
    transition: color 0.3s ease, font-weight 0.3s ease;
    color: #705542 !important;
    font-weight: 600 !important;
}

    .d-none.d-sm-flex .navbar-nav .nav-item .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 80%;
        height: 2px;
        background-color: #705542;
        transition: transform 0.3s ease-in-out;
        transform-origin: center;
    }

    .d-none.d-sm-flex .navbar-nav .nav-item .nav-link:hover,
    .d-none.d-sm-flex .navbar-nav .nav-item .nav-link.active {
        color: #705542 !important;
        font-weight: 700 !important;
    }

        .d-none.d-sm-flex .navbar-nav .nav-item .nav-link:hover::after,
        .d-none.d-sm-flex .navbar-nav .nav-item .nav-link.active::after {
            transform: translateX(-50%) scaleX(1);
        }

/* Recipes nav link underline effect (same pattern as navbar nav items) */
.nav-link-underline {
    position: relative;
    transition: color 0.3s ease;
    color: #705542 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: #705542;
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

.nav-link-underline:hover,
.nav-link-underline.active {
    color: #705542 !important;
    font-weight: 700 !important;
}

.nav-link-underline:hover::after,
.nav-link-underline.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-icon-toggle {
        display: block !important;
    }

    .search-form-full {
        display: none !important;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .search-container {
        margin: 0 0.75rem;
    }

    .d-none.d-sm-flex.justify-content-between.w-100 {
        gap: 0.75rem;
    }

        .d-none.d-sm-flex.justify-content-between.w-100 > .navbar-nav {
            gap: 0.5rem;
        }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .navbar-nav {
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
    }

    .search-container {
        margin: 0 1rem;
    }

    .d-none.d-sm-flex.justify-content-between.w-100 {
        gap: 1rem;
    }

        .d-none.d-sm-flex.justify-content-between.w-100 > .navbar-nav {
            gap: 0.75rem;
        }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .search-icon-toggle {
        display: none !important;
    }

    .search-form-full {
        display: flex !important;
    }

    .navbar-nav {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
    }

    .search-container {
        flex-grow: 1;
        margin: 0 1.5rem;
        max-width: 500px;
    }

    .d-none.d-sm-flex.justify-content-between.w-100 {
        gap: 1.25rem;
    }

        .d-none.d-sm-flex.justify-content-between.w-100 > .navbar-nav {
            gap: 1rem;
        }
}

@media (min-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .navbar-nav {
        gap: 1.25rem;
    }

    .nav-link {
        padding: 0.5rem 1.25rem !important;
    }

    .search-container {
        max-width: 600px;
    }

    .d-none.d-sm-flex.justify-content-between.w-100 {
        gap: 1.5rem;
    }

        .d-none.d-sm-flex.justify-content-between.w-100 > .navbar-nav {
            gap: 1.25rem;
        }
}

@media (min-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .search-container {
        max-width: 650px;
    }
}

/* Footer Brown Theme Styles */

/* ============================================
   SHARED PRODUCT CARD STYLES (SITE-WIDE)
   Used on: Home, Products page, Item detail
   Matches autocomplete design - clean white card with rounded border
   ============================================ */

/* Product Grid Card - Matches autocomplete item design */
.product-grid-card,
.item-product-card {
    background: white;
    border-radius: 5px;
    overflow: visible;
    position: relative;
    transition: all 0.3s ease;
    border: 2.5px solid #d4c4b0;
    aspect-ratio: 0.68 / 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
    isolation: isolate;
    backface-visibility: hidden;
    transform: translateZ(0);
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0.85rem 0.75rem 0.65rem 0.75rem;
    box-shadow: 0 2px 8px rgba(112, 85, 66, 0.1);
}

.product-grid-card::before,
.item-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(112, 85, 66, 0.03) 0%, rgba(139, 111, 71, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.product-grid-card:hover::before,
.item-product-card:hover::before {
    opacity: 1;
}

.product-grid-card:hover,
.item-product-card:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 4px 16px rgba(112, 85, 66, 0.12);
    border-color: #c9b89a;
    z-index: 2;
}

/* Product Card Image Container - Matches autocomplete design */
.product-grid-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f1ed;
    display: block;
    z-index: 1;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid #e8e0d5;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-grid-card:hover .product-grid-img-container,
.item-product-card:hover .product-grid-img-container {
    border: 1px solid #d4c4b0;
    box-shadow: 0 0 0 1px #d4c4b0;
}

/* Product Card Images - Matches autocomplete item styling */
.product-grid-img,
.item-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 5px;
    position: relative;
    transition: transform 0.3s ease;
}

.product-grid-card:hover .product-grid-img,
.item-product-card:hover .item-product-img {
    transform: scale(1.03);
}

/* Product Info Container - Below Image */
.product-grid-info,
.item-product-info {
    text-align: center;
    padding: 0 0.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* Product Title - Bold and uppercase like in image */
.product-grid-title,
.item-product-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #705542;
    margin-bottom: 0.16rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.1;
    min-height: 1.67em;
}

/* Product Reference - Small gray text */
.product-grid-ref,
.item-product-ref {
    font-size: 0.64rem;
    color: #999;
    margin-bottom: 0.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

/* Product Description - Italic style like in image */
.product-grid-description,
.item-product-description {
    font-size: 0.64rem;
    color: #8b6f47;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 1.48em;
    font-style: italic;
}

/* Product Price */
.product-grid-price,
.item-product-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #705542;
    margin-bottom: 0.5rem;
}

.product-grid-price small.text-muted,
.product-grid-price .text-muted {
    color: #6c757d !important;
    font-size: 0.75em;
}

/* View Product Button - Brown gradient button */
.product-grid-btn,
.item-product-btn {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.38rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.product-grid-btn:hover,
.item-product-btn:hover {
    background: linear-gradient(135deg, #8b6f47 0%, #705542 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.25);
    color: white;
    text-decoration: none;
}

.product-grid-btn:active,
.item-product-btn:active {
    transform: translateY(0);
}

/* ── Product card action row: stretch so heart matches button height ── */
.product-grid-actions {
    align-items: stretch !important;
}

.product-grid-actions .product-grid-btn {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Favorite (heart) button ── */
.btn-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: auto;
    min-height: 28px;
    align-self: stretch;
    padding: 0;
    border: 1px solid #e0d6cc;
    border-radius: 5px;
    background: #fff;
    color: #b9a99a;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.btn-favorite .heart-icon {
    transition: transform 0.15s ease;
}

.btn-favorite:hover {
    color: #705542;
    border-color: #8b6f47;
    background: #fdf6f0;
}

.btn-favorite.is-favorite {
    color: #705542;
    border-color: #8b6f47;
    background: #fdf6f0;
}

.btn-favorite:disabled,
.btn-favorite.is-loading {
    opacity: 0.6;
    cursor: default;
}

.btn-favorite.favorite-pop .heart-icon {
    transform: scale(1.3);
}

/* Item detail page heart button */
.btn-favorite-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 52px;
    border: 2px solid #d4c4b0;
    border-radius: 5px;
    background: #fff;
    color: #705542;
    cursor: pointer;
    padding: 0.65rem 1rem;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-favorite-detail:hover {
    color: #705542;
    border-color: #8b6f47;
    background: #fdf6f0;
}

.btn-favorite-detail.is-favorite {
    color: #705542;
    border-color: #8b6f47;
    background: #fdf6f0;
}

.btn-favorite-detail.favorite-pop .heart-icon {
    transform: scale(1.3);
    transition: transform 0.15s ease;
}

/* Login Message */
.product-grid-login,
.item-product-login {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8b6f47;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.product-grid-login svg,
.item-product-login svg {
    flex-shrink: 0;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: badgeBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badgeBounce {
    0% {
 transform: scale(0) rotate(-15deg);
   opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(3deg);
    }
    100% {
   transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.badge-mvp {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
}

.badge-promo {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
}

/* Promotion Badges - Special Styling */
.badge-promotion {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(112, 85, 66, 0.4);
}

.badge-offer {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(112, 85, 66, 0.4);
}

/* Promotion Price Styling */
.product-grid-price-original {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #999 !important;
    margin-bottom: 0.25rem;
}

.product-grid-price-hover.text-danger {
    color: #ff6b6b !important;
  font-size: 1.2rem;
    font-weight: 800;
}

/* Promotion Badge on Product Card - Larger variant */
.product-badge-large {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 5px;
}

/* Brown Theme Buttons */
.btn-brown {
    background-color: #705542;
    border-color: #705542;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-brown:hover {
        background-color: #5a4335;
        border-color: #5a4335;
     color: white;
        transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(112, 85, 66, 0.3);
    }

.btn-outline-brown {
    background-color: transparent;
    border: 2px solid #705542;
    color: #705542;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-outline-brown:hover {
  background-color: #705542;
   border-color: #705542;
   color: white;
        transform: translateY(-2px);
    }

/* Section Utilities */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #f5f1ed, transparent);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #705542;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    justify-content: center;
    margin-bottom: 1.5rem !important;
}

    .section-title svg {
        color: #8b6f47;
    }

/* Cart Offcanvas - Full width on mobile, fixed width on desktop */
.offcanvas-size-responsive {
    width: 100vw !important;
}

@media (min-width: 576px) {
    .offcanvas-size-responsive {
        width: 400px !important;
        max-width: 90vw;
    }
}

@media (min-width: 768px) {
    .offcanvas-size-responsive {
        width: 400px !important;
    }
}

/* ============================================
   CART BADGE STYLES - BROWN THEME
   ============================================ */

/* Cart Badge - Brown Theme Design */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    border-radius: 5px;
    min-width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
  font-size: 0.65rem;
    font-weight: 800;
    padding: 0 5px;
    box-shadow: 0 3px 8px rgba(112, 85, 66, 0.4), 
        0 1px 3px rgba(0, 0, 0, 0.15), 
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    border: 2.5px solid white;
    animation: badgePop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    letter-spacing: 0.3px;
    line-height: 1;
}

/* Pulse animation for new items */
@keyframes badgePulse {
    0%, 100% {
  transform: scale(1);
     box-shadow: 0 3px 8px rgba(112, 85, 66, 0.4), 
            0 1px 3px rgba(0, 0, 0, 0.15), 
            inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.15);
     box-shadow: 0 4px 12px rgba(112, 85, 66, 0.6), 
  0 2px 5px rgba(0, 0, 0, 0.2), 
 inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    }
}

.cart-badge.pulse {
    animation: badgePulse 0.6s ease-out;
}

/* Pop animation when badge appears */
@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-15deg);
      opacity: 0;
    }

    50% {
        transform: scale(1.25) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
      opacity: 1;
    }
}

/* Ensure cart icons have proper styling */
.bi-cart,
.bi-cart-fill {
    transition: all 0.3s ease;
}

/* Add subtle glow to cart icon when it has items - Brown theme */
.position-relative:has(.cart-badge[style*="display: inline-flex"]) .bi-cart-fill {
    filter: drop-shadow(0 0 3px rgba(112, 85, 66, 0.4));
}

/* Mobile specific adjustments */
@media (max-width: 576px) {
    .cart-badge {
        top: -6px;
        right: -8px;
      min-width: 20px;
        height: 20px;
        font-size: 0.6rem;
    border-width: 2px;
    }
}

/* Desktop specific - slightly larger */
@media (min-width: 992px) {
    .cart-badge {
        top: -9px;
        right: -11px;
        min-width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

/* ============================================
   TOAST NOTIFICATION - POSITIONED BELOW CART
   ============================================ */

/* Toast Notification - Appears below cart icon */
.cart-toast {
    position: fixed;
    top: 90px; /* Positioned below fixed header (28px banner + 56px navbar + 6px spacing) */
    right: 15px; /* Closer to edge, aligned with cart */
    background: white;
    padding: 14px 22px;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(112, 85, 66, 0.2), 
        0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
    pointer-events: none;
}

    .cart-toast.show {
  opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

.cart-toast-content {
    display: flex;
 align-items: center;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
}

.cart-toast-success {
    border-right: 4px solid #705542; /* Right border */
    color: #3d2f24;
    background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
}

.cart-toast-error {
    border-right: 4px solid #dc3545; /* Right border */
    color: #721c24;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.cart-toast-success svg {
    color: #705542;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(112, 85, 66, 0.3));
}

.cart-toast-error svg {
    color: #dc3545;
  flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(220, 53, 69, 0.3));
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .cart-toast {
        top: 85px; /* Adjusted for mobile fixed header */
        right: 5px;
        left: auto;
        max-width: calc(100vw - 10px);
        padding: 12px 18px;
    }

    .cart-toast-content {
        font-size: 13px;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 991px) {
    .cart-toast {
     top: 88px; /* Adjusted for tablet fixed header */
        right: 10px;
        max-width: 280px;
    }
}

/* Desktop - position near cart icon */
@media (min-width: 992px) {
    .cart-toast {
top: 90px; /* Positioned below fixed header */
        right: 20px; /* Aligned with container edge */
        max-width: 300px;
  }
}

/* Large Desktop - further adjustment */
@media (min-width: 1200px) {
    .cart-toast {
        right: calc((100vw - 1140px) / 2 + 20px); /* Aligned with Bootstrap container */
    }
}

/* Extra Large Desktop */
@media (min-width: 1400px) {
    .cart-toast {
        right: calc((100vw - 1320px) / 2 + 20px); /* Aligned with Bootstrap XXL container */
    }
}

/* ============================================
   CART OFFCANVAS STYLES - ENHANCED
   ============================================ */

/* Cart Offcanvas Header */
#cartOffcanvas .offcanvas-header {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    border-bottom: 2px solid #d4c4b0;
    padding: 1.25rem 1.5rem;
}

#cartOffcanvas .offcanvas-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

 #cartOffcanvas .offcanvas-title svg {
        color: #f4d9a6;
    }

#cartOffcanvas .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

  #cartOffcanvas .btn-close:hover {
        opacity: 1;
    }

/* Cart Items Container */
#cartItems {
    background-color: transparent;
    width: 100%;
}

/* Individual Cart Item - Enhanced */
/* Cart item base styles â€” defined in cart.css */

    /* Gift/Free Pack Items - Special Styling */
.cart-item-gift {
    /* defined in cart.css */
}

    .cart-item-gift:hover {
        /* defined in cart.css */
    }

/* Cart Footer/Summary */
#cartOffcanvas .bg-light {
background: linear-gradient(180deg, #f5f1ed 0%, #e8e0d5 100%) !important;
    border-top: 2px solid #d4c4b0 !important;
    box-shadow: 0 -4px 12px rgba(112, 85, 66, 0.08);
}

    #cartOffcanvas .bg-light strong {
        color: #705542;
 }

#cartTotal {
    color: #705542;
    font-weight: 700;
    font-size: 1.4rem;
}

#cartTotalExclVat {
    font-size: 1.2rem;
}

/* View Cart Button */
#cartOffcanvas .btn-primary {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
  text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

  #cartOffcanvas .btn-primary:hover {
        background: linear-gradient(135deg, #8b6f47 0%, #705542 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(112, 85, 66, 0.3);
    }

    #cartOffcanvas .btn-primary:active {
      transform: translateY(0);
    }

/* Empty Cart State */
#cartItems .text-center.text-muted {
    padding: 3rem 1rem !important;
}

    #cartItems .text-center.text-muted svg {
        color: #d4c4b0;
    }

    #cartItems .text-center.text-muted p {
        color: #8b6f47;
        font-size: 1rem;
        margin-top: 1rem;
      font-weight: 500;
    }

/* Cart item layout â€” defined in cart.css */

/* Loading State */
#cartItems .spinner-border {
    color: #705542;
    width: 2rem;
    height: 2rem;
}

#cartItems .text-center.text-muted p {
    color: #8b6f47;
}

/* Error State */
#cartItems .text-danger svg {
    color: #dc3545;
}

#cartItems .text-danger p {
    color: #721c24;
    font-weight: 500;
}

#cartItems .btn-outline-primary {
    border-color: #705542;
    color: #705542;
    font-weight: 500;
}

/* ============================================
   CART OFFCANVAS FOOTER STYLING
   ============================================ */

/* Cart Footer Container */
#cartOffcanvas .border-top {
    border-top: 1px solid #d4c4b0 !important;
    background: #faf7f3 !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 -2px 8px rgba(112, 85, 66, 0.06);
}

/* Total Title */
#cartOffcanvas .border-top .fw-semibold {
    color: #705542 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.6rem !important;
    letter-spacing: 0.02em;
}

/* Price Rows */
#cartOffcanvas .border-top .d-flex {
    padding: 0.35rem 0;
}

/* Excl VAT Row */
#cartOffcanvas .border-top .d-flex:first-of-type {
    margin-bottom: 0.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8ddd0;
}

#cartOffcanvas .border-top .d-flex small {
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    color: #8b6f47 !important;
}

#cartOffcanvas .border-top .d-flex strong {
    color: #705542 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

/* Incl VAT Row - Main Total */
#cartOffcanvas .border-top .d-flex:nth-of-type(2) {
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
}

#cartOffcanvas .border-top .d-flex:nth-of-type(2) span:first-child {
    color: #705542 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

#cartOffcanvas .border-top .d-flex:nth-of-type(2) span:last-child {
    color: #705542 !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
}

/* Checkout Button */
#cartOffcanvas .btn-primary {
    background-color: #705542 !important;
    border: none !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    border-radius: 5px !important;
    transition: background-color 0.2s ease;
}

#cartOffcanvas .btn-primary:hover {
    background-color: #5a3f30 !important;
}

#cartOffcanvas .btn-primary:active {
    background-color: #4a3325 !important;
    transform: scale(0.98);
}

/* Suggestion Container Spacing */
#cartOffcanvas .cart-suggestion-container {
    margin-bottom: 0;
}

  #cartItems .btn-outline-primary:hover {
        background-color: #705542;
        border-color: #705542;
     color: white;
    }

/* Responsive adjustments â€” cart offcanvas */
@media (max-width: 400px) {
    .cart-item-img {
        width: 44px;
        height: 44px;
    }

    .cart-item-title {
        font-size: 0.82rem;
    }
}

/* ============================================
   CART SUGGESTION - LEAST BOUGHT PRODUCT
   ============================================ */

.cart-suggestion-container {
    border-top: 1px dashed #d4c4b0;
    background: linear-gradient(135deg, #faf7f3 0%, #f0e8dd 100%);
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.cart-suggestion {
    padding: 0.6rem 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.cart-suggestion-header {
    display: flex;
    align-items: center;
    font-size: 0.6rem;
    color: #8b6f47;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    overflow: hidden;
}

.cart-suggestion-header span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-suggestion-header svg {
    color: #b8956a;
    flex-shrink: 0;
}

.cart-suggestion-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 5px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #e8ddd0;
    transition: box-shadow 0.2s ease;
    min-width: 0;
}

.cart-suggestion-product:hover {
    box-shadow: 0 2px 8px rgba(112, 85, 66, 0.1);
}

.cart-suggestion-img {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f0e8dd;
}

.cart-suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-suggestion-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a3728;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.cart-suggestion-days {
    font-size: 0.72rem;
    color: #b8956a;
    margin-top: 1px;
    white-space: nowrap;
}

.cart-suggestion-add-btn {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cart-suggestion-add-btn:hover {
    background: linear-gradient(135deg, #8b6f47 0%, #705542 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(112, 85, 66, 0.3);
    color: white;
}

.cart-suggestion-add-btn:active {
    transform: translateY(0);
}

/* ============================================
   CART EMPTY STATE - ENHANCED STYLING
   ============================================ */

/* Enhanced empty cart styling with brown theme */
#cartItems .cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
 min-height: 350px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f1ed 100%);
    border-radius: 5px;
    margin: 1rem;
}

#cartItems .cart-empty-state svg {
    color: #d4c4b0;
    opacity: 0.4;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(112, 85, 66, 0.1));
}

#cartItems .cart-empty-state p {
    color: #705542;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

#cartItems .cart-empty-state .cart-empty-subtext {
    color: #8b6f47;
    font-size: 0.9rem;
    font-weight: 400;
 margin-top: 0.5rem;
    opacity: 0.85;
}

/* Responsive adjustments for empty cart */
@media (max-width: 576px) {
    #cartItems .cart-empty-state {
padding: 3rem 1.5rem;
        min-height: 300px;
    }

    #cartItems .cart-empty-state svg {
        width: 56px !important;
        height: 56px !important;
    }

    #cartItems .cart-empty-state p {
        font-size: 1rem;
    }

    #cartItems .cart-empty-state .cart-empty-subtext {
      font-size: 0.85rem;
    }
}

/* ============================================
   CART MESSAGE STATES - UNIFIED STYLING
   ============================================ */

.cart-message {
    text-align: center;
    padding: 3rem 1.5rem;
  display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Cart Message Icons */
.cart-message-icon {
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

/* Loading State */
.cart-message-loading {
    border-radius: 5px;
    margin: 1rem;
}

    .cart-message-loading .spinner-border {
        border-width: 0.3rem;
    }

/* Empty State */
.cart-message-empty .cart-message-icon {
    color: #d4c4b0;
}

/* Error State */
.cart-message-error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #f5c6cb;
    border-radius: 5px;
    margin: 1rem;
}

    .cart-message-error .cart-message-icon {
        color: #dc3545;
 opacity: 0.5;
    }

/* Cart Message Text */
.cart-message-text {
    color: #705542;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.cart-message-subtext {
    color: #8b6f47;
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.85;
}

/* Retry Button Styling */
.cart-message .btn-brown {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .cart-message .btn-brown:hover {
        background: linear-gradient(135deg, #8b6f47 0%, #705542 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(112, 85, 66, 0.25);
    }

    .cart-message .btn-brown:active {
        transform: translateY(0);
    }

/* Animation for loading state */
@keyframes fadeIn {
    from {
        opacity: 0;
    transform: translateY(10px);
    }

    to {
        opacity: 1;
   transform: translateY(0);
    }
}

.cart-message {
    animation: fadeIn 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .cart-message {
    padding: 2rem 1rem;
min-height: 250px;
    }

    .cart-message-icon {
        width: 56px !important;
 height: 56px !important;
    }

    .cart-message-text {
        font-size: 1rem;
    }

    .cart-message-subtext {
        font-size: 0.85rem;
    }
}

/* Authentication Required State */
.cart-message-auth {
    background: linear-gradient(135deg, #fff9f0 0%, #ffefd5 100%);
    border: 2px solid #e8d5b7;
    border-radius: 5px;
    margin: 1rem;
}

    .cart-message-auth .cart-message-icon {
     color: #8b6f47;
        opacity: 0.5;
    }

    .cart-message-auth .btn-brown {
        margin-top: 0.5rem;
    }

/* Add to Cart Button Styling */
.btn-cart {
    background: transparent;
    border: none;
    color: #f4d9a6;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

    .btn-cart:hover {
  background: rgba(255, 255, 255, 0.2);
        color: white;
        transform: scale(1.1);
    }

    .btn-cart:active {
        transform: scale(0.95);
    }

/* ============================================
   SEARCH AUTOCOMPLETE STYLES - MODERN GRID LAYOUT
   Matches Categories Menu Design - FULL WIDTH
   ============================================ */

.autocomplete-container {
    position: relative;
    width: 100%;
}

/* Label card â€” first card in each group, identifies Products or Recipes */
.autocomplete-label-card {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0.7rem 0.6rem 0.6rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    box-shadow: none;
    user-select: none;
    cursor: default;
}

.autocomplete-label-card--recipe {
    background: none;
    border-color: transparent;
}

.autocomplete-label-card-icon {
    color: #705542;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autocomplete-label-card-title {
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #b6a179;
    line-height: 1.1;
}

.autocomplete-label-card-count {
    font-size: 0.65rem;
    font-weight: 600;
    color: #8b6f47;
    background: none;
    border-radius: 10px;
    padding: 0.05rem 0.45rem;
    line-height: 1.5;
}

/* Recipe card accent */
.autocomplete-item--recipe {
    border-color: #d4c4b0;
}

.autocomplete-item--recipe:hover,
.autocomplete-item--recipe.active {
    border-color: #a89070;
}

/* Recipe category badge */
.autocomplete-item-recipe-category {
    display: inline-block;
    background: #f5f1ed;
    border: 1px solid #e8e0d5;
    border-radius: 10px;
    padding: 0.1rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #705542;
    font-style: normal;
}

.autocomplete-results {
    position: fixed;
    top: 84px; /* Below fixed header (28px banner + 56px navbar) */
    left: 0;
    right: 0;
    background: white;
    border: none;
    border-bottom: 2px solid #e8e0d5;
    border-radius: 0;
    box-shadow: 0 8px 16px -4px rgba(112, 85, 66, 0.15);
    height: fit-content;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    z-index: 1050;
    display: none;
    margin-top: 0;
}

.autocomplete-results.show {
    display: block;
}

/* Full-width divider between product and recipe groups */
.autocomplete-group-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: #e8e0d5;
    margin: 0.25rem 0;
}

/* Grid Layout - Similar to Categories - WITH CONTAINER PADDING */
.autocomplete-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.25rem 1rem 1.25rem;
    max-width: 1320px; /* Bootstrap XXL container */
    margin: 0 auto;
}

.autocomplete-item {
    background: white;
    border: 2.5px solid #d4c4b0;
    border-radius: 5px;
    padding: 0.7rem 0.6rem 0.6rem 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(112, 85, 66, 0.1);
}

.autocomplete-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(112, 85, 66, 0.03) 0%, rgba(139, 111, 71, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.autocomplete-item:hover::before,
.autocomplete-item.active::before {
    opacity: 1;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(112, 85, 66, 0.12);
    border-color: #c9b89a;
}

/* Image container - matches product-grid-img-container */
.autocomplete-item-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f1ed;
    border: 2px solid #e8e0d5;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.autocomplete-item:hover .autocomplete-item-img-container,
.autocomplete-item.active .autocomplete-item-img-container {
    border-color: #d4c4b0;
    box-shadow: 0 0 0 1px #d4c4b0;
}

.autocomplete-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
}

.autocomplete-item:hover .autocomplete-item-image,
.autocomplete-item.active .autocomplete-item-image {
    transform: scale(1.03);
}

.autocomplete-item-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.autocomplete-item-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #705542;
    margin: 0 0 0.16rem 0;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 1.67em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.autocomplete-item-name mark {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 5px;
    font-weight: 700;
    color: #856404;
}

.autocomplete-item-meta {
    font-size: 0.64rem;
    color: #8b6f47;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.autocomplete-item-ref {
    font-size: 0.64rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    margin-bottom: 0.3rem;
}

.autocomplete-item-ref mark {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 5px;
    font-weight: 600;
    color: #856404;
}

.autocomplete-item-category {
    font-size: 0.64rem;
    color: #8b6f47;
    font-style: italic;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.autocomplete-item-price {
    display: none;
}


/* ============================================
   ABOUT US SECTION STYLES
   Matches the grid layout from the design mockup
   ============================================ */

/* About Card Base Styles */
.about-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    height: 100%;
    min-height: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(112, 85, 66, 0.2);
}

/* About Card Images */
.about-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.about-card:hover .about-card-img {
    transform: scale(1.05);
}

/* About Card Overlay */
.about-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 1.5rem;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

/* About Card Titles */
.about-card-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.about-card-title-small {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

/* Our Story Card */
.about-story-card {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    padding: 2rem;
    border-radius: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.2);
    transition: all 0.3s ease;
}

.about-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(112, 85, 66, 0.3);
}

.about-story-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.about-story-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.about-story-text:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .about-card-title {
        font-size: 2rem;
    }
    
    .about-card-title-small {
        font-size: 2rem;
    }
    
    .about-card-large {
        min-height: 250px;
    }
    
    .about-card-medium {
        min-height: 180px;
    }
    
    .about-card-small {
        min-height: 150px;
    }
    
    .about-story-card {
        padding: 1.5rem;
        min-height: 200px;
    }
    
    .about-story-title {
        font-size: 2rem;
    }
    
    .about-story-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .about-card-large {
        min-height: 280px;
    }
    
    .about-card-medium {
        min-height: 190px;
    }
    
    .about-card-small {
        min-height: 160px;
    }
}

@media (min-width: 992px) {
    .about-card-large {
        min-height: 350px;
    }
    
    .about-card-medium {
        min-height: 220px;
    }
    
    .about-card-small {
        min-height: 200px;
    }
    
    .about-story-card {
        min-height: 220px;
    }
}

/* No Results State - Enhanced Brown Theme */
.autocomplete-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 300px;
    margin: 1rem;
    border-radius: 5px;
}

.autocomplete-no-results-icon {
    color: #d4c4b0;
    opacity: 0.5;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(112, 85, 66, 0.1));
    animation: searchBounce 2s ease-in-out infinite;
}

@keyframes searchBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.autocomplete-no-results-title {
    color: #705542;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.autocomplete-no-results-text {
    color: #8b6f47;
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.85;
    max-width: 400px;
    line-height: 1.5;
}

/* Loading State - Enhanced */
.autocomplete-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 250px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f1ed 100%);
    margin: 1rem;
    border-radius: 5px;
}

.autocomplete-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
    color: #705542;
    margin-bottom: 1rem;
}

.autocomplete-loading-text {
    color: #705542;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Highlight Match Text */
.autocomplete-highlight {
    background: linear-gradient(135deg, rgba(112, 85, 66, 0.15) 0%, rgba(139, 111, 71, 0.15) 100%);
    color: #705542;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .autocomplete-no-results {
        padding: 3rem 1.5rem;
        min-height: 250px;
    }
    
    .autocomplete-no-results-icon svg {
        width: 56px !important;
        height: 56px !important;
    }
    
    .autocomplete-no-results-title {
        font-size: 1.1rem;
    }
    
    .autocomplete-no-results-text {
        font-size: 0.875rem;
    }
    
    .autocomplete-loading {
        padding: 2.5rem 1.5rem;
        min-height: 200px;
    }

    .autocomplete-loading .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ── Remove focus outline from all buttons & interactive elements ── */
button:focus,
button:focus-visible,
.btn:focus,
.btn:focus-visible,
a:focus,
a:focus-visible,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ============================================
   CART OFFCANVAS - TOTALS BLOCK
   ============================================ */
.cart-totals {
    font-variant-numeric: tabular-nums;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 2px 0;
    line-height: 1.25;
}

.cart-totals-row--divider {
    border-bottom: 1px solid #ede5db;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.cart-totals-row--total {
    margin-top: 2px;
    margin-bottom: 10px;
    padding-top: 2px;
}

.cart-totals-label {
    font-size: 0.75rem;
    color: #a09080;
    font-weight: 500;
    white-space: nowrap;
}

.cart-totals-label--strong {
    font-size: 0.82rem;
    color: #8b7a6e;
    font-weight: 500;
}

.cart-totals-sublabel {
    font-size: 0.7rem;
    color: #b0a090;
    font-weight: 400;
    margin-left: 2px;
}

.cart-totals-value {
    font-size: 0.78rem;
    color: #6b5b4d;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 5.5rem;
}

.cart-totals-value--strong {
    font-size: 0.82rem;
    color: #705542;
    font-weight: 600;
}

.cart-totals-row--discount .cart-totals-label,
.cart-totals-row--discount .cart-totals-value {
    color: #2d8a4e;
    font-weight: 600;
}

.cart-totals-row--muted .cart-totals-label,
.cart-totals-row--muted .cart-totals-value {
    color: #a09080;
    font-weight: 500;
}

.cart-totals-row--total .cart-totals-label {
    font-size: 0.95rem;
    color: #3d2f26;
    font-weight: 700;
}

.cart-totals-row--total .cart-totals-sublabel {
    font-size: 0.72rem;
    color: #8b7a6e;
    font-weight: 400;
}

.cart-totals-row--total .cart-totals-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #705542;
    min-width: 6.5rem;
}

