/*
==================================================
15-responsive.css
Tablet and mobile responsive styling
Keep this file linked last in every HTML page
==================================================
*/

@media (max-width: 1100px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .header-actions {
        order: 3;
        width: 100%;
    }

    .header-search {
        width: 100%;
    }

    .hero-grid,
    .details-grid,
    .cart-layout,
    .checkout-layout,
    .contact-layout,
    .products-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar,
    .order-summary-card {
        position: static;
    }

    .home-product-grid,
    .product-grid,
    .why-grid,
    .review-grid,
    .category-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image-card img {
        height: 440px;
    }
}

@media (max-width: 820px) {
    .mobile-menu-button {
        display: block;
        order: 2;
    }

    .main-nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 16px;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        border-radius: 14px;
    }

    .header-inner {
        gap: 14px;
        min-height: 68px;
    }

    .hero-section {
        padding-top: 45px;
    }

    .hero-grid,
    .split-grid,
    .compact-grid,
    .newsletter-box,
    .offer-banner,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-card img,
    .split-image img,
    .main-details-image {
        height: 330px;
    }

    .room-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
    }

    .large-room-card {
        grid-row: span 1;
    }

    .horizontal-heading,
    .products-toolbar,
    .cart-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .products-controls,
    .newsletter-form,
    .form-grid,
    .payment-options,
    .compact-card-grid,
    .trust-row {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 92px 1fr;
    }

    .cart-item img {
        width: 92px;
        height: 86px;
    }

    .cart-item-price-row {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .top-strip {
        font-size: 12px;
    }

    .header-actions {
        align-items: stretch;
    }

    .header-search {
        flex: 1;
    }

    .header-search button {
        padding: 0 12px;
    }

    .cart-link {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .hero-trust-row,
    .category-grid,
    .why-grid,
    .review-grid,
    .home-product-grid,
    .product-grid,
    .team-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-block,
    .newsletter-section {
        padding: 52px 0;
    }

    .offer-banner {
        padding: 28px;
        border-radius: 26px;
    }

    .thumbnail-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-actions .primary-button,
    .details-actions .secondary-button {
        width: 100%;
    }
}
