main {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

.back {
    background-color: #f6f5f4;
    font-size: 13px;
    padding: 10px;
}
.back a,
.back span{
    text-decoration: none;
    color: #a1a0a0;
    margin-left: 20px;
}

.products {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 30px;
}

.products h2 {
    font-size: 20px;
    color: #FF6C80;
    margin: 14px 0;
}

.product {

}

.product__category {
    border-bottom: 1px solid #d6d6d6;
    margin-top: 30px;
    width: 220px;
    height: 300px;
}

/*danh mục*/
.product__category ul {
    height: 240px;
    overflow: auto;
    padding-right: 10px;
}
.product__category ul::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
/* Thiết lập màu nền cho phần kéo cuộn (THUMB) */
.product__category ul::-webkit-scrollbar-thumb {
    background: #888; /* Màu xám đậm */
    border-radius: 5px; /* Tùy chọn: Bo góc cho thanh cuộn */
}
/* (Tùy chọn) Thiết lập màu nền cho rãnh cuộn (TRACK) */
.product__category ul::-webkit-scrollbar-track {
    background: #f1f1f1; /* Màu xám nhạt */
}
.product__categorys {

}
.product__categorys ul li {
    align-items: center;
    font-weight: 500;
    border-bottom: 1px solid #d6d6d6;
    margin-bottom: 10px;
}
.product__categorys ul li i {
    font-size: 12px;
}
.product__categorys ul li i:hover {
    cursor: pointer;
}

.product__categorys__list {
    opacity: .8;
    flex-direction: column;
    align-items: end;

    display: none;
}
.product__categorys__list ul {
    width: 70%;
    height: 70px;
    display: flex;
    flex-direction: column;
}

/* Giá*/
.product__price {
    height: 170px;
}

/*Tuổi*/
.product__age {
    height: 150px;
}

/*giới tính*/
.product__sex {
    height: 100px;
}

/*Thương hiệu*/
.product__trademark {
    height: 280px;
}

/*   */
.product__card {

    width: 200px;
    border: 1px solid #f333 ;
    margin: 10px;
}
.product__card img {
    width: 180px;
}

/*    List sản phẩm    */
.list-product {
    flex: 1;
    margin-left: 40px;
}

.list-product__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f5f4;
    padding: 10px;
}

.list-product__head__type {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-product__head__type ul {
    display: flex;
    padding-left: 0;
    list-style: none;
}
/* Class đánh dấu nút đang được chọn */
.list-product__head__type ul li.active {
    cursor: default;
    background: #FF6C80; /* Màu nền cho nút active */
    color: white; /* Đổi màu icon nếu cần */
}

.list-product__head__type ul li:hover:not(.active) {
    /* Đảm bảo hover chỉ hoạt động trên nút không active */
    cursor: pointer;
    background: #d4d4d4; /* Màu hover nhẹ nhàng */
    transition: ease .3s;
}

.list-product__head__type ul li {
    background: rgba(179, 179, 179, 0.2);
    margin: 6px;
    padding: 2px;
    border-radius: 100%;
}
.list-product__head__type ul li:hover {
    cursor: pointer;
    background: #FF6C80;
    transition: ease .3s;
}

.list-product__head__type ul li i {
    margin: 6px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#head__type1 {
    background: #FF6C80;
}

.list-product__head__search {
    display: flex;
    justify-content: center;
    align-items: center;
}

.list-product__head__search input {
    width: 200px;
    padding: 5px;
    border: none;
    outline: none;
    border-radius: 5px;
    margin-left: 5px;
}
.list-product__head__search input:hover {
    cursor: pointer;
}

.list-product__head__arrange select {
    border: none;
    outline: none;
    background: #ffffff;
    border-radius: 5px;
    cursor: pointer;

    padding: 8px 15px 8px 10px;
    font-size: 14px;


}
/*       list product body      */
.list-product__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.list-product__body__card {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    flex-direction: row;
}
.list-product__body__card__type2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    flex-direction: row;
}
.list-product__body__card__type2 .list-product__body__card__container {
    transform: scale(1.2);
    width: 350px;
    height: 480px;
    margin: 80px;
}
.list-product__body__card__type2 img {
    width: 250px;
    margin: auto;
    padding-top: 20px;
}

.list-product__body__card__type3 {

}
.list-product__body__card__type3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    flex-direction: row;
}
.list-product__body__card__type3 .list-product__body__card__container {
    width: 380px;
    height: 480px;
}
.list-product__body__card__type3 img {
    width: 250px;
    margin: auto;
    padding-top: 20px;
}

.list-product__body__card img {
    width: 60%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    position: relative;
    margin: auto;
    padding-top: 10px;
    object-fit: contain; /* Giữ tỷ lệ ảnh mà không bị méo */
    flex-shrink: 0; /* Ngăn ảnh bị co lại khi không đủ chỗ */
}

.list-product__body__card__content {
    margin: 20px;
}
.list-product__body__card__container {
    display: flex;
    flex-direction: column;
    width: 230px;
    height: 370px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    margin: 5px;
    position: relative;
    transition: ease .5s;
}
.list-product__body__card__container:hover{
    cursor: pointer;
}
.list-product__body__card__container:hover img {
    transform: scale(1.1);
    transition: ease .5s;
}

.list-product__body__card__content p{
    font-size: 12px;

}
.list-product__body__card__content h5 {
    color: #041675;
    font-size: 12px;
}

.list-product__body__card__content h4 {
    color: #FF6C80;
}

.list-product__body__card__content__title {
    width: 100%;
    height: 60px;
}


.list-product__body__card__addCard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.list-product__body__card__addCard button {
    border: none;
    background-color: #FF6C80;
    color: white;
    padding: 4px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 4px #FF6C80;
    margin-bottom: 10px;
    font-size: 16px;
}
.list-product__body__card__addCard button:hover {
    background-color: white;
    color: #FF6C80;
    box-shadow: 0 4px 4px #FF6C80;
    transition: ease .3s;
}

.list-product__body__card__addCard i {
    font-size: 18px;
    color: #FF6C80;
}
.list-product__body__card__addCard i:hover {
    cursor: pointer;
}

.list-product__body__card__evaluate {
    font-size: 12px;
    color: #ede63f;
}

/*   pagination    */
.list-product__body__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}
.list-product__body__pagination i {
    margin: 6px;
    border: 3px solid #FF6C80;
    color: #FF6C80;
    border-radius: 100%;
    width: 40px;
    height: 44px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.list-product__body__pagination ul{
    list-style: none;
    display: flex;
    margin: 20px 10px;
}
.list-product__body__pagination ul li {
    padding: 10px;
    margin: 0 5px;
    border: 1px solid #d6d6d6;
    border-radius: 100%;
    width: 40px;
    text-align: center;
    font-weight: 600;
    background: #f8f6f4;
}
.list-product__body__pagination ul li:hover,
.list-product__body__pagination i:hover{
    cursor: pointer;
    background: #FF6C80;
    color: white;
    transition: ease .3s;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    cursor: pointer;
}

.back-to-top img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.back-to-top img:hover {
    transform: translateY(-5px);
}

.product-link {
    text-decoration: none;
    color: inherit;
    height: stretch;
}
.pagination a {
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background: #FF6C80;
    color: white;
    border-color: #FF6C80;
}

.result-info {
    padding: 10px 20px;
    text-align: right;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    margin-top: 10px;
    border-radius: 8px;
}
.no-products {
    text-align: center;
    padding: 50px;
    width: 100%;
    font-size: 18px;
    color: #999;
}
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.list-product__body__pagination ul li.active {
    background: #FF6C80;
    color: white;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-direction: row;
    position: relative;
    bottom: 1rem;
}

.product-actions button {
    border-radius: 10px;
    margin:auto;
}
.add-to-cart {
    background-color: white;
    color: #FF6C80;
    border: 1px solid #FF6C80;
    padding: 10px 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 1rem;
}

.add-to-cart:hover {
    background-color: #ff3e5a;
    color: white
}
.buyNow{
    background-color: #FF6C80;
    color: white;
    border: none;
    padding: 10px 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 1rem;
}
.buyNow:hover{
    background-color: white;
    color: #ff3e5a;
    border: 1px solid #ff3e5a;
}