<style>
/* --- Dilvin Stili Genel Düzen ve Galeri CSS - Masaüstü --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.urun-detay-kapsayici {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    padding-left: 0;
    margin-left: 0;
    padding-top: 0;
    margin-top: 0;
}
.urun-gorsel-kolonu {
    flex: 1 1 65%;
    max-width: 65%;
    padding-left: 0;
    margin-left: 0;
    padding-top: 0;
    margin-top: 0;
}
.vakko-galeri-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin-top: 0;
    padding-top: 0;
}
.vakko-galeri-grid img,
.vakko-galeri-grid video {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
    background-color: #f4f4f4;
}
/* Ürün detayı sağ kolon sabit (sticky) kalması için */
.urun-detay-sag {
    flex: 1 1 30%;
    max-width: 30%;
    position: sticky;
    top: 60px;
    padding-top: 20px;
}

/* --- Dilvin Stili Tipografi ve UI Elemanları --- */
.urun-baslik {
    font-size: 18px;
    font-weight: 500;
    
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.urun-kodu {
    color: #000;
    font-size: 12px;
    margin-bottom: 20px;
    
}
.urun-fiyat-alani {
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.eski-fiyat {
    text-decoration: line-through;
    color: #000;
    font-size: 16px;
    font-weight: 400;
}
.guncel-fiyat {
    color: #000;
    font-size: 20px;
    font-weight: 600;
}
.indirimli-fiyat {
    color: #000;
}

/* ===================== RENK SEÇİMİ ===================== */
/* Renk butonları artık DİKDÖRTGEN (köşeli) yapıldı */
.varyant-baslik {
    font-size: 12px;
    font-weight: 600;
    
    margin-bottom: 12px;
    color: #000;
}
.renk-secenekleri {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.renk-btn {
    width: 100px;
    height: 100px;
    border-radius: 0;           /* ← DİK DÖRTGEN yapıldı (köşeli) */
    border: 1px solid #e1e1e1;
    padding: 2px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;     /* boyutun bozulmamasını sağlar */
}
.renk-btn img {
    width: 100%;
    height: 100%;
    border-radius: 0;           /* ← İç resim de dikdörtgen oldu */
    object-fit: cover;
}
.renk-btn.aktif {
    border-color: #000;
}

/* ===================== BEDEN SEÇİMİ ===================== */
/* Beden butonları YUVARLAK kalıyor ve daha stabil hale getirildi */
.beden-secenekleri {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.beden-btn {
    border: 1px solid #e1e1e1;
    background: #fff;
    color: #000;
    width: 44px;
    height: 44px;
    border-radius: 50%;         /* ← Yuvarlak kalıyor */
    display: flex;              /* daha stabil hizalama için */
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    
    /* ← Bu 3 satır sayesinde her koşulda mükemmel yuvarlak kalır */
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
    overflow: hidden;
}
.beden-btn:hover {
    border-color: #999;
}
.beden-btn.aktif {
    border-color: #000;
    background: #000;
    color: #fff;
}
.beden-btn.stok-yok {
    color: #b9b9b9;
    border-color: #f1f1f1;
    background: #fafafa;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Aksiyon Butonları */
.buton-grubu {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-sepet {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-sepet:disabled {
    background-color: #e1e1e1;
    color: #999;
    cursor: not-allowed;
}

/* WHATSAPP YEŞİL BUTON */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #25D366;
    color: #fff;
    border: none;
    padding: 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    
    letter-spacing: 1px;
    transition: all 0.3s;
    border-radius: 4px;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    color: #fff;
}

/* Ürün Açıklaması */
.urun-aciklama-alani {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.urun-aciklama-baslik {
    font-size: 13px;
    font-weight: 600;
    
    color: #000;
    margin-bottom: 12px;
}
.urun-aciklama-icerik {
    color: #555;
    line-height: 1.6;
    font-size: 13px;
}
.tek-fiyat-uyari {
    display: none;
    background-color: #fdf2f2;
    color: #d0021b;
    border: 1px solid #fad5d5;
    padding: 12px;
    margin-bottom: 25px;
    font-size: 12px;
    text-align: center;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.98);
}
.lightbox-modal.aktif {
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-icerik {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-kapat {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #000;
    font-size: 40px;
    cursor: pointer;
}

/* === MOBİL GÖRÜNÜM GÜNCELLEMESİ (ÜST BOŞLUK TAMAMEN KALDIRILDI) === */
@media (max-width: 991px) {
    .container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    .urun-detay-kapsayici {
        flex-direction: column;
        gap: 0;
        overflow-x: hidden;
        padding-top: 0 !important;
        margin-top: -25px !important;
    }
  
    .urun-gorsel-kolonu {
        flex: 1 1 100%;
        max-width: 100vw !important;
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        margin-top: -20px !important;
        padding-top: 0 !important;
    }
  
    .vakko-galeri-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-snap-stop: always;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        gap: 0;
        padding: 0 !important;
        margin: 0 !important;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
  
    .vakko-galeri-grid::-webkit-scrollbar {
        display: none;
    }
  
    .vakko-galeri-grid img,
    .vakko-galeri-grid video {
        flex: 0 0 100vw;
        width: 100vw;
        scroll-snap-align: start;
        border-radius: 0 !important;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }
  
    .urun-detay-sag {
        position: static;
        padding: 25px 15px 40px 15px;
        flex: 1 1 100%;
        max-width: 100%;
        background: #fff;
        margin-top: 0 !important;
    }
}
</style>
/* --- GELİŞMİŞ GALERİ TASARIMI --- */
.urun-gorsel-alani {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    height: 600px;
}

/* Galeri kolonu sticky (masaüstü) */
.urun-gorsel-kolonu {
    position: sticky;
    top: 30px;
    align-self: flex-start;
    z-index: 10;
}

/* Thumbnail Listesi - Masaüstü */
.thumbnail-listesi {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
    max-height: 386px;
    overflow-y: auto;
    width: 95px;
    flex-shrink: 0;
    padding-right: 5px;
    padding-left: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
}
.thumbnail-listesi::-webkit-scrollbar { width: 4px; }
.thumbnail-listesi::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.thumbnail-listesi::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.thumbnail-listesi::-webkit-scrollbar-thumb:hover { background: #aaa; }
.thumb-img, .thumb-video-icon {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.thumb-img:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.thumb-img.aktif-thumb {
    border-color: #000;
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Ana Görsel */
.ana-gorsel-pencere {
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    border-radius: 16px;
    flex-grow: 1;
    height: 100%;
    border: 1px solid #eaeaea;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ana-gorsel-pencere::after {
    content: "🔍 Büyütmek için tıkla";
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    pointer-events: none;
}
.ana-gorsel-pencere:hover::after { opacity: 1; }
#anaGorsel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-modal.aktif {
    display: flex;
    opacity: 1;
}
.lightbox-icerik {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox-modal.aktif .lightbox-icerik {
    transform: scale(1);
}
.lightbox-kapat {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.lightbox-kapat:hover { color: #e74c3c; transform: scale(1.1); }

/* ==================== MOBİL DÜZELTME (YENİ VE GÜÇLENDİRİLMİŞ) ==================== */
@media (max-width: 768px) {
    /* Sayfa yatay uzamasını tamamen engelle */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    .urun-detay-kapsayici {
        flex-wrap: wrap;
        gap: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Galeri ve bilgi bölümleri tam genişlikte olsun */
    .urun-gorsel-kolonu {
        position: static;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .urun-detay-kapsayici > div:not(.urun-gorsel-kolonu) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .urun-gorsel-alani { 
        flex-direction: column-reverse; 
        height: auto; 
        width: 100% !important;
    }
    
    .ana-gorsel-pencere { 
        height: 450px; 
        width: 100% !important;
    }
    
    /* Küçük resimler - SAĞ-SOL KAYDIRILABİLİR */
    .thumbnail-listesi {
        flex-direction: row;
        width: 100% !important;
        max-width: 100% !important;
        height: 110px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 0;
        gap: 12px;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
        box-sizing: border-box;
    }
    
    .thumb-img, .thumb-video-icon { 
        width: 82px; 
        height: 100px; 
        flex-shrink: 0; 
    }
    
    .ana-gorsel-pencere::after { display: none; }
}

/* BEDEN VE VARYANT */
.beden-btn {
    padding: 10px 18px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    min-width: 60px;
    border-radius: 50px;
    font-weight: 500;
    margin: 5px;
    position: relative;
    overflow: hidden;
    transition: 0.2s;
}
.beden-btn:hover { border-color: #000; }
.beden-btn.aktif { background: #000; color: #fff; border-color: #000; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.beden-btn.stok-yok { color: #ccc; background: #fafafa; pointer-events: none; }
.beden-btn.stok-yok::after {
    content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px;
    background: #ff0000; transform: rotate(-30deg);
}
.renk-btn {
    width: 45px; height: 45px; border-radius: 50%; border: 2px solid transparent;
    overflow: hidden; cursor: pointer; padding: 0; margin: 5px;
    transition: 0.2s;
}
.renk-btn.aktif { border-color: #000; transform: scale(1.1); box-shadow: 0 3px 8px rgba(0,0,0,0.2); }
.renk-btn img { width: 100%; height: 100%; object-fit: cover; }

/* AKSİYONLAR */
.btn-whatsapp {
    background: #25D366; color: #fff !important; padding: 14px;
    text-align: center; border-radius: 8px; text-decoration: none;
    display: block; font-weight: 600; margin-bottom: 15px;
    transition: 0.3s;
}
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); }
.btn-ana { width: 100%; padding: 16px; border-radius: 8px; border: none; font-weight: bold; cursor: pointer; transition: 0.3s;}
.btn-sepet { background: #000; color: #fff; }
.btn-sepet:hover:not(:disabled) { background: #333; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-sepet:disabled { background: #eee; color: #999; cursor: not-allowed; }

