.slick-slider {
    position: relative;
    width: 100%;  /* Đảm bảo slider chiếm toàn bộ chiều rộng */
    overflow: hidden; /* Ẩn phần tử tràn ra ngoài */
}

.slick-track {
    display: flex; /* Sử dụng flexbox để các slides hiển thị theo chiều ngang */
    flex-wrap: nowrap; /* Đảm bảo các slide không bị chuyển sang dòng mới */
    gap:30px;
}
.slick-slider .slider-item {
    border: 2px solid #ddd; /* Light gray border */
    padding: 10px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    transition: all 0.3s ease-in-out;
    background-color: #fff; /* Ensure a white background */
    border-radius: 8px; /* Rounded corners */
}

.slick-slider .slider-item:hover {
    border-color: #8b471; /* Change border color on hover (WooCommerce blue) */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
    transform: translateY(-5px); /* Lift effect on hover */
}

/* Product title styling */
.slick-slider .product-details .product-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    text-align: center;
    display: block;
    transition: color 0.3s ease;
}

.slick-slider .product-details .product-title:hover {
    color: #0073aa; /* Change title color on hover */
}

/* Price styling */
.slick-slider .product-details .price {
    color: #28a745; /* Green price color */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-top: 5px;
}

/* Sale badge styling */
.slick-slider .onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #d9534f; /* Red sale badge */
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

.slider-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensures slider items are equal in height */
    padding: 10px;
    border: 1px solid #ddd;
    margin: 10px;
}

.slider-item img {
    width: 100%;
    height: auto; /* Ensures the image keeps its natural aspect ratio */
    max-height: 200px; /* Set a max height for images, adjust as needed */
    aspect-ratio: 4 / 4;
    object-fit: cover; /* Ensures images fill the space while maintaining aspect ratio */
}

.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    display: block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2em;
    height: 2.4em; /* Ensures the title occupies exactly 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px 0;
}

.price {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    padding: 5px;
    font-size: 12px;
    z-index: 2;
}
