/* =====================================================
   MOBILE RESPONSIVE FIXES - Krishna Naturals
   ===================================================== */

/* Fix grid for small screens */
@media (max-width: 480px) {
    .grid-responsive {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .container {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* Fix product cards */
    .product-card {
        max-width: 100%;
    }

    .product-card img {
        max-width: 100%;
        height: auto;
    }

    .premium-card {
        padding: 25px 20px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem !important;
    }

    /* Floating buttons smaller on mobile */
    .floating-cta {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    /* Nav adjustments */
    .nav-logo img {
        height: 40px;
    }
}

/* Tablet and small laptops */
@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .grid-responsive {
        grid-template-columns: 1fr !important;
    }

    .hero h1 {
        font-size: 1.5rem !important;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Fix images to never overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix product image on homepage */
.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .product-image img {
        height: 160px;
    }
}

/* WhatsApp/Chat button fix for mobile */
@media (max-width: 768px) {

    .whatsapp-button,
    .chat-button,
    #chatButton {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}

/* =====================================================
   INSTAGRAM REELS / VIDEO SECTION - Mobile Fix
   ===================================================== */

/* Make video grid responsive */
.instagram-grid {
    display: grid;
    gap: 15px;
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .video-card {
        width: 100%;
    }

    .video-thumbnail {
        max-height: 250px !important;
        border-radius: 12px;
    }

    .play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .video-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .video-thumbnail {
        width: 100%;
        max-width: 280px;
        /* Center with max width */
        max-height: 400px !important;
        /* Allow taller */
        aspect-ratio: 9/16;
        margin: 0 auto;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .video-card p {
        font-size: 1rem;
        margin-top: 12px;
        font-weight: 600;
        color: #444;
    }
}

/* Premium honey section - mobile fix */
@media (max-width: 768px) {
    .premium-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .premium-card img {
        max-height: 180px;
        object-fit: contain;
    }
}

/* Shop by Concern - Mobile */
@media (max-width: 480px) {
    .concern-icons {
        gap: 10px;
        justify-content: space-around;
    }

    .concern-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .concern-item span {
        font-size: 0.7rem;
    }
}

/* Category cards mobile */
@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .category-card {
        aspect-ratio: 1 !important;
        border-radius: 12px;
    }

    .category-overlay {
        padding: 15px;
    }

    .category-overlay h3 {
        font-size: 1rem;
    }

    .category-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-cards {
        grid-template-columns: 1fr !important;
    }

    .category-card {
        aspect-ratio: 16/9 !important;
    }
}