/* ============================================
   FLIPKART MOBILE HOMEPAGE STYLING
   Exact replication of m.flipkart.com mobile view
   Desktop view is NOT affected - mobile only
   ============================================ */

@media (max-width: 768px) {
    /* ============================================
       PRODUCT GRID LAYOUT - 3 COLUMNS
       ULTRA HIGH SPECIFICITY - OVERRIDES EVERYTHING
       ============================================ */

    /* Target ALL possible product grid variations */
    html body.homepage .products-grid,
    body.homepage .products-grid,
    html body.homepage main .products-grid,
    body.homepage main .products-grid,
    html body.homepage .featured-section .products-grid,
    body.homepage .featured-section .products-grid,
    html body.homepage .products-section .products-grid,
    body.homepage .products-section .products-grid,
    html body.homepage section .products-grid,
    body.homepage section .products-grid,
    html body.homepage div .products-grid,
    body.homepage div .products-grid,
    .homepage .products-grid,
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns */
        gap: 0 !important;
        /* ZERO GAP */
        padding: 0 !important;
        /* ZERO PADDING */
        margin-bottom: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ============================================
       PRODUCT CARD STYLING - COMPACT
       ============================================ */

    /* NUCLEAR FIX: Force main content down with maximum specificity to override all resets */
    html body.homepage main.main-content,
    html body.homepage .main-content {
        padding-top: 200px !important;
        /* Header Height (includes categories nav) */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html body.homepage .product-card,
    body.homepage .product-card,
    .homepage .product-card,
    .product-card {
        background: #FFFFFF !important;
        border: 1px solid #f0f0f0 !important;
        /* Lighter border */
        border-radius: 0 !important;
        /* Square corners */
        box-shadow: none !important;
        overflow: hidden !important;
        transition: none !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ... (hover styles remain same) ... */

    html body.homepage .product-card:hover,
    body.homepage .product-card:hover,
    html body.homepage .product-card:active,
    body.homepage .product-card:active {
        box-shadow: none !important;
        transform: none !important;
        border-color: #E0E0E0 !important;
    }

    /* ============================================
       PRODUCT IMAGE DISPLAY
       ============================================ */

    body.homepage .product-image {
        aspect-ratio: 4 / 5 !important;
        height: auto !important;
        padding: 12px 12px 0 12px !important;
        /* Top padding for image */
        background: #FFFFFF !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* ... (img styles) ... */

    body.homepage .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    /* ============================================
       PRODUCT INFO & TEXT
       ============================================ */

    body.homepage .product-info {
        padding: 8px 12px 12px 12px !important;
        /* Better padding */
        background: #FFFFFF !important;
    }

    body.homepage .product-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        color: #212121 !important;
        font-weight: 400 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-bottom: 4px !important;
        height: 52px !important;
        /* Fixed height for 3 lines */
        max-height: 52px !important;
    }

    /* ============================================
       PRICING & OFFERS - FLIPKART STYLE
       ============================================ */

    body.homepage .price-section {
        margin-bottom: 2px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important;
    }

    /* Original price - strikethrough, shown first */
    body.homepage .price-original {
        font-size: 10px !important;
        color: #878787 !important;
        text-decoration: line-through !important;
        order: 1 !important;
        line-height: 1.2 !important;
    }

    /* Current price - bold, shown second */
    body.homepage .price-current {
        font-size: 14px !important;
        color: #212121 !important;
        font-weight: 700 !important;
        order: 2 !important;
        line-height: 1.2 !important;
    }

    /* Discount badge - green, shown third */
    body.homepage .discount-badge {
        font-size: 10px !important;
        color: #388E3C !important;
        font-weight: 600 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        order: 3 !important;
        display: none !important;
        /* Hide discount badge, not shown in Flipkart */
    }

    /* "Buy at" price styling - blue, prominent */
    body.homepage .product-buy-price,
    body.homepage .buy-price {
        font-size: 12px !important;
        color: #0a4409 !important;
        font-weight: 600 !important;
        margin-top: 2px !important;
        order: 4 !important;
    }

    /* ============================================
       RATING BADGE - TOP LEFT OF IMAGE
       ============================================ */

    body.homepage .product-rating {
        position: absolute !important;
        top: 6px !important;
        left: 6px !important;
        font-size: 10px !important;
        padding: 2px 5px !important;
        background: #388E3C !important;
        color: white !important;
        border-radius: 3px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 2px !important;
        z-index: 1 !important;
        font-weight: 600 !important;
    }

    body.homepage .product-rating i {
        font-size: 8px !important;
    }

    /* Hide full-width rating banner (old style) */
    /* Hide full-width rating banner (old style) */
    html body.homepage .product-card .rating-banner,
    body.homepage .product-card .rating-banner,
    html body.homepage .rating-banner,
    body.homepage .rating-banner,
    .rating-banner {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    /* ============================================
       SECTION HEADERS WITH VIEW ALL BUTTON
       ============================================ */

    body.homepage .section-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 8px !important;
        margin-bottom: 8px !important;
        background: linear-gradient(to bottom, #E8F0FE 0%, #FFFFFF 100%) !important;
    }

    body.homepage .section-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #212121 !important;
        margin: 0 !important;
    }

    body.homepage .view-all-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: #f7a200 !important;
        color: white !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    body.homepage .view-all-btn i {
        font-size: 14px !important;
    }

    /* ============================================
       PRODUCT SECTIONS SPACING
       ============================================ */

    /* Reset container spacing inside sections */
    body.homepage .container,
    body.homepage .featured-section .container,
    body.homepage .products-section .container,
    body.homepage .section-wrapper .container {
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    /* Minimal divider between sections */
    body.homepage .featured-section,
    body.homepage .products-section,
    body.homepage .section-wrapper {
        margin-bottom: 0 !important;
        /* No white space */
        padding: 0 !important;
        background: #F1F3F6 !important;
        /* Grey divider color */
        padding-bottom: 4px !important;
        /* Height of the divider */
        margin-top: 0 !important;
    }

    body.homepage .banner-section {
        margin-bottom: 4px !important;
        padding: 0 !important;
        background: #F1F3F6 !important;
        padding-bottom: 4px !important;
    }

    body.homepage .banner-container {
        border-radius: 0 !important;
        overflow: hidden !important;
        height: auto !important;
        /* Allow height to adapt to content */
        min-height: 100px !important;
    }

    body.homepage .banner-carousel,
    body.homepage .banner-slides,
    body.homepage .banner-slide,
    body.homepage .banner-slide a {
        height: 100% !important;
        /* Fill container */
        min-height: 100% !important;
    }

    body.homepage .banner-container img {
        width: 100% !important;
        height: auto !important;
        /* Let image define height */
        display: block !important;
        object-fit: contain !important;
        /* Ensure full image is visible */
    }

    /* ============================================
       PRODUCT RATING BADGE
       ============================================ */

    body.homepage .product-rating {
        font-size: 11px !important;
        padding: 4px 8px !important;
        background: #388E3C !important;
        color: white !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    body.homepage .product-rating i {
        font-size: 10px !important;
    }

    /* ============================================
       REMOVE DESKTOP EFFECTS
       ============================================ */

    body.homepage .product-card::before,
    body.homepage .product-card::after {
        display: none !important;
    }

    body.homepage .product-card:hover::before,
    body.homepage .product-card:hover::after {
        display: none !important;
    }

    /* ============================================
       CATEGORY ICONS — Flipkart-exact mobile style
       ============================================ */

    /* Nav wrapper: visible, white, border-bottom only */
    html body.homepage .homepage-categories-nav,
    body.homepage .homepage-categories-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.16) !important;
        box-shadow: none !important;
        z-index: 9999 !important;
    }

    /* Scroll row */
    body.homepage .homepage-categories-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-left: 8px !important;
        padding-top: 2px !important;
        padding-bottom: 0 !important;
        gap: 0 !important;
        justify-content: flex-start !important;
        background: #fff !important;
    }

    body.homepage .homepage-categories-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Each item: fixed width, relative for absolute label */
    body.homepage .homepage-category-item {
        flex: 0 0 76px !important;
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: relative !important;
        padding: 6px 0 16px 0 !important;
        text-decoration: none !important;
        border-bottom: none !important;
        transition: none !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    body.homepage .homepage-category-item.active {
        background-color: transparent !important;
    }

    body.homepage .homepage-category-item.active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 4px;
        right: 4px;
        height: 4px !important;
        background-color: #1C471F !important;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    /* Icon box: 44 × 38 like Flipkart */
    body.homepage .homepage-category-icon-wrapper {
        width: 44px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 12px auto !important;
        border-radius: 8px !important;
        background-color: transparent !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        transition: transform 0.1s ease-in !important;
    }

    body.homepage .homepage-category-item.active .homepage-category-icon-wrapper {
        background: linear-gradient(to bottom, rgba(28, 71, 31, 0.15), rgba(255, 255, 255, 1)) !important;
        transform: scale(1) !important;
    }

    /* Image: 36 × 36, contain (not cover) for logos/icons */
    body.homepage .homepage-category-icon-image {
        width: 36px !important;
        height: 36px !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 0 !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    body.homepage .homepage-category-icon-fallback {
        font-size: 24px !important;
        color: #333 !important;
        line-height: 1 !important;
    }

    body.homepage .homepage-category-item.active .homepage-category-icon-fallback {
        color: #1C471F !important;
    }

    /* Label: absolute at bottom, 12px font, centered */
    body.homepage .homepage-category-name {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        font-weight: 400 !important;
        color: #212121 !important;
        text-align: center !important;
        padding: 2px 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        transition: none !important;
        transform: none !important;
    }

    body.homepage .homepage-category-item.active .homepage-category-name {
        color: #1a1a1a !important;
        font-weight: 700 !important;
    }

    /* ============================================
       EDGE-TO-EDGE SECTIONS
       ============================================ */

    body.homepage .edge-to-edge {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.homepage .edge-to-edge .products-grid {
        padding: 0 8px !important;
    }

    /* ============================================
       FLIPKART TRENDS PRODUCT GRID (2x2)
       ============================================ */

    /* Container with rounded corners and the dynamic API background */
    .trends-grid-container {
        margin: 8px !important;
        /* Dynamic background applied via JS */
        border-radius: 12px 12px 12px 12px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        /* Optional: add a subtle shadow or let it be flat */
    }

    /* Header for the grid section - transparent so container color shows */
    .trends-grid-header {
        padding: 12px 16px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background-color: transparent !important;
    }

    .trends-grid-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #FFFFFF !important;
        margin: 0 !important;
    }

    /* White body area holding the items */
    .trends-grid-body {
        padding: 12px !important;
        background-color: #FFFFFF !important;
        border-radius: 12px !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        margin-bottom: 12px !important;
        flex: 1 !important;
    }

    /* 2 columns for Trends style */
    .trends-grid-inner {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Individual Trends Item */
    .trends-grid-item {
        background: #FFFFFF !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        text-decoration: none !important;
        position: relative !important;
        border: 1px solid #f0f0f0 !important;
        /* Subtle border like the image */
    }

    /* Image in the item */
    .trends-item-image-wrapper {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        /* Square or slightly taller */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        background: #F9F9F9 !important;
        /* Light gray behind products */
        overflow: hidden !important;
        position: relative !important;
    }

    .trends-item-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        /* Cover if lifestyle images, contain for phones */
    }

    /* Rating overlay inside image wrapper */
    .trends-item-rating-overlay {
        position: absolute !important;
        bottom: 8px !important;
        left: 8px !important;
        display: flex !important;
        z-index: 10 !important;
    }

    .trends-item-rating-badge {
        background-color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 4px !important;
        display: flex !important;
        align-items: center !important;
        padding: 2px 4px !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        color: #878787 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    }

    .trends-item-rating-badge span:first-child {
        color: #212121 !important;
    }

    .trends-item-rating-badge i {
        color: #0E772D !important;
        font-size: 8px !important;
        margin: 0 3px !important;
    }

    /* Text details container */
    .trends-item-text-container {
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        background-color: #FFFFFF !important;
        z-index: 2 !important;
        position: relative !important;
    }

    /* Brand and Product Name row */
    .trends-item-title-row {
        display: flex !important;
        align-items: center !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .trends-item-brand {
        color: #878787 !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 45% !important;
        margin-right: 4px !important;
    }

    .trends-item-name {
        color: #212121 !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 !important;
    }

    /* Price row */
    .trends-item-price-row {
        display: flex !important;
        align-items: center !important;
        font-size: 14px !important;
    }

    .trends-item-old-price {
        color: #878787 !important;
        text-decoration: line-through !important;
        margin-right: 6px !important;
        font-size: 12px !important;
    }

    .trends-item-new-price {
        color: #212121 !important;
        font-weight: 600 !important;
    }

    /* ============================================
       FLIPKART MOBILE CAROUSEL (Mobile only)
       ============================================ */
    div.dynamic-section.section-type-product_carousel.section-id-48.flipkart-mobile-carousel-outer {
        padding-top: 5px !important;
    }

    .flipkart-mobile-carousel-container {
        /* margin: 8px !important; */
        /* border-radius: 12px !important; */
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .flipkart-carousel-header {
        padding: 12px 16px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background-color: transparent !important;
    }

    .flipkart-carousel-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #FFFFFF !important;
        /* Defaulting to white for gradient backgrounds */
        margin: 0 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    }

    /* If no background is set (fallback), make text dark */
    .flipkart-mobile-carousel-container[style*="background-color: #f1f3f6;"] .flipkart-carousel-title,
    .flipkart-mobile-carousel-container[style*="background-color: rgb(241, 243, 246);"] .flipkart-carousel-title {
        color: #212121 !important;
        text-shadow: none !important;
    }

    .flipkart-carousel-view-all {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        background: #FFFFFF !important;
        border-radius: 50% !important;
        color: #212121 !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }

    .flipkart-carousel-view-all svg {
        width: 14px !important;
        height: 14px !important;
    }

    .flipkart-carousel-scroll {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 12px 12px 12px 12px !important;
        gap: 8px !important;
    }

    .flipkart-carousel-scroll::-webkit-scrollbar {
        display: none !important;
    }

    .flipkart-carousel-item {
        flex: 0 0 140px !important;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        background: #FFFFFF !important;
        border-radius: 8px !important;
        border: 1px solid #f0f0f0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        text-decoration: none !important;
    }
}

/* ============================================
   SMALL MOBILE ADJUSTMENTS (480px and below)
   ============================================ */

@media (max-width: 480px) {
    body.homepage .products-grid {
        gap: 8px !important;
        padding: 0 6px !important;
    }

    body.homepage .product-image {
        padding: 10px !important;
    }

    body.homepage .product-info {
        padding: 10px !important;
    }

    body.homepage .product-title {
        font-size: 12px !important;
    }

    body.homepage .section-header {
        padding: 10px 6px !important;
    }

    body.homepage .section-title {
        font-size: 15px !important;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (360px and below)
   ============================================ */

@media (max-width: 360px) {
    body.homepage .products-grid {
        gap: 6px !important;
        padding: 0 4px !important;
    }

    body.homepage .product-image {
        padding: 8px !important;
    }

    body.homepage .product-info {
        padding: 8px !important;
    }

    body.homepage .product-title {
        font-size: 11px !important;
    }

    body.homepage .price-current {
        font-size: 13px !important;
    }

    body.homepage .section-title {
        font-size: 14px !important;
    }

    body.homepage .view-all-btn {
        width: 28px !important;
        height: 28px !important;
    }

    body.homepage .promo-image {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0 !important;
    }

    body.homepage .promo-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* ============================================
       HERO SLIDER / PROMOTIONAL BANNERS - MOBILE
       ============================================ */

    body.homepage .hero-slider {
        padding: 0 8px !important;
        margin-bottom: 0 !important;
        /* Removed margin */
        height: auto !important;
    }

    body.homepage .hero-slide {
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    body.homepage .hero-slide img {
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    /* Hero slider navigation arrows - compact for mobile */
    body.homepage .hero-slider .hero-arrow-prev,
    body.homepage .hero-slider .hero-arrow-next {
        display: flex !important;
        width: 24px !important;
        height: 44px !important;
        font-size: 12px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        color: #fff !important;
        border-radius: 4px !important;
        border: none !important;
        opacity: 0.85 !important;
    }

    body.homepage .hero-slider .hero-arrow-prev {
        left: 4px !important;
    }

    body.homepage .hero-slider .hero-arrow-next {
        right: 4px !important;
    }

    /* Flipkart-style: transparent icon wrappers; keep these commented for reference
    body.homepage .homepage-category-item:nth-child(1) .homepage-category-icon-wrapper { background: ... }
    */
    /* ============================================
       PRODUCT CAROUSEL - HORIZONTAL SCROLL
       ============================================ */

    body.homepage .product-carousel-scroll {
        display: flex !important;
        background: #FFFFFF !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        scrollbar-width: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
    }

    body.homepage .product-carousel-scroll::-webkit-scrollbar {
        display: none !important;
    }

    body.homepage .product-carousel-scroll>div {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        scroll-snap-align: start;
        display: flex !important;
    }

    body.homepage .product-carousel-scroll .product-card {
        min-width: auto !important;
        max-width: none !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: 1px solid #f0f0f0 !important;
        border-right: none !important;
        /* Avoid double borders */
        margin: 0 !important;
    }

    body.homepage .product-carousel-scroll>div:last-child .product-card {
        border-right: 1px solid #f0f0f0 !important;
    }

    /* Hide carousel arrows on mobile */
    body.homepage .carousel-btn {
        display: none !important;
    }

    /* ============================================
       HIDE FOOTER SECTIONS ON MOBILE
       ============================================ */

    body.homepage .seo-footer-section,
    body.homepage .footer,
    body.homepage footer {
        display: none !important;
    }
}

/* ============================================
   FLIPKART IMAGE CAROUSEL (SPOTLIGHT)
   ============================================ */

.flipkart-img-carousel-container {
    background: transparent;
    margin: 12px 0;
    width: 100%;
}

.flipkart-img-carousel-header {
    padding: 0 16px 12px;
}

.flipkart-img-carousel-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    margin: 0;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flipkart-img-carousel-wrapper {
    padding: 0 4px 0 16px;
}

.flipkart-img-carousel-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.flipkart-img-carousel-scroll::-webkit-scrollbar {
    display: none;
}

.flipkart-img-carousel-item {
    scroll-snap-align: start;
    min-width: 0;
}

.flipkart-img-carousel-item a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.flipkart-img-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION BAR
   ============================================ */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background-color: #ffffff !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        border-top: 1px solid #e0e0e0 !important;
        z-index: 99999 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        box-sizing: border-box !important;
    }

    .mobile-bottom-nav .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #757575 !important;
        font-size: 11px !important;
        width: 25% !important;
        height: 100% !important;
        transition: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 20px !important;
        margin-bottom: 4px !important;
        color: #878787 !important;
        /* Gray by default */
    }

    .mobile-bottom-nav .nav-item span {
        font-weight: 500 !important;
        color: #212121 !important;
    }

    .mobile-bottom-nav .nav-item.active i {
        color: #004700 !important;
        /* Green when active */
    }

    .mobile-bottom-nav .nav-item.active span {
        color: #004700 !important;
    }

    /* Add padding to body to prevent content from being hidden behind nav */
    body.homepage {
        padding-bottom: 60px !important;
    }
}

/* Hide on desktop explicitly */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}