/* --- Genel Ayarlar --- */
:root {
    --primary-color: #002b5c;
    /* Lacivert */
    --secondary-color: #00509d;
    /* Açık Mavi */
    --accent-color: #ff4500;
    /* Canlı Turuncu/Kırmızı */
    --text-color: #333;
    --light-bg: #f4f7f6;
    --branded-bg-light: #f0f4f8;
    /* Hafif denizci mavisi/grisi */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}


a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.section-margin {
    margin: 60px 0;
}

/* --- Butonlar --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--performans-mavisi);
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

.btn:hover {
    background: var(--secondary-color);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

/* --- Top Bar --- */
.top-bar {
    background: #001f42;
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-links a {
    margin-left: 15px;
}




/* --- Bölüm Başlıkları --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

/* --- Kategoriler --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cat-item {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.cat-overlay {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.cat-item:hover .cat-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.cat-overlay h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid white;
}

/* --- Ürün Kartları --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    background: #f9f9f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.badge.sale {
    background: #d32f2f;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col h3 span {
    color: var(--accent-color);
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Responsive Ayarlar --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .navbar ul {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }
}


/* --- Slider Konteyner --- */
.hero-slider,
.slides-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background-color: #222;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Görünmezlik kontrolünü display ile değil, opacity ile yapıyoruz */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

/* Sadece active class'ı geldiğinde görünür olur */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Resmi ezmeden alana tam sığdırır */
}

/* --- MASAÜSTÜ İÇİN SABİT YÜKSEKLİK (992px ve üzeri) --- */
@media (min-width: 992px) {

    .hero-slider,
    .slides-container {
        height: 500px;
        /* Sadece masaüstünde 500px ile sınırla */
        min-height: 500px;
        /* Mobildeki esnekliği burada iptal et */
        max-height: 500px;
        /* Ne olursa olsun 500'ü geçmesin */
    }
}

/* Slayt İçerik Yazıları */
.slide .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
    z-index: 2;

    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    /* Yazılara ekstra siyah gölge atar */

    /* background-color: rgba(0, 0, 0, 0.5); %50 saydam siyah arka plan */
    /* padding: 30px 40px; İçten boşluk */
    /* border-radius: 10px; Kenarları yumuşat */
    /* backdrop-filter: blur(5px); Arkada kalan resmi hafif bulanıklaştırır (Cam efekti) */

    /* İsteğe bağlı ince bir çerçeve */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
}

/* Varsayılan olarak ilk slaytı göster */
.slide.active {
    display: block;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Alt tarafı koyu (%80 siyah), üst tarafı şeffaf bir geçiş */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    /* Resmin üstünde dursun */
}

/* --- Oklar (Next/Prev) --- */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 3;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- Noktalar (Dots) --- */
.dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
    /* Turuncu renk */
    transform: scale(1.2);
}

/* --- Fade Animasyonu --- */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* --- Mobil Uyumluluk (Slider Düzeltmesi) --- */
@media (max-width: 768px) {

    /* 1. EN DIŞ KAPSAYICI (Yükseklik burada belirlenir) */
    .hero-slider {
        height: 50vh !important;
        /* Ekranın tam yarısı kadar olsun */
        min-height: 300px !important;
        /* Çok küçülmesin */
        max-height: 500px !important;
    }

    /* 2. İÇ KAPSAYICILAR (Yüksekliği aynen devralmalı) */
    /* Bu zincir koparsa resim sığmaz */
    .hero-slider .slides-container,
    .hero-slider .slide {
        height: 100% !important;
        width: 100% !important;
    }

    /* 3. RESİM AYARI (Sihirli Kısım) */
    .hero-slider .slide img {
        width: 100% !important;
        height: 100% !important;

        /* Resmi kutuya zorla sığdır, taşan kısımları kırp (Siyah boşluğu önler) */
        object-fit: cover !important;

        /* Resmi tam ortala */
        object-position: center center !important;
    }

    /* 4. MOBİLDE YAZILARI DÜZENLE */
    .hero-slider .hero-content {
        width: 90% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center;
        padding: 15px;
        background: rgba(0, 0, 0, 0.3);
        /* Yazı okunsun diye hafif karartma */
        border-radius: 8px;
    }

    .hero-slider h2 {
        font-size: 1.4rem !important;
        margin-bottom: 5px;
    }

    .hero-slider p {
        font-size: 0.9rem !important;
        margin-bottom: 10px;
        /* Mobilde paragrafı gizlemek istersen alt satırı aç: */
        /* display: none !important; */
    }

    .hero-slider .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* Slider Mobil Tasarımı son */



#perfShopDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    height: 400px;

    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;

}

.content-overlay {
    background-color: #555555a6;
    border-radius: 15px;
    padding: 15px;
    color: white;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .content-overlay h2 {
        font-size: 16px;
    }
}





/* --- Markalar ve Filtreleme --- */

#sectionBrands {
    background-color: var(--performans-mavisi);
}

.brands-container {
    margin: 50px 0;
}

#containerBrands {
    background-color: #fff;
    padding: 25px 10px;

    border: 1px solid yellow;
}


.brand-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #eee;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--performans-mavisi);
    border-radius: 30px;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 5 Sütunlu Flex Yapısı */
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.brand-item {
    background: white;
    border: 1px solid #eee;
    height: 100px;
    /* Logo kutusu yüksekliği */
    /* width: calc(20% - 16px); */
    /* 5'li sıra için */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.4s ease;
    /* Yumuşak geçiş efekti */
}

.brand-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.logo-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-height: 90px;
}

/* Gizleme sınıfı (JS ile eklenecek) */
.brand-item.hide {
    display: none;
    /* Gizlenen öğeyi akıştan çıkarır */
}

/* Görünür olma animasyonu */
.brand-item.show {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .brand-item {
        width: calc(33.333% - 14px);
        /* Tablette 3'lü */
    }

    /* Tablette 3 sütun */
}

@media (max-width: 576px) {
    .brand-item {
        width: calc(50% - 10px);
        /* Mobilde 2'li */
    }

    /* Mobilde 2 sütun */
    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

}


/* Brand Section Tasarımı */
.brand-section {
    background-color: #2D2D2D;


}

.row1 {
    display: flex;


}

.row1 img {
    margin: 30px;
}

/* Brand Section Tasarımı son */





/* --- Öne Çıkan Marka Bölümleri (Featured Brand Sections) --- */
.featured-brand-section {
    background-color: var(--branded-bg-light);
    padding: 80px 0;
    /* Üst ve alt kısımlara hafif dalga efekti veya keskin bir ayrım için */
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

/* İki sütunlu ana yapı */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* İçerikleri dikeyde ortala */
}

/* Metin Alanı */
.brand-text-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    /* Marka logosu gibi görünmesi için */
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-text-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Görsel Galeri (Mozaik Yapı) */
.brand-gallery-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    /* 2 sıra, her biri 200px yükseklikte */
    gap: 15px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
    /* Üzerine gelince hafif büyüme efekti */
}

/* Ana (Büyük) Görsel Ayarı - İlk görseli 2 satır kaplat */
.gallery-img.main-feature {
    grid-row: span 2;
    /* Dikeyde 2 satır yer kapla */
    height: 415px;
    /* 200 + 200 + 15gap */
}


/* Varyasyon: Ters Yerleşim (Görsel Solda, Metin Sağda) */
/* Bunu başarmak için HTML'de sıralamayı değiştireceğiz, ekstra CSS'e gerek yok */

/* --- Mobil Uyumluluk --- */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        /* Mobilde tek sütuna düş */
        gap: 40px;
        text-align: center;
    }

    /* Mobilde sıralamayı düzeltmek için (Metin hep üstte kalsın) */
    .split-layout.reverse-on-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .split-layout.reverse-on-mobile .brand-text-content {
        margin-bottom: 30px;
    }

    .brand-text-content h2 {
        font-size: 2rem;
    }

    /* Mobilde galeri yüksekliğini azalt */
    .brand-gallery-collage {
        grid-template-rows: repeat(2, 150px);
    }

    .gallery-img.main-feature {
        height: 315px;
    }
}