@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Genel === */
.slider-container {
    scroll-behavior: smooth;
    background: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.category-slider,
.product-slider {
    scroll-behavior: smooth;
}

.animate-slide {
    animation: slide 0.5s ease-in-out;
}

@keyframes slide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gradient-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

.product-slider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-slider::-webkit-scrollbar {
    display: none;
}

/* === Ürün Kartları === */
.product-container {
    background: #fff;
    padding: 0;
    margin-bottom: 0px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}
.product-container:hover {
    box-shadow: none;
}

.product-item {
    display: block;
    text-align: left;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    border: none;
    margin-bottom: 10px;
}

.product-info {
    padding: 0 10px 15px 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.current-price {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}
.old-price {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.add-to-cart {
    display: none;
}

/* === Hover Etkileşimleri === */
.product-buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

@media (hover: hover) {
    .product-container:hover .product-buttons {
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
        pointer-events: auto;
    }
    .product-info {
        cursor: default;
    }
    .product-info:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }
}

@media (hover: none) {
    .product-container.active .product-buttons {
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
        pointer-events: auto;
    }
    .product-info {
        cursor: pointer;
        transition: background-color 0.3s ease;
        position: relative;
        z-index: 5;
    }
    .product-container.active .product-info {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

/* === Mobil Uyum === */
@media (max-width: 640px) {
    .product-container {
        width: 200px !important;
    }
}

/* === Banner Görünümü (Son Haliyle) === */
.slider-container > div img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .slider-container {
        height: auto !important;
    }

    .slider-container > div {
        height: auto !important;
    }

    .slider-container > div img {
        height: auto !important;
        object-fit: contain !important;
    }

    section.relative.h-\[400px\] {
        height: auto !important;
    }
}

/* === Kaydırmalı Yazı (Duyuru) === */
.scrolling-text {
    animation: scroll-text 20s linear infinite;
    white-space: nowrap;
}
@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
