/* Responsive grid for 5 in a row on desktop, 2 in a row on mobile for Most Loved section */
.most-loved-products-row > [class*='col-'],
.featured-products-row > [class*='col-'] {
    flex: 0 0 20%;
    max-width: 20%;
}
@media (max-width: 991.98px) {
    .most-loved-products-row > [class*='col-'],
    .featured-products-row > [class*='col-'] {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
@media (max-width: 767.98px) {
    .most-loved-products-row > [class*='col-'],
    .featured-products-row > [class*='col-'] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 575.98px) {
    .most-loved-products-row > [class*='col-'],
    .featured-products-row > [class*='col-'] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
/* main.css - Immuno Millets Theme */
/* Theme colors are now dynamically set in the layout file */
:root {
    --radius: 1.2rem;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--ivory);
    color: #333;
    overflow-x: hidden;
}

/* Container fixes */
.container, .container-fluid {
    max-width: 100%;
    /* overflow-x: hidden; */
}

.row {
    margin-left: 0;
    margin-right: 0;
}
.info-bar {
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1040;
    letter-spacing: 0.3px;
}

.info-text {
    font-weight: 500;
}

.top-actions {
    gap: 0;
}

.top-action-btn {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.top-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

.top-action-btn i {
    font-size: 1.1rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.main-navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 42px;
    z-index: 1050;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 0.5rem;
}

/* Single Line Navigation */
.single-line-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.single-line-nav::-webkit-scrollbar {
    display: none;
}

.single-line-nav .nav-item {
    flex-shrink: 0;
    white-space: nowrap;
}

.single-line-nav .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Responsive adjustments for mobile */
@media (max-width: 991.98px) {
    .info-bar {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .info-text {
        font-size: 0.75rem;
        margin-right: 1rem;
    }
    
    .top-action-btn {
        width: 30px;
        height: 30px;
    }
    
    .top-action-btn i {
        font-size: 0.9rem;
    }
    
    .cart-count {
        font-size: 0.7rem;
        min-width: 16px;
        height: 16px;
    }
    
    .single-line-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .single-line-nav .nav-item {
        width: 100%;
    }
    
    .single-line-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
}
.navbar-brand {
    font-weight: bold;
    color: var(--secondary) !important;
    font-size: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(78,148,79,0.08);
}

/* Logo styling */
.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 767.98px) {
    .navbar-logo {
        height: 40px;
        max-width: 150px;
    }
}
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 14px;
    position: relative;
    transition: color 0.2s;
    padding-bottom: 4px;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}
.navbar-nav .nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 2px;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu Fixes */
.dropdown-menu {
    z-index: 1060 !important;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-radius: var(--radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem !important;
    background: #fff !important;
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-item {
    color: var(--dark);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block !important;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* Ensure dropdown is above all other content */
.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1050;
    background: #fff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-top: 0.5rem;
    max-height: none;
    overflow: visible;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile dropdown fixes */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: #f8f9fa;
        border: 0;
        box-shadow: none;
    }
}
.navbar-icons .fa {
    font-size: 1.3rem;
    color: #333;
    margin-left: 22px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.navbar-icons .fa:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* Old action-btn styles removed - now using top-action-btn */

/* Product Slider */
.product-slider-section {
    position: relative;
    margin: 3rem 0;
}

.product-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #fff;
    padding: 2rem;
    margin: 0 auto;
    max-width: 100%;
}

.product-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1.5rem;
}

.product-slide {
    min-width: 200px;
    flex-shrink: 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
}

.slider-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.slide-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.slide-info .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}
.hero-section {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.10);
}
.hero-overlay {
    background: rgba(var(--primary-rgb), 0.75);
    z-index: 1;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Banner Section Styles */
.banner-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.banner-overlay {
    background: rgba(0,0,0,0.5);
    z-index: 1;
    transition: background 0.3s ease;
}
.banner-section:hover .banner-overlay {
    background: rgba(var(--primary-rgb), 0.7);
}
.banner-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}
.banner-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}
.banner-content p {
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.4;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 3.5rem 2rem 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(2px);
}
.hero-content h1 {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(78,148,79,0.10);
}
.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.hero-content .btn {
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    padding: 0.8rem 2.7rem;
    font-size: 1.2rem;
    box-shadow: 0 2px 12px rgba(78,148,79,0.12);
    transition: background 0.2s, transform 0.2s;
    animation: pulse 1.5s infinite alternate;
    letter-spacing: 0.5px;
}
.hero-content .btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.07);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(78,148,79,0.15); }
    100% { box-shadow: 0 0 0 16px rgba(78,148,79,0.01); }
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(230,126,34,0.08);
}
.categories-row .cat-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.2rem 0.5rem 1.5rem 0.5rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s, border 0.2s;
    cursor: pointer;
    margin-bottom: 1.2rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    width: 180px;
    height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}
.categories-row .cat-card:hover {
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.13);
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.06);
    background: var(--gradient);
}
.cat-card .fa {
    font-size: 4.2rem;
    color: var(--primary);
    margin-bottom: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}
.cat-card:hover .fa {
    color: var(--secondary);
    transform: scale(1.15) rotate(-8deg);
}
.cat-card span {
    display: block;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.2px;
    margin-top: 0.2rem;
}
 .quote-section {
    background: url('https://www.transparenttextures.com/patterns/food.png'), linear-gradient(120deg, var(--ivory) 80%, var(--primary) 10%);
    border-radius: var(--radius);
    padding: 2.7rem 1.2rem;
    margin: 2.2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.quote-section p {
    font-size: 1.35rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.quote-section .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.7rem 2.2rem;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(230,126,34,0.10);
    font-size: 1.1rem;
}
 .dietary-section {
    background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    border-radius: var(--radius);
    padding: 2.7rem 1.2rem;
    margin: 2.2rem 0;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
}
 .dietary-section .overlay {
    background: rgba(var(--primary-rgb), 0.82);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius);
    z-index: 1;
}
.dietary-section .content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}
.dietary-icons .diet-card {
    background: rgba(255,255,255,0.93);
    border-radius: 0.8rem;
    padding: 1.1rem 0.7rem;
    margin: 0.5rem;
    text-align: center;
    min-width: 120px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(78,148,79,0.08);
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.08rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.dietary-icons .diet-card:hover {
    box-shadow: 0 8px 32px rgba(78,148,79,0.13);
    transform: scale(1.07);
}
.dietary-icons .fa {
    color: var(--secondary);
    font-size: 1.7rem;
    margin-bottom: 0.3rem;
}
 .bestseller-section {
    background: linear-gradient(120deg, var(--primary) 60%, var(--ivory) 100%);
    border-radius: var(--radius);
    padding: 2.7rem 1.2rem;
    margin: 2.2rem 0;
    position: relative;
    box-shadow: var(--shadow);
    text-align: center;
}
.bestseller-section h2 {
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 1.2rem;
    font-size: 2rem;
}
.bestseller-section .btn {
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 2rem;
    padding: 0.8rem 2.2rem;
    font-size: 1.15rem;
    box-shadow: 0 2px 12px rgba(78,148,79,0.12);
    transition: background 0.2s, transform 0.2s;
}
.bestseller-section .btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.07);
}
.most-loved-section {
    margin: 2.7rem 0;
}

.most-loved-section .row {
    /* justify-content: center; */
    align-items: stretch;
}

.most-loved-section .col-12 {
    display: flex;
    justify-content: center;
}
.product-card {
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
    padding: 1rem 0.8rem;
    text-align: center;
    margin: 0.5rem auto;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
    min-height: 420px;
}

/* Ensure consistent spacing for product card elements */
.product-card .product-rating {
    margin: 0.5rem 0;
    min-height: 1.2rem;
}

.product-card .title {
    min-height: 2.6rem;
    margin-bottom: 0.3rem;
}

.product-card .product-category {
    min-height: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}


.product-card .product-image {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
}

.product-card .product-rating .fas,
.product-card .product-rating .far {
    color: #ffc107;
    font-size: 0.8rem;
}

.product-card .product-rating span {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.product-card .badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
}

.product-card .title,
.product-card img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card .title:hover,
.product-card img:hover {
    transform: scale(1.02);
}
.product-card:hover {
    box-shadow: 0 8px 32px rgba(78,148,79,0.13);
    transform: translateY(-8px) scale(1.06);
    background: var(--gradient);
}
.product-card .badge {
    position: absolute;
    top: 0rem;
    left: 0rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    padding: 0.25rem 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin: 0 auto 0.5rem auto;
    border-radius: 0.7rem;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(230,126,34,0.10);
    display: block;
}
.product-card:hover img {
    transform: scale(1.10) rotate(-2deg);
}
.product-card .title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--secondary);
    letter-spacing: 0.2px;
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}
.product-card .price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card .price .current-price,
.product-card .price .original-price {
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 800;
}

.product-card .price .current-price {
    color: var(--primary);
}

.product-card .price .original-price {
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: line-through;
    color: #999;
}
.product-card select {
    margin-bottom: 0.5rem;
    border-radius: 1.2rem;
    border: 1px solid var(--primary);
    font-weight: 500;
    width: 100%;
}
.product-card .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    padding: 0.6rem 1.2rem;
    transition: background 0.2s, transform 0.2s;
    margin-top: auto;
    width: 100%;
}
.product-card .btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.05);
}
.type-section {
    background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    border-radius: var(--radius);
    padding: 2.7rem 1.2rem;
    margin: 2.2rem 0;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
}
 .type-section .overlay {
    background: rgba(var(--primary-rgb), 0.82);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius);
    z-index: 1;
}
.type-section .content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}
.quickshop-row .cat-card {
    min-width: 120px;
}
.newsletter-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.2rem 1.2rem;
    margin: 2.2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}
.newsletter-section input[type="email"] {
    max-width: 320px;
    margin: 0 auto 1rem auto;
    border-radius: 2rem;
    border: 1px solid var(--primary);
    padding: 0.7rem 1.1rem;
    font-size: 1.08rem;
}
.newsletter-section .btn {
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.7rem 2.2rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
}
.newsletter-section .btn:hover {
    background: var(--primary);
    color: #fff;
}
.footer {
    background: #222;
    color: #fff;
    padding: 2.5rem 0 1.2rem 0;
    border-radius: var(--radius) var(--radius) 0 0;
}
.footer .footer-title {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}
.footer a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.01rem;
    transition: color 0.2s;
    font-weight: 500;
}
.footer a:hover {
    color: var(--primary);
}
.footer .fa-instagram {
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 0.7rem;
}
.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 1.2rem;
    padding-top: 0.7rem;
    font-size: 0.98rem;
    color: #bbb;
    text-align: center;
}
.footer-bottom a {
    color: #fff;
    margin: 0 0.7rem;
    font-size: 1.01rem;
}
/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .navbar-nav { text-align: center; }
    .navbar-nav .nav-link { margin: 0.5rem 0; }
    .navbar-icons { margin-top: 1rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 767px) {
    .hero-content {
        padding: 1.2rem 0.7rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .categories-row .cat-card, .dietary-icons .diet-card, .quickshop-row .cat-card {
        min-width: 90px;
        font-size: 0.9rem;
        height: 180px;
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
    .cat-card .fa {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }
    .cat-card span {
        font-size: 1rem;
    }
    .product-card {
        margin: 0.5rem auto;
        padding: 1rem 0.8rem;
        max-width: 180px;
    }
    .product-card img {
        max-width: 80px;
        height: 80px;
    }
    .footer {
        padding: 1.5rem 0 0.7rem 0;
    }
    .quote-section p {
        font-size: 1.1rem;
    }
    .bestseller-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .categories-row .cat-card {
        height: 160px;
        min-width: 80px;
    }
    .cat-card .fa {
        font-size: 2.5rem;
    }
    .cat-card span {
        font-size: 0.9rem;
    }
    .product-card .title {
        font-size: 1rem;
    }
    .product-card .price {
        font-size: 1rem;
    }
}

/* Cart Page Styles */
.cart-item {
    background: #fff;
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.cart-item-variant {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.3rem;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #dc3545;
    color: white;
}

.order-summary {
    background: #fff;
    border-radius: 0.8rem;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    border-top: 2px solid var(--primary);
    margin-top: 1rem;
    padding-top: 1rem;
}

.promo-code h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

/* Profile Page Styles */
.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3rem 0;
    border-radius: 0 0 2rem 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.profile-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.profile-card h5 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Cart Page Specific Styles */
.cart-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--light-gray);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.quantity-controls input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.order-summary {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    position: sticky;
    top: 120px;
}

/* Product Details Page Styles */
.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

.thumbnail-images {
    gap: 0.5rem;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    border-color: var(--primary);
}

.product-title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
}

.rating-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.original-price {
    font-size: 1.2rem;
    color: var(--gray);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.pack-options {
    display: flex;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-gray);
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quantity-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 0.5rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.nav-tabs .nav-link {
    color: var(--gray);
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: none;
}

.tab-content-wrapper {
    padding: 2rem 0;
}

.review-item {
    border-bottom: 1px solid var(--light-gray);
    padding: 1rem 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--secondary);
}

.review-rating {
    color: #ffc107;
}

.order-item {
    border: 1px solid #f0f0f0;
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.order-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.order-status {
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

.order-status.processing {
    background: #fff3cd;
    color: #856404;
}

.order-status.shipped {
    background: #cce7ff;
    color: #004085;
}

/* Cart and Profile Mobile Responsive */
@media (max-width: 768px) {
    .cart-item {
        padding: 1rem;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .order-summary {
        position: static;
        margin-top: 2rem;
    }

    .profile-header {
        padding: 2rem 0;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }
}

/* Modern Google-style dropdown menu */
.custom-dropdown-menu {
    min-width: 220px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(60,60,60,0.13);
    padding: 0.5rem 0;
    margin-top: 0.7rem;
    background: #fff;
    overflow: visible;
}
.custom-dropdown-menu .dropdown-item {
    padding: 0.7rem 1.5rem;
    font-size: 1.08rem;
    color: #333;
    border-radius: 0.7rem;
    transition: background 0.18s, color 0.18s;
}
.custom-dropdown-menu .dropdown-item:hover, .custom-dropdown-menu .dropdown-item:focus {
    background: var(--ivory);
    color: var(--primary);
}
@media (max-width: 991px) {
    .custom-dropdown-menu {
        min-width: 160px;
        font-size: 0.98rem;
    }
}

/* Only submenu (dropdown-menu) should scroll if too tall */
.dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    /* ...existing styles... */
}

/* Prevent scroll on navbar itself */
.main-navbar, .navbar, .navbar-nav {
    overflow: visible !important;
}

/* Fix for preventing internal scrollbars in sections */
section {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

.container, .container-fluid {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

.row {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure no fixed heights cause scrollbars */
.hero-section, .banner-section, .quote-section, .newsletter-section {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Remove any problematic overflow settings */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

/* Optimize image loading */
img {
    transition: none;
}

/* Reduce animation complexity for better performance */
.card, .stats-card, section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Optimize category scrolling */
.categories-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: auto;
    max-height: none;
}

.categories-row {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
}

/* SVG Icon Buttons and Search Box */
.action-icon {
    width: 20px;
    height: 20px;
    color: white; /* This will make SVG icons white via currentColor */
    transition: all 0.3s ease;
}

.top-action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    position: relative;
    transition: background-color 0.3s ease;
    color: white; /* Ensure button text/icons are white */
}

.top-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-action-btn:hover .action-icon {
    color: white;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

/* Search Container with Expandable Box */
.search-container {
    position: relative;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 280px;
    z-index: 1000;
}

.search-box.active {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-box input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 15px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #b91e50;
}

/* Cart count badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block !important;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    font-weight: 500;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block !important;
}

/* Ensure validation feedback is visible */
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block !important;
}
