/* Shop Header Bar */
.shop-header-bar {
    margin-bottom: 20px;
}

/* Category Slider */
.htw-danhmuc {
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.htw-danhmuc .cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    height: auto;
    /* Swiper slide width is auto or defined by JS */
}

.htw-danhmuc .cat-card:hover,
.htw-danhmuc .cat-card.active {
    border-color: #C93795;
    box-shadow: 0 2px 8px rgba(201, 55, 149, 0.2);
}

.htw-danhmuc .cat-thumb {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.htw-danhmuc .cat-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.htw-danhmuc .cat-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
}

.htw-danhmuc .cat-card.active .cat-title {
    color: #C93795;
    font-weight: bold;
}

/* Child Categories */
}

/* Sort Buttons */
.sap-xep-ngang {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    background: #fff;
    transition: all 0.2s;
}

.sort-button:hover {
    border-color: #C93795;
    color: #C93795;
}

.sort-button.active {

    /* Shop Header Bar */
    .shop-header-bar {
        margin-bottom: 20px;
    }

    /* Category Slider */
    .htw-danhmuc {
        margin-bottom: 15px;
        position: relative;
        overflow: hidden;
    }

    .htw-danhmuc .cat-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: #fff;
        height: auto;
        /* Swiper slide width is auto or defined by JS */
    }

    .htw-danhmuc .cat-card:hover,
    .htw-danhmuc .cat-card.active {
        border-color: #C93795;
        box-shadow: 0 2px 8px rgba(201, 55, 149, 0.2);
    }

    .htw-danhmuc .cat-thumb {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .htw-danhmuc .cat-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .htw-danhmuc .cat-title {
        font-size: 13px;
        font-weight: 500;
        color: #333;
        line-height: 1.3;
    }

    .htw-danhmuc .cat-card.active .cat-title {
        color: #C93795;
        font-weight: bold;
    }

    /* Child Categories */
}

/* Sort Buttons */
.sap-xep-ngang {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    background: #fff;
    transition: all 0.2s;
}

.sort-button:hover {
    border-color: #C93795;
    color: #C93795;
}

.sort-button.active {
    background: #C93795;
    border-color: #C93795;
    color: #fff;
    align-items: flex-start;
}

.sap-xep-ngang {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    /* Tăng padding bottom để tránh bị cắt shadow nếu có */
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    /* Trượt mượt trên iOS */
    scrollbar-width: none;
    /* Ẩn scrollbar Firefox */
    gap: 8px;
    /* Giảm gap trên mobile */
}

/* Ẩn scrollbar Chrome/Safari/Edge */
.sap-xep-ngang::-webkit-scrollbar {
    display: none;
}

.sort-button {
    white-space: nowrap;
    flex-shrink: 0;
    /* Không cho co lại */
    padding: 5px 10px;
    /* Padding nhỏ hơn xíu trên mobile */
    font-size: 12px;
}
}