/* Product Carousel Styles */
.product-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 0;
}

.product-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-item {
    flex: 0 0 calc(33.333% - 14px); /* 3 ürün yan yana */
    min-width: 280px;
}

/* En Çok Puan Alan Ürünler için daha küçük kartlar */
#topRatedCarousel .carousel-item {
    flex: 0 0 calc(25% - 15px); /* 4 ürün yan yana */
    min-width: 200px;
}

#topRatedCarousel .product-card-body {
    padding: 12px;
}

#topRatedCarousel .product-card-title {
    font-size: 14px;
    margin-bottom: 4px;
}

#topRatedCarousel .product-price {
    font-size: 16px;
}

#topRatedCarousel .product-card-image {
    padding-top: 100%; /* 1:1 aspect ratio korunur */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.carousel-nav:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

@media (max-width: 1200px) {
    .carousel-item {
        flex: 0 0 calc(50% - 10px); /* 2 ürün yan yana */
    }
    
    #topRatedCarousel .carousel-item {
        flex: 0 0 calc(33.333% - 10px); /* 3 ürün yan yana */
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .product-carousel-wrapper {
        padding: 0 35px;
        margin: 0 -12px;
    }
    
    .carousel-item {
        flex: 0 0 calc(100% - 10px); /* 1 ürün */
        min-width: 220px;
        max-width: 100%;
    }
    
    #topRatedCarousel .carousel-item {
        flex: 0 0 calc(50% - 10px); /* 2 ürün yan yana mobilde */
        min-width: 140px;
        max-width: calc(50% - 10px);
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: -5px;
    }
    
    .carousel-next {
        right: -5px;
    }
}

@media (max-width: 480px) {
    .product-carousel-wrapper {
        padding: 0 30px;
    }
    
    .carousel-item {
        min-width: 200px;
    }
    
    #topRatedCarousel .carousel-item {
        min-width: 120px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

