/* --- CSS Değişkenleri --- */
/* Genel değişkenler (eğer başka dosyalarda da kullanılıyorsa :root içinde tanımlanabilir) */
:root {
    --primary: #b68d40; /* Örnek ana renk */
    --secondary: #544832; /* Örnek ikinci renk */
    --text-color: #555;
    --heading-color: #544832;
    --light-grey: #f8f8f8;
    --border-color: #f0f0f0;

    /* Bölüm Boşlukları */
    --section-padding-desktop: 80px 0;
    --section-padding-tablet: 50px 0;
    --section-padding-mobile: 30px 0;

    /* Başlık Ayarları */
    --section-title-margin-bottom: 20px; /* Başlığın altındaki boşluk */

    /* Ürün Kategori Ayarları */
    --category-gap-desktop: 50px;
    --category-gap-tablet: 30px;
    --category-image-max-width-desktop: 450px;
    --category-image-margin-desktop: 50px; /* Görsel ile içerik arası boşluk */
}
/* Ürünlerimiz Sayfası CSS */

/* page-header ve breadcrumb stilleri */
.page-header {
    background-color: #f5f5f5;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.page-header h1 {
    font-size: 36px;
    color: var(--secondary); /* Değişken kullanıldı */
    margin-bottom: 15px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: var(--primary); /* Değişken kullanıldı */
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb span {
    color: #777;
}

/* Ürünler Banner Stili */
.products-banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 50px; /* Banner altındaki boşluk */
}

.products-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-title {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 4%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.banner-title h1 {
    color: white;
    font-size: 56px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}


/* Ürün Kategorileri - DİKEY YAPI */

/* Bölüm Sarmalayıcı */
.product-category-section {
    padding: var(--section-padding-desktop); /* Değişken kullanıldı */
    border-bottom: 1px solid var(--border-color); /* Değişken kullanıldı */
    background-color: #fff; /* Varsayılan arka plan rengi */
}

.product-category-section:last-child {
    border-bottom: none; /* Son bölümden sonra çizgiyi kaldır */
}

/* Çift sıradaki bölümler için farklı arka plan rengi */
.product-category-section:nth-child(even) {
    background-color: var(--light-grey); /* Çok hafif bir gri tonu değişken */
}

.product-category-wrapper {
    display: flex;
    align-items: center; /* Öğeleri dikeyde ortala */
    gap: var(--category-gap-desktop); /* Görsel ve içerik arasındaki boşluk değişken */
}

/* Görselin sağda olduğu durum */
.product-category-wrapper.reverse {
    flex-direction: row-reverse; /* Öğelerin sırasını tersine çevir */
}

.product-category-content {
    flex: 1; /* İçeriğin büyümesine izin ver */
}

.product-category-image {
    flex: 1; /* Görselin büyümesine izin ver */
    max-width: var(--category-image-max-width-desktop); /* Görselin maksimum genişliği değişken */
    border-radius: 10px; /* Kenar yuvarlaklığı */
    overflow: hidden; /* Görselin zoom efektinin taşmasını engeller */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Kutu gölgesi */
    /* Flex yönüne göre kenar boşluğunu ayarla */
    margin-right: 0; /* Sıfırlama */
    margin-left: 0; /* Sıfırlama */
}

/* Görsel soldayken sağa boşluk */
.product-category-wrapper:not(.reverse) .product-category-image {
     margin-right: var(--category-image-margin-desktop); /* Değişken kullanıldı */
}

/* Görsel sağdayken sola boşluk */
.product-category-wrapper.reverse .product-category-image {
     margin-left: var(--category-image-margin-desktop); /* Değişken kullanıldı */
}

.product-category-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease; /* Hover geçişi */
}

.product-category-image:hover img {
    transform: scale(1.03); /* Hoverda hafif zoom */
}

/* Bölüm Başlığı (H2 elementi için) */
.section-title {
    font-size: 36px;
    color: var(--heading-color); /* Özel renk değişken */
    margin-bottom: var(--section-title-margin-bottom); /* Başlığın altındaki boşluk değişken */
    font-weight: 700;
    text-transform: uppercase;
    /* Başlık tek başına kullanılıyorsa ortala */
     text-align: center; /* Varsayılan ortalama */
}
/* Başlık flex container içindeyse sola hizala (section-header-flex şimdi sadece başlığı içeriyor, bu stil geçerli olmayabilir) */
.section-header-flex .section-title {
     text-align: center; /* Flex içinde de ortala */
     margin-bottom: 0; /* Flex içinde kendi alt boşluğu olmasın */
}


/* Kategori Açıklaması (P elementi için) */
.category-description {
    color: var(--text-color); /* Metin rengi değişken */
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px; /* Özellik listesi yoksa butonla arasına 30px boşluk */
     text-align: center; /* Varsayılan ortalama */
}

/* Kategori Buton Sarmalayıcı */
.category-button {
    margin-top: 20px;
    text-align: center; /* Varsayılan ortalama */
}

/* Kategori Butonu (A etiketi için) */
.category-button .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--primary); /* Değişken kullanıldı */
    border: 2px solid var(--primary); /* Değişken kullanıldı */
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding-right: 45px; /* İkon için sağdan boşluk */
}

.category-button .btn-outline:hover {
    background-color: var(--primary); /* Değişken kullanıldı */
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Buton içindeki ikonun stili */
.category-button .btn-outline i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Buton hover durumunda ikon animasyonu */
.category-button .btn-outline:hover i {
    transform: translateX(5px);
}
/* Başlık Container (Sadece başlık) */
.section-header-flex {
    display: flex; /* Hala flex kullanabiliriz, başlığı ortalamak veya hizalamak için */
    justify-content: center; /* Başlığı ortala */
    align-items: center;
    margin-bottom: var(--section-title-margin-bottom); /* Bloğun altındaki boşluk */
    /* Flex-wrap ve gap artık gerekmez çünkü yanında buton yok */
}
/* --- Duyarlılık Ayarları --- */

@media (max-width: 992px) {
    /* Genel Bölüm Boşlukları */
    .product-category-section, 
    /* Ürün Kategorileri */
    .product-category-wrapper {
        flex-direction: column;
        gap: var(--category-gap-tablet);
    }

    .product-category-wrapper.reverse {
        flex-direction: column;
    }

    .product-category-content {
        width: 100%;
        flex: none;
    }

    .product-category-image {
        width: 100%;
        flex: none;
        max-width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    /* Kategori başlıkları ve açıklamalar ortalı */
     .product-category-section .section-title,
     .category-description,
     .category-button {
         text-align: center;
     }
     .product-category-section .section-title {
          margin-bottom: var(--section-title-margin-bottom);
     }
     .category-button .btn-outline {
         display: inline-flex;
         align-items: center;
         justify-content: center;
     }
     .banner-title h1 {
        font-size: 42px;
     }
     /* Başlık Container (Sadece başlık) - 992px */
     .section-header-flex {
         margin-bottom: var(--section-title-margin-bottom);
     }
     .section-header-flex .section-title {
         font-size: 30px;
         text-align: center;
     }
          }

@media (max-width: 768px) {
    /* Genel Bölüm Boşlukları */
     .product-category-section,
    /* Ürün Kategorileri */
     .section-title {
         font-size: 26px;
          margin-bottom: var(--section-title-margin-bottom);
     }
     .category-description {
         text-align: center;
     }
     .category-button {
         text-align: center;
     }


    .page-header {
        padding: 40px 0;
    }
    .page-header h1 {
        font-size: 30px;
    }
     .banner-title h1 {
        font-size: 36px;
     }
      .products-banner {
         height: 180px;
      }
    /* Başlık Container (Sadece başlık) - 768px */
    .section-header-flex {
         margin-bottom: var(--section-title-margin-bottom);
    }
     .section-header-flex .section-title {
         font-size: 26px;
         text-align: center;
     }
}

@media (max-width: 576px) {
     /* Genel Bölüm Boşlukları */
     .product-category-section,
    /* Ürün Kategorileri */
     .section-title {
        font-size: 24px;
        margin-bottom: var(--section-title-margin-bottom);
    }
     .category-description {
         text-align: center;
    }
     .category-button {
         text-align: center;
     }

    .page-header {
        padding: 30px 0;
    }
    .page-header h1 {
        font-size: 26px;
    }
     .banner-title h1 {
        font-size: 28px;
     }
     .products-banner {
         height: 150px;
      }
      .banner-title {
         padding-right: 6%;
      }
       /* Ortalanmış butondaki ikon için mobil ayar (Aynı kalıyor) */
     .category-button .btn-outline {
         padding-right: 25px;
         margin-left: auto;
         margin-right: auto;
     }
     /* Başlık Container (Sadece başlık) - 576px */
     .section-header-flex {
         margin-bottom: var(--section-title-margin-bottom);
     }
     .section-header-flex .section-title {
         font-size: 24px;
         text-align: center;
     }
}