/*=========================================================
RESPONSIVE CSS — BagsProMax
=========================================================*/

@media (max-width: 1199px) {
    .hero-title {
        font-size: 48px;
    }

    .products-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .search-field-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .navbar > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-brand {
        order: 1;
    }

    .navbar-actions {
        order: 2;
        margin-left: auto;
    }

    .navbar-toggler {
        order: 3;
        margin-left: 4px;
        display: flex;
    }

    .navbar-collapse {
        order: 4;
        display: none;
        flex-basis: 100%;
        flex-grow: 1;
        width: 100%;
        margin-top: 12px;
        padding: 20px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-nav {
        margin: 0;
        padding-bottom: 0;
        border-bottom: none;
        gap: 4px;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-radius: var(--radius-sm);
        font-weight: 600;
        white-space: normal;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: var(--surface);
        color: var(--primary) !important;
    }

    .hero-section,
    .hero-swiper,
    .hero-swiper .swiper-slide,
    .min-vh-hero {
        min-height: 480px;
    }

    .hero-title {
        font-size: 42px;
    }

    .commitment-title {
        font-size: 30px;
    }

    .commitment-text {
        max-width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .contact-info-side {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .about-stats {
        gap: 32px;
    }

    .cart-offcanvas {
        width: 100% !important;
    }

    .legal-toc-sticky {
        position: static;
    }

    .legal-toc-card {
        margin-bottom: 8px;
    }
}

@media (max-width: 767px) {
    .hero-section,
    .hero-swiper,
    .hero-swiper .swiper-slide,
    .min-vh-hero {
        min-height: 420px;
    }

    .contact-map iframe {
        height: 320px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-wrap: nowrap;
        gap: 0.5rem !important;
    }

    .hero-buttons .btn {
        width: auto;
        flex: 1 1 0;
        padding: 0.45rem 0.65rem;
        font-size: 12px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .trending-section,
    .commitment-section,
    .about-journey-section,
    .difference-section,
    .products-page-section {
        padding: 60px 0;
    }

    .section-title,
    .products-page-header h1,
    .about-hero h1,
    .contact-hero h1,
    .legal-hero h1 {
        font-size: 22px;
    }

    .commitment-title {
        font-size: 26px;
    }

    .commitment-text {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .commitment-section .btn {
        width: 100%;
        max-width: 220px;
    }

    .feature-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .products-toolbar {
        grid-template-columns: 1fr;
    }

    .toolbar-select {
        min-width: 100%;
    }

    .product-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-control {
        justify-content: center;
        width: 120px;
        cursor: pointer;
    }

    .contact-form-side,
    .contact-info-side {
        padding: 28px 24px;
    }

    .about-hero h1 {
        font-size: 34px;
    }

    .legal-hero {
        padding: 56px 0 48px;
    }

    .legal-hero h1 {
        font-size: 32px;
    }

    .legal-section {
        padding: 48px 0 60px;
    }

    .legal-card {
        padding: 24px 20px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 18px;
    }

    .hero-title {
        font-size: 32px;
    }

    .top-bar {
        font-size: 11px;
    }

    .product-image-wrap {
        aspect-ratio: 1 / 1;
    }

    .product-image-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.35) 100%);
    }

    .product-overlay-btn {
        transform: translateY(0);
        max-width: none;
    }

    .mission-card,
    .vision-card {
        padding: 28px 24px;
    }
}
