/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation */
.top-nav {
    background-color: #1a1a1a;
    color: white;
    font-size: 14px;
    padding: 8px 0;
}

.top-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-message {
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight {
    color: #00b894;
    font-weight: 600;
}

.switch-btn {
    background: none;
    border: none;
    color: #00b894;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.top-nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00b894;
}

/* Main Header */
.main-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-section {
    flex-shrink: 0;
}

.main-logo {
    height: 50px;
    width: auto;
}

/* Logo styling for category pages */
.logo {
    flex-shrink: 0;
}

.logo .main-logo {
    height: 45px;
    width: auto;
}

.search-section,
.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-container,
.search-input-wrapper {
    position: relative;
}

.search-input-group,
.search-input-wrapper {
    display: flex;
    border: 2px solid #00b894;
    border-radius: 8px;
    overflow: hidden;
}

.search-input-group input,
.search-input-wrapper .search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-btn {
    background: #00b894;
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #00a085;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-btn:hover {
    border-color: #00b894;
    color: #00b894;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Department Navigation */
.department-nav {
    background: #f1f3f4;
    border-bottom: 1px solid #e0e0e0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.dropdown-nav {
    position: relative;
}

.dropdown-trigger {
    background: #00b894;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 10px 0;
    display: none;
    z-index: 200;
}

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

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-link:hover {
    background: #f8f9fa;
}

.nav-item {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #00b894;
}

.feature-btn {
    background: none;
    border: 1px solid #00b894;
    color: #00b894;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.feature-btn:hover {
    background: #00b894;
    color: white;
}

/* Address Section */
.address-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
}

.address-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    text-align: center;
}

.address-icon {
    font-size: 24px;
}

.address-input {
    display: flex;
    gap: 10px;
}

.address-input input {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    outline: none;
    min-width: 300px;
}

.address-btn {
    background: #00b894;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 12px;
    text-align: center;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.banner-cta {
    background: white;
    color: #ff6b6b;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner-cta:hover {
    transform: translateY(-2px);
}

/* Section Styles */
.department-section,
.product-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.view-all-link {
    color: #00b894;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Department Grid */
.department-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.department-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-image {
    margin-bottom: 15px;
}

.card-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.department-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 500px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Force meat page product card styles */
.product-grid .product-card,
.product-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    border: 1px solid #f1f3f4 !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-grid .product-card:hover,
.product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    border-color: #e0e6ed !important;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.sale {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.badge.new {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
}

.badge.popular {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

/* Savings Badge */
.savings-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.add-to-cart {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: #00b894;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 14px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Store Price Tags */
.store-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    flex: 1;
}

.store-price-tag {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px;
    font-size: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 42px;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.store-price-tag:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.store-price-tag .store-name {
    font-weight: 600;
    color: #6c757d;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin: 0 0 1px 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 71px;
}

.store-price-tag .price {
    font-weight: 700;
    color: #2d3436;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
    margin: 0;
}

/* Store-specific colors for price tags */
.store-price-tag[data-store="pick-n-pay"] {
    background: #fff5f5;
    border-color: #fed7d7;
}

.store-price-tag[data-store="pick-n-pay"] .store-name {
    color: #e53e3e;
}

.store-price-tag[data-store="pick-n-pay"] .price {
    color: #c53030;
}

.store-price-tag[data-store="shoprite"] {
    background: #fffaf0;
    border-color: #feebc8;
}

.store-price-tag[data-store="shoprite"] .store-name {
    color: #dd6b20;
}

.store-price-tag[data-store="shoprite"] .price {
    color: #c05621;
}

.store-price-tag[data-store="checkers"] {
    background: #ebf8ff;
    border-color: #bee3f8;
}

.store-price-tag[data-store="checkers"] .store-name {
    color: #3182ce;
}

.store-price-tag[data-store="checkers"] .price {
    color: #2c5282;
}

.store-price-tag[data-store="woolworths"] {
    background: #faf5ff;
    border-color: #e9d8fd;
}

.store-price-tag[data-store="woolworths"] .store-name {
    color: #805ad5;
}

.store-price-tag[data-store="woolworths"] .price {
    color: #553c9a;
}

.store-price-tag[data-store="spar"] {
    background: #f0fff4;
    border-color: #c6f6d5;
}

.store-price-tag[data-store="spar"] .store-name {
    color: #38a169;
}

.store-price-tag[data-store="spar"] .price {
    color: #2f855a;
}

/* Cheapest price highlighting */
.store-price-tag.cheapest {
    background: #d4edda !important;
    border-color: #28a745 !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.store-price-tag.cheapest .store-name {
    color: #155724 !important;
}

.store-price-tag.cheapest .price {
    color: #28a745 !important;
    font-weight: 800;
}

.more-stores-btn {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.more-stores-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #e9ecef;
    color: #2d3436;
}

.qty-btn.minus {
    font-size: 16px;
}

.qty-btn.plus {
    font-size: 14px;
}

.quantity {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #2d3436;
    font-size: 14px;
    padding: 0 4px;
}

.add-to-cart-btn {
    flex: 1 !important;
    background: #4a90e2 !important;
    color: white !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.add-to-cart-btn:hover {
    background: #357abd !important;
    transform: translateY(-1px) !important;
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.app-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.app-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.app-qr {
    margin-bottom: 20px;
}

.app-qr img {
    width: 120px;
    height: 120px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-button img {
    height: 50px;
    width: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #00b894;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00b894;
}

.social-section {
    text-align: center;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: #ccc;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #00b894;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-methods img {
    height: 30px;
}

.payment-methods i {
    font-size: 24px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.auth-forms {
    margin-top: 20px;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.auth-btn.register {
    background: #667eea;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.auth-divider {
    background: white;
    padding: 0 15px;
    z-index: 2;
    position: relative;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .department-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .top-nav-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-section,
    .search-bar {
        order: 3;
        width: 100%;
    }
    
    .header-actions {
        order: 2;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 4;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .address-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .address-input {
        flex-direction: column;
        width: 100%;
    }
    
    .address-input input {
        min-width: auto;
        width: 100%;
    }
    
    .department-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .copyright {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .department-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .card-image img {
        width: 60px;
        height: 60px;
    }
    
    .department-card {
        padding: 15px;
    }
    
    .product-image img {
        height: 200px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00b894;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Baby Category Page Styles */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6c757d;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title i {
    font-size: 2.5rem;
    color: #007bff;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.view-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Category Section */
.category-section {
    margin: 40px 0;
}

.category-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Products Section */
.products-section {
    margin: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.view-all {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.view-all:hover {
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Large Desktop Responsive Breakpoints */
/* 4 products per row on medium desktop screens */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px;
    }
}

/* 3 products per row on small desktop/tablet screens */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.savings-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
    z-index: 2;
}

.bundle-badge {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
}

.product-info {
    padding: 24px 20px 20px;
}

.product-brand {
    font-size: 0.8rem;
    font-weight: 600;
    color: #00b894;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
    margin-bottom: 16px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.original-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100% !important;
    background: #00b894 !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.add-to-cart-btn:hover {
    background: #00a085 !important;
}

/* Brand Section */
.brand-section {
    margin: 50px 0;
}

.brand-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.brand-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.brand-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-card:hover img {
    filter: grayscale(0%);
}

/* Responsive Design for Baby Page */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title i {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
}

/* Large mobile and tablet - 2 products per row */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-info h3 {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* Small mobile devices - 1 product per row for very small screens */
@media (max-width: 479px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .brand-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
}

/* Empty State Styles */
.empty-content {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.empty-state {
    text-align: center;
    max-width: 400px;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #666;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.empty-state p {
    color: #999;
    font-size: 1rem;
    line-height: 1.5;
}

/* Beverages Page Styles */
.beverages-page {
    padding: 20px 0 60px;
    min-height: 100vh;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #00b894;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #ccc;
}

.current {
    color: #333;
    font-weight: 500;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 20px;
}

.results-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#productCount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
}

.store-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.store-badge.pnp {
    background: #e74c3c;
    color: white;
}

.store-badge.checkers {
    background: #f39c12;
    color: white;
}

.store-badge.shoprite {
    background: #27ae60;
    color: white;
}

.controls-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #2d3436;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #00b894;
    color: #00b894;
}

.filter-btn.active {
    background: #00b894;
    border-color: #00b894;
    color: white;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #00b894;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 10px 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: #00b894;
    border-color: #00b894;
    color: white;
}

.products-section {
    position: relative;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00b894;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.products-grid.list {
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.best-price-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.savings-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-brand {
    color: #00b894;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-section {
    margin-bottom: 20px;
}

.best-price {
    font-size: 1.1rem;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.store-price {
    text-align: center;
    padding: 8px 5px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.store-price.best {
    background: #d4edda;
    border-color: #27ae60;
}

.store-name {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 2px;
}

.store-price .price {
    font-weight: 600;
    color: #2d3436;
    font-size: 13px;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.quantity-adjuster {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f39c12;
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 5px;
    flex: 1;
    min-width: 120px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    flex: 1;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    min-width: 30px;
}

.compare-btn,
.add-to-cart-btn,
.wishlist-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 80px;
}

.compare-btn {
    background: #f39c12;
    border-color: #f39c12;
    color: white;
}

.compare-btn:hover {
    background: #e67e22;
    border-color: #e67e22;
}

.add-to-cart-btn {
    background: #00b894;
    border-color: #00b894;
    color: white;
}

.add-to-cart-btn:hover {
    background: #00a085;
    border-color: #00a085;
}

.wishlist-btn {
    background: white;
    border-color: #ddd;
    color: #666;
    flex: 0 0 auto;
    width: 45px;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    border-color: #e74c3c;
    color: #e74c3c;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.error-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.error-state h3 {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 10px;
}

.error-state button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.error-state button:hover {
    background: #00a085;
}

/* Price Comparison Modal */
.price-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f2f6;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #2d3436;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f1f2f6;
}

.modal-body {
    padding: 0 20px 20px;
}

.modal-product-display {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.modal-product-display img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: #f8f9fa;
}

.product-details h4 {
    font-size: 1.2rem;
    color: #2d3436;
    margin-bottom: 10px;
}

.product-details p {
    margin-bottom: 8px;
    color: #666;
}

.price-comparison-table .table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    background: #f1f2f6;
    border-radius: 8px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    border: 2px solid #f1f2f6;
    border-radius: 8px;
    margin-bottom: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.comparison-row:hover {
    border-color: #00b894;
}

.comparison-row.best-price-row {
    border-color: #27ae60;
    background: #d4edda;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.best-label {
    color: #27ae60;
    font-size: 12px;
    font-weight: 600;
}

.price-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
}

.visit-store-btn {
    padding: 8px 16px;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.visit-store-btn:hover {
    background: #00a085;
}

/* List View Styles */
.products-grid.list .product-card {
    display: flex;
    align-items: center;
    padding: 20px;
}

.products-grid.list .product-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 20px;
}

.products-grid.list .product-info {
    flex: 1;
    padding: 0;
}

.products-grid.list .product-title {
    font-size: 1.2rem;
}

.products-grid.list .price-section {
    margin-bottom: 15px;
}

.products-grid.list .product-actions {
    justify-content: flex-start;
    max-width: 400px;
}

/* Responsive Design for Beverages */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .results-info {
        flex-direction: column;
        gap: 10px;
    }

    .modal-product-display {
        flex-direction: column;
        text-align: center;
    }

    .comparison-row,
    .table-header {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .products-grid.list .product-card {
        flex-direction: column;
        text-align: center;
    }

    .products-grid.list .product-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cart-sidebar {
        transform: translateX(100%);
        width: 100%;
        max-width: 400px;
    }

    .cart-sidebar.open {
        transform: translateX(0);
    }

    .floating-cart-btn {
        right: 15px;
        top: 50vh;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* Shopping Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 120px;
    right: 0;
    width: 350px;
    height: calc(100vh - 120px);
    background: white;
    border-left: 3px solid #00b894;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed !important;
    right: 20px;
    top: 50vh;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #00b894;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,184,148,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-btn:hover {
    background: #00a085;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,184,148,0.4);
}

.floating-cart-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
}

.cart-badge.hidden {
    display: none;
}

.cart-header {
    padding: 20px;
    background: #00b894;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00a085;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.cart-toggle i {
    transition: transform 0.3s ease;
}

.cart-sidebar.open .cart-toggle i {
    transform: rotate(180deg);
}

.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-cart p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #666;
}

.empty-cart small {
    color: #999;
}

.cart-item {
    border-bottom: 2px solid #f1f2f6;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: #2d3436;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
}

.cart-item-quantity {
    font-size: 13px;
    color: #00b894;
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.cart-item-total {
    font-weight: 600;
    color: #2d3436;
    font-size: 14px;
}

.remove-item-btn {
    background: #e74c3c;
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.remove-item-btn:hover {
    background: #c0392b;
}

.cart-summary {
    padding: 20px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    flex-shrink: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.savings {
    color: #27ae60;
    font-weight: 600;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    padding-top: 10px;
    border-top: 2px solid #ddd;
    margin-top: 10px;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    background: #00b894;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background: #00a085;
}

.checkout-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Multi-Store Pricing Styles */
.multi-store-pricing {
    margin: 20px 0 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.store-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin: 6px 0;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.store-price-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ddd;
    transition: all 0.3s ease;
}

.store-price-item:first-child {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
    border-color: rgba(40, 167, 69, 0.2);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.store-price-item:first-child::before {
    background: linear-gradient(180deg, #28a745 0%, #20c997 100%);
    width: 6px;
}

.store-price-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.store-name {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.store-price-item:first-child .store-name {
    color: #28a745;
    font-weight: 700;
}

.store-price-item .price {
    font-weight: 800;
    color: #2d3436;
    font-size: 1.1rem;
    font-family: 'Inter', monospace;
}

.store-price-item:first-child .price {
    color: #28a745;
    font-size: 1.15rem;
}

.more-stores {
    text-align: center;
    padding: 10px;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.single-store-pricing {
    margin: 20px 0 16px;
}

.single-store-pricing .best-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-radius: 12px;
    border: 2px solid rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.single-store-pricing .best-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.single-store-pricing .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #28a745;
    font-family: 'Inter', monospace;
    margin-bottom: 4px;
}

.single-store-pricing .store {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-btn {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.compare-btn:hover::before {
    left: 100%;
}

.compare-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.compare-btn i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Product Actions Enhancement */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.quantity {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    min-width: 30px;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    background: #00a085;
}

.add-to-cart-btn i {
    margin-right: 8px;
}

/* Price Modal Redesigned - Small & Colorful */
.price-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 340px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.modal-header h3 {
    color: #2d3436;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.modal-close {
    background: #f8f9fa;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #6c757d;
    padding: 6px;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: white;
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.store-price::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ddd;
    transition: all 0.3s ease;
}

/* Store-specific colors */
.store-price[data-store="Pick n Pay"]::before {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
}

.store-price[data-store="Shoprite"]::before {
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
}

.store-price[data-store="Checkers"]::before {
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
}

.store-price[data-store="Woolworths"]::before {
    background: linear-gradient(180deg, #9b59b6 0%, #8e44ad 100%);
}

.store-price[data-store="SPAR"]::before {
    background: linear-gradient(180deg, #27ae60 0%, #229954 100%);
}

.store-price:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #e9ecef;
}

/* Best deal styling */
.store-price:first-child {
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    border-color: #27ae60;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
}

.store-price:first-child::before {
    width: 6px;
    background: linear-gradient(180deg, #27ae60 0%, #229954 100%);
}

.store-price:first-child::after {
    content: '🏆';
    position: absolute;
    top: -2px;
    right: -2px;
    background: #27ae60;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.store-price.unavailable {
    opacity: 0.5;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.store-price.unavailable::before {
    background: #adb5bd;
}

.store-name {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-name::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
}

/* Store-specific name colors */
.store-price[data-store="Pick n Pay"] .store-name::before {
    background: #e74c3c;
}

.store-price[data-store="Shoprite"] .store-name::before {
    background: #f39c12;
}

.store-price[data-store="Checkers"] .store-name::before {
    background: #3498db;
}

.store-price[data-store="Woolworths"] .store-name::before {
    background: #9b59b6;
}

.store-price[data-store="SPAR"] .store-name::before {
    background: #27ae60;
}

.store-price:first-child .store-name {
    color: #27ae60;
    font-weight: 700;
}

.store-price-value {
    font-weight: 700;
    font-size: 1rem;
    color: #2d3436;
    font-family: 'Inter', sans-serif;
}

.store-price:first-child .store-price-value {
    color: #27ae60;
    font-weight: 800;
    font-size: 1.1rem;
}

.store-price.unavailable .store-price-value {
    color: #adb5bd;
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 16px;
        margin: 16px;
        border-radius: 12px;
        max-width: none;
    }
    
    .store-price {
        padding: 10px 12px;
    }
    
    .store-price-value {
        font-size: 0.95rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .store-name {
        font-size: 0.85rem;
    }
}