﻿/* Media Queries for Responsiveness */

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .search-container {
        margin: 0 15px;
    }

    .nav-actions span {
        display: none;
    }

    .slide-base {
        width: 33.33%;
        flex: 0 0 33.33%;
    }
}

/* Tablets & Large Mobiles */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 15px;
    }

    .search-container {
        display: none;
    }

    .mobile-search-bar {
        display: block;
        padding: 10px 15px;
        background: var(--white);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .nav-logo img {
        height: 35px;
    }

    .main-slider-section {
        padding: 10px;
    }

    .hero-slider {
        height: 200px;
        border-radius: 20px;
        overflow: hidden;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .coupon-ad {
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
    }

    .coupon-divider {
        width: 80%;
        height: 2px;
        margin: 20px 0;
    }

    .discount-text {
        font-size: 40px;
    }

    .save-text {
        font-size: 32px;
    }

    .code-box {
        font-size: 16px;
    }

    .carousel-item img {
        height: 250px;
    }
}

/* Small Mobiles */
@media (max-width: 600px) {

    .slide-base,
    .brand-slider-reverse .slide-base {
        width: 50% !important;
        flex: 0 0 50% !important;
        height: 250px;
    }
}

/* Footer Responsive */
@media (max-width: 991px) {
    .flipkart-footer {
        padding: 40px 20px 0;
    }

    .footer-top-row {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links-container {
        padding-right: 0;
        border-right: none;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-address-container {
        padding-left: 0;
        flex-direction: column;
        gap: 20px;
        border-top: 1px solid var(--text-muted);
        padding-top: 30px;
    }

    .footer-col {
        flex: 1 1 45%;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* .footer-col {
        flex: 1 1 100%;
    } */

    .bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Mobile Categories Scroll */
.mobile-categories-scroll {
    display: none;
}

/* Mobile Ad Banner */
.mobile-ad-section {
    display: none;
}

@media (max-width: 768px) {
    .mobile-ad-section {
        display: block;
        padding: 0 15px 0;
    }

    .mobile-ad-banner {
        background: linear-gradient(90deg, #d8d8d8 0%, #e0dcd9 50%, #c4bfba 100%);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        position: relative;
    }

    .ad-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .ad-left h3 {
            font-size: 20px;
            font-weight: 800;
            color: var(--black);
            margin: 0;
        }

    .ad-divider {
        width: 2px;
        height: 35px;
        background-color: var(--black);
    }

    .ad-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

        .ad-right p {
            font-size: 10px;
            font-weight: 700;
            color: var(--black);
            margin-bottom: 2px;
            letter-spacing: 0.5px;
        }

    .ad-code {
        background: var(--black);
        color: var(--white);
        font-size: 12px;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 4px;
        letter-spacing: 1px;
    }

    .sparkle {
        color: var(--white);
        font-size: 12px;
    }

        .sparkle.top-right {
            position: absolute;
            top: -8px;
            right: -15px;
        }

    .mobile-categories-scroll {
        display: block;
        padding: 15px;
        overflow-x: auto;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

        .mobile-categories-scroll::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari, Opera */
        }

    .mobile-cat-grid {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        gap: 5px 12px;
    }

    .m-cat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 65px;
        margin: 0 0 10px 0;
    }

    .m-cat-img {
        width: 100%;
        aspect-ratio: 1;
        background: linear-gradient(180deg, #fff2e9 0%, #ffdfd4 100%);
        border-radius: 16px;
        overflow: hidden;
    }

        .m-cat-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .m-cat-item span {
        font-size: 11px;
        color: var(--text-color);
        text-align: center;
        font-weight: 500;
        line-height: 1.2;
    }
}

/* Pocket Friendly Bargain */
.mobile-pocket-bargain {
    display: none;
}

@media (max-width: 768px) {
    .mobile-pocket-bargain {
        display: block;
        padding: 16px 15px;
        background: var(--white);
    }

    .bargain-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .bargain-title h2 {
        font-size: 20px;
        font-weight: 800;
        color: var(--text-color);
        margin: 0 0 4px;
        letter-spacing: -0.5px;
    }

    .bargain-title p {
        font-size: 12px;
        color: var(--text-muted);
        margin: 0;
    }

    .bargain-coins {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .bargain-coins i {
            font-size: 45px;
            color: #ffc107;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

    .mobile-bargain-scroll {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -15px;
        padding: 0 15px;
    }

        .mobile-bargain-scroll::-webkit-scrollbar {
            display: none;
        }

    .bargain-grid {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        gap: 12px;
        width: max-content;
    }

    .bargain-item {
        position: relative;
        width: 120px;
        height: 160px;
        border-radius: 12px;
        overflow: hidden;
        background: var(--search-bg);
    }

        .bargain-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .bargain-info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 30px 10px 10px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
        color: var(--white);
        display: flex;
        flex-direction: column;
    }

    .b-under {
        font-size: 10px;
        font-weight: 500;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .b-price {
        font-size: 20px;
        font-weight: 800;
        line-height: 1;
        margin: 2px 0;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .b-cat {
        font-size: 12px;
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 65px;
        /* Prevent content from hiding behind nav */
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        justify-content: space-around;
        padding: 10px 0;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-color);
        gap: 6px;
        flex: 1;
        border-right: 1px solid var(--search-bg);
    }

        .bottom-nav-item:last-child {
            border-right: none;
        }

        .bottom-nav-item i {
            font-size: 20px;
        }

        .bottom-nav-item img {
            height: 20px;
            width: auto;
        }

        .bottom-nav-item span {
            font-size: 12px;
            font-weight: 600;
        }

        .bottom-nav-item.active {
            color: var(--primary-color);
        }

            .bottom-nav-item.active span {
                font-weight: 700;
            }
}
