/**
 * Rawcut Recently Viewed Products - Swiper Carousel Styles
 */

.rawcut-recently-viewed-products {
    padding: 0;
    position: relative;
}

/* Başlık ve Temizle Butonu Container */
.rawcut-rv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    position: relative;
}

.rawcut-rv-title {
    font-size: 32px;
    font-weight: 600;
    text-align: left;
    color: #000;
    position: relative;
    padding-bottom: 20px;
    margin: 0;
    font-family: 'Mona Sans', sans-serif;
}

.rawcut-rv-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
}

/* Temizle Butonu */
.rawcut-rv-clear-btn {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Mona Sans', sans-serif;
    white-space: nowrap;
    position: relative;
}

/* Çizginin Kendisi (::after pseudo-element) */
.rawcut-rv-clear-btn::after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    transform: scaleX(0) !important;
    height: 1px !important;
    bottom: 0 !important;
    left: 0 !important;
    background-color: #000 !important;
    transform-origin: bottom right !important;
    transition: transform 0.4s ease-out !important;
    border: none !important;
    border-width: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rawcut-rv-clear-btn:hover::after {
    transform: scaleX(1) !important;
    transform-origin: bottom left !important;
}

.rawcut-rv-clear-btn:active {
    transform: translateY(0);
}

/* Swiper Container */
.rawcut-rv-swiper-container {
    position: relative;
    overflow: visible;
}

.rawcut-recently-viewed-products .swiper {
    overflow: visible;
    padding: 10px 0 50px;
}

.rawcut-recently-viewed-products .swiper-wrapper {
    align-items: stretch;
}

.rawcut-recently-viewed-products .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* WooCommerce Ürün Kartları Override */
.rawcut-recently-viewed-products .swiper-slide .product {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
}

/* Ürün Item Container */
.rawcut-rv-product-item {
    overflow: hidden;
}

/* Ürün Görseli - Aspect ratio korumalı */
.main-content .rawcut-recently-viewed-products .product img,
.rawcut-recently-viewed-products .woocommerce-loop-product__link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease !important;
    aspect-ratio: 3/4; /* Film afiş oranı */
    object-fit: cover;
    will-change: transform;
    transform: scale(1);
    margin-bottom: 0 !important;
    filter: contrast(1.25) saturate(1.2) brightness(1.06);
    border: 1px solid #ccc !important;
}

/* Hover - Sadece görsel içinde zoom (transform yok) */
.rawcut-recently-viewed-products .product:hover img,
.rawcut-recently-viewed-products .swiper-slide:hover .product img {
    transform: scale(1.1) !important;
}

/* Ürün Detayları - Gizle (Sadece Afiş) */
.rawcut-recently-viewed-products .product .woocommerce-loop-product__title,
.rawcut-recently-viewed-products .product .price,
.rawcut-recently-viewed-products .product .button,
.rawcut-recently-viewed-products .product .add_to_cart_button,
.rawcut-recently-viewed-products .product .added_to_cart,
.rawcut-recently-viewed-products .product .star-rating,
.rawcut-recently-viewed-products .product .woocommerce-loop-category__title,
.rawcut-recently-viewed-products .product .product-details,
.rawcut-recently-viewed-products .product .quick-view,
.rawcut-recently-viewed-products .product .nectar-quick-view,
.rawcut-recently-viewed-products .product .product-quick-view,
.rawcut-recently-viewed-products .product .nectar_quick_view,
.rawcut-recently-viewed-products .product a.nectar_quick_view,
.rawcut-recently-viewed-products .nectar_quick_view {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ürün Container */
.rawcut-rv-product-item {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Ürün Başlık Overlay */
.rawcut-rv-product-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.rawcut-rv-product-item:hover .rawcut-rv-product-title-overlay {
    opacity: 1;
    visibility: visible;
}

.rawcut-rv-product-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    font-family: 'Mona Sans', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.rawcut-rv-product-item:hover .rawcut-rv-product-title {
    transform: translateY(0);
}

/* Sadece afiş göster */
.rawcut-recently-viewed-products .swiper-slide .product {
    padding: 0;
    background: transparent;
}

.rawcut-recently-viewed-products .woocommerce-loop-product__link {
    display: block;
    position: relative;
    overflow: hidden !important;
}

.rawcut-recently-viewed-products .product .woocommerce-loop-product__link {
    display: block;
    position: relative;
    overflow: hidden !important;
}

/* Görsel container için overflow control */
.rawcut-recently-viewed-products .swiper-slide .product {
    overflow: hidden !important;
}

/* Swiper Navigation Buttons */
.rawcut-recently-viewed-products .swiper-button-prev,
.rawcut-recently-viewed-products .swiper-button-next {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.rawcut-recently-viewed-products .swiper-button-prev:after,
.rawcut-recently-viewed-products .swiper-button-next:after {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.rawcut-recently-viewed-products .swiper-button-prev:hover,
.rawcut-recently-viewed-products .swiper-button-next:hover {
    background: #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rawcut-recently-viewed-products .swiper-button-prev:hover:after,
.rawcut-recently-viewed-products .swiper-button-next:hover:after {
    color: #fff;
}

.rawcut-recently-viewed-products .swiper-button-prev.swiper-button-disabled,
.rawcut-recently-viewed-products .swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Swiper Pagination */
.rawcut-recently-viewed-products .swiper-pagination {
    bottom: 0 !important;
    position: relative;
    margin-top: 30px;
}

.rawcut-recently-viewed-products .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.rawcut-recently-viewed-products .swiper-pagination-bullet-active {
    background: #000;
    width: 30px;
    border-radius: 6px;
}

/* Badge / Sale - Küçült */
.rawcut-recently-viewed-products .product .onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Out of Stock */
.rawcut-recently-viewed-products .product .out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    z-index: 2;
}

/* Hover durumunda hafif overlay efekti (opsiyonel) */
.rawcut-recently-viewed-products .product .woocommerce-loop-product__link:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rawcut-recently-viewed-products .product:hover .woocommerce-loop-product__link:after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .rawcut-rv-header {
        margin-bottom: 30px;
    }
    
    .rawcut-rv-title {
        font-size: 28px;
    }
    
    .rawcut-recently-viewed-products .swiper-button-prev,
    .rawcut-recently-viewed-products .swiper-button-next {
        width: 45px;
        height: 45px;
    }
    
    .rawcut-recently-viewed-products .swiper-button-prev:after,
    .rawcut-recently-viewed-products .swiper-button-next:after {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .rawcut-recently-viewed-products {
        margin: 40px 0;
    }
    
    .rawcut-rv-header {
        margin-bottom: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rawcut-rv-title {
        font-size: 24px;
        padding-bottom: 15px;
    }
    
    .rawcut-rv-clear-btn {
        font-size: 13px;
        padding: 0;
    }
    
    .rawcut-rv-title:after {
        width: 60px;
        height: 3px;
    }
    
    .rawcut-recently-viewed-products .swiper {
        padding: 10px 0 40px;
    }
    
    .rawcut-recently-viewed-products .swiper-button-prev,
    .rawcut-recently-viewed-products .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .rawcut-recently-viewed-products .swiper-button-prev:after,
    .rawcut-recently-viewed-products .swiper-button-next:after {
        font-size: 16px;
    }
    
    .rawcut-recently-viewed-products .swiper-pagination {
        margin-top: 20px;
    }
    
    .rawcut-rv-product-title {
        font-size: 14px;
    }
    
    .rawcut-rv-product-title-overlay {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .rawcut-rv-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .rawcut-recently-viewed-products .swiper-button-prev,
    .rawcut-recently-viewed-products .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .rawcut-recently-viewed-products .swiper-button-prev:after,
    .rawcut-recently-viewed-products .swiper-button-next:after {
        font-size: 14px;
    }
    
    .rawcut-recently-viewed-products .product .woocommerce-loop-product__title {
        font-size: 14px;
    }
    
    .rawcut-recently-viewed-products .product .price {
        font-size: 16px;
    }
    
    .rawcut-rv-product-title {
        font-size: 13px;
    }
    
    .rawcut-rv-product-title-overlay {
        padding: 12px;
    }
}

/* Loading State */
.rawcut-recently-viewed-products.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty State */
.rawcut-recently-viewed-products .no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.tabbed[data-style="minimal_flexible"] .wpb_tabs_nav {
    margin-bottom: 0 !important;
}