/* GENEL AYARLAR */
:root {
    --primary-red: #E70C2D;
    --secondary-white: #ffffff;
    --text-color: #333;
    --light-grey: #f4f4f4;
    --font-family: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-red);
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
}

/* NAVİGASYON BARI */
.navbar {
    background-color: var(--primary-red);
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    color: var(--secondary-white);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: var(--secondary-white);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-white);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

/* DROPDOWN MENÜ */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 200px;
    border-radius: 5px;
    overflow: hidden;
    left: 0;
    top: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--light-grey);
}

/* MOBİL MENÜ İÇİN ICON */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* HERO HEADER (TAM EKRAN HEADER) */
.hero-header {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-white);
    overflow: hidden;
}

.header-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.header-image.active {
    opacity: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 10;
    animation: slideInFromTop 1s ease-out;
}

.header-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--secondary-white);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #c90b2c;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* İÇERİK BÖLÜMLERİ */
section {
    padding: 80px 0;
    overflow: hidden;
}

.product-slider-section,
.new-arrivals-section {
    background-color: var(--light-grey);
}

/* SLIDER BUTONLARI VE KONTROLLERİ */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    /* Otomatik kaydırma desteği */
    scroll-snap-type: x mandatory;
    /* Kartların tam olarak oturması için */
    gap: 30px;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary-white);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 50;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev-btn {
    left: 0;
}

.slider-btn.next-btn {
    right: 0;
}

.product-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    /* Kartların başlangıç noktasına hizalanması */
    background-color: var(--secondary-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 300px;
    /* Görsel yüksekliğini daha da kısalttım */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 150px;
    /* Minimum yüksekliği düşürdüm */
}

.product-info h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    color: var(--primary-red);
}

.product-info .description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    flex-grow: 1;
}

.product-info .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.detail-button {
    display: block;
    background-color: var(--primary-red);
    color: var(--secondary-white);
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.detail-button:hover {
    background-color: #c90b2c;
}

/* HAKKIMIZDA BÖLÜMÜ */
.about-section {
    text-align: center;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* FOOTER */
.footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.2rem;
    color: var(--secondary-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.footer-section h3:hover::after {
    width: 60px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.contact-info p {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: #bbb;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-red);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

/* ANİMASYONLAR */
@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar {
        padding: 10px 0;
    }

    .logo {
        margin-bottom: 10px;
        z-index: 101;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-red);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item a {
        padding: 15px 20px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .hero-header {
        height: 80vh;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .product-info {
        min-height: 140px;
        /* Mobil için minimum yüksekliği düşürdüm */
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-section p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section a:hover {
        transform: none;
    }

    .contact-info p {
        margin-bottom: 5px;
    }

    .social-links {
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    /* Product Detail Section */
    .product-detail-section {
        padding: 80px 0;
        background-color: #f9f9f9;
    }

    .product-detail-card {
        display: flex;
        flex-wrap: wrap;
        /* Küçük ekranlarda alt alta geçiş */
        gap: 40px;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        /* Taşmaları engelle */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .product-detail-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    }

    .product-image-container {
        flex: 1;
        /* Esnek genişlik */
        min-width: 300px;
        /* Minimum genişlik belirle */
        max-width: 500px;
        /* Maksimum genişlik belirle */
        height: 500px;
        /* Sabit yükseklik */
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #e0e0e0;
        /* Görsel yüklenmezse arka plan */
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }

    .product-image-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        /* Oranları koru */
        height: auto;
        /* Oranları koru */
        object-fit: contain;
        /* Görselin tümünün görünmesini sağla */
        transition: transform 0.5s ease;
    }

    .product-image-container img:hover {
        transform: scale(1.05);
        /* Üzerine gelince hafif büyütme */
    }

    .product-info-container {
        flex: 2;
        /* Görselden daha fazla yer kaplasın */
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .product-info-container h1 {
        font-size: 2.8em;
        /* Daha büyük başlık */
        color: #333;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .product-info-container .product-description {
        font-size: 1.1em;
        color: #555;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .product-info-container .product-price {
        font-size: 2.2em;
        /* Daha büyük fiyat */
        color: #E70C2D;
        /* Kırmızı renk */
        font-weight: 700;
        margin-bottom: 30px;
    }

    /* Butonlar */
    .action-buttons {
        display: flex;
        gap: 15px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .add-to-cart-button,
    .favorite-button {
        padding: 15px 30px;
        font-size: 1.1em;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .add-to-cart-button {
        background-color: #E70C2D;
        /* Kırmızı */
        color: #fff;
        flex: 2;
        /* Daha geniş */
        max-width: 250px;
    }

    .add-to-cart-button:hover {
        background-color: #c90a29;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(231, 12, 45, 0.3);
    }

    .favorite-button {
        background-color: #f0f0f0;
        color: #333;
        border: 1px solid #ccc;
        flex: 1;
        /* Daha küçük */
        max-width: 150px;
    }

    .favorite-button:hover {
        background-color: #e0e0e0;
        color: #E70C2D;
        /* Favoriye alınca renk değişimi */
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .favorite-button i {
        margin-right: 8px;
        color: #888;
        /* Varsayılan kalp rengi */
    }

    .favorite-button.active i {
        color: #E70C2D;
        /* Favoriye alınınca kırmızı kalp */
    }

    /* Responsive Düzenlemeler */
    @media (max-width: 992px) {
        .product-detail-card {
            flex-direction: column;
            align-items: center;
        }

        .product-image-container {
            max-width: 100%;
            height: 400px;
        }

        .product-info-container {
            padding: 20px;
            text-align: center;
        }

        .product-info-container h1 {
            font-size: 2.2em;
        }

        .product-info-container .product-price {
            font-size: 1.8em;
        }

        .action-buttons {
            justify-content: center;
        }

        .add-to-cart-button,
        .favorite-button {
            flex: auto;
            width: 100%;
            max-width: 300px;
            /* Mobil görünümde biraz daha kontrol */
        }
    }

    @media (max-width: 576px) {
        .product-detail-section {
            padding: 40px 0;
        }

        .product-info-container h1 {
            font-size: 1.8em;
        }

        .product-info-container .product-description {
            font-size: 1em;
        }

        .product-info-container .product-price {
            font-size: 1.6em;
        }
    }

    /* Anasayfa slider kartlarındaki görsel boyutu için (isteğe bağlı, detay sayfası büyükse bunlar da düzenlenebilir) */
    .product-card img {
        width: 100%;
        /* Kartın genişliğini doldursun */
        height: 200px;
        /* Sabit bir yükseklik */
        object-fit: contain;
        /* Görselin tamamı görünsün, bozulmasın */
        border-bottom: 1px solid #eee;
        padding: 10px;
        transition: transform 0.3s ease;
    }

    .product-card img:hover {
        transform: scale(1.03);
    }

    /* --- SADECE ÜRÜN DETAY SAYFASI İÇİN YENİ EKLENEN CSS --- */

    .product-detail-section {
        padding: 60px 0;
        background-color: #f8f8f8;
    }

    .product-detail-card {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .product-detail-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .product-image-container {
        flex: 1;
        min-width: 300px;
        max-width: 500px;
        border-radius: 8px;
        overflow: hidden;
        background-color: #f8f8f8;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-image-container img {
        max-width: 100%;
        height: auto;
        max-height: 450px;
        object-fit: contain;
        padding: 20px;
        transition: transform 0.3s ease;
    }

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

    .product-info-container {
        flex: 1.5;
        padding: 20px 0;
    }

    .product-info-container h1 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 15px;
    }

    .product-info-container .product-description {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
        margin-bottom: 25px;
    }

    .product-info-container .product-price {
        font-size: 2rem;
        font-weight: 700;
        color: #e74c3c;
        margin-bottom: 30px;
    }

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

    .add-to-cart-button,
    .favorite-button {
        padding: 12px 25px;
        font-size: 1rem;
        font-weight: 600;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .add-to-cart-button {
        background-color: #3498db;
        color: #fff;
        flex-grow: 1;
        min-width: 180px;
    }

    .add-to-cart-button:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(52, 152, 219, 0.3);
    }

    .favorite-button {
        background-color: #f1f1f1;
        color: #333;
        border: 1px solid #ddd;
        flex-grow: 1;
        min-width: 120px;
    }

    .favorite-button i {
        margin-right: 8px;
        color: #e74c3c;
    }

    .favorite-button:hover {
        background-color: #e0e0e0;
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .favorite-button.active i {
        color: #e74c3c;
    }

    /* Responsive Ayarlar */
    @media (max-width: 768px) {
        .product-detail-card {
            flex-direction: column;
            text-align: center;
        }

        .product-info-container {
            padding: 20px;
        }

        .product-image-container img {
            height: 300px;
        }

        .action-buttons {
            flex-direction: column;
        }
    }

    /* =============================================================== */
    /* === ÜRÜN KARTI ve BUTON STİLLERİ === */
    /* =============================================================== */

    /* Ana Sayfadaki Ürün Kartları için Görsel Boyutlandırması */
    .product-card img {
        height: 200px;
        /* Görselin sabit yüksekliği */
        object-fit: contain;
        /* Görselin tamamının karta sığmasını sağlar, orantısını bozmaz */
        width: 100%;
        padding: 15px;
        /* Görsel çevresinde boşluk bırakır */
        transition: transform 0.3s ease-in-out;
    }

    .product-card img:hover {
        transform: scale(1.05);
        /* Fare üzerine gelince hafifçe büyütme */
    }

    /* Ürün Kartı Butonları */
    .detail-button {
        display: inline-block;
        padding: 10px 20px;
        background-color: #e74c3c;
        /* Kırmızı renk */
        color: #fff;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .detail-button:hover {
        background-color: #c0392b;
        /* Koyu kırmızı */
        transform: translateY(-2px);
        /* Hafif yukarı kalkma efekti */
    }