.swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.color-swatch-link {
    display: block;
    border: 2px solid transparent;
    padding: 2px;
    border-radius: 50%;
}
.color-swatch-link.active-swatch {
    border-color: #000; /* Seçili olan rengin etrafına siyah halka */
}

/* Ana Buton Kapsayıcısı */
.size-option {
    display: flex !important;
    align-items: center !important; /* Resim ve metni dikeyde aynı hizaya getirir */
    gap: 15px !important;         /* Resim ile metin arasındaki boşluk */
    padding: 10px !important;
    width: 100%;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    text-align: left;
}

/* 50x70px Özel Resim Alanı */
.variant-mini-thumb {
    width: 50px !important;
    height: 70px !important;
    object-fit: cover;         /* Resmin oranını bozmadan kutuyu doldurur */
    border-radius: 4px;        /* Hafif yuvarlatılmış köşeler */
    border: 1px solid #f0f0f0;
    flex-shrink: 0;            /* Resmin ezilmesini engeller */
}

/* Bilgi Kolonu (Ölçü ve Stok) */
.variant-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* İçindeki metinleri dikeyde ortalar */
    flex-grow: 1;              /* Ortadaki alanı doldurur */
}

/* Sağdaki Fiyat Alanı */
.variant-price-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Resim ve metni bir arada tutan sol grup */
.selected-variant-info {
    display: flex;
    align-items: center; /* Resim ve metni kendi içinde dikeyde ortalar */
    gap: 15px;           /* Resim ile yazı arasındaki boşluk */
}

/* Akordiyonun içindeki küçük resim */
#accordion-variant-thumb {
    width: 30px;         /* Genişlik */
    height: 42px;        /* Yükseklik (Halı formatı için ideal) */
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #eee;
    flex-shrink: 0;      /* Resmin ezilmesini önler */
    display: block;
}

/* Seçili ölçü metni için ek ayar (zaten ortalı ama garantiye alalım) */
#selected-size-display {
    font-size: 15px;
    font-weight: 500;
    color: #000;
}








/* --- Related Title Masaüstü Ayarları --- */
.related-title {
    font-size: 28px !important; /* Masaüstünde tok bir başlık */
    font-weight: 700 !important;
    color: #222 !important;
    text-align: left; /* Genelde sola yaslı daha şık durur */
    margin-top: 100px !important;    /* Üstteki içerikten uzaklık */
    margin-bottom: 15px !important; /* Alttaki slider'a olan yakınlık */
    letter-spacing: -0.5px !important;
}

/* --- Mobilde Daha Kibar ve Dar Boşluklu --- */
@media (max-width: 768px) {
    .related-title {
        font-size: 20px !important; /* Mobilde çok büyük durmaması için küçülttük */
        margin-top: 20px !important;    /* Mobilde üst boşluğu azalttık */
        margin-bottom: 5px !important; /* Slider ile arayı daralttık */
        padding-left: 10px; /* Kenardan hafif boşluk (isteğe bağlı) */
    }
}









/* Ana Konteynır - Arka plan ve border kaldırıldı */
#product-group-wrapper {
    margin: 20px 0 !important;
    padding: 0;
}

/* Üst Bilgi Satırı - Sola ve Sağa yaslama */
.swatch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vald-farg-text {
    margin: 0;
    font-size: 14px;
}

.vald-farg-text .label {
    font-weight: bold;
    color: #000;
}

.vald-farg-text .value {
    color: #666;
    margin-left: 4px;
}

.total-count-text {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* Renk Kutucukları Listesi */
.swatch-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Kutucuk Tasarımı - Karemsi yapı */
/* Kutucuk Tasarımı */
.color-swatch-link {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    position: relative;
    /* transition: transform ile sadece büyümeyi, border ile renk geçişini yumuşatırız */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    z-index: 1;
}

/* Hover Durumu - Kutunun Tamamı Büyür */
.color-swatch-link:hover {
    border-color: #333; /* Çerçeve biraz koyulaşır */
    transform: scale(1.18); /* Kutuyu %18 oranında büyütür */
    z-index: 10; /* Büyüyen kutu diğerlerinin üstüne çıksın diye */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Hafif gölge ile derinlik katar */
}

/* Aktif Swatch (Seçili Olan) zaten büyük olduğu için hoverda ekstra büyümesin dersen: */
.color-swatch-link.active-swatch:hover {
    transform: scale(1.1); /* Zaten scale 1.1 yapmıştık, sabit kalsın */
}








/* Masaüstü ayarların (Aynı kalabilir, sadece genel kapsayıcıyı kontrol et) */
.summary.entry-summary { 
    position: relative; 
}

.google-mini-trust {
    position: absolute;
    right: 20px;        
    top: 100px;      
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 99;
    pointer-events: none;
}

.g-stars {
    color: #FBBC05;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1;
}

.g-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
}

.g-brand {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* MOBİL DÜZENLEME (768px altı) */
@media (max-width: 768px) {
    .google-mini-trust {
        position: absolute; /* Statik yapıyı bozup tekrar absolute yaptık */
        top: 100px;          /* Masaüstündeki 120px değerini sıfırla */
        bottom: 15px;       /* Fiyatın hizasına göre burayı 10px-20px arası oynatabilirsin */
        right: 20px;           
        align-items: flex-end;
        text-align: right;
    }

    .g-stars {
        font-size: 15px;    /* Mobilde yıldızları küçülttük */
        letter-spacing: 0.5px;
    }

    .g-text {
        font-size: 11px;     /* Mobilde metni küçülttük */
        margin-top: 2px;
    }

    .g-brand {
        font-size: 11px;
    }

    /* Eğer fiyat divinin içinde kalsın istiyorsan, 
       bulunduğu yerdeki boşlukları etkilememesi için */
    .product-details {
        position: relative;
        padding-right: 80px; /* Yıldızlara yer açmak için başlığı/fiyatı biraz sola iter */
    }
}
























/* Ana Satır Hizalaması */
.product-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* Tooltip Kapsayıcı */
.custom-tooltip-container {
    position: relative;
    display: inline-flex;
}

/* Tıklanabilir Span (Etrafa çerçeve yapmaz) */
.tooltip-toggle-span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    /* İhtiyaca göre biraz yukarı taşımak için: */
    position: relative;
    top: 0px; 
}

.tooltip-label-text {
    font-size: 13px;
    color: #000;
    text-decoration: underline;
}

/* Açılan Bilgi Kutusu */
.tooltip-popup-box {
    display: none; /* JS ile açılacak */
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tooltip-body {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.tooltip-body a {
    color: #007cba;
    text-decoration: underline;
    font-weight: bold;
}

/* Kapatma Butonu */
.tooltip-close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBİL DÜZENLEME (Ekrana sığması için) */
@media (max-width: 768px) {
    .tooltip-popup-box {
        /* Kutuyu sola çekmek için absolute pozisyonunu değiştiriyoruz */
        left: -40px;       /* Biraz daha sola kaydırır */
        width: 70vw;       /* Ekranın %85'i kadar genişlik (taşmayı engeller) */
        max-width: 300px;  /* Çok büyük ekranlarda devleşmesin */
        position: absolute;
        bottom: 40px;      /* Butondan biraz daha yukarıda dursun */
    }

 }






/* ==================================================== */
/* 🧱 TEMEL YERLEŞİM (PRODUCT CONTENT & CONTAINER) 🧱 */
/* ==================================================== */

.container {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 20px;
}

.product-content {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    align-items: flex-start;
}





/* ---------------------------------------------------- */
/* 🖼️ SOL ALAN: ÜRÜN GÖRSELİ (GALLERY) - STATİK */
/* ---------------------------------------------------- */
.product-gallery {
    flex: 0 0 65%;
    max-width: 65%;
    
    /* 🔥 STATİK YAPILDI: Sayfa ile birlikte kaybolacak */
    position: static; 
    height: auto;
    top: auto;
    
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* İki Ana Görsel ve Tek Görsel Stilleri */
.main-display-wrapper {
    display: flex;
    gap: 15px;
}

.main-image-column {
    flex: 1;
    cursor: zoom-in;
}

.main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid #eee;
}

/* Yatay Galeri Listesi (Thumbnails) */
.gallery-thumbnail-list {
    display: flex;
    flex-direction: row; 
    gap: 10px; /* Görseller arası boşluk */
    
    /* 🚨 KRİTİK DÜZELTME 1: Sığmayan öğeleri alt satıra at. */
    flex-wrap: wrap; 
    
    /* Eğer galerinin genişliği bir üst element tarafından kısıtlanıyorsa, bunu kaldırabilirsin */
    /* width: 100%; */
    
    /* Yatay kaydırma ayarlarını çoklu satır düzeni için iptal ediyoruz */
    overflow-x: visible; /* Gizlemesin */
    padding-bottom: 0; /* Artık alt satıra atladığı için padding gereksiz */
    
}

.gallery-thumbnail-list .thumbnail-item {
    width: 185px;
    height: 250px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid #eee;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
    margin-bottom: 0px; 
}

.gallery-thumbnail-list .thumbnail-item.selected, 
.gallery-thumbnail-list .thumbnail-item:hover {
    border-color: #333;
}


/* ---------------------------------------------------- */
/* 📝 SAĞ ALAN: ÜRÜN DETAYLARI (DETAILS) - STICKY */
/* ---------------------------------------------------- */
.product-details {
    flex: 0 0 35%;
    max-width: 35%;
    display: flex;
    flex-direction: column;
    padding-left: 30px;
    padding-right: 20px;

    /* 🔥 STICKY GÜNCELLEMESİ 🔥 */
    position: -webkit-sticky; /* Safari desteği için */
    position: sticky !important;
    top: 20px !important;
    
    /* Sticky'nin çalışması için elemanın esnememesi, içeriği kadar olması lazım */
    height: fit-content !important;
    align-self: flex-start !important; 
    
    /* Eğer bir z-index çakışması varsa diye */
    z-index: 10;
}

/* 1. ÜRÜN İSMİ */
#product-main-name-desktop {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 25px; /* Tekrar silindi */
    margin-bottom: 5px;
    line-height: 1.2;
}


/* 1. KAPSAYICIYI FLEX YAP (Bu şart) */
#product-price {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 5px !important;
}

/* 2. İNDİRİMLİ FİYAT (Kırmızı ve En Başta) */
#product-price .sale-price {
    order: 1 !important; /* En küçük numara = En baş */
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #d73636 !important;
}

/* 3. İNDİRİM OLMAYAN NORMAL FİYAT (Siyah ve En Başta) */
#product-price .regular-price {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

/* 4. ESKİ FİYAT (Gri ve İndirimli Fiyatın Sağında) */
#product-price .old-price {
    order: 2 !important; /* 1'den büyük olduğu için sağa geçer */
    font-size: 1.4rem !important;
    color: #999 !important;
    font-weight: 600 !important;
    text-decoration: line-through !important;
    margin-left: 5px !important; /* Hafif bir boşluk */
}

#product-price .sale-price, 
#product-price .regular-price {
    /* Font weight 600, sistem fontlarında 'Semi-Bold' durur, tam kıvamındadır */
    font-weight: 600 !important;
    /* Harfleri çok hafif yaklaştırarak (sıkıştırarak) o premium havayı veriyoruz */
    letter-spacing: -0.8px !important;
}

/* Sayfa açıldığında fiyat alanı tamamen gizli kalsın */
#product-price.not-loaded {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* JS hazır olduğunda yumuşak bir geçişle görünsün */
#product-price.loaded {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease-in-out;
}

.product-price-display {
    display: flex !important;
    flex-direction: column !important; /* Üst üste binmelerini sağlar */
    align-items: flex-start !important; /* Sola yaslar */
    min-height: 50px; /* Zıplamayı önlemek için alan rezerve et */
}

/* INKL. MOMS YAZISI */
.tax-info-static {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-top: 3px; /* Fiyat ile arasında 3px boşluk */
    text-align: left; /* Sticky alanda sola hizalama */
}

/* Genel Stok Bilgisi Kapsayıcısı (Boşluk ve Hizalama) */
.stock-display-info {
    display: flex;
    align-items: center; 
    gap: 10px; /* Boşluğu biraz artırdık */
    margin-top: 15px; 
    margin-bottom: 0px; 
    font-size: 1.1rem; /* Metin boyutunu da hafifçe artırabiliriz */
}

/* İKON STİLİ (fa-check ve fa-xmark ikonlarını hedefle) */
.stock-display-info .fa-solid.fa-check,
.stock-display-info .fa-solid.fa-xmark {
    /* 1. Sembol ve Arka Plan Rengi */
    color: white !important; /* Sembolü beyaz yap */
    background-color: currentColor !important; /* Arka planı ana metin rengiyle doldur */
    
    /* 2. Daire Şekli ve Dış Boyut (Force Boyutlandırma) */
    border-radius: 50%; 
    
    /* Dairenin dış boyutunu ZORLA 3.5rem yapıyoruz */
    width: 3.5rem !important; 
    height: 3.5rem !important;
    
    /* Tik/çarpıyı daire içinde ortala */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* 3. İçindeki Sembolün Boyutunu Büyütme */
    font-size: 1.8rem !important; /* İçindeki tik/çarpıyı net görecek kadar büyüt */
    font-weight: 900 !important; 
}







/* 4. AKSİYON BUTONLARI */
.action-buttons {
    display: flex;
    gap: 0px;
    margin-top: 30px;
    margin-bottom: 10px;
}
.add-to-cart-btn {
    flex-grow: 1;
    background-color: #000;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.add-to-cart-btn:hover {
    background-color: #444;
}
.add-to-cart-btn i {
    margin-right: 10px;
}



/* ---------------------------------------------------- */
/* 📦 EKSTRA BÖLÜMLER (AKORDİYON, PROMISE LİSTESİ) */
/* ---------------------------------------------------- */

.product-accordion-wrapper {
    margin-top: 30px;
}
.product-accordion-item {
    border-bottom: 1px solid #eee;
}
.product-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    cursor: pointer;
}
.product-accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.product-accordion-header i {
    transition: transform 0.3s ease;
}
.product-accordion-item.active .product-accordion-header i {
    transform: rotate(180deg);
}

/* Akordiyon İçeriği (JS tarafından max-height ve padding ayarlanmalı) */
.product-accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.product-accordion-item.active .product-accordion-content {
    /* JS ile açıldığında bu sınıflar eklenir */
    max-height: 3000px; /* Veya içeriğe yetecek büyük bir değer */
    padding-bottom: 20px;
}
.product-accordion-content p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}
.product-accordion-content ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.95rem;
    color: #555;
    margin-top: 10px;
}

/* Küçük Avantajlar Listesi */
.small-promise-list {
    margin-top: 5px;
    padding-top: 20px;
}
.small-promise-list p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}
.small-promise-list i {
    color: #008000;
    margin-right: 8px;
}

/* 2. AKORDİYON BAŞLIKLARINI TEMADAN KURTARMA */
.product-page .product-accordion-header {
    background-color: transparent !important;
    color: #333 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Akordiyon Üstüne Gelince Renk Değişmesini Engelle */
.product-page .product-accordion-header:hover,
.product-page .product-accordion-header:focus,
.product-page .product-accordion-header:active {
    background-color: transparent !important;
    color: #000 !important; /* Veya senin istediğin hover rengi */
    outline: none !important;

}


/* ---------------------------------------------------- */
/* BREADCRUMB
/* ---------------------------------------------------- */
/* --- Ürün Sayfası Özel Breadcrumb Stilleri --- */

.custom-cat-breadcrumb-unique {
    padding: 15px 0;
    margin-bottom: 50px;
    margin-top: 140px;
    font-size: 14px;
    

}

.custom-cat-breadcrumb-unique .breadcrumb-inner-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Mobilde taşma yapmasın diye */
    gap: 10px;
}

/* Geri Dön Butonu */
.custom-cat-breadcrumb-unique .breadcrumb-back-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.custom-cat-breadcrumb-unique .breadcrumb-back-trigger:hover {
    color: #000;
}

.custom-cat-breadcrumb-unique .breadcrumb-back-trigger i {
    font-size: 12px;
}

/* Ayırıcı Çubuk (|) */
.custom-cat-breadcrumb-unique .breadcrumb-divider {
    color: #ccc;
    font-weight: 300;
    margin: 0 2px;
}

/* Anasayfa Linki */
.custom-cat-breadcrumb-unique .breadcrumb-home-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-cat-breadcrumb-unique .breadcrumb-home-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Sağ Ok İkonu (>) */
.custom-cat-breadcrumb-unique .separator {
    color: #999;
    font-size: 10px;
}

/* Mevcut Ürün Adı (Pasif) */
.custom-cat-breadcrumb-unique .current-item {
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* Çok uzun ürün isimleri tasarımı bozmasın */
}

/* Mobil Düzenleme */
@media (max-width: 768px) {
    .custom-cat-breadcrumb-unique {
        display: flex !important; /* Gizlemeyi kaldırdık, flex yaptık */
        padding: 12px 15px;
        font-size: 12px;
        margin-bottom: 10px;
    margin-top: 10px;
        
        overflow-x: auto; /* Yana kaydırma özelliği */
        white-space: nowrap; /* Alt satıra geçmeyi engeller */
        gap: 8px; /* Linkler arasındaki mesafe */
        scrollbar-width: none; /* Firefox için scrollbar gizle */
        -ms-overflow-style: none; /* IE/Edge için scrollbar gizle */
        background-color: #f9f9f9; /* Hafif bir zemin rengi (isteğe bağlı) */
        border-bottom: 1px solid #eee;
    }

    /* Webkit (Chrome, Safari) için scrollbar gizle */
    .custom-cat-breadcrumb-unique::-webkit-scrollbar {
        display: none;
    }

    .custom-cat-breadcrumb-unique .separator {
        display: inline-block !important; /* Ayraçlar mobilde de görünsün */
        opacity: 0.4;
        font-size: 10px;
    }

    .custom-cat-breadcrumb-unique a {
        color: #666;
        text-decoration: none;
    }

    /* Son öğeyi (ürünün kendisini) mobilde gizlemek alanı ferahlatır */
    .custom-cat-breadcrumb-unique span:last-child,
    .custom-cat-breadcrumb-unique a:last-child {
        /* display: none; */ /* Eğer ürün adı da görünsün dersen burayı açma */
    }
}

/* ---------------------------------------------------- */
/* 📐 METREKARE HESAPLAYICI (HALIM2) */
/* ---------------------------------------------------- */
/* M2 Hesaplayıcı Premium Tasarım */
.m2-calculator-box {
    background: #ffffff;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin: 0px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    font-family: inherit;
}

/* Kutunun aktif/seçili görünmesi için özel sınıf */
.premium-input.is-active {
    border-color: #000 !important; /* Veya temanın vurgu rengi */
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    outline: none;
}

.calc-title { 
    margin: 0 0 20px 0; 
    font-size: 18px; 
    font-weight: 600; 
    color: #1a1a1a; 
}

.form-label { 
    display: block; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #757575; 
    margin-bottom: 12px; 
}

.form-options-grid { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 24px; 
}

.form-option { 
    flex: 1; 
    cursor: pointer; 
}

.form-option input { 
    display: none; 
}

.option-content { 
    border: 1.5px solid #eaeaea; 
    padding: 12px 8px; 
    text-align: center; 
    border-radius: 8px; 
    background: #fff; 
    transition: all 0.2s ease; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 6px; 
}

.shape-icon { 
    width: 22px; 
    height: 22px; 
    fill: none; 
    stroke: #999; 
    stroke-width: 1.5; 
    transition: all 0.2s; 
}

/* Seçili Form Durumu */
.form-option input:checked + .option-content { 
    border-color: #000; 
    background: #fafafa; 
}

.form-option input:checked + .option-content .shape-icon { 
    stroke: #000; 
}

.form-option input:checked + .option-content span { 
    color: #000; 
}

.option-content span { 
    font-size: 10px; 
    font-weight: 600; 
    color: #888; 
}

.input-grid { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.premium-input { 
    width: 100%; 
    height: 44px; 
    border: 1.5px solid #eaeaea; 
    border-radius: 8px; 
    padding: 0 12px; 
    font-size: 14px; 
    outline: none; 
    transition: all 0.2s; 
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    cursor: text;
}

.premium-input:focus { 
    border-color: #000; 
}

#m2-calc-btn { 
    width: 100%; 
    background: #000; 
    color: #fff; 
    height: 48px; 
    border: none; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

#m2-calc-btn:hover { 
    background: #333; 
}

.old-price { 
    text-decoration: line-through; 
    color: #999; 
    margin-right: 8px; 
    font-size: 0.9em; 
}

.sale-price { 
    color: #e02020; 
    font-weight: bold; 
}

#m2-summary { 
    display: none; 
    margin-top: 20px; 
    padding: 15px; 
    background: #fdfdfd; 
    border: 1px solid #eee; 
    border-left: 4px solid #000; 
    border-radius: 4px; 
}

#m2-error {
    font-size: 14px; /* Yazı boyutu büyütüldü */
    line-height: 1.5;
    font-weight: 500;
    color: #b00020;
    background-color: #fdf2f2; /* Hafif kırmızımsı arka plan */
    border: 1px solid #f9d5d5;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    display: none; /* Başlangıçta gizli, metin girince açılır */
    animation: slideDown 0.3s ease-out;
}

/* Boş değilse göster */
#m2-error:not(:empty) {
    display: block;
}

/* Açılış animasyonu */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* ---------------------------------------------------- */
/* VARVASYON CEKMECE STILLERI) */
/* ---------------------------------------------------- */

/* Ana Varyant Seçenekleri Kapsayıcısı */
.size-options-modal {
    padding: 15px 5px; /* Üst-alt ve yanlardan hafif boşluk */
    display: grid;
    gap: 12px; /* Butonların birbirine olan uzaklığı arttı */
}

/* Her Bir Varyant Düğmesi - Flexbox Kapsayıcısı */
.size-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    /* Padding'i artırıyoruz: Üst-Alt 15px, Sağ-Sol 18px */
    padding: 15px 18px; 
    border: 1px solid #eee;
    border-radius: 8px; /* Köşeleri biraz daha yumuşattık */
    background-color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* Çok hafif bir derinlik */
}

/* Hover Efekti */
.size-option:hover {
    background-color: #fcfcfc;
    border-color: #b11f3d; /* Hover olunca senin vişne çürüğü rengine dönsün */
    transform: translateY(-1px); /* Hafif yukarı kalkma efekti */
}

/* 1. Resim Kolonu ve Resmi */
.variant-image-col {
    flex-shrink: 0; 
    margin-right: 15px;
}

.variant-thumb {
    width: 40px; /* Küçük resim boyutu */
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* 2. Metin Bilgi Kolonu (Ölçü ve Stok) */
.variant-info-col {
    flex-grow: 1; /* Ortadaki bu sütunun olabildiğince yer kaplamasını sağla */
    display: flex;
    flex-direction: column; /* Ölçü ve stok bilgisini alt alta sırala */
    text-align: left;
}

.size-text {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.stock-info-modal {
    color: #28a745; /* Daha canlı bir yeşil */
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-top: 2px;
}

.size-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

/* Varyant Çekmecesi Fiyat Stilleri */
.variant-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.old-price-modal {
    text-decoration: line-through;
    font-weight: 600;
    color: #999;
    font-size: 1.0rem;
}

.current-price-modal {
    font-weight: 600;
    color: #b11f3d; /* Senin vişne çürüğü tonun */
    font-size: 1rem;
}

/* Modal Başlık Alanı Konteyneri */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Yanlardan 20px içeri aldık, üst-alt 10px yaptık */
    padding: 10px 20px; 
    margin-top: 10px;
    margin-bottom: 20px;
   
}

/* "Välj Storlek" Başlığı */
.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    /* text-transform: uppercase; SATIRINI SİLDİK veya NONE YAPTIK */
    text-transform: none; 
    letter-spacing: 0px; /* Büyük harf olmayınca geniş harf aralığına gerek kalmaz */
}

/* X Kapatma Butonu */
.close-btn#close-variant-modal {
    background: none;
    border: none;
    font-size: 24px; /* Biraz daha belirgin yaptık */
    color: #000;
    cursor: pointer;
    /* Butonun kendi iç paddingi kalsın ama header'dan gelen paddingle dengelenecek */
    padding: 5px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* X Butonuna basıldığında veya üzerine gelindiğinde ufak bir efekt */
.close-btn#close-variant-modal:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

/* ======================================================= */
/* Varyasyon Stok Durumu Stilleri */
/* ======================================================= */

/* Stokta OLAN (Varsayılan veya özel yeşil) */
.stock-info-modal {
    color: green;      /* Stokta varsa yeşil */
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-top: 2px;
}

.stock-info-modal.out-of-stock {
    color: #cc0000 !important; /* !important ile rengin baskın gelmesini sağlıyoruz */
}

/* ==================================================== */
/* 1. GENEL / MASAÜSTÜ AYARLARI (Temiz Liste)          */
/* ==================================================== */

.product-page .add-to-cart-btn {
    background-color: #222 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Ana Buton Kapsayıcısı */
.size-option {
    display: flex !important;
    align-items: center !important; /* Resim ve metni dikeyde aynı hizaya getirir */
    gap: 15px !important;         /* Resim ile metin arasındaki boşluk */
    padding: 10px !important;
    width: 100%;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    text-align: left;
}

/* 50x70px Özel Resim Alanı */
.variant-mini-thumb {
    width: 50px !important;
    height: 70px !important;
    object-fit: cover;         /* Resmin oranını bozmadan kutuyu doldurur */
    border-radius: 4px;        /* Hafif yuvarlatılmış köşeler */
    border: 1px solid #f0f0f0;
    flex-shrink: 0;            /* Resmin ezilmesini engeller */
}

/* Bilgi Kolonu (Ölçü ve Stok) */
.variant-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* İçindeki metinleri dikeyde ortalar */
    flex-grow: 1;              /* Ortadaki alanı doldurur */
}

/* Sağdaki Fiyat Alanı */
.variant-price-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Resim ve metni bir arada tutan sol grup */
.selected-variant-info {
    display: flex;
    align-items: center; /* Resim ve metni kendi içinde dikeyde ortalar */
    gap: 15px;           /* Resim ile yazı arasındaki boşluk */
}

/* Akordiyonun içindeki küçük resim */
#accordion-variant-thumb {
    width: 30px;         /* Genişlik */
    height: 42px;        /* Yükseklik (Halı formatı için ideal) */
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #eee;
    flex-shrink: 0;      /* Resmin ezilmesini önler */
    display: block;
}

/* Seçili ölçü metni için ek ayar (zaten ortalı ama garantiye alalım) */
#selected-size-display {
    font-size: 15px;
    font-weight: 500;
    color: #000;
}



/* VARYASYON BUTONU (RAM HOVER) */
.variant-selector {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    border: 1px solid #000 !important;
    padding: 5px 20px;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.variant-selector:hover {
    box-shadow: 0 0 0 1px #000000 !important;
}

/* ==================================================== */
/* 2. LIGHTBOX & TOOLTIP (Sadece Lightbox İçinde Geçerli) */
/* ==================================================== */

/* Sadece bu ID altındaki overlay'i etkile */
#lightbox-modal-overlay.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Tüm alt elemanları bu kapsamda (scope) tutuyoruz */
.custom-lb-scope .lightbox-container {
    position: relative;
    width: 95%;
    height: 90%;
    display: flex;
    flex-direction: column;
}



/* KRİTİK DÜZELTME: Sadece Lightbox içindeki slide'ları etkile */
.custom-lb-scope .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start;
    height: auto;
    background: transparent !important; /* Slider'daki beyaz arka planı iptal eder */
    border: none !important; /* Slider'daki çerçeveyi iptal eder */
}

/* OKLARI İZOLE ET: Related slider'ın oklarını etkilememesi için */
.custom-lb-scope .swiper-button-next,
.custom-lb-scope .swiper-button-prev {
    background-color: rgba(230, 230, 230, 0.8) !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    color: #000000 !important;
}

.custom-lb-scope .swiper-button-next:after,
.custom-lb-scope .swiper-button-prev:after {
    font-size: 18px !important;
}

/* ZOOM KONTEYNERI - Sadece Lightbox */
.custom-lb-scope .swiper-zoom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: grab;
}

/* RESİM AYARLARI */
.custom-lb-scope .swiper-slide img {
    width: auto !important;
    height: auto !important;
    max-width: 90% !important; 
    max-height: 85vh !important;
    object-fit: contain !important;
}


/* --- LIGHTBOX İÇERİK YAPISI --- */
#lightbox-modal-overlay .lightbox-content {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* --- SIDEBAR (Sol Küçük Resim Listesi) --- */
#lightbox-modal-overlay .lightbox-sidebar {
    width: 100px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto;
    z-index: 10;
    border-right: 1px solid #eee; /* Hafif bir ayraç */
}

#lightbox-modal-overlay #lightbox-thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#lightbox-modal-overlay .lightbox-thumbnail-item {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#lightbox-modal-overlay .lightbox-thumb-item-container.selected .lightbox-thumbnail-item {
    border-color: #000;
    opacity: 1;
}

/* --- ANA ODAK ALANI --- */
#lightbox-modal-overlay .lightbox-main {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#lightbox-modal-overlay .lightbox-swiper-container {
    width: 100%;
    height: 100%;
}

/* --- 5. KAPATMA BUTONU --- */
.lightbox-close-btn {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: #f0f0f0 !important;
    color: #000 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 2000000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border: 1px solid #ddd !important;
}

/* --- MOBİL VE TABLET İÇİN DÜZENLEME --- */
@media (max-width: 768px) {
    #lightbox-modal-overlay .lightbox-content {
        flex-direction: column; /* Mobilde sidebar üste veya alta geçsin dersen */
    }
    
    #lightbox-modal-overlay .lightbox-sidebar {
        width: 100%;
        height: 80px; /* Mobilde yatay bir şerit yapalım */
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #eee;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #lightbox-modal-overlay #lightbox-thumbnail-list {
        flex-direction: row;
    }

    #lightbox-modal-overlay .lightbox-thumbnail-item {
        width: 50px;
        height: 50px;
    }
}


/* ==================================================== */
/* 3. 📱 MOBİL UYUM (TÜM MOBİL KODLAR BURADA TOPLANDI) */
/* ==================================================== */
@media (max-width: 768px) {
    
    .container {
        padding: 0 !important;
    }

    .product-content {
        flex-direction: column;
        gap: 0;
    }
    
    /* 1. Galeriyi tam genişlikte ve statik yap */
    .product-gallery {
        order: 1;
        width: 100%;
        max-width: 100%;
        position: static;
        z-index: 5;
    }


    
    /* 2. Detay Alanı Düzeltmeleri */
    .product-details {
        order: 2;
        padding: 20px !important; 
        width: 100%;
        max-width: 100%;
        background-color: #ffffff;
        
        /* 🔥 MOBİLDE STICKY'Yİ İPTAL ETMEK VE SIFIRLAMAK KRİTİK 🔥 */
        position: static; 
        top: auto;
        
        /* 🔥 KRİTİK DÜZELTME: Hizalamayı sola geri al 🔥 */
        text-align: left !important; 
    }

    
    .action-buttons {
        margin: 20px 0 !important; /* Otomatik marjin yerine sıfırlama */
        max-width: 100%;
        justify-content: space-between; /* Butonları uçlara hizala */
        width: 100%;
    }
    .add-to-cart-btn {
        width: 75%;
    }
    .wishlist-btn {
        width: 25%;
    }
    
    .size-selector-wrapper {
        margin: 15px 0 !important;
        max-width: 100%;
        display: flex !important;
        justify-content: space-between !important;
    }
}  

@media (max-width: 768px) {
    /* Masaüstünden gelen 2 sütunlu yapıyı mobilde tek sütuna zorla */
    .main-display-wrapper {
        display: flex !important;
        flex-direction: row !important; /* Resimler yan yana (kaydırılabilir) */
        width: 100vw !important;        /* Ekranın tam genişliği */
        margin-left: calc(-50vw + 50%); /* Kapsayıcı boşluklarını sıfırla */
        margin-right: calc(-50vw + 50%);
        padding: 0 !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
    }

    .main-image-column {
        flex: 0 0 100% !important; /* Her bir resim sütunu ekranın %100'ü olsun */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        scroll-snap-align: start;
    }

    .main-image-column img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain; /* Resmin kesilmesini engeller, tam sığdırır */
    }
     .gallery-thumbnail-list {
        display: none; /* Mobilde thumbnail listesini gizle */
    }
    
        #product-main-name-desktop {
        font-size: 1.2rem !important; /* İsmi biraz küçülttük (Masaüstünde 1.4'tü) */
        font-weight: 700;
        text-align: left !important; /* Sağa almak istersen 'right', ortalamak için 'center' */
        margin-top: 5px !important; /* Üstteki galeriyle arasındaki boşluk */
        margin-bottom: 0px !important; /* Fiyatla arasındaki boşluk */
        padding-left: 0px !important; /* Soldan biraz boşluk vermek istersen artır */
        line-height: 1.3;
    }

    /* 2. FİYAT ALANI (MOBİL) */
    .product-price-display {
        margin-top: 0px !important;
        margin-bottom: 10px !important; /* Altındaki varyasyon butonuyla boşluk */
        display: flex;
        flex-direction: column; /* Fiyat ve 'Inkl. moms' alt alta gelsin */
        align-items: flex-start !important; /* Sola hizalar, sağ için 'flex-end', orta için 'center' */
    }

    #product-price {
        font-size: 1.2rem !important; /* Fiyatı biraz daha kibarlaştırdık */
        font-weight: 600;
        color: #000;
        text-align: left !important;
    }

    /* 3. VERGİ BİLGİSİ (Inkl. moms) */
    .tax-info-static {
        font-size: 0.85rem !important;
        margin-top: 0px !important;
        text-align: left !important;
    }
}
    
    @media (max-width: 1024px) {
    .lightbox-sidebar {
        display: none !important; /* Mobilde sidebarı gizle */
    }

    .lightbox-container {
        width: 100%;
        height: 100%;
    }

    .lightbox-main {
        width: 100%;
    }
    

    .custom-lb-scope .swiper-slide img {
        max-width: 100%;
        max-height: 75vh;
    }
    
    
    .custom-slider-outer-container .is-in-slider img {
    width: 100% !important;
    aspect-ratio: 3/4; /* Halı formatı */
    object-fit: cover !important;
   
    
}

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
        /* Mobilde oklar çok kenardaysa: */
        margin: 0 -5px; 
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px !important;
    }
    
    /* Zoom sırasında resmin pürüzsüz geçiş yapmasını sağlar */
.swiper-zoom-container img {
    transition-timing-function: ease-out;
    will-change: transform;
}

/* Mobilde zoom yapıldığında resmin kalitesini (mümkünse) koru */
.swiper-slide-zoomed img {
    cursor: grab;
}

/* Aktif olmayan noktalar */
.main-swiper-dots .swiper-pagination-bullet {
    background: #ccc !important; /* Pasif renk */
    opacity: 0.6;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

/* Aktif olan nokta */
.main-swiper-dots .swiper-pagination-bullet-active {
    background: #000 !important; /* Aktif renk - Burayı istediğin renkle değiştir */
    width: 20px; /* Aktif noktayı biraz uzun yaparak modern bir hava katabilirsin */
    border-radius: 4px;
    opacity: 1;
}

/* Noktaların konumu ve gölgesi (isteğe bağlı) */
.main-swiper-dots.swiper-pagination-bullets-dynamic {
    bottom: 20px !important; /* Görselin biraz daha üzerine taşıyalım */
    background: rgba(255, 255, 255, 0.4); /* Hafif transparan bir arka plan */
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px); /* Arka planı bulanıklaştırır */
}

}



/* 1. KARTLARIN ÜZERİNDEKİ KALPLER (Hem kategori hem slider için) */
.wishlist-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    /* Kartın sağ üstüne yapışan stil */
}

/* 2. ÜRÜN SAYFASINDAKİ ANA KALP (Sepete ekle yanındaki) */
.ana-urun-favori-buton {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    /* Butonun yanında efendi gibi duran stil */
}

/* ÜRÜN SAYFASI ANA FAVORİ BUTONU (Sepete Ekle Yanındaki) */
.ana-urun-favori-buton {
    position: relative !important; /* Kartların aksine yerinde sabit durur */
    top: auto !important;
    right: auto !important;
    margin-left: 15px !important; /* Butonla arasındaki boşluk */
    
    width: 55px !important; 
    height: 55px !important; 
    display: inline-flex !important; /* Yan yana durmaları için inline-flex */
    justify-content: center !important; 
    align-items: center !important; 
    
    background-color: #ffffff !important;
    border: 1px solid #000 !important; /* Varsayılan siyah ince çerçeve */
    border-radius: 1px !important; /* Hafif kavis istersen arttırabilirsin */
    cursor: pointer !important;
    padding: 0 !important;
    vertical-align: middle;

    /* Geçiş efektleri */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

/* Hover Efekti - Zıplama yapmayan çerçeve kalınlaşması */
.ana-urun-favori-buton:hover {
    border-color: #000000 !important;
    background-color: #ffffff !important;
    /* Çerçeveyi zıplatmadan kalın hissettiren gölge */
    box-shadow: 0 0 0 1px #000000 !important; 
}

/* Kalp İkonu Ayarı */
.ana-urun-favori-buton i {
    font-size: 1.3rem !important;
    color: #D30000 !important; /* Kırmızı kalp rengi */
    display: block !important;
}


