/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 640px;
    background-size: cover;
    background-position: center;
    background-color: #333; /* resim yoksa gozukecek yedek renk */
    display: flex;
    align-items: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgb(46 30 20 / 50%);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__text {
    max-width: 560px;
}

.hero__title {
    color: var(--color-text-light);
    font-size: 52px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.hero__subtitle {
    color: rgba(249, 245, 240, 0.9);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 460px;
}

.hero__btn {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border: none;
    padding: 14px 36px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
}

/* =========================================================
   SECTION 1 - KATEGORI VITRINI
   ========================================================= */
.category-tabs {
    position: relative; /* kayan alt cizgi (indicator) icin konum referansi */
    display: flex;
    justify-content: center;
    gap: 56px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

/* Aktif sekmenin altinda kayarak (smooth) hareket eden cizgi.
   Konumu (left/width) assets/js/front-page.js icindeki
   moveTabsIndicator() fonksiyonu tarafindan inline style olarak
   yazilir; burada sadece gorunum ve gecis (transition) tanimlanir. */
.category-tabs__indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background-color: var(--color-accent);
    transition: left 0.3s ease, width 0.3s ease;
}

.category-tab {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 20px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.category-tab:hover,
.category-tab.is-active { opacity: 1; }

.category-tab__icon {
    width: 90px; height: 90px;
    border-radius: 50%;
    overflow: hidden;
}

.category-tab__icon img { width: 100%; height: 100%; object-fit: cover; }

.category-tab__label {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-dark);
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    min-height: 200px;
    transition: opacity 0.3s ease; /* kategori degisiminde smooth fade */
}

.category-products-grid.is-loading { opacity: 0; pointer-events: none; }

.category-products-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px 0;
}

.category-products-grid__footer {
    text-align: center;
    margin-top: 44px;
}

/* =========================================================
   SECTION 2 - PARALLAX SLOGAN
   ========================================================= */
.section-parallax {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-parallax__bg {
    position: absolute;
    inset: -60px 0; /* parallax hareketine yer birakmak icin tasma */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* basit CSS parallax */
}

.section-parallax__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(46, 30, 20, 0.45);
}

.section-parallax__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.section-parallax__text {
    color: var(--color-text-light);
	font-family: 'Montserrat', sans-serif;
    font-size: 52px;
	font-weight: 500;
    margin-bottom: 28px;
}

.section-parallax__button {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border: none;
    padding: 14px 36px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
}

/* iOS Safari background-attachment: fixed desteklemez,
   JS ile transform tabanli parallax'a otomatik gecis yapilir
   (bkz. assets/js/front-page.js) */

/* =========================================================
   SECTION 3 - ONE CIKAN URUN
   Bu bolumun ic gorunumu (galeri, baslik, fiyat, varyasyon, adet,
   sepete ekle) artik gercek WooCommerce tekil urun sayfasi kancalari
   ile olusturuluyor; stil detaylari assets/css/woocommerce.css
   icindeki ".woocommerce div.product ..." kurallarindan geliyor.
   Burada sadece iki sutunlu genel yerlesim (grid) kaliyor.
   ========================================================= */
.featured-product,
.woocommerce div.product.featured-product {
    /* NOT: '.woocommerce div.product { display: flow-root; }' kurali
       (woocommerce.css, tekil urun sayfasindaki akordiyon/margin-collapse
       duzeltmesi icin eklendi) bu elemani da esliyor ve ondan daha
       yuksek ozgullukte (specificity) oldugu icin 'display: grid'
       degerimizi eziyordu. Ayni ozgulluk seviyesiyle burada tekrar
       tanimlayip ana sayfadaki iki sutunlu duzeni geri kazandiriyoruz;
       tekil urun sayfasindaki 'flow-root' kuralina DOKUNMUYORUZ.
       ONEMLI: bu kural ileride tekrar kaybolursa (ornegin bu dosya
       baska bir degisiklikle uzerine yazilirsa), asagidaki @media
       (max-width: 1024px) icindeki ayni secici listesiyle birlikte
       tekrar eklenmelidir; aksi halde galeri/ozet sutunlari bozulur. */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* WooCommerce'in kendi eklenti CSS'i, tekil urun sayfasindaki eski
   "float" tabanli iki sutunlu duzen icin div.images ve div.summary
   elemanlarina sabit "width: 48%" veriyor. Burada grid duzeni
   kullandigimiz icin bu sabit genislik degeri sutunlarin grid
   hucresini tam doldurmasini engelleyip (resim/metin bloklarinin
   kucuk kalip aralarinda bosluk olusmasina) sebep oluyordu. Daha
   yuksek oncelikli (specificity) bir kuralla bunu iptal ediyoruz. */
.woocommerce div.product.featured-product div.images,
.woocommerce div.product.featured-product div.summary {
    width: 100%;
    float: none;
}

/* Lazy loading gorunurluk animasyonu artik site geneli oldugu icin
   assets/css/main.css dosyasina tasindi (bkz. main.css). */

/* =========================================================
   SECTION 4 - CAROUSEL (KAYDIRMALI VITRIN)
   Öne Cikan Urun bolumunun altinda gorunen, otomatik kayan resim
   vitrini. Calisma mantigi:
   - .carousel__track normalde sonsuz (infinite) CSS animasyonu ile
     surekli sola dogru kayar (resim listesi PHP tarafinda 2 kere
     art arda yazildigi icin kayma kesintisiz/dikissiz gorunur).
   - Fare .carousel alaninin herhangi bir yerine gelince (bir
     .carousel-slide'in uzerine gelmek de dahil, cunku CSS :hover
     ust elemanlara da yansir) .carousel__track uzerindeki animasyon
     duraklatilir (animation-play-state: paused).
   - Sadece uzerine gelinen .carousel-slide'in gorseli buyur (zoom)
     ve o slide'in baslik/metni gorunur olur; digerlerinde hicbir
     degisiklik olmaz cunku bu kurallar ":hover" ile sadece o tekil
     slide'a baglidir.
   ========================================================= */
.section-carousel {
    padding: 0 0 80px;
    overflow: hidden;
}

.carousel {
    width: 100%;
    overflow: hidden;
}

.carousel__track {
    display: flex;
    width: max-content;
    animation: desen-carousel-scroll 60s linear infinite;
}

/* Fare, carousel alaninin (bosluklar dahil) herhangi bir yerindeyken
   kaymayi durdur. */
.carousel:hover .carousel__track {
    animation-play-state: paused;
}

@keyframes desen-carousel-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* liste 2 kere yazildigi icin tam yarisi */
}

.carousel-slide {
    position: relative;
    flex: 0 0 auto;
    width: 467px;
    height: 700px;
    display: block;
    overflow: hidden;
    background-color: var(--color-white);
}

.carousel-slide__image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: block;
}

.carousel-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Uzerine gelinen resimde zoom-in. */
.carousel-slide:hover .carousel-slide__image {
    transform: scale(1.12);
}

.carousel-slide__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(to top, rgba(20, 12, 8, 0.92) 0%, rgba(20, 12, 8, 0.4) 65%, transparent 100%);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

/* Baslik/metin normalde gizli, sadece uzerine gelinen slide'da gorunur. */
.carousel-slide:hover .carousel-slide__caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel-slide__title {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.carousel-slide__text {
    color: rgba(249, 245, 240, 0.9);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

/* Fare/dokunma odagi klavyeden gelirse de (Tab tusu) ayni gorunum. */
.carousel-slide:focus-visible .carousel-slide__image {
    transform: scale(1.12);
}
.carousel-slide:focus-visible .carousel-slide__caption {
    opacity: 1;
    transform: translateY(0);
}

/* Kullanicinin isteyerek "hareket azalt" ayari acikken kayma durur,
   resimler sabit kalir (erisilebilirlik). */
@media (prefers-reduced-motion: reduce) {
    .carousel__track {
        animation: none;
    }
}

/* =========================================================
   SECTION 5 - SSS VE GORSEL BOLUMU
   Carousel bolumunun altinda, footer'in ustunde yer alan son bolum.
   3 sutunlu grid: sol (baslik+metin), orta (gorsel), sag (akordiyon).
   Akordiyon acilip-kapanma animasyonu JS class degisimi ile tetiklenen
   "grid-template-rows: 0fr -> 1fr" teknigiyle yapilir; boylece icerik
   yuksekligi degiskense bile JS tarafinda yukseklik hesaplamaya gerek
   kalmaz. Ac/kapa mantiginin kendisi (ayni anda tek kutu acik kalmasi)
   template-parts/front-page/section-faq.php dosyasinin sonundaki
   <script> icinde yapilir.
   ========================================================= */
.section-faq {
    padding: 90px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Sol sutun: sola dayali, dikeyde ortalanmis baslik + alt metin. */
.faq-grid__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.faq-grid__title {
    font-family: 'Cormorant', serif;
    font-size: 2.7rem;
	font-weight: 400;
	font-style: normal;
    color: var(--color-text-dark);
    margin-bottom: 18px;
}

.faq-grid__subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 380px;
}

/* Orta sutun: dikey + yatay ortalanmis tek gorsel. */
.faq-grid__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.faq-grid__image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Sag sutun: akordiyon (SSS) listesi. */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--color-border);
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.is-open {
    background-color: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 0 6px 24px rgba(46, 30, 20, 0.08);
}

.faq-item__heading {
    margin: 0;
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-dark);
}

.faq-item__question-text {
    flex: 1;
}

/* Artı / eksi ikonu: iki cizgiden olusan CSS-only ikon. Dikey cizgi,
   kutu acilinca yatay hale gelecek sekilde olceklenerek "eksi"ye donusur. */
.faq-item__icon {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--color-text-dark);
    transform: translate(-50%, -50%);
}

.faq-item__icon::before {
    width: 100%;
    height: 2px;
}

.faq-item__icon::after {
    width: 2px;
    height: 100%;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

/* Acilip kapanma animasyonu: grid-template-rows 0fr -> 1fr. */
.faq-item__answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-item__answer-wrap {
    grid-template-rows: 1fr;
}

.faq-item__answer-inner {
    overflow: hidden;
}

.faq-item__answer {
    padding: 0 26px 22px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Ust cizgi: soru ile cevap arasinda ince bir ayrac, sadece acikken. */
.faq-item.is-open .faq-item__question {
    padding-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item__answer-wrap,
    .faq-item__icon::after {
        transition: none;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .hero__title { font-size: 40px; }
    .category-products-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-product,
    .woocommerce div.product.featured-product {
        /* Ayni ozgullukte (specificity) tanimlanan taban '.woocommerce
           div.product.featured-product' kuralini (bkz. yukaridaki ana
           kural) burada da eslestirmemiz gerekiyor; aksi halde bu daha
           dusuk ozgullukteki mobil/tablet kurali gecersiz kalir ve grid
           kucuk ekranlarda da 2 sutunlu kalmaya calisip tasar. */
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .carousel-slide { width: 300px; height: 420px; }
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .faq-grid__text { align-items: center; text-align: center; }
    .faq-grid__subtitle { max-width: 100%; }
}

@media (max-width: 768px) {
    .hero { min-height: 480px; }
    .hero__title { font-size: 32px; }
    .category-tabs { gap: 24px; overflow-x: auto; }
    .category-tab__icon { width: 64px; height: 64px; }
    .section-parallax__text { font-size: 26px; }
    .carousel-slide { width: 240px; height: 340px; margin-right: 16px; }
    .carousel-slide__caption { padding: 20px 18px; }
    .carousel-slide__title { font-size: 17px; }
    .carousel-slide__text { font-size: 13px; }
    .section-faq { padding: 60px 0; }
    .faq-grid__title { font-size: 26px; }
}

@media (max-width: 480px) {
    .category-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .carousel-slide { width: 200px; height: 280px; }
}
