@media screen and (max-width: 1400px) {
    .my-container {
        width: calc(100% - 32px);
    }

    .main-header .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        padding: 12px 0;
    }

    .main-header .header-left,
    .main-header .header-right {
        flex: 1 1 auto;
    }

    .main-header .header-right {
        justify-content: flex-end;
    }

    .main-header .main-nav {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px 24px;
        white-space: normal;
    }

    .advantage-grid,
    .hot-product-grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-item {
        flex: 0 0 140px;
        width: 140px;
    }

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

    .category-showcase-swiper {
        padding-bottom: 36px;
    }

    .category-showcase {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
    }

    .category-showcase__quad {
        grid-row: span 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
    }

    .category-panel--tall {
        grid-row: span 1;
        aspect-ratio: 115 / 108;
        min-height: 0;
    }

    .category-panel--mini {
        aspect-ratio: 225 / 211;
        min-height: 0;
    }

    .category-panel--short {
        aspect-ratio: 460 / 211;
        min-height: 0;
    }

    .flash-sale-panel__inner {
        gap: 32px;
    }

    .flash-sale-panel__title {
        font-size: 30px;
    }

    .category-panel {
        min-height: 0;
    }

    .category-panel__content {
        padding: 14px 16px;
    }

    .category-panel__title {
        font-size: 15px;
    }

    .category-panel__desc {
        font-size: 12px;
    }

    .category-panel--mini {
        .category-panel__content {
            padding: 10px 12px;
        }

        .category-panel__title {
            font-size: 13px;
        }
    }

    .article-card__thumb {
        height: 180px;
    }

    .article-card__title {
        font-size: 16px;
    }

    .cta-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 120px 120px 88px;
    }

    .cta-banner--featured {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .cta-banner--wide {
        grid-column: 1 / 3;
        grid-row: 4;
    }

    .cta-promo-head {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media screen and (max-width: 992px) {
    .home-banner-section {
        padding-top: 12px;
        padding-bottom: 0;

        .home-banner-swiper {
            .swiper-slide {
                height: auto;
                aspect-ratio: 2/1;

                .banner-slide__content {
                    left: 20px;
                    width: calc(100% - 40px);
                    transform: translateY(-50%);
                }

                .banner-slide__tag {
                    margin-bottom: 10px;
                    padding: 5px 12px;
                    font-size: 12px;
                }

                .banner-slide__title {
                    margin-bottom: 10px;
                    font-size: 26px;
                }

                .banner-slide__desc {
                    margin-bottom: 18px;
                    font-size: 14px;
                    line-height: 1.55;
                }

                .banner-slide__actions {
                    gap: 8px;
                }

                .banner-slide__btn {
                    min-width: 0;
                    height: 48px;
                    padding: 0 20px;

                    .banner-slide__btn-text {
                        font-size: 14px;
                    }
                }
            }

            .home-banner-pagination {
                bottom: 16px;
            }
        }
    }

    .advantage-section {
        .advantage-grid {
            grid-template-columns: repeat(1, 1fr);
            gap: 16px;
        }

        .advantage-card__visual {
            height: 200px;
        }

        .advantage-card__index {
            font-size: 40px;
        }

        .advantage-card__panel {
            margin: -38px 12px 0;
            padding: 16px 18px 18px;
        }

        .advantage-card__title {
            font-size: 18px;
        }

        .advantage-card__desc {
            font-size: 14px;
        }
    }

    .category-section {
        .section-title {
            font-size: 26px;
        }

        .section-sub-title {
            margin-bottom: 24px;
            font-size: 14px;
            line-height: 1.65;
        }

        .category-showcase-swiper {
            padding-bottom: 28px;

            .swiper-slide {
                height: auto;
            }

            .swiper-wrapper {
                align-items: stretch;
                height: auto !important;
            }
        }

        .category-showcase {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-rows: none;
            gap: 8px;
            height: auto;
        }

        .category-showcase__quad {
            grid-column: 1 / -1;
            grid-row: auto;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-rows: repeat(2, auto);
            gap: 8px;
            height: auto;

            .category-panel--mini:nth-child(1) {
                border-radius: 16px 0 0 0;
            }

            .category-panel--mini:nth-child(2) {
                border-radius: 0 16px 0 0;
            }

            .category-panel--mini:nth-child(3) {
                border-radius: 0 0 0 16px;
            }

            .category-panel--mini:nth-child(4) {
                border-radius: 0 0 16px 0;
            }
        }

        .category-panel {
            min-height: 0 !important;
            height: auto;
            border-radius: 16px;

            img {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            &:hover {
                transform: none;
                box-shadow: none;
            }
        }

        .category-panel--mini {
            aspect-ratio: 225 / 211;
            min-height: 0 !important;
            height: auto;

            .category-panel__content {
                padding: 10px 12px;
            }

            .category-panel__title {
                font-size: 14px;
                line-height: 1.35;
            }
        }

        .category-panel--tall {
            grid-column: 1 / -1;
            grid-row: auto;
            aspect-ratio: 115 / 108;
            min-height: 0 !important;
            height: auto;
            border-radius: 16px;
        }

        .category-panel--short {
            grid-column: 1 / -1;
            aspect-ratio: 460 / 211;
            min-height: 0 !important;
            height: auto;
            border-radius: 16px;
        }

        .category-panel__content {
            padding: 12px 14px;
            gap: 2px;
        }

        .category-panel__title {
            font-size: 15px;
            line-height: 1.4;
        }

        .category-panel__desc {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 12px;
            line-height: 1.45;
        }

        .category-showcase-pagination {
            gap: 6px;

            .swiper-pagination-bullet {
                width: 7px;
                height: 7px;
            }

            .swiper-pagination-bullet-active {
                width: 22px;
            }
        }
    }

    .flash-sale-section {
        .flash-sale-panel {
            padding: 30px 0;
        }

        .flash-sale-panel__inner {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .flash-sale-panel__title {
            font-size: 24px;
            margin-bottom: 12px;
        }

        .flash-sale-countdown {
            gap: 4px;
            padding: 8px 10px;
            margin-bottom: 12px;
        }

        .flash-sale-countdown__digit {
            font-size: 20px;
        }

        .flash-sale-countdown__colon {
            margin-top: 10px;
            font-size: 22px;
        }

        .flash-sale-countdown__item {
            min-width: 48px;
            padding: 8px 8px 6px;
            border-radius: 2px;
        }

        .flash-sale-panel__btn {
            min-width: 136px;
            height: 40px;
        }

        .flash-sale-swiper__nav {
            margin-top: 12px;
            justify-content: center;
        }

        .flash-sale-prev,
        .flash-sale-next {
            width: 36px;
            height: 36px;
        }
    }

    .hot-product-section {
        .hot-product-swiper {
            padding-bottom: 32px;
        }

        .hot-product-grid {
            gap: 12px;
        }
    }

    .brand-section {
        .brand-item {
            height: 160px;
            flex: 0 0 166px;

            .brand-item__name {
                font-size: 15px;
                font-weight: 500;
                padding: 10px 24px 10px 0;

                &::before {
                    box-shadow: 0 16px 0 0 #ffffff;
                }
            }
        }
    }

    .cta-section {
        .cta-layout {
            grid-template-columns: 1fr;
            grid-template-rows: none;
            gap: 10px;
        }

        .cta-banner {
            min-height: 120px;
        }

        .cta-banner--featured {
            grid-column: 1;
            grid-row: auto;
            min-height: 180px;
        }

        .cta-banner--wide {
            grid-column: 1;
            grid-row: auto;
            min-height: 120px;
        }

        .cta-banner {
            .cta-banner__search {
                padding: 8px;

                .search-icon-wrapper {
                    width: 36px;
                    height: 36px;

                    svg {
                        width: 18px;
                        height: 18px;
                    }
                }
            }

            &.cta-banner--featured {
                .cta-banner__search {
                    padding: 12px;

                    .search-icon-wrapper {
                        width: 44px;
                        height: 44px;

                        svg {
                            width: 22px;
                            height: 22px;
                        }
                    }
                }
            }
        }
    }

    .review-section {
        padding-top: 30px;

        .review-layout {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .review-stats {
            padding: 24px 20px 20px;

            .review-stats__icon {
                margin-bottom: 18px;
            }

            .review-stats__divider {
                margin: 20px 0 16px;
            }
        }

        .review-card {
            padding: 22px 20px 20px;

            .review-card__head {
                margin-bottom: 16px;
            }

            .review-card__content {
                font-size: 16px;
            }

            .review-card__divider {
                margin: 22px 0 16px;
            }

            .review-card__footer {
                padding-right: 96px;
            }

            .review-card__avatar {
                width: 42px;
                height: 42px;
            }
        }

        .review-panel__nav {
            right: 20px;
            bottom: 20px;

            .review-prev,
            .review-next {
                width: 40px;
                height: 40px;

                svg {
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }

    .article-section {
        .article-grid {
            gap: 16px;
            grid-template-columns: repeat(1, 1fr);

            .article-card {
                border: 1px solid rgba(0, 0, 0, 0.1);

                .article-card__thumb {
                    height: 150px;

                    img {
                        border-radius: 16px 16px 0 0;
                    }
                }

                .article-card__date {
                    padding: 6px;

                    .article-card__date-day {
                        font-size: 20px;
                    }
                }

                .article-card__title {
                    margin-bottom: 6px;
                }

                .article-card__excerpt {
                    margin-bottom: 8px;
                    font-size: 14px;
                }

                .article-card__more {
                    font-size: 15px;
                }
            }

            .article-card__body {
                padding: 12px;
            }
        }
    }

}

@media screen and (max-width: 640px) {
    .category-section {
        .category-showcase__quad {
            grid-template-rows: repeat(2, auto);
        }

        .category-panel--mini {
            aspect-ratio: 225 / 211;
            min-height: 0 !important;
            height: auto;

            .category-panel__title {
                font-size: 13px;
            }
        }

        .category-panel--tall {
            aspect-ratio: 115 / 108;
            min-height: 0 !important;
            height: auto;
        }

        .category-panel--short {
            aspect-ratio: 460 / 211;
            min-height: 0 !important;
            height: auto;
        }

        .category-panel__title {
            font-size: 14px;
        }

        .category-panel__desc {
            display: none;
        }
    }
}