.chatbox-container {
    width: 380px;
    height: 70vh;
    bottom: 100px;
    right: 20px;
    font-size: 40px;
}

/* Mobile & Tablet*/
@media (max-width: 1023px) {
    :root {
        --header-height: 68px;
        --navbar-height: 0px;
    }

    .hide-on-mobile-table {
        display: none;
    }

    .header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 10;
        background-color: var(--primary-color);
    }

    .header__search {
        /* display: none; */
    }

    .header-has-cart {
        position: fixed;
        right: 0;
        left: 0;
        top: var(--header-height);
        width: 100%;
        margin: 0;
        border-radius: 0;
        /* display: block; */
    }

    .header-has-cart::before {
        display: none;
    }

    .header__sort-bar {
        /* display: flex; */
        display: none;
    }

    .app__container {
        margin-top:  calc(var(--header-height) + var(--header-sort-bar-height));
    }

    .catagory {
        margin-top: 10px;
    }   

    .chatbox-container {
        width: 350px;
        height: 600px;
        bottom: 90px;
        z-index: 11; /* Đảm bảo hiển thị trên header */
    }

    .support-buttons {
        z-index: 10;
    }
}

/* Table */
@media (min-width: 740px) and (max-width: 1023px) {
    .hide-on-table {
        display: none;
    }

    .chatbox-container {
        width: 320px;
        height: 70vh;
        right: 15px;
    }
    
    .support-buttons {
        right: 15px;
        bottom: 25px;
    }

    .header .grid.wide {
        /* display: none; */
        width: 100%;
    }
    .header-with-search {
        justify-content: space-between;
    }

    .header-cart {
        width: 100px;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 739px) {
    .hide-on-mobile {
        display: none;
    }

    .chatbox-container {
        width: 50%;
        height: 70vh;
        max-height: 500px;
        bottom: 80px;
        right: 0;
        border-radius: 0;
    }
    
    .support-buttons {
        right: 10px;
        bottom: 20px;
    }
    
    .support-btn {
        width: 45px;
        height: 45px;
    }
    
    .support-btn.zalo img {
        width: 25px;
    }

    .header {
        z-index: 10;
        background-color: var(--primary-color);
    }

    .header-with-search {
        justify-content: space-between;
        position: relative;
    }

    .header-logo,
    .header-cart {
        width: unset;
    }

    .header__mobile-search-icon,
    .header-cart {
        padding: 0 16px;
    }

    .header__search {
        display: none;
    }

    .header__input-search-mobile {
        position: fixed;
        top: calc(var(--header-height) - var(--header-height));
        opacity: 0;
        transform: translateY(calc(var(--header-height) / 1.3));
        transition: all linear .3s;
        align-items: center;
        background-color: var(--while-color);
        height: 40px;
        box-shadow: -2px 5px 5px rgba(0, 0, 0, 0.2), 2px 5px 5px rgba(0, 0, 0, 0.2), 0px 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 2;
        width: 100%;
        display: flex;
    }

    .header__search-checkbox:checked ~ .header__input-search-mobile {
        transform: translateY(var(--header-height));
        opacity: 1;
    }

    .header__search-wrap {
        position: unset;
    }

    .header__mobile-search {
        display: block;
    }

    .header__search-history {
        position: absolute;
        top: calc(var(--header-height) - 65%);
        width: 100%;
        border-radius: 0;
        z-index: 2;
    }

    .pagination-item {
        margin: 0;
        
    }

    .pagination-item__link {
        --height: 28px;
        font-size: 1.6rem;
        min-width:  36px;
    }

    .app__content {
        margin: 0 4px;
    }
}