﻿/* --- SADECE İKONLU MENÜ STİLLERİ --- */

#icon-only-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ANA BUTON TASARIMI (Büyük Yuvarlak) */
.main-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Tam yuvarlak */
    background-color: #2c3e50; /* Koyu Lacivert */
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s;
}

    .main-trigger-btn:hover {
        transform: scale(1.1); /* Üzerine gelince hafif büyür */
    }

/* ALT İKONLARIN KAPSAYICISI */
.icon-group {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px; /* İkonlar arası boşluk */
    margin-bottom: 15px;
}

/* ALT BUTONLAR (Küçük Yuvarlaklar) */
.sub-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    /* Gizleme Efektleri */
    opacity: 0;
    transform: translateY(20px) scale(0.5);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* RENKLER */
.mail-color {
    background-color: #FFAA17;
}

.phone-color {
    background-color: #3b5998;
}

.wp-color {
    background-color: #25D366;
}

/* --- AÇILMA ANİMASYONU --- */

/* Menü açılınca butonlar yukarı çıksın */
#icon-only-widget.opened .sub-icon-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Ana buton dönüp X olsun ve rengi değişsin */
#icon-only-widget.opened .main-trigger-btn {
    /*   transform: rotate(30deg);  + işareti x olur */
    background-color: #c0392b; /* Kırmızıya döner */
}

#icon-only-widget.opened #trigger-icon {
    /* İkonun kendisiyle oynamaya gerek yok, butonu döndürdük */
}

/* Pıtır pıtır gelme sırası */
#icon-only-widget.opened .sub-icon-btn:nth-child(1) {
    transition-delay: 0.05s;
}

#icon-only-widget.opened .sub-icon-btn:nth-child(2) {
    transition-delay: 0.1s;
}

#icon-only-widget.opened .sub-icon-btn:nth-child(3) {
    transition-delay: 0.15s;
}

/* BUTON TASARIMI (Senin seçtiğin gradyan buton) */
.btn-grad-cart {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%);
    margin: 10px 0;
    padding: 15px 40px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    outline: none !important;
    margin-right: 5px;
}

    .btn-grad-cart:hover {
        background-position: right center;
        color: #B12704;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

/* BUTON TASARIMI (Anasayfa) */
.btn-grad-ind {
    background-image: linear-gradient(to right, #474747 0%, #7A7A7A 51%, #E9E9E9 100%);
    margin: 10px 0;
    padding: 10px 55px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
    border: solid;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    outline: none !important;
    margin-right: 5px;
}

    .btn-grad-ind:hover {
        background-position: right bottom;
        color: #B12704;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

/* MODAL ARKAPLANI (Siyah Perde) */
.payment-overlay {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Arkası yarı saydam siyah */
    z-index: 9999999; /* En üstte */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Arkadaki siteyi bulanıklaştırır (Modern tarayıcılar) */
}

/* MODAL KUTUSU */
.payment-box {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: popupAnimation 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Başlık Alanı */
.header-icon {
    font-size: 40px;
    color: #333;
    margin-bottom: 10px;
}

.payment-box h3 {
    margin: 10px 0 5px;
    color: #2c3e50;
    font-family: sans-serif;
    padding-right: 40px;
}

.payment-box p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 25px;
    padding-top: 15px;
}

/* Kapatma Çarpısı */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: 0.3s;
}

    .close-modal:hover {
        color: #e74c3c;
    }

/* SEÇENEK BUTONLARI */
.pay-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    color: #333;
}

    .pay-option:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

/* WhatsApp Özelleştirmesi */
.whatsapp-opt {
    background-color: #e8f5e9;
    border-color: #c8e6c9;
}

    .whatsapp-opt .icon-wrapper {
        background-color: #25D366;
        color: white;
    }

/* Site Özelleştirmesi */
.site-opt {
    background-color: #e3f2fd;
    border-color: #bbdefb;
}

    .site-opt .icon-wrapper {
        background-color: #2196F3;
        color: white;
    }

/* İkon ve Yazı Düzeni */
.icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-right: 15px;
}

.text-wrapper {
    text-align: left;
    flex: 1;
}

.main-text {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.sub-text {
    display: block;
    font-size: 12px;
    color: #666;
}

.arrow {
    color: #ccc;
}

/* Animasyon */
@keyframes popupAnimation {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- DİKEY GALERİ TASARIMI (TAM KARE VERSİYON) --- */

/* 1. Galerinin Kapsayıcısı */
.custom-gallery-container {
    display: flex;
    gap: 15px;
    /* height: 500px;  <-- BU SATIRI SİLDİK (Kare olması için yükseklik serbest olmalı) */
    align-items: flex-start; /* Resimler yukarı hizalı olsun */
}

/* 2. Sol Taraf: Küçük Resimler Şeridi */
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    /* Küçük resimlerin kutusu, ana resim kadar uzasın ama taşarsa kaydırsın */
    max-height: 100%;
    aspect-ratio: 1 / 5; /* Şerit çok uzamasın diye bir oran sınırı (Opsiyonel) */
    overflow-y: auto;
    padding-right: 5px;
}

/* Küçük Resimler */
.thumb-img {
    width: 100%;
    height: 80px; /* Küçükler kare olmak zorunda değil, dikdörtgen kalsın */
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    opacity: 0.6;
    transition: 0.3s;
    flex-shrink: 0; /* Sıkışmayı engeller */
}

    .thumb-img:hover, .thumb-img.active {
        border-color: #2c3e50;
        opacity: 1;
    }

/* 3. Sağ Taraf: Büyük Ana Resim Alanı (TAM KARE BURASI) */
.gallery-main {
    flex: 1; /* Kalan genişliği doldur */
    position: relative;
    /* İŞTE SİHİRLİ KOD: En-Boy oranı 1'e 1 olsun */
    aspect-ratio: 1 / 1;
    background-color: #f9f9f9; /* Resim transparan ise arkası gri olsun */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eee;
}

/* Büyük Resim */
#main-product-image {
    width: 100%;
    height: 100%;
    /* 'contain' yaparsan resmi kesmez, sığdırır (Önerilen) */
    /* 'cover' yaparsan kutuyu tamamen doldurur ama kenarlardan kırpabilir */
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

/* Scrollbar Tasarımı */
.gallery-thumbs::-webkit-scrollbar {
    width: 5px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

/* --- AMAZON TARZI BAŞLIK VE FİYAT --- */

/* Ürün Başlığı */
.product-title-large {
    font-size: 24px; /* Başlık biraz daha büyük */
    font-weight: 600; /* Kalın ama kaba değil */
    color: #0F1111; /* Amazon'un standart siyahı */
    margin-bottom: 5px; /* Altındaki fiyatla arasını az tutuyoruz */
    line-height: 1.3;
}

/* Fiyat Kutusu */
.amazon-price-wrapper {
    display: flex;
    align-items: baseline; /* Yazıları alt çizgiden hizalar */
    margin-bottom: 20px; /* Butonla arasına mesafe koyar */
}

/* Küçük "Fiyat:" yazısı (Opsiyonel, bazen sadece rakam yazmak daha iyidir) */
.price-label-small {
    font-size: 14px;
    color: #565959;
    margin-right: 5px;
}

/* Asıl Fiyat Rakamı */
.big-price-text {
    font-size: 28px; /* Kocaman fiyat */
    font-weight: 700; /* Kalın */
    color: #B12704; /* İkonik "İndirim/Fiyat" rengi (Kiremit Kırmızısı) */
    letter-spacing: -1px; /* Rakamları birbirine yaklaştırır, modern durur */
}

/* Para Birimi Simgesi (₺) */
.currency-symbol-small {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-left: 3px;
    position: relative;
    top: -8px; /* Simgeyi biraz yukarı kaldırır (Superscript gibi) */
}

/* --- MODERN SAYFALAMA TASARIMI --- */

.pagination {
    justify-content: center; /* Sayfalamayı tam ortalar */
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-item {
    margin: 0 3px; /* Kutucuklar arasına boşluk koyar */
}

.page-link {
    color: #333; /* Yazı rengi siyah/gri */
    border: 1px solid #ddd; /* İnce gri kenarlık */
    border-radius: 5px !important; /* Hafif yuvarlak köşeler */
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s;
}

    /* Üzerine Gelince */
    .page-link:hover {
        background-color: #f0f0f0;
        color: #000;
        text-decoration: none;
        border-color: #ccc;
        transform: translateY(-2px); /* Hafif yukarı zıplama efekti */
    }

/* Aktif Sayfa (Şu anki sayfa) */
.page-item.active .page-link {
    background-color: #B12704; /* Amazon kırmızısı (veya senin buton rengin) */
    border-color: #B12704;
    color: white;
    box-shadow: 0 4px 10px rgba(177, 39, 4, 0.3); /* Hafif gölge */
}

/* Ok İşaretleri (İleri/Geri) */
.page-link i {
    font-size: 14px;
}

/* Sayfalama içindeki sayıların rengini SİYAH olmaya zorla */
.page-link {
    color: #000 !important; /* !important ile rengi zorla siyah yapıyoruz */
}

/* Sadece aktif olan (kırmızı kutu) BEYAZ olsun */
.page-item.active .page-link {
    color: #fff !important;
}

/* Modern Ayırıcı Çizgi */
.ayirici-cizgi {
    border: 0; /* Eski tip kenarlığı kaldır */
    height: 1px; /* Çizgi kalınlığı */
    /* Soldan sağa kaybolan şık bir efekt (Siyah yerine kendi rengini yazabilirsin) */
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- ÜRÜN RESİMLERİ DÜZELTMESİ (TEMİZ VERSİYON) --- */

/* 1. DIŞ KUTU - Tüm kartı eşit yükseklikte tutar */
.themeioan_services {
    height: 100%;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* 2. RESİM ALANI - Sabit yükseklik, ortalanmış */
.blog-photo {
    width: 100%;
    height: 280px; /* Buradan yüksekliği ayarlayabilirsin */
    background-color: #f8f8f8;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    /* 3. LİNK - Resmi sarmalayan <a> etiketi */
    .blog-photo a {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    /* 4. RESİM - Ana kural, diğer tüm img kurallarını ezecek */
    .blog-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* cover = alanı tamamen doldurur, resmi kırpar */
        object-position: center;
        transition: transform 0.3s ease;
    }

/* HOVER EFEKTİ */
.themeioan_services:hover .blog-photo img {
    transform: scale(1.05);
}

/* 5. İÇERİK ALANI */
.blog-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}
/* --- ORTALI VE ANİMASYONLU MODAL --- */

/* 1. Arka Plan Perdesi (Tam Ekran) */
.popup-overlay {
    display: none; /* Başlangıçta gizli */
    position: fixed; /* Sayfa kaydırılsa bile ekranda sabit kalır */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Yarı saydam siyah */
    z-index: 10000; /* Her şeyin üstünde */
    justify-content: center; /* Yatay ortala */
    align-items: center; /* Dikey ortala */
    backdrop-filter: blur(4px); /* Arka planı bulanıklaştır (Modern Görünüm) */
}

/* 2. Düzenleme Kutusu */
.popup-box {
    background: #fff;
    width: 90%;
    max-width: 500px; /* Genişlik sınırı */
    padding: 30px;
    border-radius: 15px; /* Yuvarlak köşeler */
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    overflow-y: auto; /* İçerik taşarsa kaydırma çubuğu çıkar */
    max-height: 90vh; /* Ekran boyunu aşmasın */
    /* Animasyon Tanımı */
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. Animasyon (Zoom Efekti) */
@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Başlık */
.popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Form Elemanları */
.popup-group {
    margin-bottom: 15px;
}

    .popup-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #555;
    }

.popup-input, .popup-select, .popup-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: 0.3s;
    font-family: inherit;
}

    .popup-input:focus, .popup-select:focus, .popup-textarea:focus {
        border-color: #3498db;
        outline: none;
        box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
    }

.popup-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Dosya Yükleme Alanı */
.popup-file-wrapper {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background: #fafafa;
}

    .popup-file-wrapper:hover {
        border-color: #3498db;
        background: #f0f8ff;
    }

/* Butonlar */
.btn-popup-save {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
}

    .btn-popup-save:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
}

    .popup-close:hover {
        color: #e74c3c;
    }

/* --- YENİ EKLENEN STİLLER (GALERİ VE SEO) --- */

/* Yan Yana Inputlar İçin Düzen (Fiyat ve Stok gibi) */
.popup-row {
    display: flex;
    gap: 15px;
}

.popup-col {
    flex: 1;
}

/* Ana Resim Önizleme Alanı */
.main-image-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    display: block;
}

/* Galeri Alanı (Grid Yapısı) */
.gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Galeri Resim Kutusu */
.gallery-item {
    position: relative; /* Çarpı butonunu buna göre konumlandıracağız */
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Çarpı (Silme) Butonu */
.btn-delete-img {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(231, 76, 60, 0.9); /* Kırmızı */
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    transition: 0.2s;
}

    .btn-delete-img:hover {
        background: #c0392b;
        transform: scale(1.1);
    }

/* Dosya Yükleme Butonu (Küçük) */
.small-upload-btn {
    background: #ecf0f1;
    color: #333;
    padding: 8px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #bdc3c7;
    display: inline-block;
    margin-top: 5px;
}

    .small-upload-btn:hover {
        background: #bdc3c7;
    }


/* --- ANASAYFA KATEGORİ KUTULARI (404 TARZI) --- */
.category-section-wrapper {
    background-color: #f9f9f9; /* Hafif gri arka plan */
    padding: 60px 0;
    margin-top: 30px;
}

.cat-grid-index {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Mobilde alt alta geçsin */
    gap: 20px;
    margin-top: 30px;
}

.cat-box-index {
    background: #fff;
    width: 170px; /* Genişlik */
    height: 150px; /* Yükseklik */
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important; /* Alt çizgiyi kaldır */
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

    /* Üzerine gelince */
    .cat-box-index:hover {
        border-color: #B12704; /* Sitenin kırmızısı */
        transform: translateY(-5px); /* Yukarı zıpla */
        box-shadow: 0 10px 20px rgba(177, 39, 4, 0.15); /* Kırmızı gölge */
        color: #B12704;
    }

    .cat-box-index i {
        font-size: 36px; /* İkon boyutu */
        color: #B12704;
        margin-bottom: 15px;
        transition: 0.3s;
    }

    .cat-box-index span {
        font-weight: 700;
        font-size: 14px;
        text-align: center;
        line-height: 1.2;
        padding: 0 10px;
    }
