/* ===========================================================
   site_overrides.css  —  2026 daytonightfestival.com
   1) Ürün kartı: eski sade tasarım korunur,
      "Hemen Satın Al" butonu KALICI görünür
   2) Resme tıklayınca ürüne git (anchor reset)
   3) Sidebar kategori menüsü kompakt (kısa başlıklar)
   4) Ürün detay sayfası İÇERİK tipografisi
   =========================================================== */


/* ============================================================
   1. ÜRÜN KARTI  —  ESKİ SADE GÖRÜNÜM, BUTON KALICI
   ============================================================ */

/* Resmi saran anchor: tüm görüntüyü block olarak tıklanabilir yap;
   eski .product_image davranışına müdahale etmez */
.product_image_link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}
.product_image_link:hover,
.product_image_link:focus { text-decoration: none !important; }

/* Resim hover'da hafif zoom (opsiyonel, çok hafif) */
.product_image { overflow: hidden; }
.product_image img {
    transition: transform .35s ease;
}
.product-item:hover .product_image img {
    transform: scale(1.04);
}

/* Kart yapısı  —  ESKİ SABİT YÜKSEKLİK KALDIRILDI
   Sebep: .product-item 380px sabit + buton akışta = buton bir
   sonraki satırın üstüne overflow ediyordu (Isotope grid kart
   yüksekliğini 380px'e göre yerleştirdiği için).
   Çözüm: yükseklik auto, buton akışta normal blok olarak en altta. */
.product-item {
    height: auto !important;
    min-height: 360px;
    /* Kartlar arası 16px yatay (8+8) + 18px dikey boşluk.
       box-sizing: border-box, Isotope width yüzdesini değiştirmez. */
    padding: 0 8px 18px !important;
    box-sizing: border-box !important;
}
.product {
    height: auto !important;
    border-right: none !important;     /* eski sağ-çizgi temiz */
    padding-bottom: 14px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 4px;
    overflow: hidden;
}

/* "Hemen Satın Al" butonu  —  HOVER'A BAĞIMLI DEĞİL, KALICI */
.add_to_cart_button {
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

/* Eski hover kuralını da garanti et */
.product-item:hover .add_to_cart_button {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Eski "kart hover çerçevesi" overflow olmasın diye iptal */
.product-item::after { display: none !important; }

/* Ürün başlığı çok uzun olursa 2 satıra clamp et — taşmayı önler */
.product_name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}


/* Kategori sayfası vb.: floating .product-item'lar clearfix.
   Isotope grid'i (anasayfa) etkilenmesin diye :not([data-isotope]). */
.product-grid:not([data-isotope]) {
    overflow: hidden;            /* float clearfix */
    display: block;
}

/* Alt sıralama/pagination kutusu son kartla çakışmasın */
.product_sorting_container_bottom {
    clear: both;
    margin-top: 30px !important;
    padding-top: 15px;
    border-top: 1px solid #eef0f3;
}

/* ============================================================
   2. SIDEBAR KATEGORİ MENÜSÜ
   ============================================================ */

.sidebar_categories li a {
    line-height: 1.4 !important;
    padding: 8px 4px;
    display: block;
    transition: color .2s ease, padding-left .2s ease;
}
.sidebar_categories li a:hover {
    color: #fe4c50;
    padding-left: 6px;
}


/* ============================================================
   3. ÜRÜN DETAY SAYFASI — İÇERİK TİPOGRAFİSİ
   Ürün açıklaması (#tab_1 .desc_col / .icerikfont) için
   düzenli H2/H3/P/UL hizalama, line-height, spacing.
   ============================================================ */

.desc_col,
.icerikfont {
    color: #2b2b32;
    font-size: 15px;
    line-height: 1.75;
}

/* Bütün metin elemanlarının üst-alt boşluğunu sıfırla, biz vereceğiz */
.desc_col h1, .desc_col h2, .desc_col h3, .desc_col h4, .desc_col h5, .desc_col h6,
.icerikfont h1, .icerikfont h2, .icerikfont h3, .icerikfont h4, .icerikfont h5, .icerikfont h6 {
    color: #1e1e27;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.desc_col h2, .icerikfont h2 {
    font-size: 24px;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fe4c50;
    display: inline-block;
}

.desc_col h3, .icerikfont h3 {
    font-size: 20px;
    margin: 26px 0 12px;
    color: #fe4c50;
}

.desc_col h4, .icerikfont h4 {
    font-size: 17px;
    margin: 22px 0 10px;
}

/* Paragraf */
.desc_col p, .icerikfont p {
    margin: 0 0 14px;
    line-height: 1.75;
}

/* Vurgu */
.desc_col strong, .icerikfont strong {
    color: #1e1e27;
    font-weight: 600;
}

.desc_col em, .icerikfont em {
    font-style: italic;
    color: #555;
}

/* Listeler */
.desc_col ul, .desc_col ol,
.icerikfont ul, .icerikfont ol {
    margin: 8px 0 18px;
    padding-left: 26px;
}
.desc_col li, .icerikfont li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.desc_col ul li::marker, .icerikfont ul li::marker {
    color: #fe4c50;
}

/* Tablolar (varsa) */
.desc_col table, .icerikfont table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 22px;
    font-size: 14px;
}
.desc_col th, .icerikfont th,
.desc_col td, .icerikfont td {
    border: 1px solid #e8e8ee;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.desc_col th, .icerikfont th {
    background: #fafafa;
    font-weight: 600;
    color: #1e1e27;
}

/* Linkler */
.desc_col a, .icerikfont a {
    color: #fe4c50;
    text-decoration: underline;
}
.desc_col a:hover, .icerikfont a:hover {
    color: #c93c3f;
}

/* Blockquote (uyarı kutucukları için kullanılırsa) */
.desc_col blockquote, .icerikfont blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #fff8f8;
    border-left: 4px solid #fe4c50;
    color: #444;
    font-style: normal;
}

/* İlk başlık üst boşluğu yok */
.desc_col > h2:first-child, .desc_col > h3:first-child,
.icerikfont > h2:first-child, .icerikfont > h3:first-child {
    margin-top: 0;
}


/* ============================================================
   3b. KURUMSAL SAYFALAR (Gizlilik, KVKK, Çerez, İade, Teslimat)
   .kurumsalicerikcss — okunabilir tipografi, kontrol listeleri
   ============================================================ */
.kurumsalicerikcss {
    color: #2b2b32;
    font-size: 15px;
    line-height: 1.75;
    max-width: 900px;
    margin: 0 auto 30px;
}

.kurumsalicerikcss h1 {
    font-size: 30px;
    font-weight: 800;
    color: #1e1e27;
    margin: 8px 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fe4c50;
    display: inline-block;
}

.kurumsalicerikcss h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e1e27;
    margin: 28px 0 12px;
    padding-left: 10px;
    border-left: 4px solid #fe4c50;
}

.kurumsalicerikcss h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fe4c50;
    margin: 22px 0 10px;
}

.kurumsalicerikcss p { margin: 0 0 14px; }
.kurumsalicerikcss strong { color: #1e1e27; font-weight: 600; }
.kurumsalicerikcss a { color: #fe4c50; text-decoration: underline; }
.kurumsalicerikcss a:hover { color: #c93c3f; }

.kurumsalicerikcss ul,
.kurumsalicerikcss ol {
    margin: 8px 0 18px;
    padding-left: 26px;
}
.kurumsalicerikcss li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.kurumsalicerikcss ul li::marker { color: #fe4c50; }
.kurumsalicerikcss ol li::marker { color: #fe4c50; font-weight: 700; }

@media (max-width: 575px) {
    .kurumsalicerikcss { font-size: 14.5px; line-height: 1.7; }
    .kurumsalicerikcss h1 { font-size: 24px; }
    .kurumsalicerikcss h2 { font-size: 18px; }
}


/* ============================================================
   4. KATEGORİ SAYFASI İÇERİK BLOĞU
   .kategoriicerikcss aynı tipografiyi paylaşsın
   ============================================================ */
.kategoriicerikcss { color: #2b2b32; font-size: 15px; line-height: 1.75; }

.kategoriicerikcss h2,
.kategoriicerikcss h3,
.kategoriicerikcss h4 {
    color: #1e1e27;
    font-weight: 700;
    line-height: 1.3;
    margin: 26px 0 12px;
}
.kategoriicerikcss h2 {
    font-size: 24px;
    padding-bottom: 6px;
    border-bottom: 2px solid #fe4c50;
    display: inline-block;
}
.kategoriicerikcss h3 { font-size: 20px; color: #fe4c50; }
.kategoriicerikcss h4 { font-size: 17px; }

.kategoriicerikcss p { margin: 0 0 14px; }
.kategoriicerikcss strong { color: #1e1e27; font-weight: 600; }
.kategoriicerikcss ul, .kategoriicerikcss ol { margin: 8px 0 18px; padding-left: 26px; }
.kategoriicerikcss li { margin-bottom: 6px; line-height: 1.6; }


/* ============================================================
   5. MOBİL DOKUNUŞ
   ============================================================ */

/* Tablet ve telefonda sidebar kategorilerini gizle —
   hamburger menüde aynı kısa başlıklar zaten var */
@media (max-width: 991px) {
    .sidebar,
    .sidebar_section { display: none !important; }
    /* Main content artık tam genişlik kullansın */
    .product_section .main_content { width: 100% !important; margin-left: 0 !important; }
}

@media (max-width: 767px) {
    .desc_col, .icerikfont, .kategoriicerikcss {
        font-size: 14.5px;
        line-height: 1.7;
    }
    .desc_col h2, .icerikfont h2, .kategoriicerikcss h2 { font-size: 20px; }
    .desc_col h3, .icerikfont h3, .kategoriicerikcss h3 { font-size: 17px; }
}


/* ============================================================
   6. ÜRÜN DETAY SAYFASI — MOBİL LAYOUT
   Mevcut single_responsive.css mobil'de .single_product_image'a
   785px sabit yükseklik veriyor — telefonda çok yüksek. Aspect
   ratio ile responsive yapıyoruz; resim "contain" gösterilsin
   ki kırpılmasın. Thumbnails altta yatay sıraya geçsin.
   ============================================================ */

@media (max-width: 991px) {
    .single_product_container {
        margin-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .single_product_pics .row { margin-left: 0; margin-right: 0; }
    .image_col, .thumbnails_col {
        padding: 0 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Ana ürün resmi — 1:1 oran (kare), tam genişlik */
    .single_product_image {
        position: relative !important;
        height: 0 !important;
        padding-bottom: 95% !important;   /* aspect ratio ≈ 1:1 */
        margin-bottom: 14px !important;
        background: #fafafa;
        border: 1px solid #eef0f3;
        border-radius: 6px;
        overflow: hidden;
    }
    .single_product_image_background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: contain !important;   /* kırpma yok */
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    /* Thumbnails altta yatay sıralanmış, eşit genişlikte */
    .single_product_thumbnails {
        height: auto !important;
        margin-bottom: 20px;
    }
    .single_product_thumbnails ul {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .single_product_thumbnails ul li {
        display: block !important;
        flex: 1 1 0 !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        background: #fafafa;
        border: 1px solid #eef0f3;
        border-radius: 4px;
        overflow: hidden;
        cursor: pointer;
    }
    .single_product_thumbnails ul li img {
        width: 100% !important;
        height: 80px !important;
        object-fit: contain;
        padding: 4px;
    }
    .single_product_thumbnails ul li.active {
        border-color: #fe4c50;
    }

    /* Ürün başlığı — büyük h1 mobile'de daraltılır */
    .product_details, .product_details_title { padding: 0; }
    .product_details_title h1,
    .product_details_title .aspNetLabel {
        font-size: 22px !important;
        line-height: 1.3;
    }
    .product_details_title p {
        font-size: 14px;
        line-height: 1.55;
        margin-top: 8px;
    }

    /* Fiyat blokları */
    .product_price { font-size: 26px !important; }

    /* Whatsapp/Sipariş Ver butonları yan yana değil alt alta */
    .quantity {
        gap: 8px;
    }
    .quantity .review_submit_btn {
        margin: 4px 0;
        width: 100%;
        text-align: center;
    }

    /* Tab başlıkları daha küçük yazı tipi */
    .tabs li.tab span { font-size: 12px !important; padding: 8px 8px !important; }
    .tab_title { margin-bottom: 24px !important; }
}


/* ============================================================
   7. ÜRÜN DETAY TABS  —  KLASÖR SEKMESİ TARZI
   - Üst köşeler yuvarlatılmış
   - Aktif tab içerikle birleşik (alt çizgi kapatılır)
   - İnaktif tab'lar altta kırmızı çizgiyle ayrılır
   ============================================================ */

.tabs_section_container { margin-top: 30px; }

.tabs {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 2px solid #fe4c50;
    gap: 4px;
    position: relative;
}

.tabs li.tab {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    background: #f5f5f7;
    border: 1px solid #e8e8ee;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    margin-bottom: -2px !important;       /* aktifin alt çizgisi kırmızı border'ı kapatabilsin */
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .15s ease;
    position: relative;
}

.tabs li.tab span {
    display: block;
    padding: 13px 14px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e27;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tabs li.tab:hover {
    background: #fff5f5;
    transform: translateY(-1px);
}
.tabs li.tab:hover span { color: #fe4c50; }

/* Aktif tab: kırmızı border ile vurgu, ALT KENARI yok (içerik ile birleşir) */
.tabs li.tab.active {
    background: #fff;
    border: 2px solid #fe4c50;
    border-bottom: 2px solid #fff;   /* kırmızı çizgiyi kapatır → klasör efekti */
    margin-bottom: -2px !important;
    transform: translateY(0);
}
.tabs li.tab.active span {
    color: #fe4c50;
    padding: 12px 14px 15px;          /* 1px border kompensasyonu */
}

/* İçerik alanı — kutu/çerçeve yok, sadece üstte hafif boşluk */
.tab_container.active {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 22px 0 0 !important;
    margin-top: 0;
    box-shadow: none !important;
}

@media (max-width: 575px) {
    .tabs li.tab span { padding: 11px 8px 13px; font-size: 12.5px; }
    .tabs li.tab.active span { padding: 10px 8px 13px; }
    .tab_container.active { padding: 16px 0 0 !important; }
}
