/**
 * Modern Carousel CSS Stilleri
 * 
 * Bu dosya modern product carousel için tüm stilleri içerir.
 * Responsive tasarım ve animasyonlar dahildir.
 * Mobil optimizasyonlu versiyon - Thumbnail'ler sol tarafta
 * 
 * @package YourProjectName
 * @version 1.2.0 - Thumbnail'ler Sol Tarafta
 */

/* ============================================
   Modern Carousel Ana Container
   ============================================ */
.hero-carousel-modern {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #8C8A6D 0%, #6E9A9A 100%);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    box-sizing: border-box;
}

/* ============================================
   Carousel İçerik Düzeni
   ============================================ */
.carousel-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    align-items: center;
    margin: 0 auto;
}

.carousel-text-content {
    animation: slideInLeft 0.8s ease-out;
}

/* ============================================
   Carousel Metinler ve Butonlar
   ============================================ */
.carousel-badge {
    display: inline-block;
    background: rgba(217, 199, 170, 0.3);
    color: #F6F2E8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.carousel-title {
    font-size: 48px;
    font-weight: 800;
    color: #F6F2E8;
    margin-bottom: 20px;
    line-height: 1.2;
}

.carousel-description {
    font-size: 18px;
    color: rgba(246, 242, 232, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

.carousel-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.carousel-price {
    font-size: 36px;
    font-weight: 700;
    color: #F6F2E8;
}

.carousel-old-price {
    font-size: 24px;
    color: rgba(246, 242, 232, 0.6);
    text-decoration: line-through;
}

.carousel-discount {
    background: #D89B5E;
    color: #F6F2E8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.carousel-rating {
    color: #D89B5E;
    margin-bottom: 25px;
}

.carousel-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.carousel-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.carousel-btn-primary {
    background: #C26D4A;
    color: #F6F2E8;
}

.carousel-btn-primary:hover {
    background: #D89B5E;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 58, 54, 0.2);
}

.carousel-btn-secondary {
    background: transparent;
    color: #F6F2E8;
    border: 2px solid #F6F2E8;
}

.carousel-btn-secondary:hover {
    background: #F6F2E8;
    color: #C26D4A;
}

/* ============================================
   Carousel Görseller - YENİ DÜZEN (Sol Tarafta Thumbnail'ler)
   ============================================ */
.carousel-image-wrapper {
    position: relative;
    animation: slideInRight 0.8s ease-out;
    display: flex;
    align-items: center;
    gap: 15px;
    /* HTML'de thumbnail'ler ÖNCE geldiği için flex-direction: row kullanıyoruz */
    flex-direction: row;
}

/* Thumbnail'ler sol tarafta dikey sıralanmış */
.carousel-image-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(246, 242, 232, 0.15);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(59, 58, 54, 0.2);
    backdrop-filter: blur(10px);
}

/* Ana görsel sağ tarafta */
.carousel-main-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(59, 58, 54, 0.3);
    transition: opacity 0.3s ease;
}

.carousel-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    border: 2px solid transparent;
}

.carousel-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.carousel-thumb.active {
    opacity: 1;
    border: 2px solid #C26D4A;
    box-shadow: 0 0 15px rgba(194, 109, 74, 0.4);
}

/* ============================================
   Carousel Navigasyon
   ============================================ */
.carousel-nav-modern {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(246, 242, 232, 0.3);
    border: 2px solid rgba(246, 242, 232, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 40px;
    border-radius: 20px;
    background: #F6F2E8;
}

.carousel-arrow-modern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(217, 199, 170, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(246, 242, 232, 0.3);
    color: #F6F2E8;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow-modern:hover {
    background: #D89B5E;
    color: #F6F2E8;
    transform: translateY(-50%) scale(1.1);
    border-color: #D89B5E;
}

.carousel-arrow-modern.prev {
    left: 30px;
}

.carousel-arrow-modern.next {
    right: 30px;
}

/* ============================================
   Gradient Varyasyonları
   ============================================ */
.gradient-1 {
    background: linear-gradient(135deg, #8C8A6D 0%, #6E9A9A 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #C26D4A 0%, #D89B5E 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #D89B5E 0%, #D9C7AA 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #6E9A9A 0%, #8C8A6D 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, #D9C7AA 0%, #F6F2E8 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, #C26D4A 0%, #D89B5E 100%);
}

/* ============================================
   Animasyonlar
   ============================================ */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Tasarım - Tablet (1024px ve altı)
   ============================================ */
@media (max-width: 1024px) {
    .hero-carousel-modern {
        height: 500px;
    }
    
    .carousel-content-wrapper {
        gap: 40px;
    }
    
    .carousel-title {
        font-size: 36px;
    }
    
    .carousel-description {
        font-size: 16px;
    }
    
    .carousel-price {
        font-size: 28px;
    }
    
    .carousel-old-price {
        font-size: 20px;
    }
    
    .carousel-main-image {
        max-width: 400px;
        height: 350px;
    }
    
    .carousel-thumb {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Responsive Tasarım - Mobil (768px ve altı)
   ============================================ */
@media (max-width: 768px) {
    .hero-carousel-modern {
        height: auto;
        min-height: auto;
        padding: 20px 0;
    }
    
    .carousel-inner {
        height: auto;
        min-height: auto;
    }
    
    .carousel-track {
        height: auto;
        min-height: auto;
    }
    
    .carousel-item {
        padding: 15px 20px;
        min-height: auto;
        height: auto;
    }
    
    .carousel-content-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }
    
    .carousel-text-content {
        text-align: center;
        order: 2;
    }
    
    .carousel-image-wrapper {
        order: 1;
        margin-bottom: 0;
        padding: 0;
        background: transparent;
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 10px;
    }
    
    .carousel-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .carousel-description {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .carousel-price-wrapper {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .carousel-price {
        font-size: 22px;
    }
    
    .carousel-old-price {
        font-size: 16px;
    }
    
    .carousel-discount {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .carousel-rating {
        margin-bottom: 15px;
        font-size: 14px;
    }
    
    .carousel-buttons {
        justify-content: center;
        gap: 10px;
    }
    
    .carousel-btn {
        padding: 10px 20px;
        font-size: 13px;
        gap: 6px;
    }
    
    .carousel-btn i {
        font-size: 12px;
    }
    
    /* Görsel optimizasyonu - MOBİL İÇİN ÖNEMLİ */
    .carousel-main-image {
        max-width: 100%;
        width: 100%;
        height: 220px;
        object-fit: contain;
        border-radius: 0;
        box-shadow: none;
        padding: 10px 20px;
        background: transparent;
    }
    
    /* Mobilde thumbnail'leri tamamen gizle */
    .carousel-image-grid {
        display: none !important;
    }
    
    .carousel-image-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    /* Ok butonları - Mobil için küçült */
    .carousel-arrow-modern {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-arrow-modern.prev {
        left: 10px;
    }
    
    .carousel-arrow-modern.next {
        right: 10px;
    }
    
    /* Dot navigasyon */
    .carousel-nav-modern {
        bottom: 15px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 24px;
        border-radius: 10px;
    }
}

/* ============================================
   Responsive Tasarım - Küçük Mobil (480px ve altı)
   ============================================ */
@media (max-width: 480px) {
    .hero-carousel-modern {
        min-height: auto;
        padding: 15px 0;
    }
    
    .carousel-item {
        padding: 10px 15px;
        min-height: auto;
    }
    
    .carousel-content-wrapper {
        gap: 12px;
    }
    
    .carousel-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .carousel-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .carousel-price {
        font-size: 20px;
    }
    
    .carousel-old-price {
        font-size: 14px;
    }
    
    .carousel-discount {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .carousel-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .carousel-btn {
        padding: 8px 16px;
        font-size: 12px;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .carousel-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    /* Görsel - Küçük mobil için */
    .carousel-main-image {
        height: 180px;
        border-radius: 0;
        box-shadow: none;
        padding: 10px 15px;
    }
    
    .carousel-thumb {
        width: 45px;
        height: 45px;
    }
    
    /* Ok butonları - Daha küçük */
    .carousel-arrow-modern {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .carousel-arrow-modern.prev {
        left: 5px;
    }
    
    .carousel-arrow-modern.next {
        right: 5px;
    }
    
    /* Dot navigasyon - Daha küçük */
    .carousel-nav-modern {
        bottom: 15px;
        gap: 6px;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
}

/* ============================================
   Landscape Mobil Düzeltmeleri
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-carousel-modern {
        height: auto;
        min-height: auto;
    }
    
    .carousel-item {
        min-height: auto;
        padding: 20px;
    }
    
    .carousel-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .carousel-text-content {
        order: 1;
        text-align: left;
    }
    
    .carousel-image-wrapper {
        order: 2;
        flex-direction: row-reverse;
        gap: 15px;
    }
    
    .carousel-image-grid {
        flex-direction: column;
        order: 1;
        display: flex; /* Landscape'de tekrar göster */
    }
    
    .carousel-main-image {
        height: 280px;
        order: 2;
    }
    
    .carousel-buttons {
        justify-content: flex-start;
    }
    
    .carousel-thumb {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Öne Çıkan Ürünler - Mobil Optimizasyon
   ============================================ */
@media (max-width: 768px) {
    .product-card-simple {
        padding: 12px !important;
        margin: 8px 0 !important;
    }
    
    .product-card-simple img {
        height: 180px !important;
        object-fit: contain !important;
    }
    
    .product-card-simple > div {
        padding: 0 !important;
    }
    
    .product-card-simple a[href*="product-detail"] {
        font-size: 14px !important;
        margin: 8px 0 !important;
    }
    
    .product-card-simple > div > div:last-child {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .product-card-simple > div > div:last-child a,
    .product-card-simple > div > div:last-child button {
        width: 100% !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-card-simple img {
        height: 150px !important;
    }
    
    .product-card-simple a[href*="product-detail"] {
        font-size: 13px !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .hero-carousel-modern {
        height: auto;
        background: white;
        page-break-inside: avoid;
    }
    
    .carousel-arrow-modern,
    .carousel-nav-modern,
    .carousel-buttons {
        display: none;
    }
    
    .carousel-track {
        display: block;
    }
    
    .carousel-item {
        page-break-inside: avoid;
        display: block;
    }
    
    .carousel-content-wrapper {
        display: block;
    }
    
    .carousel-main-image {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   Z-Index Düzeltmeleri
   ============================================ */
.hero-carousel-modern {
    z-index: 1;
}

header {
    z-index: 1000 !important;
}

.carousel-arrow-modern,
.carousel-nav-modern {
    z-index: 10;
}

/* ============================================
   Performance Optimizasyonları
   ============================================ */
.carousel-main-image,
.carousel-thumb {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.carousel-track {
    will-change: transform;
}

/* Smooth scrolling için */
@media (prefers-reduced-motion: reduce) {
    .carousel-track,
    .carousel-btn,
    .carousel-arrow-modern {
        transition: none;
    }
}