.products-carousel-wrapper {
    margin: 0 -20px; /* Компенсация отступов между карточками */
}

.products.owl-carousel {
    display: block;
    width: 100%;
}

.carousel-product-card {
    padding: 0;
    margin: 0 20px; /* Отступы между карточками */
    width: 240px;
    box-sizing: border-box;
}

.carousel-product-card .product-image {
    position: relative !important;
    margin-bottom: 15px;
    width: 240px !important;
    height: 290px !important;
    overflow: hidden !important;
    margin-left: auto;
    margin-right: auto;
    display: block !important;
    margin-left: -10px;
}

.carousel-product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.carousel-product-card .onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
}

.carousel-product-card .product-details {
    text-align: center;
}

.carousel-product-card .product-title {
    font-size: 16px;
    margin: 0 0 10px;
}

.carousel-product-card .product-title a {
    color: inherit;
    text-decoration: none;
}

.carousel-product-card .product-price {
    font-size: 18px;
    margin-bottom: 15px;
}

.carousel-product-card .product-buttons {
    margin-top: 10px;
}

/* Owl Carousel Custom Styles */
.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
    gap: 10px !important;
}

.owl-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
}

/* Navigation arrows */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.owl-prev,
.owl-next {
    position: absolute;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.owl-prev {
    left: -20px;
}

.owl-next {
    right: -20px;
}

/* Responsive styles */
@media (min-width: 992px) {
    .carousel-product-card {
        display: flex;
        flex-direction: column;
    }
    
    .carousel-product-card .product-details {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}
