/* Responsive Adjustments - Matching Design */

@media (max-width: 1200px) {
    .hero-container {
        padding: 0 20px;
    }
    .hero-stats-panel {
        right: 0;
    }
    .homepage-main-layout {
        gap: 20px;
    }
    .product-custom-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 991px) {
    /* Header */
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-nav {
        order: 4;
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--border-color-light);
        padding-top: 8px;
        margin-top: 5px;
    }
    .header-search-form {
        flex: 1;
        max-width: 250px;
    }

    /* Hero */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-tagline {
        padding-left: 0;
    }
    .hero-tagline::before {
        display: none;
    }
    .hero-title {
        font-size: 34px;
    }
    .hero-media {
        max-width: 100%;
        width: 100%;
    }
    .hero-stats-panel {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 25px;
    }
    .stat-card {
        min-width: 180px;
        flex: 1 1 40%;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    /* Main Layout */
    .homepage-main-layout {
        grid-template-columns: 1fr;
    }

    /* Footer Features */
    .footer-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .footer-feature-card {
        border-right: none !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 767px) {
    .header-search-form {
        display: none;
    }
    .header-hotline {
        border-left: none;
        padding-left: 0;
    }

    /* Hero */
    .hero-section {
        padding: 30px 0 50px 0;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .hero-features-list {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
    }
    .hero-actions-wrapper {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary-custom, .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Products */
    .product-custom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Footer Features */
    .footer-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .header-logo-text {
        font-size: 9px;
        max-width: 110px;
    }
    .header-hotline {
        display: none;
    }
    .header-nav-link {
        font-size: 12px;
        padding: 6px 8px;
    }
    .stat-card {
        min-width: 100%;
    }
    .product-custom-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-card-custom {
        padding: 10px;
    }
    .footer-features-grid {
        grid-template-columns: 1fr;
    }
    .slider-nav-btn {
        display: none;
    }
}
