/* =================================================================
   HERO BANNER CSS - Ana Sayfa Ürün Showcase Slider
   Krem arka plan, kırmızı noktalı animasyon ve ışın efekti
   3 model otomatik slider - 5 saniyede bir geçiş
   ================================================================= */

/* Slider Wrapper */
.kart4-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    cursor: grab;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: pan-y; /* Dikey scroll'a izin ver, yatay swipe'ı yakala */
}

.kart4-slider-wrapper:active {
    cursor: grabbing;
}

.kart4-slider-container {
    position: relative;
    width: 100%;
    height: 800px;
}

.kart4-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.kart4-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

/* Slide çıkış animasyonu */
.kart4-slide.sliding-out {
    opacity: 0;
    transform: translateX(-100%);
}

/* Slider Navigation Dots */
.kart4-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.kart4-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #c41e3a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kart4-dot:hover {
    background: rgba(196, 30, 58, 0.7);
    transform: scale(1.2);
}

.kart4-dot.active {
    background: #c41e3a;
    width: 32px;
    border-radius: 2px;
}

/* Slider Arrow Buttons */
.kart4-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(196, 30, 58, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.kart4-slider-wrapper:hover .kart4-slider-arrow {
    opacity: 1;
}

.kart4-slider-prev {
    left: 20px;
}

.kart4-slider-next {
    right: 20px;
}

.kart4-slider-arrow:hover {
    background: #c41e3a;
    transform: translateY(-50%) scale(1.1);
}

/* Ana Container */
.kart4-container {
    width: 100%;
    height: 800px;
    background: #fef7ed;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.15);
    display: flex;
    align-items: center;
    padding: 30px 120px 60px;
    gap: 80px;
}

/* Krem arka plan üzerine kırmızı noktalı animasyon */
.kart4-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
            circle at 20% 30%,
            rgba(196, 30, 58, 0.2) 3px,
            transparent 3px
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(196, 30, 58, 0.15) 2px,
            transparent 2px
        ),
        radial-gradient(
            circle at 40% 60%,
            rgba(196, 30, 58, 0.18) 2.5px,
            transparent 2.5px
        );
    background-size: 60px 60px, 100px 100px, 80px 80px;
    background-position: 0 0, 50px 50px, 25px 25px;
    animation: redDotsMove 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* Kart altında kırmızı çizgi */
.kart4-red-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #b80211 0%, #f93f48 50%, #b80211 100%);
    box-shadow: 0 0 15px rgba(242, 39, 70, 0.8);
    z-index: 2;
    overflow: hidden;
}

/* Animasyonlar */
@keyframes redDotsMove {
    0% {
        background-position: 0 0, 50px 50px, 25px 25px;
    }

    100% {
        background-position: 60px 60px, 150px 150px, 105px 105px;
    }
}

/* Beyaz ışın efekti - kırmızı çizgi üzerinde */
.kart4-red-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent 100%
    );
    animation: slideRedLight 6s ease-in-out infinite;
    animation-delay: 3s;
    z-index: 3;
}

@keyframes slideRedLight {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}

/* Sol taraf - İçerik alanı */
.kart4-content {
    flex: 1;
    z-index: 2;
    position: relative;
    max-width: 50%;
}

.kart4-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kart4-title .accent {
    color: #c41e3a;
    font-weight: 900;
}

.kart4-model-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.model-primary {
    font-size: 2rem;
    font-weight: 600;
    color: #c41e3a;
    letter-spacing: 2px;
}

.model-separator {
    font-size: 1.8rem;
    font-weight: 400;
    color: #4a5568;
}

.model-secondary {
    font-size: 1.4rem;
    font-weight: 500;
    color: #4a5568;
    letter-spacing: 1px;
}

.kart4-model {
    font-size: 2rem;
    font-weight: 600;
    color: #c41e3a;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.kart4-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 400px;
}

.kart4-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.kart4-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #2d3748;
}

.kart4-features li::before {
    content: '✓';
    color: #c41e3a;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2rem;
}

.kart4-price-btn {
    background: linear-gradient(135deg, #c41e3a 0%, #e53e3e 100%);
    color: white;
    border: 2px solid transparent;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.kart4-price-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(196, 30, 58, 0.7),
        0 0 50px rgba(196, 30, 58, 0.6), 0 0 80px rgba(196, 30, 58, 0.5);
    border-color: rgba(196, 30, 58, 1);
    background: linear-gradient(135deg, #b71c1c 0%, #c41e3a 100%);
}

/* Sağ taraf - Ürün görseli */
.kart4-product-box {
    flex: 0 0 auto;
    width: 450px;
    height: 650px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 2;
    overflow: visible;
    border: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kart4-product-box::before {
    display: none;
}

.kart4-product-image {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.kart4-product-image img,
.kart4-product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.5s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 10px 20px rgba(196, 30, 58, 0.1));
}

.kart4-product-image:hover img,
.kart4-product-image:hover .kart4-product-img {
    transform: scale(1.05);
}

/* Placeholder */
.kart4-placeholder {
    width: 380px;
    height: 550px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.3);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
    border: 1px dashed rgba(148, 163, 184, 0.2);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 1200px) {
    .kart4-slider-container {
        height: 700px;
    }

    .kart4-container {
        padding: 15px 30px 30px 40px;
        gap: 30px;
        margin: 0;
    }

    .kart4-product-box {
        width: 400px;
        height: 600px;
    }

    .kart4-slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .kart4-slider-container {
        height: 750px;
    }

    .kart4-container {
        padding: 15px 30px 30px 40px;
        gap: 40px;
        margin: 0;
    }

    .kart4-title {
        font-size: 2.8rem;
    }

    .kart4-product-box {
        width: 350px;
        height: 550px;
    }

    .kart4-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .kart4-slider-container {
        min-height: 950px;
    }

    .kart4-container {
        height: 100%;
        min-height: 950px;
        flex-direction: column;
        padding: 40px 30px 60px;
        gap: 40px;
        text-align: center;
        margin: 0;
        border-radius: 0;
    }

    .kart4-content {
        max-width: 100%;
        order: 2;
    }

    .kart4-model-line {
        justify-content: center;
    }

    .kart4-product-box {
        width: 320px;
        height: 450px;
        order: 1;
        margin: 0 auto;
    }

    .kart4-title {
        font-size: 2.5rem;
    }

    .kart4-description {
        display: none;
    }

    .kart4-slider-arrow {
        display: none;
    }

    .kart4-slider-dots {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .kart4-slider-container {
        min-height: 820px;
    }

    .kart4-container {
        min-height: 820px;
        padding: 30px 10px 60px;
        gap: 30px;
        margin: 0;
        border-radius: 0;
    }

    .kart4-title {
        font-size: 2rem;
    }

    .model-primary {
        font-size: 1.5rem;
    }

    .model-separator {
        font-size: 1.3rem;
    }

    .model-secondary {
        font-size: 1.1rem;
    }

    .kart4-model {
        font-size: 1.5rem;
    }

    .kart4-product-box {
        width: 250px;
        height: 350px;
    }

    .kart4-placeholder {
        width: 220px;
        height: 300px;
        font-size: 0.9rem;
    }

    .kart4-price-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .kart4-dot {
        width: 10px;
        height: 10px;
    }

    .kart4-dot.active {
        width: 24px;
    }
}

@media (max-width: 400px) {
    .kart4-slider-container {
        min-height: 820px;
    }

    .kart4-container {
        min-height: 820px;
        padding: 20px 5px 60px;
        margin: 0;
        border-radius: 0;
    }

    .kart4-product-box {
        width: 220px;
        height: 320px;
    }

    .kart4-title {
        font-size: 1.8rem;
    }

    .kart4-price-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .kart4-slider-dots {
        gap: 8px;
    }

    .kart4-dot {
        width: 8px;
        height: 8px;
    }

    .kart4-dot.active {
        width: 20px;
    }
}

/* Touch/Swipe göstergesi - sadece mobilde görünsün */
@media (max-width: 991px) {
    .kart4-slider-wrapper::before {
        content: '← Kaydırın →';
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(196, 30, 58, 0.85);
        color: white;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        z-index: 15;
        animation: swipeFadeOut 4s ease-out forwards;
        pointer-events: none;
    }

    @keyframes swipeFadeOut {
        0% {
            opacity: 1;
        }
        70% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            visibility: hidden;
        }
    }

    /* Touch sırasında feedback */
    .kart4-slider-wrapper:active {
        cursor: grabbing;
    }

    /* Ok tuşlarını mobilde gizle */
    .kart4-slider-arrow {
        display: none !important;
    }

    /* Dot'ları mobilde daha büyük ve dokunulabilir yap */
    .kart4-dot {
        width: 12px;
        height: 12px;
        min-width: 12px;
        min-height: 12px;
        touch-action: manipulation;
    }

    .kart4-dot.active {
        width: 28px;
        min-width: 28px;
    }
}
