/* General slider styling */
.custom-product-slider {
    width: 100%;
    padding: 0px 80px 0px 80px;
}
.related-product-slider {
    width: 100%;
    padding: 0px 0px 80px 0px;
}
.custom-product-item {
    flex: 1 0 auto;
    margin: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    height: 100%; /* Ensures items are of equal height */
}

.custom-product-item:hover {
    transform: translateY(-10px);
}
.qb-product-imgs{
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
/* Product image styling */
.product-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}
.product-title {
    font-size: 16px; /* Adjust font size as needed */
    color: #333; /* Text color */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflowed text */
    height: 3.6em; /* Fixed height to accommodate up to 2 lines */
    line-height: 1.8em; /* Adjust line height for better readability */
    margin: 10px 0;
}


.product-price {
    font-size: 16px;
    color: #f57c00;
    margin-bottom: 10px;
}

/* Add to Cart button */
.add-to-cart-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ed587d;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.add-to-cart-button:hover {
    background-color: #B44F56;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .custom-product-slider {
        padding: 0 20px;
    }
}

/* Same height fix */
.custom-product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-product-item .product-details {
    flex-grow: 1;
}

.custom-product-item .add-to-cart {
    flex-grow: 0;
}
