:root {
    --primary: #064e3b;
    --primary-light: #10b981;
    --accent: #fbbf24;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 220px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: #e5e7eb; /* Background for the outside area */
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0 1rem; /* Space on the sides for smaller screens */
}

@media (min-width: 1300px) {
    body { padding: 0; }
}

#app-boxed-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 60px rgba(0,0,0,0.1);
    position: relative;
    min-height: 100vh;
}

/* Header & Navigation Refinement */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1300px;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.9;
}

.location-selector:hover {
    opacity: 1;
}

.location-selector i:first-child {
    color: var(--accent);
    font-size: 1rem;
}

.dark-mode-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.main-header {
    padding: 0.75rem 0;
    background: var(--white);
    border-bottom: 1px solid #f3f4f6;
}

.logo-img {
    height: auto;
    max-height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.search-container {
    flex: 0 1 500px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 0.9rem 1.5rem 0.9rem 3.5rem;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.05);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.action-btn {
    position: relative;
    color: var(--text-dark);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.action-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--white);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary);
    cursor: pointer;
}

/* Category Navigation in Header */
.category-nav {
    position: relative;
    z-index: 50;
    background: var(--white);
    padding: 0.75rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.tabs-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    -ms-overflow-style: none;        /* IE 10+ */
}

.tabs-wrapper::-webkit-scrollbar { display: none; }

.tab-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tab-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: none;
    box-shadow: none;
}

.tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-icon i {
    font-size: 1rem;
    color: var(--primary);
}

.tab-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    transition: var(--transition);
}

.tab-item.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

/* Active pill text color (White by default) */
.tab-item.active span {
    color: var(--white);
    opacity: 1;
    max-width: none;
    overflow: visible;
}

/* Turn text yellow on hover over active pill */
.tab-item.active:hover span {
    color: var(--accent); /* This is the gold/yellow color */
}

.tab-item.active .tab-icon i {
    color: var(--accent);
}

.tab-item:hover:not(.active) {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: #f0fdf4;
}

.tab-item:hover:not(.active) span {
    color: var(--primary);
}

/* Hero Slider */
.hero-slider { padding: 2.5rem 0 1.5rem; }

.hero-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.25rem;
}

.hero-left {
    min-width: 0;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.promo-banner {
    flex: 1;
    border-radius: 20px;
    background: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.promo-banner:hover {
    transform: translateY(-5px);
}

.promo-banner img {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.promo-content {
    position: relative;
    z-index: 2;
    width: 60%;
}

.promo-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.promo-content a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.promo-content a i {
    color: var(--accent);
    font-size: 1.1rem;
}

.promo-content a:hover {
    color: var(--primary-light);
}

@media (max-width: 991px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }
    .hero-right {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-right {
        grid-template-columns: 1fr;
    }
}

.slider-container {
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #064e3b;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: var(--white);
    z-index: 2;
    max-width: 500px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: none;
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--white);
    width: 25px;
    border-radius: 5px;
}

/* Trust Badges Refinement */
.trust-badges {
    padding: 1.5rem 0;
}

.badges-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    padding: 1.75rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.15);
}

.badge-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--white);
    padding: 0 1.5rem;
}

.badge-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-item i {
    font-size: 2rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.badge-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--white);
}

.badge-item p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Dish Discoveries */
.dish-discoveries {
    padding: 2.5rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
}

.discoveries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.discovery-card {
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.discovery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.discovery-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.discovery-card:hover img {
    transform: scale(1.1);
}

.discovery-card:hover .overlay {
    background: rgba(0,0,0,0.5);
}

.discovery-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1rem;
}

.discovery-card.more .overlay {
    background: #9ca3af;
    gap: 1rem;
}

.discovery-card.more i {
    font-size: 2rem;
}

/* Product Carousel */
.product-carousel {
    padding: 2.5rem 0;
    background: #f9fafb;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
    margin-bottom: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
}

.product-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.price {
    font-weight: 700;
    color: var(--primary);
}

/* Chef's Recommendation */
.chef-recommendation {
    padding: 2.5rem 0;
}

@media (max-width: 1024px) {
    .discoveries-grid { grid-template-columns: repeat(3, 1fr); }
    .badges-grid { grid-template-columns: repeat(1, 1fr); gap: 1rem; }
    .badge-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
}


/* Premium Highlights Section */
.premium-highlights {
    padding: 3.5rem 0 2rem;
    background: var(--white);
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.premium-block {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 260px;
    background: var(--bg-light);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.03);
}

.premium-block:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

.premium-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.premium-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-block:hover .premium-bg img {
    transform: scale(1.15);
}

.premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.1) 40%, 
        rgba(0,0,0,0.8) 100%
    );
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem 1.25rem;
    color: var(--white);
}

.premium-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.premium-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.premium-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.premium-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.premium-btn {
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.premium-block:hover .premium-btn {
    background: var(--accent);
    color: var(--primary);
    transform: rotate(90deg);
    border-color: var(--accent);
}

@media (max-width: 1200px) {
    .premium-grid { gap: 1rem; }
    .premium-block { height: 260px; }
}

@media (max-width: 991px) {
    .premium-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .premium-grid { grid-template-columns: 1fr; }
    .premium-block { height: 240px; }
}

/* Dark Mode support for Premium Blocks */
body.dark-mode .premium-highlights {
    background: var(--bg-light);
}

body.dark-mode .premium-block {
    background: #1f2937;
    border-color: rgba(255,255,255,0.05);
}

/* Dark Mode Theme */
body.dark-mode {
    --white: #1f2937;
    --bg-light: #111827;
    --text-dark: #f9fafb;
    --text-muted: #9ca3af;
    background-color: #111827;
}

body.dark-mode header,
body.dark-mode .main-header,
body.dark-mode .category-nav {
    background: #1f2937;
    border-bottom: 1px solid #374151;
}

/* Exclude logo from dark mode — always render in full original color */
body.dark-mode .logo-img {
    filter: brightness(1.2) !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

body.dark-mode .action-btn {
    background: #374151 !important;
    color: #f9fafb !important;
}

body.dark-mode .action-btn:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

body.dark-mode .action-btn .badge {
    border-color: #1f2937 !important;
}

body.dark-mode .smart-search-bar {
    background: #374151 !important;
    border-color: #4b5563 !important;
}

body.dark-mode .smart-search-bar input {
    color: #f1f5f9 !important;
}

body.dark-mode .smart-search-icon {
    color: #94a3b8 !important;
}

/* Footer Dark Mode Fixes */
body.dark-mode footer,
body.dark-mode .footer-info p,
body.dark-mode .footer-links a,
body.dark-mode .footer-contact-item span,
body.dark-mode .footer-bottom p {
    color: #ffffff !important;
}

body.dark-mode .footer-links h4 {
    color: var(--accent) !important;
}

/* Trust Badges Dark Mode Fix */
body.dark-mode .badge-item,
body.dark-mode .badge-item h4,
body.dark-mode .badge-item p {
    color: #ffffff !important;
}

/* Discovery Cards Dark Mode Fix */
body.dark-mode .discovery-card .overlay h4,
body.dark-mode .discovery-card.more h4,
body.dark-mode .discovery-card.more i {
    color: #ffffff !important;
}

body.dark-mode .tab-item {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

body.dark-mode .tab-item span {
    color: #f9fafb;
}

body.dark-mode .tab-item.active {
    background: var(--primary);
    border-color: var(--primary);
}

body.dark-mode .tab-item:hover:not(.active) {
    background: #374151;
}
body.dark-mode .tab-item:hover span {
    color: #10b981 !important;
}



body.dark-mode .product-card, 
body.dark-mode .discovery-card,
body.dark-mode .subcategory-card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .product-carousel,
body.dark-mode .chef-recommendation,
body.dark-mode .dish-discoveries {
    background: #111827 !important;
}

body.dark-mode .section-title {
    color: var(--primary-light);
}

body.dark-mode .product-info h4 {
    color: #f1f5f9;
}

body.dark-mode .search-container input {
    background: #374151;
    border-color: #4b5563;
    color: white;
}

/* Side Cart Drawer */
.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
    .side-cart-drawer { width: 100%; right: -100%; }
}

.side-cart-drawer.active {
    right: 0;
}

.side-cart-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.side-cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.close-drawer {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-drawer:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.side-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-cart-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.side-cart-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.side-cart-info {
    flex: 1;
}

.side-cart-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.side-cart-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.side-cart-footer {
    padding: 2rem;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.side-cart-total span {
    color: var(--text-muted);
}

.side-cart-total strong {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.side-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.view-cart-btn {
    text-decoration: none;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.checkout-btn-side {
    text-decoration: none;
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.checkout-btn-side:hover {
    background: #065f46;
}

/* Updated Recommendation Grid for Scrolling */
.recommendation-grid {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.33% - 1.35rem);
    gap: 2rem;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@media (max-width: 992px) {
    .recommendation-grid { grid-auto-columns: calc(50% - 1rem); }
}

@media (max-width: 576px) {
    .recommendation-grid { grid-auto-columns: 100%; }
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info .logo-img {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-info p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4 {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: var(--primary-light);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* Subcategory Cards */
.subcategory-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.subcategory-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #f3f4f6;
    transition: var(--transition);
}

.subcategory-card:hover img {
    border-color: var(--accent);
}

.subcategory-card h4 {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
}

/* --- Premium Product Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 15, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    border-radius: 48px;
    position: relative;
    overflow: hidden;
    transform: translateY(40px) scale(0.92);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px -20px rgba(0, 31, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--danger);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.modal-header-fixed {
    padding: 2rem 2.5rem 1rem 2.5rem;
    background: var(--white);
    z-index: 10;
    border-bottom: 1px solid #f1f5f9;
}

.modal-body {
    padding: 0 2rem 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Webkit fallback for scrollbar-width + scrollbar-color (Chrome < 121, Safari, iOS) */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background-color: #e2e8f0; border-radius: 10px; }

.product-detail-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.product-image-container {
    position: relative;
    width: 100%;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1.1;
    border-radius: 40px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.veg-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    color: #064e3b;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-detail-info h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.modal-price-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.modal-description-list {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 500;
}

.option-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.option-section h4 {
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: capitalize;
}

.premium-dark-footer {
    background: #002117;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: 0 0 48px 48px;
}

.premium-dark-footer .total-label {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.total-price-white {
    font-size: 1.5rem;
    color: #ffffff !important;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.qty-control-dark {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #003023;
    padding: 0.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.qty-btn-dark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: none;
    background: #335e52;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.qty-btn-dark:hover {
    background: #4a7a6c;
}

.qty-val-white {
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    min-width: 24px;
    text-align: center;
}

.add-to-cart-btn-white {
    background: #ffffff !important;
    color: #002117 !important;
    border: none;
    padding: 0.4rem 0.4rem 0.4rem 1.75rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.add-to-cart-btn-white:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.cart-icon-box {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002117;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 31, 20, 0.5);
}

.add-to-cart-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Removed redundant total-preview styles */

@media (max-width: 768px) {
    .product-detail-header { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-detail-image { height: 280px; }
    .modal-body { padding: 1.5rem; }
    .modal-footer { padding: 1.25rem 1.5rem; flex-direction: column; align-items: stretch; gap: 1rem; }
    .total-preview { text-align: center; }
    .qty-control { justify-content: center; }
    .add-to-cart-btn { max-width: none; }
    .product-detail-info h2 { font-size: 2rem; }
}

/* Variations & Add-ons - Full Row with Counter */
.variation-section, .addon-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}
.variation-list, .addon-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.variation-item, .addon-item {
    background: #f8fbff;
    padding: 0.85rem 1.25rem;
    border-radius: 20px;
    border: 1px solid #eef2ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.variation-item:hover, .addon-item:hover {
    background: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(0, 31, 20, 0.08);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.variation-item.selected, .addon-item.selected {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(6, 78, 59, 0.15);
}

.option-info {
    flex: 1;
}

.option-label {
    font-weight: 700;
    color: #334155;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.option-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.addon-qty-control {
    display: none; /* Hidden until selected */
    align-items: center;
    gap: 0.85rem;
    background: #002117;
    padding: 0.25rem;
    border-radius: 12px;
}

.addon-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: #335e52;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.addon-qty-btn:hover {
    background: #4a7a6c;
}

.addon-qty-val {
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    min-width: 18px;
    text-align: center;
}

.variation-item.selected .addon-qty-control,
.addon-item.selected .addon-qty-control {
    display: flex;
}

.selection-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.variation-item.selected .selection-indicator,
.addon-item.selected .selection-indicator {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.variation-item.selected .selection-indicator i,
.addon-item.selected .selection-indicator i {
    display: block;
}

.selection-indicator i {
    color: var(--white);
    font-size: 0.9rem;
    display: none;
}

.variation-item.selected .selection-indicator i,
.addon-item.selected .selection-indicator i {
    display: block;
}

.addon-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.addon-qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.addon-qty-val {
    font-weight: 700;
    min-width: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.variation-item:hover, .addon-item:hover {
    border-color: var(--primary);
    background: var(--white);
}

.variation-item.selected, .addon-item.selected {
    background: #ecfdf5;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.option-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.option-price-tag {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.selection-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--white);
}

.variation-item.selected .selection-indicator {
    border-color: var(--primary);
}

.variation-item.selected .selection-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}
.spice-distribution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.spice-dist-row {
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spice-dist-row:hover {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05);
}

.section-header-main {
    margin-bottom: 1.5rem;
}

.section-header-main h4 {
    margin-bottom: 0.25rem !important;
    font-size: 1.15rem !important;
}

.section-subtext {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Simple Spice Toggle Refinement */
.spice-simple-btn {
    flex: 1;
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid #eef2ff;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #475569;
}

.spice-simple-btn.active {
    background: #002117;
    color: var(--white);
    border-color: #002117;
    box-shadow: 0 10px 20px rgba(0, 33, 23, 0.2);
}

/* Recommendation Section */
.recommendation-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: #fffdf5;
    border: 1px solid #fef3c7;
    border-radius: 32px;
}

.rec-title {
    color: #92400e !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

.rec-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rec-item {
    background: #ffffff;
    padding: 1rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid #f8fafc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.rec-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.rec-info {
    flex: 1;
}

.rec-info h5 {
    margin: 0;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 700;
}

.rec-price {
    font-size: 0.85rem;
    color: #fbbf24;
    font-weight: 800;
}

.rec-add-btn {
    padding: 0.6rem 1.25rem;
    background: #002117;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rec-add-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.spice-counter {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--white);
    padding: 0.2rem;
    border-radius: 100px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.spice-counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.spice-counter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0fdf4;
}

.spice-counter-val {
    font-weight: 800;
    font-size: 1.15rem;
    color: #1e293b;
    min-width: 24px;
    text-align: center;
}

/* Simple Spice Toggle (Qty = 1) */
.spice-simple-options {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.spice-simple-btn {
    flex: 1;
    padding: 1.1rem 1rem;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    font-size: 1.05rem;
}

.spice-simple-btn.active {
    background: #001f14;
    color: var(--white);
    border-color: #001f14;
    box-shadow: 0 10px 20px -5px rgba(0, 31, 20, 0.3);
}

.spice-simple-btn:hover:not(.active) {
    border-color: var(--primary);
    background: var(--white);
}

body.dark-mode .spice-simple-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

body.dark-mode .spice-simple-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

body.dark-mode .spice-dist-row {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .spice-label {
    color: #f1f5f9;
}

body.dark-mode .spice-counter {
    background: rgba(0,0,0,0.2);
}

body.dark-mode .spice-counter-btn {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

body.dark-mode .spice-counter-val {
    color: var(--white);
}

@media (max-width: 768px) {
    .spice-distribution-grid { grid-template-columns: 1fr; }
}
.instruction-box textarea {
    padding: 1.25rem;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    background: #f8fafc;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s ease;
}
/* Category Banner Styles */
.category-banner-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.category-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-banner-wrapper:hover .category-banner-img {
    transform: scale(1.05);
}

.category-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.category-banner-overlay h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-family: 'Outfit', sans-serif;
}

.category-banner-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .category-banner-wrapper { height: 200px; border-radius: 20px; }
    .category-banner-overlay h1 { font-size: 2.2rem; }
    .category-banner-overlay p { font-size: 0.9rem; }
}

.instruction-box textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.05);
}

/* Side Cart Drawer */
.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
    .side-cart-drawer { width: 100%; right: -100%; }
}

.side-cart-drawer.active {
    right: 0;
}

.side-cart-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.side-cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.close-drawer {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-drawer:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.side-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-cart-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.side-cart-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.side-cart-info {
    flex: 1;
}

.side-cart-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.side-cart-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.side-cart-footer {
    padding: 2rem;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.side-cart-total span {
    color: var(--text-muted);
}

.side-cart-total strong {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.side-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.view-cart-btn {
    text-decoration: none;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.checkout-btn-side {
    text-decoration: none;
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.checkout-btn-side:hover {
    background: #065f46;
}

/* Side Cart Dark Mode */
body.dark-mode .side-cart-drawer {
    background: #1e293b;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

body.dark-mode .side-cart-header {
    border-bottom-color: #334155;
}

body.dark-mode .side-cart-header h3 {
    color: #f1f5f9;
}

body.dark-mode .close-drawer {
    color: #94a3b8;
}

body.dark-mode .side-cart-info h4 {
    color: #f1f5f9;
}

body.dark-mode .side-cart-info p {
    color: var(--primary-light);
}

body.dark-mode .side-cart-footer {
    background: #0f172a;
    border-top-color: #334155;
}

body.dark-mode .side-cart-total strong {
    color: #f1f5f9;
}

body.dark-mode .view-cart-btn {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
}

body.dark-mode .view-cart-btn:hover {
    background: #475569;
}

/* Recommendation Slider & Grid */
.recommendation-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.recommendation-grid {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 1.35rem);
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    /* Hide scrollbar cross-browser */
    -ms-overflow-style: none;        /* IE 10+ */
}

/* Webkit fallback for scrollbar-width: none (Chrome < 121, Safari, iOS) */
.recommendation-grid::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 15px rgba(6, 78, 59, 0.2);
    border-color: var(--primary);
}

.nav-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Slider Dark Mode Adaptation */
body.dark-mode .nav-btn {
    background: #1f2937;
    border-color: #374151;
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

body.dark-mode .nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 992px) {
    .recommendation-grid { grid-auto-columns: calc(50% - 1rem); }
}

@media (max-width: 576px) {
    .recommendation-grid { grid-auto-columns: 100%; }
    .recommendation-wrapper {
        gap: 0.5rem;
    }
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}



/* ============================================
   CHEF'S RECOMMENDATION — PREMIUM REDESIGN
   ============================================ */

.chef-recommendation {
    padding: 5rem 0;
    background: #f8fafc;
}

.chef-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.chef-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(6, 78, 59, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.chef-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0.35rem 0 0;
}

.rec-nav-buttons {
    display: none;
}

.recommendation-track-wrapper {
    position: relative;
    border-radius: 20px;
}

.overlay-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.overlay-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.05);
}

.overlay-btn.prev {
    left: -22px;
}

.overlay-btn.next {
    right: -22px;
}

@media (max-width: 768px) {
    .overlay-btn.prev { left: -10px; }
    .overlay-btn.next { right: -10px; }
}

.recommendation-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1rem;
    -ms-overflow-style: none;        /* IE 10+ */
}

/* Webkit fallback for scrollbar-width: none (Chrome < 121, Safari, iOS) */
.recommendation-track::-webkit-scrollbar {
    display: none;
}

.rec-card {
    min-width: calc(25% - 1.125rem);
    flex-shrink: 0;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.04);
}

@media (max-width: 1200px) {
    .rec-card {
        min-width: calc(33.333% - 1rem);
    }
}

@media (max-width: 992px) {
    .rec-card {
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 576px) {
    .rec-card {
        min-width: 100%;
    }
}

.rec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(6, 78, 59, 0.12);
}

.rec-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.rec-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rec-card:hover .rec-card-img-wrap img {
    transform: scale(1.07);
}

.rec-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
}

.rec-chef-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(6, 78, 59, 0.9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rec-wish {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 0.95rem;
    transition: all 0.3s;
    z-index: 2;
}

.rec-wish:hover {
    background: #fff;
    color: #ef4444;
    transform: scale(1.1);
}

.rec-card-body {
    padding: 1.5rem;
}

.rec-stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #f59e0b;
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
}

.rec-stars span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.3rem;
}

.rec-card-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.rec-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.rec-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rec-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.rec-add-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.rec-add-btn:hover {
    background: #065f46;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(6,78,59,0.25);
}

/* Dark Mode — Recommendation */
body.dark-mode .chef-recommendation {
    background: #111827;
}

body.dark-mode .chef-label {
    background: rgba(110, 231, 183, 0.1);
    color: var(--primary-light);
}

body.dark-mode .chef-subtitle {
    color: #94a3b8;
}

body.dark-mode .rec-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .rec-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

body.dark-mode .rec-card-body h4 {
    color: #f1f5f9;
}

body.dark-mode .rec-desc {
    color: #94a3b8;
}

body.dark-mode .rec-wish {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
}

/* Responsive — Recommendation */
@media (max-width: 992px) {
    .rec-card { min-width: calc(50% - 0.75rem); }
}

@media (max-width: 640px) {
    .rec-card { min-width: 85%; }
    .chef-section-header { flex-direction: column; align-items: flex-start; }
    .rec-nav-buttons { align-self: flex-end; }
}


/* ============================================================
   SMART SEARCH BAR — Premium Redesign
   ============================================================ */

.smart-search-wrap {
    flex: 1;
    max-width: 620px;
    position: relative;
    z-index: 500;
}

.smart-search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 100px;
    padding: 0.55rem 0.55rem 0.55rem 1.2rem;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.smart-search-bar:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.10), 0 4px 20px rgba(6,78,59,0.08);
}

.smart-search-icon {
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
    transition: color 0.3s;
}

.smart-search-bar:focus-within .smart-search-icon {
    color: var(--primary);
}

.smart-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: inherit;
    min-width: 0;
}

.smart-search-bar input::placeholder {
    color: #94a3b8;
}

/* Keyboard shortcut hint */
.search-kbd-hint {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.smart-search-bar:focus-within .search-kbd-hint {
    opacity: 0;
    pointer-events: none;
}

.search-kbd-hint kbd {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.68rem;
    font-family: inherit;
    color: #64748b;
    line-height: 1.5;
}

/* Submit arrow button */
.smart-search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.7);
}

.smart-search-bar:focus-within .smart-search-btn {
    opacity: 1;
    transform: scale(1);
}

.smart-search-btn:hover {
    background: #065f46;
    transform: scale(1.08);
}

/* Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 480px;
    overflow-y: auto;
    z-index: 9999;
}

/* Webkit fallback for scrollbar-width: none (Chrome < 121, Safari, iOS) */
.search-dropdown::-webkit-scrollbar { display: none; }

.search-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Sections */
.search-section-label {
    padding: 0.85rem 1.2rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover,
.search-result-item.focused {
    background: #f8fafc;
}

.search-result-item img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-name mark {
    background: rgba(6, 78, 59, 0.12);
    color: var(--primary);
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 700;
}

.search-result-price {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 1px;
}

.search-result-cat-badge {
    font-size: 0.72rem;
    background: rgba(6,78,59,0.08);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 600;
}

.search-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 1.2rem;
}

.search-dropdown-footer {
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}

.search-dropdown-footer:hover {
    background: #f8fafc;
}

.search-dropdown-footer i {
    color: var(--primary);
}

.search-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #94a3b8;
}

.search-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.search-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Dark Mode — Smart Search */
body.dark-mode .smart-search-bar {
    background: #1f2937;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .smart-search-bar:focus-within {
    background: #111827;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), 0 4px 20px rgba(16,185,129,0.06);
}

body.dark-mode .smart-search-bar input {
    color: #f1f5f9;
}

body.dark-mode .smart-search-bar input::placeholder {
    color: #6b7280;
}

body.dark-mode .search-kbd-hint kbd {
    background: #374151;
    border-color: #4b5563;
    color: #9ca3af;
}

body.dark-mode .search-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

body.dark-mode .search-result-item:hover,
body.dark-mode .search-result-item.focused {
    background: #0f172a;
}

body.dark-mode .search-result-name {
    color: #f1f5f9;
}

body.dark-mode .search-divider {
    background: #334155;
}

body.dark-mode .search-dropdown-footer {
    color: #94a3b8;
}

body.dark-mode .search-dropdown-footer:hover {
    background: #0f172a;
}


/* ============================================================
   CHATBOT FLOATING BUBBLE
   ============================================================ */

.chatbot-bubble {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 55px;
    height: 55px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
    overflow: visible;
}

.chatbot-logo-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.chatbot-bubble:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.chatbot-bubble-icon {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.chatbot-bubble-close {
    font-size: 1.3rem;
    position: absolute;
}

/* Pulsing ring */
.chatbot-bubble-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.35);
    animation: chatbotPulse 2.2s ease-out infinite;
}

@keyframes chatbotPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(1.6); opacity: 0;   }
    100% { transform: scale(1.6); opacity: 0;   }
}

/* Tooltip */
.chatbot-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #fff;
    color: #1a1a1a;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
}

.chatbot-tooltip strong {
    color: var(--primary);
    font-weight: 700;
}

.chatbot-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
}

.chatbot-bubble:hover .chatbot-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Dark Mode */
body.dark-mode .chatbot-bubble {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

body.dark-mode .chatbot-tooltip {
    background: #f1f5f9;
    color: #0f172a;
}

body.dark-mode .chatbot-tooltip::after {
    border-left-color: #f1f5f9;
}

@media (max-width: 576px) {
    .chatbot-bubble { bottom: 1.2rem; right: 1.2rem; width: 54px; height: 54px; }
}


/* ============================================================
   CHATBOT EMBEDDED WINDOW
   ============================================================ */

.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    pointer-events: none;
}

.chatbot-widget > * {
    pointer-events: auto;
}

/* Chat Window */
.chatbot-window {
    width: 380px;
    height: 560px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1), visibility 0.3s;
}

.chatbot-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Window Header */
.chatbot-window-header {
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.chatbot-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
}

.chatbot-header-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.chatbot-header-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #86efac;
    border-radius: 50%;
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chatbot-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chatbot-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Iframe Area */
.chatbot-iframe-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.chatbot-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loading Overlay */
.chatbot-iframe-loader {
    position: absolute;
    inset: 0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.88rem;
    transition: opacity 0.4s ease;
}

.chatbot-iframe-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.chatbot-loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Dark Mode */
body.dark-mode .chatbot-window {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

body.dark-mode .chatbot-iframe-loader {
    background: #1e293b;
    color: #94a3b8;
}

body.dark-mode .chatbot-iframe-loader .chatbot-loader-spinner {
    border-color: #334155;
    border-top-color: var(--primary-light);
}

/* Responsive */
@media (max-width: 480px) {
    .chatbot-widget { bottom: 1rem; right: 1rem; left: 1rem; align-items: stretch; }
    .chatbot-window { width: 100%; height: 75vh; border-radius: 20px; }
}






body.dark-mode .promo-banner {
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Responsive Adjustments for Tablet and Mobile (Homepage & Header)
   ========================================================================== */

@media (max-width: 1024px) {
    .badges-grid {
        flex-direction: column;
        align-items: flex-start;
    }
    .badge-item {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 270px;
    }

    /* Header Wrap */
    .main-header .header-flex {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .smart-search-wrap {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
    }

    /* Typography & Spacing */
    .slide-content h2 { font-size: 2.2rem; }
    .slider-container { height: 320px; }
    .hero-slider { padding: 1.5rem 0 1rem; }
    
    /* Layout */
    .discoveries-grid { grid-template-columns: repeat(2, 1fr); }
    
    .dish-discoveries,
    .product-carousel,
    .chef-recommendation,
    .premium-highlights,
    .trust-badges { padding: 1.5rem 0; }
    
    .section-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
    
    /* Recommended Cards */
    .rec-card { min-width: calc(50% - 0.75rem); }
}

@media (max-width: 576px) {
    /* Typography & Spacing */
    .slide-content h2 { font-size: 1.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
    .slider-container { height: 180px; }
    .slide-content { left: 1.25rem; right: auto; text-align: left; top: auto; bottom: 2.5rem; transform: none; }
    
    /* Grids */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-image { height: 130px; }
    .product-info h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
    .price { font-size: 0.9rem; }
    
    .discovery-card { height: 130px; }
    .discovery-card h4 { font-size: 0.9rem; padding: 0 0.5rem; }
    
    /* Banners & Badges */
    .promo-content h4 { font-size: 0.9rem; }
    .promo-content a { font-size: 0.75rem; }
    .promo-banner { padding: 1rem; }

    .badges-grid { padding: 1.25rem; }
    .badge-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Recommended Cards */
    .rec-card { min-width: 85%; }
}
