.product-type-block {
    display: flex;
    gap: 20px;
}

.product-type-block .intro {
    width: calc(25% - 20px);
}

.product-type-block .content {
    width: 75%;
}

.product-type-block .content img {
    height: 200px;
}

.add_bottom_general, .add_top_general {
    display: flex;
    justify-content: space-between;
    color: black;
}

.info-ft {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.info-ft .panel-grid-cell {
    flex: 1;
    box-sizing: border-box;
    color: white;
    font-weight: 600;
}


@media (max-width: 768px) {
    .product-type-block {
        flex-direction: column;
    }

    .product-type-block .intro,
    .product-type-block .content {
        width: 100%;
    }

    .info-ft,.add_bottom_general,
    .add_top_general {
        flex-direction: column;
    }

  
}

#overlay {
position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
    background: #fff;
    opacity: 0.8;
}

#product-list {
    position: relative;
}

#loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 24px;
    color: #31190a70;
    z-index: 9999;
}

/* archive  */

.spinner {
    border: 8px solid #f3f3f3; 
    border-top: 8px solid #31190a70; 
    border-radius: 50%;
    width: 40px; 
    height: 40px;
    animation: spin 1s linear infinite; 
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 99999; 
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tổng quan cho container chính */
#products-filter {
    flex: 3;
    padding: 20px;
    border: solid 1px #31190a70;
    border-radius: 10px;
    height: 100%;
}

#products-filter .checkbox-group {
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px 10px 3px 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 280px;
}

#products-filter .checkbox-group label {
    font-size: 15px;
}

#products-filter {
    position: sticky; 
    top: 0px; 
    flex: 3; 
    padding: 20px;
    border: solid 1px #31190a70;
    border-radius: 10px;
    background-color: white; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
    z-index: 1; 
}

.form-filter {
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

.form-filter::-webkit-scrollbar {
    display: none; /* Ẩn thanh cuộn cho trình duyệt Webkit */
}

.form-filter {
    -ms-overflow-style: none;  /* Ẩn thanh cuộn cho IE và Edge */
    scrollbar-width: none;  /* Ẩn thanh cuộn cho Firefox */
}

.product-container  {
    display: flex;
    flex-direction: column;
}

#product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 cột */
}

/* Các sản phẩm */ 
.no-product {
    grid-column: 1 / 4; /* Chiếm toàn bộ 3 cột */
    grid-row: 1; /* Đặt ở hàng thứ 1 */
    display: flex; /* Để căn giữa văn bản */
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    height: 100%; /* Chiều cao 100% để căn giữa */
    text-align: center; /* Căn giữa nội dung văn bản */
    font-size: 25px;
}

.center {
    text-align: center;
}

.btn-cus {
    background-color: #31190a; /* Màu nền nổi bật */
    color: white; /* Màu chữ */
    padding: 10px 20px; /* Khoảng cách bên trong */
    border: none; /* Không có đường viền */
    border-radius: 25px; /* Bo góc */
    font-size: 16px; /* Kích thước chữ */
    cursor: pointer; /* Hiệu ứng con trỏ */
    transition: all 0.3s ease; /* Hiệu ứng chuyển tiếp */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Đổ bóng */
    font-weight: 600;
    text-transform: none;
}

.btn-cus:hover {
    background-color: #4a1c0a; /* Màu nền khi hover */
    transform: scale(1.05); /* Tăng kích thước khi hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Đổ bóng đậm hơn */
}

.pdt-20 {
    padding-top: 20px;
}

.product-small .col-inner .box-image img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    transition: all 0.5s;
    height: 220px;
    position: relative;
    top: initial;
    left: initial;
    max-width: 245px;
}

#open-filter, #close-filter {
    display: none;
} 


/* Media query cho mobile */
@media (max-width: 768px) {
    #product-container {
        grid-template-columns: repeat(2, 1fr);
    }

    #product-container .product {
        padding: 0 10px 20px;
    }

    #products-filter {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100vw; 
        height: 100vh; 
        background-color: white; 
        z-index: 9999; 
        display: none; 
        overflow-y: auto; 
        padding: 20px; 
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
        border: none;
        border-radius: 0;
    }

    .product-small .col-inner .box-image img {
        max-width: 100%;
    }

    .mobile {
        display: flex;
        flex-direction: column;
    }

    .close-btn {
        position: absolute;
        top: -10px;
        right: 16px;
        width: 24px;
        height: 24px;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        color: #31190a;
        padding: 0;
        margin: 0;
    }

    #open-filter, #close-filter {
        display: block;
    } 

    .flex-end {
        display: flex;
        align-items: flex-end;
        flex-direction: column;
    }

    body.no-scroll {
        overflow: hidden; /* Ẩn thanh cuộn */
    }
   
}

/* pagination */

.pagination-container {
    display: flex;
    justify-content: center;
}

.pagination-container ul {
    display: flex;
    gap: 10px;
}

.pagination-container li {
    width: 28px;
    border: solid 1px #e66a1f;
    border-radius: 15px;
    padding: 0px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e66a1f;
}

.pagination-container ul li:has(span.current) {
    pointer-events: none;
    cursor: default; 
    background-color:#e66a1f;
    color: #fff;
} 

.pagination-container .page-numbers {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 0 10px;
}

/* Style container */
.radio-buttons-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.radio-buttons-container .selected {
    background: #e66a1f;
    color: #fff;
}

/* Ẩn radio button gốc */
.radio-button input[type="radio"] {
    display: none;
}

/* Style cho label (giống button) */
.radio-button {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    padding: 7px 10px;
    margin: 0px;
    border-radius: 7px;
    color: #e66a1f;
    font-weight: 600;
    border: #e66a1f solid 1px;
    text-align: center;
}

.radio-button:hover {
    background: #e66a1f;
    color: #fff;
}



.product-images-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.main-image {
    padding: 0 5px;
    height: 430px;
    width: 100%;
    object-fit: cover;
}

/* Hàng 2: Slider ảnh phụ */
.thumbnail-images-slider {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

/* Chỉnh sửa kích thước ảnh thu nhỏ */
.swiper-slide {
    width: 80px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
}

.swiper-slide img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
}



.swiper-slide img.active {
    border: 2px solid #e66a1f; 
}

/* Slick Slider Styles */
.slick-slide {
    display: inline-block;
    padding: 5px;
}


.image-placeholder {
    width: 100%;
    height: 300px;
    /* Hoặc chiều cao của ảnh */
    background-color: #f0f0f0;
    /* Màu nền thay thế */
    display: block;
    object-fit: cover;
    /* Đảm bảo ảnh vừa với vùng chứa */
}

.image-placeholder[src="image.jpg"]:not([src=""]) {
    background-color: transparent;
}

.tg_featured_pd .products_featured .col {
    max-width: 300px;
}

.form-filter {
    overflow-y: auto;
    max-height: calc(100vh - 60px);
    padding: 0 20px;
}

.form-filter::-webkit-scrollbar {
    display: none;
    /* Ẩn thanh cuộn cho trình duyệt Webkit */
}

.form-filter {
    -ms-overflow-style: none;
    /* Ẩn thanh cuộn cho IE và Edge */
    scrollbar-width: none;
    /* Ẩn thanh cuộn cho Firefox */
}

.no-scroll {
    overflow: hidden;
}

.category-filtering .filter-button .icon-equalizer::before {
    content: "";
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    background-image: url("../../assets/images/filter-icon.svg");
}

.category-filtering .filter-button {
    width: auto;
    clear: both;
    display: inline-flex;
    align-items: center;
    color: #31190a;
    font-weight: 500;
    letter-spacing: 0;
    font-family: "Lora", serif;
    text-transform: none;
    font-size: 1.25em;
}

.pd-0 {
    padding: 0 10px;

}

.pdt-10 {
    padding-top: 10px;
}

.woocommerce-result-count {
    display: flex;
    align-items: center;
}