#custom-related-products {
    margin: 2rem 0;
    padding: 2rem 0;
}

.products-section-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.related-products-carousel {
    position: relative;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 1rem;
}

.carousel-track .product-miniature {
    flex: 0 0 calc(25% - 0.75rem);
    max-width: calc(25% - 0.75rem);
}

.product-miniature .product-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.product-miniature .product-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    min-height: 2.4em;
    overflow: hidden;
}

.product-miniature .product-title a {
    color: #333;
    text-decoration: none;
}

.product-miniature .product-title a:hover {
    color: #000;
}

.product-price-and-shipping {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-price-and-shipping .regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.product-price-and-shipping .price {
    color: #f13340;
    font-weight: 600;
    font-size: 1.1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: #f6f6f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn .material-icons {
    font-size: 24px;
    color: #333;
}

@media (max-width: 991px) {
    .carousel-track .product-miniature {
        flex: 0 0 calc(33.333% - 0.666rem);
        max-width: calc(33.333% - 0.666rem);
    }
}

@media (max-width: 767px) {
    .carousel-track .product-miniature {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    .related-products-carousel {
        padding: 0 2.5rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}