:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --accent-electronics: #3b82f6;
    --accent-fashion: #ec4899;
    --accent-bills: #f59e0b;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

body {
    background-color: var(--bg-main);
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
}

.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 0;
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.search-inline-wrapper .form-control {
    border-radius: 50px;
    background: #f1f5f9;
    border: 1px solid transparent;
    padding: 8px 24px;
    transition: all 0.3s;
}

.search-inline-wrapper .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Stunning Product Cards */
.product-card-ultra {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.product-card-ultra:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.ultra-img-wrap {
    height: 240px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.ultra-img-wrap img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card-ultra:hover .ultra-img-wrap img {
    transform: scale(1.1);
}

/* Category Stunning Style */
.category-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.category-item:hover {
    background: var(--primary);
    color: #fff;
}

.category-image-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item:hover .category-image-wrap {
    background: rgba(255,255,255,0.2);
}

.category-title {
    font-weight: 700;
    font-size: 14px;
}

/* Sector Special Themes */
.theme-electronics { --accent: var(--accent-electronics); }
.theme-fashion { --accent: var(--accent-fashion); }
.theme-bills { --accent: var(--accent-bills); }

/* Utility Bill Components */
.bill-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.bill-card:hover {
    border-color: var(--accent-bills);
    transform: scale(1.05);
}

.bill-icon {
    font-size: 32px;
    color: var(--accent-bills);
    margin-bottom: 12px;
}

/* Footer Stunning */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
}

footer h6 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 24px;
}

footer ul li a {
    color: #94a3b8;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: var(--primary);
}

    font-weight: 600;
/* Sector Headers & Hero */
.section-sector {
    padding: 80px 0;
    position: relative;
}

.sector-header {
    margin-bottom: 40px;
}

.sector-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.title-electronics { border-left: 5px solid var(--accent-electronics); padding-left: 20px; }
.title-fashion { border-left: 5px solid var(--accent-fashion); padding-left: 20px; }
.title-bills { border-left: 5px solid var(--accent-bills); padding-left: 20px; }

/* Banner Slider Wrappers */
.banner-slider-wrapper {
    margin: 20px 0 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.home-banner-slider .item img {
    height: 400px;
    object-fit: cover;
}

/* Stunning Dashboard for Bills */
.bill-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stunning-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sector-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .sector-header .btn {
        width: 100%;
        padding: 10px;
    }
    .hero-title { font-size: 2rem; }
    .sector-header h2 { font-size: 1.6rem; }
    .home-banner-slider .item img { height: 200px; }
    .bill-payment-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    header .logo span { font-size: 20px !important; }
    header .nav-icon-item span { font-size: 10px; }
}

/* Hide cart bar on payment page */
.page-payment .mview-cart {
    display: none !important;
}

/* Responsive Buttons */
@media (max-width: 576px) {
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Bottom Nav - Hidden by default (Desktop) */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #ffffff;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
        z-index: 1060;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--secondary);
        font-size: 11px;
        font-weight: 500;
        transition: all 0.3s;
        flex: 1;
    }

    .bottom-nav .nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
        transition: transform 0.3s;
    }

    .bottom-nav .nav-item.active {
        color: var(--primary);
    }

    .bottom-nav .nav-item.active i {
        transform: translateY(-2px);
    }
}

}

.btn-add-ultra {
    background: #1e5c45;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.btn-add-ultra:hover {
    background: #154534;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 106, 81, 0.2);
}

.btn-buy-ultra {
    background: white;
    color: #1e5c45;
    border: 1.5px solid #1e5c45;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    text-decoration: none;
}

.btn-buy-ultra:hover {
    background: #f8f9fa;
    color: #154534;
    border-color: #154534;
    transform: translateY(-2px);
}

/* Quantity Button Styles */
.btn-qty-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f2f6;
    border-radius: 12px;
    padding: 4px;
    height: 46px;
    /* Match add button height */
}

.btn-minus,
.btn-plus {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-minus:hover,
.btn-plus:hover {
    background: var(--primary-color);
    color: white;
}

.btn-qty {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--dark-text);
    width: 30px;
    text-align: center;
    padding: 0;
}

.btn-view-ultra {
    width: 46px;
    height: 46px;
    background: #f1f2f6;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text);
    transition: all 0.2s;
}

.btn-view-ultra:hover {
    background: #e2e6ea;
    color: var(--primary-color);
}

/* 5. Why Choose Us Section */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card-stunning {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card-stunning:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 106, 81, 0.1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #e9f7ef;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-color);
    font-size: 2.5rem;
    transform: rotate(45deg);
    transition: all 0.4s ease;
}

.feature-icon-wrapper i {
    transform: rotate(-45deg);
}

.feature-card-stunning:hover .feature-icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: rotate(0deg);
}

.feature-card-stunning:hover .feature-icon-wrapper i {
    transform: rotate(0deg);
}

.feature-title-stunning {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
    .hero-stunning-wrapper {
        padding: 60px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image-right {
        margin-top: 40px;
    }
}

/* Inline Search Bar Styling */
.search-form-inline .input-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-form-inline .input-group:focus-within {
    box-shadow: 0 5px 15px rgba(112, 47, 138, 0.1);
    transform: translateY(-1px);
}

.search-form-inline .form-control:focus {
    box-shadow: none;
    background-color: #fff !important;
    border-color: #e0e0e0;
}

.search-form-inline .btn-light:hover {
    background-color: #f8f9fa;
    color: #4b2354;
}

/* Category Slider Redesign */
.category-item {
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-link {
    text-decoration: none !important;
    display: block;
}

.category-image-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    overflow: hidden;
}

.category-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.category-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.category-item:hover .category-title {
    color: #256A51;
}

/* Specific color for TV as per screenshot highlight */
.category-item:nth-child(2) .category-title {
    color: #007bff;
}


/* Mobile Product Card Optimization for 2.5 Item Slider */
/* Mobile Product Card Optimization - Boxy Reference (EatSure style) */
@media (max-width: 600px) {
    .product-card-ultra {
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid #f0f0f0 !important;
        margin: 5px !important;
        height: auto !important;
        overflow: hidden !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .ultra-img-wrap {
        height: 110px !important;
        padding: 0 !important;
        /* Full width image as per reference */
        background: #f9f9f9 !important;
        border-radius: 0 !important;
        display: block !important;
        overflow: hidden !important;
    }

    .ultra-img-wrap img {
        border-radius: 0 !important;
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
    }

    .ultra-info {
        padding: 8px !important;
        flex-grow: 1 !important;
    }

    .ultra-title {
        font-size: 0.6rem !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        margin-bottom: 3px !important;
        height: 2.2em !important;
        color: #333 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        white-space: normal !important;
    }

    /* Container for Price and Add button side-by-side */
    .ultra-price-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: auto !important;
        gap: 4px !important;
    }

    .ultra-price {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    .price-current {
        font-size: 0.65rem !important;
        font-weight: 800 !important;
        color: #000 !important;
    }

    .price-old {
        font-size: 0.5rem !important;
        color: #888 !important;
        text-decoration: line-through !important;
    }

    .ultra-actions {
        margin: 0 !important;
        flex: 0 0 auto !important;
    }

    .btn-add-ultra {
        background: #4a4edf !important;
        color: white !important;
        padding: 0 8px !important;
        font-size: 0.6rem !important;
        border-radius: 4px !important;
        height: 22px !important;
        min-height: 0 !important;
        font-weight: 700 !important;
        border: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center !important;
    }

    .btn-qty-group {
        height: 24px !important;
        padding: 0 !important;
        background: #f1f2f6 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
    }

    .badge-sale {
        background: #1e5c45 !important;
        /* Dark green tag from reference */
        color: white !important;
        padding: 2px 6px !important;
        font-size: 0.6rem !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0 0 6px 0 !important;
        position: absolute !important;
        z-index: 10 !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }

    /* Heading Resizes */
    .section-header-stunning h2,
    .section-title h2 {
        font-size: 1.35rem !important;
        margin-bottom: 4px !important;
        font-weight: 800 !important;
    }

    .section-header-stunning p,
    .section-title p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .section-title .btn-outline-success {
        margin-top: 5px !important;
        font-size: 0.75rem !important;
        padding: 4px 12px !important;
    }
}

/* --- Food Types Section --- */
.section-food-types {
    padding: 30px 0;
    background-color: #f8f9fa;
    /* Light background to separate from white sections */
}

.food-type-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Card Background Variants matching the reference image vibes */
.food-card-bg-1 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.food-card-bg-2 {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe0d1 100%);
}

/* Peach/Orange tint */
.food-card-bg-3 {
    background: linear-gradient(135deg, #fffde7 0%, #fff59d 100%);
}

/* Yellow tint */
.food-card-bg-4 {
    background: linear-gradient(135deg, #fff0f5 0%, #fce4ec 100%);
}

/* Pink tint */
.food-card-bg-5 {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* Blue tint */

.food-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.food-brand-logo {
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}

.food-main-img-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    position: relative;
}

.food-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure the food item fits nicely */
    border-radius: 50%;
    /* Optional: if the images are square, this makes them round. If already transparent pngs, it won't hurt. */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
}

.food-type-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.food-type-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* Custom Width Adjustment as per User Request */
@media (min-width: 992px) {
    .container-fluid {
        width: 80%;
        margin: 0 auto;
    }
}

/* Mobile heading adjustment */
@media (max-width: 768px) {

    .section-title h2,
    .section-header-stunning h2 {
        font-size: 1.5rem !important;
    }
}