.custom-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.custom-carousel {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-item {
    flex: 0 0 20%;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 50%;
    }
}

.product-box {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background: #fff;
}

.product-meta .category a {
    font-size: 13px;
    color: #002f57 !important;
    font-weight: 500;
    line-height: 20px;
    display: block;
}

.product-title {
    font-size: 17px;
    margin: 5px 0;
    color: #000;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


.price {
    font-weight: bold;
    margin: 5px 0;
    display: flex; /* Use flexbox for alignment */
    align-items: baseline; /* Align items to their text baseline */
    justify-content: center; /* Center the price content */
}
.price .sale-price {
    color: #00b3e4; /* Example color for sale price, match your brand color */
    font-size: 18px; /* Larger font for sale price */
    margin-right: 5px;
}
.price .regular-price-crossed {
    font-size: 14px; /* Smaller font for regular price */
    color: #888; /* Lighter color for crossed price */
    text-decoration: line-through; /* Strikethrough effect */
    margin-right: 5px;
}
.price .excl-vat {
    font-size: 12px;
    color: #888;
    white-space: nowrap; /* Prevents "excl. Vat" from wrapping */
}
.price .regular-price {
    color: black; /* Inherit color, or set a specific one */
    font-size: 18px; /* Size for regular price when no sale */
}

.add_to_cart_button, .out-of-stock {
    width: 100%;
    display: block;
    padding: 5px;
    border: 1px solid #aaa;
    border-radius: 5px;
}


.out-of-stock {
    background: #ccc;
    cursor: not-allowed;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-prev, .carousel-next {
    background: #002f57;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
