/* ========== ROOT VARIABLES ========== */
:root {
    /* Primary Colors */
    --primary-color: #84c225;
    --primary-dark: #689f38;
    --primary-darker: #3a7d44;
    --accent-color: #f8f32b;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
    --danger: #ff5252;
    --warning: #ffc107;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Secondary Colors */
    --secondary-color: #f5fff9;
    --primary-light: #E0F5E9;
    --accent-light: #FFE8DC;
    --text-medium: #666666;
    --border-color: #e0e0e0;
    --pure-white: #ffffff;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --info-color: #2196F3;
}

/* ========== BASE STYLES ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    transition: var(--transition);
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 10px 20px;
}

/* ========== UTILITY CLASSES ========== */
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.rounded-lg {
    border-radius: var(--border-radius);
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shadow-md {
    box-shadow: var(--box-shadow);
}

.transition {
    transition: var(--transition);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-medium {
    color: var(--text-medium);
}

.in-stock {
    color: var(--success-color);
}

.low-stock {
    color: var(--warning-color);
}

.out-of-stock {
    color: var(--error-color);
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

.main-content {
    padding-top: 64px;
    /* Space for fixed header */
    padding-bottom: 120px;
    /* Space for fixed footer */
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========== HEADER ========== */
.header {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-header {
    background-color: var(--pure-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    display: none;
}

/* ========== SLIM MOBILE HEADER MODIFIERS ========== */
.mobile-header.mobile-header-slim {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-header-slim .slim-search-bar {
    padding: 6px 12px !important;
    background: #f1f3f5 !important;
    border-radius: 20px !important;
    height: auto !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.mobile-header-slim .slim-search-bar:focus-within {
    background: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(132, 194, 37, 0.15) !important;
}

.mobile-header-slim .slim-icon {
    font-size: 14px !important;
    margin-right: 8px !important;
    color: #6c757d !important;
}

.mobile-header-slim .slim-input {
    font-size: 13px !important;
    padding: 2px 0 !important;
}

.mobile-header-slim .slim-clear {
    font-size: 16px !important;
    line-height: 1 !important;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    height: 68px;
}

.logo-img,
.main__logo--img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-right: 10px;
}

.logo-text span {
    color: var(--accent-color);
}

.footer-logo span {
    color: var(--primary-color);
}

/* ========== SEARCH ========== */
.search-box {
    width: 500px;
    border-radius: 25px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
}

.search-box input {
    border: none;
    padding: 10px 20px;
    flex: 1;
    outline: none;
}

.search-box button {
    background-color: white;
    border: none;
    color: var(--primary-color);
    padding: 0 20px;
    height: 100%;
    cursor: pointer;
}

/* Mobile Search */
/* Mobile Search Container */
.mobile-search-container {
    position: relative;
    width: 100%;
    margin: 20px 0 30px;
    display: block;
}

.mobile-search-bar {
    display: flex;
    align-items: center;
    background: var(--pure-white);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.mobile-search-bar:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.search-icon {
    color: #8e8e93;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-icon {
    color: var(--text-secondary);
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.mobile-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 10px;
    background: transparent;
    color: var(--text-primary);
    padding: 2px 0;
    font-family: inherit;
}

.mobile-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 1;
}

.mobile-search-clear {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    padding: 0 0 0 8px;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-clear.visible {
    opacity: 1;
    visibility: visible;
}

/* Search Results */
.mobile-search-results {
    position: relative;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--pure-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-height: 65vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    -webkit-overflow-scrolling: touch;

}

.mobile-search-results.visible {
    display: block;
}

/* Custom Search Results Styling for Mobile and Desktop */
.mobile-search-section,
.desktop-search-section {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-search-section:last-child,
.desktop-search-section:last-child {
    border-bottom: none;
}

.mobile-search-section-header,
.desktop-search-section-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    padding: 0 16px 8px;
    letter-spacing: 0.5px;
}

.mobile-search-product-item,
.desktop-search-product-item,
.mobile-search-category-item,
.desktop-search-category-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.mobile-search-product-item:hover,
.desktop-search-product-item:hover,
.mobile-search-category-item:hover,
.desktop-search-category-item:hover,
.mobile-search-product-item.highlighted,
.desktop-search-product-item.highlighted {
    background-color: var(--bg-color, #f8f9fa);
    text-decoration: none;
}

.mobile-search-product-image,
.desktop-search-product-image,
.mobile-search-category-image,
.desktop-search-category-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 14px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.mobile-search-product-image img,
.desktop-search-product-image img,
.mobile-search-category-image img,
.desktop-search-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.mobile-search-product-details,
.desktop-search-product-details,
.mobile-search-category-details,
.desktop-search-category-details {
    flex: 1;
    overflow: hidden;
}

.mobile-search-product-name,
.desktop-search-product-name,
.mobile-search-category-name,
.desktop-search-category-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: #2c3e50;
}

.mobile-search-product-price,
.desktop-search-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #2ecc71;
}

.mobile-search-category-count,
.desktop-search-category-count {
    font-size: 12px;
    color: #888;
}

.mobile-no-results,
.desktop-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

/* ========== NAVIGATION BUTTONS ========== */
.nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 25px;
    padding: 8px 15px;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ========== CATEGORY NAVIGATION ========== */
.category-nav {
    background-color: var(--primary-darker);
    color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.category-nav .nav-link {
    padding: 10px 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== BANNER SECTION ========== */
.main-banner,
.mbanner-slider {

    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.mbanner-slider {
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mbanner-slider .swiper-slide {
    position: relative;
}

.mbanner-slider img {
    width: 100%;
    height: auto;
    display: block;
}

.mbanner-slider .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.mbanner-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 4px;
}

.mbanner-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
}


.banner-content {
    max-width: 500px;
    color: var(--text-light);
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.banner-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.banner-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========== SECTION HEADINGS ========== */
.section-title,
.section-heading h2 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 15px;
    padding: 0 10px;
}

.section-heading h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    padding-left: 10px;
}

.section-heading h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-heading a {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-heading a i {
    margin-left: 5px;
    font-size: 12px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ========== CATEGORIES SECTION ========== */
.category-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.category-img-container {
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.category-img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-name {
    padding: 15px 10px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* ========== PRODUCTS SECTION ========== */
.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.product-card:active {
    transform: scale(0.98);
}

.product-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 8px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fbfbfb;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: #1c1c1c;
    margin: 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    height: 36px;
}

.product-brand {
    font-size: 11px;
    color: #828282;
    margin-bottom: 4px;
}

.product-meta {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-container {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.current-price {
    font-size: 14px;
    font-weight: 700;
    color: #1c1c1c;
}

.original-price {
    font-size: 11px;
    color: #828282;
    text-decoration: line-through;
}

.discount-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #256fef;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(37, 111, 239, 0.3);
}

.time-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #1c1c1c;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 3px;
}

.time-badge i {
    color: #ffc107;
}

/* Action Section */
.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 4px;
}

.add-btn {
    background: #fff;
    color: #0c831f;
    border: 1px solid #0c831f;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    width: 60px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.add-btn:hover {
    background: #0c831f;
    color: #fff;
}

.add-btn.variant-btn {
    width: auto;
    padding: 4px 8px;
}

.add-btn.variant-btn i {
    font-size: 10px;
    margin-left: 4px;
}

/* Quantity Selector Blinkit Style */
.quantity-selector {
    display: flex;
    align-items: center;
    background: #0c831f;
    border-radius: 6px;
    height: 32px;
    overflow: hidden;
    width: 100%;
}

.qty-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.qty-value {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.stock-indicator {
    font-size: 10px;
    margin-top: 4px;
}

.stock-indicator.in-stock {
    color: #0c831f;
}

.stock-indicator.low-stock {
    color: #ffc107;
}

.stock-indicator.out-of-stock {
    color: #d32f2f;
}

.add-to-cart {
    background: #28a745;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-to-cart:hover {
    background: #218838;
}

/* ========== MODALS ========== */
.variant-modal .modal-content,
.multi-product-modal .modal-content {
    border-radius: 15px 15px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-height: 80vh;
    overflow-y: auto;
    border: none;
}

.variant-modal .modal-header,
.multi-product-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--pure-white);
    z-index: 1;
}

.variant-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.variant-option:hover {
    background-color: var(--primary-light);
}

.variant-info {
    flex-grow: 1;
}

.variant-weight {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.variant-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.variant-current-price {
    font-weight: 600;
    color: var(--text-dark);
}

.variant-original-price {
    text-decoration: line-through;
    color: var(--text-light);
}

.variant-discount {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 12px;
}

/* Product Modal Items */
.product-modal-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-modal-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.product-modal-details {
    flex: 1;
}

.product-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-modal-variant {
    font-size: 13px;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.product-modal-variant:hover {
    background-color: var(--primary-light);
}

.product-modal-variant i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Modal Footer */
.modal-footer {
    background-color: var(--pure-white);
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    background-color: var(--primary-color);
    border: none;
    padding: 10px;
    font-weight: 600;
}

.modal-footer .btn:hover {
    background-color: var(--primary-dark);
}

/* ========== CART ========== */
.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    justify-content: flex-end;
}

.cart-popup {
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.cart-popup.active {
    transform: translateX(0);
}

.cart-popup-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-popup-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.close-cart-popup {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: var(--transition);
}

.close-cart-popup:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.cart-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
    padding: 2px;
}

.remove-item-btn,
.remove-item {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.remove-item-btn:hover,
.remove-item:hover {
    color: #d32f2f;
}

.cart-popup-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-view-cart {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-cart:hover {
    background-color: #f1f8e9;
}

.btn-checkout {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-checkout:hover {
    background-color: var(--primary-dark);
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

.empty-cart-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-about {
    margin-bottom: 20px;
}

.footer-links h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== MOBILE NAVIGATION ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pure-white);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    display: none;
}

.nav-item {
    text-align: center;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 3px;
}

.nav-item span {
    font-size: 11px;
}

.floating-cart {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.2s ease;
    display: none;
}

.floating-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.floating-cart:active {
    transform: translateY(0);
}

.floating-cart i {
    font-size: 24px;
}

/* ========== TOAST NOTIFICATION ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
}

.toast {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    max-width: 300px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast i {
    margin-right: 10px;
    font-size: 20px;
}

.toast-message {
    flex: 1;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* ========== MOBILE MESSAGE ========== */
.mobile-message {
    display: none;
    text-align: center;
    padding: 50px 20px;
    background-color: var(--light-bg);
    height: 100vh;
}

.mobile-message i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ========== BLINKIT-STYLE LAYOUT ========== */
.blinkit-layout {
    display: flex;
    height: calc(100vh - 120px);
    margin-top: 60px;
}

.categories-sidebar {
    width: 25%;
    background-color: #f7f9fd;
    overflow-y: auto;
    border-right: 1px solid #eee;
    padding-top: 8px;
    height: 100%;
}

.category-item-sidebar {
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.category-item-sidebar:active {
    background-color: #eef2f9;
}

.category-item-sidebar.active {
    background-color: #fff;
    color: #0c831f;
    border-left-color: #0c831f;
}

.category-icon-sidebar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-icon-sidebar img {
    max-width: 51px;
}

.products-container {
    width: 75%;
    overflow-y: auto;
    padding: 15px;
    background-color: white;
}

.category-section {
    margin-bottom: 25px;
}

.category-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
}



.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
}

.search-container-mobile {
    margin-top: 50px;
    padding: 10px 15px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.category-name {
    text-align: center;
    font-size: 15px;
    /* you can adjust */
    font-weight: 600;
    /* makes text consistent */
    margin-top: 5px;
    white-space: normal;
    /* wraps long names */
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1023px) {
    .desktop-content {
        display: none !important;
    }

    .mobile-message {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Blinkit style layout for mobile */
    .blinkit-layout {
        display: flex;
        height: calc(100vh - 120px);
        margin-top: 10px;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-header .logo {
        height: 40px;
    }

    .search-container-mobile {
        display: block;
    }

    .categories-sidebar {
        display: block;
    }

    .products-container {
        display: block;
    }

    .bottom-nav {
        display: flex;
    }

    .floating-cart {
        display: flex;
    }
}

@media (max-width: 767px) {
    .header {
        display: none;
    }

    .category-nav {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .search-container-mobile {
        display: block;
    }

    .categories-sidebar {
        display: block;
    }

    .products-container {
        display: block;
    }

    .bottom-nav {
        display: flex;
    }

    .floating-cart {
        display: flex;
    }

    .footer {
        padding-bottom: 80px;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }

    .blinkit-layout {
        display: none !important;
    }
}

/* Add any custom styles here */
.variant-option {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.variant-info {
    margin-bottom: 10px;
}

.add-to-cart-variant {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.stock-indicator.in-stock {
    color: #28a745;
}

.stock-indicator.low-stock {
    color: #ffc107;
}

.stock-indicator.out-of-stock {
    color: #dc3545;
}

/* Toast notification styles */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
}

.toast {
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

.toast i {
    margin-right: 10px;
}

/* Fix for modal backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Ensure modal is properly positioned */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Minimum order warning */
.minimum-order-warning {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.checkout-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}