﻿/* 
* <576:     xs
* 576-768:  sm
* 768-992:  md
* 992-1200: lg
* 1200 -1400: xl
* >= 1400:  xxl
*/

@media (max-width: 575px) {
    .section_titles>h3 {
        font-size: 1.4em;
    }

    .section_titles>h2 {
        font-size: clamp(1.7em, 5.2vw, 2.2em)
    }

    .slide-home_title>span {
        font-size: 2.4em;
    }

    .slide-home_des {
        font-size: 1.2em;
    }

    .slide_next {
        right: 0;
        width: 3.2em;
        height: 3.2em;
    }

    .slide_prev {
        left: 0;
        width: 3.2em;
        height: 3.2em;
    }

    /* ------ quick action ------ */
    .quick-action-wrapper {
        padding: 1.2em 1.6em;
    }

    .quick-action-list {
        grid-template-columns: 1fr;
    }

    .qaheadline-title_sub {
        font-size: 1.3em;
    }

    .qaheadline-title {
        font-size: clamp(1.7em, 5.2vw, 2.2em);
    }

    .qaheadline-viewall>span {
        font-size: 1.2em;
    }

    .qaheadline-viewall>svg {
        width: 1.4em;
        height: 1.4em;
    }

    /* --------flash sale ------- */
    .flash-sale {
        padding: 1.6em;
    }

    .flash-sale_header {
        flex-direction: column;
        align-items: start;
        gap: 0.8em;
    }

    .flash-sale_title>span {
        font-size: 2.2em;
    }

    .flash-sale_time {
        font-size: 8px;
    }

    /* ------ product ------ */
    .product {
        padding: 1.6em 1.2em;
    }

    .product_name {
        height: 4.7em;
    }

    .product_name>a {
        font-size: 1.3em;
    }

    .product_prop {
        height: 6.5em;
    }

    .product_prop>li {
        font-size: 1.2em;
    }

    .product_price_no>svg {
        width: 1.8em;
        height: 1.8em;
    }

    .product_price_no>span {
        font-size: 1.2em;
    }

    /* ------------explore product ----------- */
    .explore_products {
        padding-top: 0;
    }

    .explore_products_header {
        grid-template-columns: 1fr;
        height: auto;
        gap: 0.8em;
    }

    .explore_tab {
        font-size: 0.8em;
    }

    .explore_products_content {
        grid-template-columns: 1fr;
    }

    .explore_tabs>.see_more {
        padding: 0.4em 0.8em;
        position: absolute;
        top: 0;
        right: 0;
        width: fit-content;
    }

    .see_more>span {
        font-size: 1.2em;
    }

    .see_more>svg {
        width: 1.4em;
        height: 1.4em;
    }

    .category {
        grid-template-columns: 1fr 1fr;
        gap: 1.2em;
    }

    .title_center {
        font-size: clamp(1.7em, 5.2vw, 2.2em);
        font-weight: 500;
    }

    .partner_list {
        grid-template-columns: 1fr;
        gap: 1.2em;
    }

    .our_partner {
        background-image: url("../img/banner-partner-m.png");
        aspect-ratio: 375 / 460;
        align-items: unset;
        justify-content: unset;
        padding: 2em 2.4em;
    }

    .our_partner_content {
        padding-left: 0;
        gap: 1.6em;
    }

    .our_partner_content>h2 {
        font-size: clamp(1.7em, 5.2vw, 2.2em);
        text-align: center;
    }

    .our_partner_content>p {
        width: 100%;
        font-size: 1.4em;
        text-align: center;
    }

    .our_partner_btns {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .retailer_link,
    .distributor_link {
        padding: 0.8em 1.6em;
        width: 17.2em;
        text-align: center;
    }

    .retailer_link>span,
    .distributor_link>span {
        font-size: 1.3em;
    }

    .faqs .section_header {
        flex-direction: column;
        align-items: start;
    }

    .faqs .see_more {
        padding-left: 0;
    }

    .accordion_header {
        gap: 2em;
    }

    .accordion_header>span {
        font-size: 1.5em;
        text-align: start;
    }

    .accordion_header>svg {
        width: 1.4em;
        height: 1.4em;
    }

    .accordion_content {
        font-size: 1.3em;
    }

    /* ---- banner ---- */
    .banners {
        aspect-ratio: 16 / 9;
        min-height: 14em;
        overflow: hidden;
    }

    .banners picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .banner-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
        display: block;
    }

    .banner_content {
        width: 100%;
        padding: 1.4em 1.6em;
        gap: 0.6em;
    }

    .banner_title {
        font-size: clamp(2.2em, 6.5vw, 2.8em);
        line-height: 1.15;
    }

    .banner_des {
        font-size: clamp(1.2em, 3.2vw, 1.35em);
        line-height: 1.35;
    }

    .banner_des br {
        display: none;
    }

    /* ---- catalogues ---- */
    .catalogue_list {
        grid-template-columns: 1fr;
    }

    /* ---- cart toast notification ---- */
    .cart_toast_noti {
        top: 1.6em;
        right: 1.6em;
        left: 1.6em;
        justify-content: space-between;
    }

    /* ---- noti dropdown ---- */
    .noti_sub {
        width: 100%;
        top: 4.4em;
        right: 0;
    }

    .noti_sub_mark {
        font-size: 1em;
    }

    .noti_sub_link {
        padding: 1em 0.8em;
    }

    .noti_sub_name {
        font-size: 1.2em;
    }

    .noti_sub_title {
        font-size: 1.4em;
    }

    .noti_sub_tab {
        padding: 0.5em;
    }

    .noti_sub_tab>span {
        font-size: clamp(10px, 3.2vw, 12px);
    }

    .noti_sub_desc,
    .noti_sub_time,
    .noti_sub_empty_text {
        font-size: 1.1em;
    }

    .noti_sub_empty {
        padding: 2em 1.5em 3em;
    }

    .noti_sub_empty_img {
        width: 11em;
    }

    .noti_sub_badge {
        width: 4em;
        height: 4em;
        border-radius: 1em;
    }

    .noti_sub_all>span {
        font-size: 1.2em;
    }

    .footer-wrapper {
        gap: 2em;
    }

    /* ---- question_cart_banner ---- */
    .question_cart_banner {
        min-height: 25em;
        border-radius: 0;
    }

    .question_cart_banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(254, 252, 248, 0.92) 0%, rgba(254, 252, 248, 0.75) 60%, rgba(254, 252, 248, 0.1) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .question_cart_banner_content {
        padding: 2em 1.6em;
        max-width: 90%;
        gap: 0.9em;
    }

    .question_cart_banner_content h2 {
        font-size: clamp(1.8em, 5.5vw, 2.2em);
    }

    .question_cart_banner_content p {
        font-size: 1.25em;
    }

    .link_contact_us {
        height: 3.8em;
        padding: 0 1.6em;
    }

    .link_contact_us>span {
        font-size: 1.25em;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .slide-home_title>span {
        font-size: 5vw;
    }

    .slide-home_des {
        font-size: 2.5vw;
    }

    /* ------ quick action ------ */
    .quick-action-list {
        font-size: 0.8rem;
        grid-template-columns: 1fr 1fr;
        gap: 1em
    }

    .qacard {
        font-size: 0.8rem;
    }

    .qaheadline-title_sub {
        font-size: 1.4em;
    }

    .qaheadline-title {
        font-size: 2.8em;
    }

    /* ------ flash sale ------ */
    .flash-sale,
    .flash-sale_time {
        font-size: clamp(5px, 1vw, 10px);
    }

    /* ------- explore product -------- */
    .explore_products {
        font-size: clamp(5px, 1vw, 0.8em);
    }

    .explore_title {
        font-size: clamp(1.5em, 2.2vw, 2.5em);
    }

    .explore_products_content {
        grid-template-columns: 1fr 1fr;
    }

    .partner_list {
        grid-template-columns: 1fr 1fr;
        gap: 1.2em;
    }

    .our_partner_content {
        font-size: clamp(5px, 0.9vw, 0.8em);
    }

    .section_title_lagre {
        font-size: 2.2em !important;
    }

    /* ----- catalogue ----- */
    .catalogue_list {
        grid-template-columns: 1fr 1fr;
    }

    .catalogue_info {
        gap: 0.8em;
    }

    .catalogue_name {
        font-size: 1.4em;
    }

    .catalogue_date {
        font-size: 1.2em;
    }

    .noti_sub {
        top: 4.4em;
        right: 0;
    }

    /* ---- question_cart_banner ---- */
    .question_cart_banner {
        min-height: 22em;
    }

    .question_cart_banner_content {
        padding: 2.4em 2.4em;
        max-width: 65%;
        gap: 1em;
    }

    .question_cart_banner_content br {
        display: none;
    }

    .question_cart_banner_content h2 {
        font-size: clamp(2em, 5vw, 2.4em);
    }

    .question_cart_banner_content p {
        font-size: 1.3em;
    }

    .link_contact_us {
        height: 4em;
        padding: 0 1.8em;
    }

    .link_contact_us>span {
        font-size: 1.3em;
    }

}

@media (max-width: 767px) {

    /* ----------------------------header */
    .menu-bar {
        display: flex;
    }

    .header-top {
        padding: 0.4em 0;
        position: relative;
        z-index: 99999;
    }

    .header-top_wrapper {
        justify-content: end;
    }

    .header_left {
        display: none;
    }

    .header_right>.box-login {
        display: none;
    }

    .header_menus {
        height: 5em;
    }

    .nav {
        display: none;
    }

    .logo {
        height: 3.2em;
        position: absolute;
        top: -3.2em;
        left: 0;
        z-index: 99999;
    }

    .navigation {
        justify-content: center;
    }

    .box-search {
        height: 3.4em;
        min-width: unset;
        width: 100%;
    }

    .box-search_warrap {
        width: 100%;
        justify-content: space-between;
        gap: 1.2em;
    }

    /* Khi chỉ có 1 search (đã đăng nhập / isLogin == true): full width 100% */
    .search:only-child {
        width: 100%;
    }

    /* Khi có thêm link_become_partner (chưa đăng nhập / !isLogin): canh đều 2 bên */
    .box-search_warrap:has(.link_become_partner) {
        justify-content: space-between;
    }

    .search:not(:only-child) {
        flex: 1;
        min-width: 0;
    }

    .search_btn{
        width: 1em;
        height: 1em;
    }

    .search_input,
    .link_become_partner>span {
        font-size: clamp(0.9em, 2.7vw, 1.2em);
    }

    .link_become_partner {
        height: 3.4em;
        padding: 0 1em;
        flex-shrink: 0;
        white-space: nowrap;
    }


    /* ---- footer ---- */
    .footer-wrapper {
        grid-template-columns: 1fr;
    }

    /* ----- slide banner ----- */
    .slideshow {
        aspect-ratio: unset;
        background-color: var(--secondary-1);
    }

    .slide-home {
        display: flex;
        flex-direction: column;
    }

    .slide-home_content {
        position: unset;
        transform: unset;
        padding: 2em;
    }

    .slide-home_links {
        padding: 0.8em 0;
    }

    .slide-home_link {
        padding: 0.8em 1.6em;
    }

    .slide-home_link>span {
        font-size: 1.3em;
    }

    /* ---- banner ---- */
    .banners {
        aspect-ratio: 16 / 8;
        min-height: 16em;
        overflow: hidden;
    }

    .banners picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .banner-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
        display: block;
    }

    .banner_content {
        padding: 1.6em 2.4em;
        gap: 0.8em;
    }

    .banner_title {
        font-size: 3.2em;
        line-height: 1.2;
    }

    .banner_des {
        font-size: 1.4em;
        line-height: 1.4;
    }

    .banner_des br {
        display: none;
    }

    /* ----breadcrumb --- */
    .breadcrumb {
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 7px;
    }

    .logo {
        height: 4.5em;
    }

    .menu_item>a,
    .menu_item--dropdown>a>span {
        font-size: clamp(1em, 1.3vw, 1.5em);
    }

    .menu_item--dropdown>a>svg {
        width: 1em;
        height: 1em;
    }

    /* ---- foooter ---- */
    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .quick-action-list {
        grid-template-columns: 1fr 1fr;
    }

    /* ---- question_cart_banner ---- */
    .question_cart_banner_content {
        padding: 3em 3.6em;
        max-width: 58%;
        gap: 1.2em;
    }

    .question_cart_banner_content h2 {
        font-size: 2.5em;
    }

    .question_cart_banner_content p {
        font-size: 1.4em;
    }

    .search_btn {
        width: 1em;
        height: 1em;
    }

    .search_input {
        font-size: 1em;
    }

    .box-search {
        min-width: clamp(7em, 15vw, 30em);
    }

    .link_become_partner>span {
        font-size: clamp(1em, 1vw, 1.2em);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    html {
        font-size: 8px;
    }

    .logo {
        height: 5em;
    }
}