/* Responsive Breakpoints for Dapur Binros Website */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-img-wrapper {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 30px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* Navbar Hamburger Drawer Setup */
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px 40px;
        gap: 25px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right var(--transition-speed) ease-in-out;
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
    }

    .theme-switch {
        font-size: 1.6rem;
    }

    /* Hero layout */
    .hero {
        height: 80vh;
        min-height: 480px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Grid scaling */
    .products-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    /* Modals dynamic columns */
    .modal-container {
        grid-template-columns: 1fr;
        max-width: 480px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-img-col {
        width: 100%;
        height: 280px;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-desc-col {
        padding: 25px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    /* Testimonial slider space */
    .testi-card {
        padding: 25px 15px;
    }

    .testi-quote {
        font-size: 1rem;
    }

    /* Column stacking for footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        height: 85vh;
        display: flex;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        width: 100%;
        padding: 10px 20px;
    }

    .badges-container {
        grid-template-columns: 1fr;
    }


    .search-box {
        width: 100%;
    }

    /* Tables sizing wrapper to scroll horizontally on mobile */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}