/* --- 1. GLOBAL & TYPOGRAPHY --- */


:root {
    /* Main Palette */
    --color-text: #2b2b2b;
    --color-text-soft: #6f6a67;
    --color-bg: #fffdfb;
    --color-bg-soft: #f8f3ef;
    --color-bg-card: #fdfaf7;

    /* Accents */
    --color-primary: #b88a8a;      /* Dusty Rose */
    --color-primary-dark: #8f6666;
    --color-accent: #5c3a46;       /* Luxury Plum */
    --color-gold: #c6a77d;         /* Champagne Gold */
    --color-border: #ece3dc;
    
    /* System */
    --white: #ffffff;
    --black: #111111;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- 1. GLOBAL & TYPOGRAPHY --- */
::selection {
    background-color: var(--color-primary);
    color: var(--white);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }


body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.tracking-wide { letter-spacing: 1px; }
.tracking-widest { letter-spacing: 2px; }
.fs-xs { font-size: 11px; }
.fs-sm { font-size: 13px; }
.line-height-lg { line-height: 1.8; }
.max-w-800 { max-width: 800px; }
.bg-light-gray { background-color: var(--color-bg-soft); }

/* --- 2. NAVBAR & HEADER --- */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar {
    z-index: 1003;
}

/* Çizginin başlangıç (gizli) hali */
.navbar-nav .nav-link::after {
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 1px;
    bottom: 0; 
    left: 50%; 
    background-color: var(--color-primary);
    transition: all 0.3s ease; 
    transform: translateX(-50%);
    opacity: 0; /* Saydam yap */
    visibility: hidden; /* Görünürlüğü tamamen kapat */
}

/* SADECE üzerine gelindiğinde (Hover) çalışsın */
.navbar-nav .nav-link:hover::after { 
    width: 100%; 
    opacity: 1; 
    visibility: visible; 
}

.dropdown-menu { border-radius: 0; border: 1px solid var(--color-border) !important; background-color: var(--white); }
.dropdown-item { transition: background-color 0.3s ease; }
.dropdown-item:hover { background-color: var(--color-bg-soft); }

.icon-hover { transition: transform 0.3s, color 0.3s; }
.icon-hover:hover { color: var(--color-primary) !important; transform: translateY(-2px); }

/* --- 3. SLIDER --- */
.hero-height { height: 80vh; }
.carousel-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}
.slider-caption-custom {
    bottom: 20%; left: 5%; text-align: left; width: 60%; z-index: 10;
}
.slider-center-cap { left: 0; right: 0; width: 100%; }
.carousel-caption h2 { text-shadow: 2px 2px 15px rgba(0,0,0,0.3); }

/* --- 4. PREMIUM PRODUCT CARDS --- */
.premium-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.premium-card .product-img {
    position: relative;
    background-color: var(--color-bg-card);
    overflow: hidden;
    aspect-ratio: 4/5;
    margin-bottom: 15px;
}
.premium-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.premium-card:hover .product-img img {
    transform: scale(1.08);
}

/* Şık Etiketler (İndirim / Yeni) */
.premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    z-index: 2;
}
.premium-badge.discount {
   background-color: var(--color-accent);
   color: var(--white);
}
.premium-badge.new {
   background-color: rgba(255,255,255,0.95);
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
}

/* Sağ Alt Zarif İkonlar */
.card-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}
.premium-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255,255,255,0.92);
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-icon:hover {
    background-color: var(--color-primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Ürün Bilgisi ve Fiyatlandırma */
.product-info {
    text-align: center;
    padding-top: 5px;
}
.product-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.product-price {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Eski fiyat ve yeni fiyat arası boşluk */
    margin-bottom: 0;
}
.product-price del {
    color: #999;
    font-weight: 400;
}
.product-price .current-price {
  color: var(--color-text);
}
.product-price .discount-price {
    color: #8b0000; /* İndirimli fiyat için vurgu rengi */
    font-weight: 600;
}

/* --- 5. SPECIAL OFFER SECTION --- */
.special-offer { min-height: 500px; }
.special-offer-img { height: 600px; overflow: hidden; }
@media (max-width: 991px) {
    .special-offer-img { height: 400px; }
}

/* --- 6. CATEGORIES (Premium Grayscale Hover) --- */
.category-img { 
    width: 150px; height: 150px; 
    transition: all 0.5s ease; border: 1px solid transparent; 
}
.category-img img { 
    filter: grayscale(40%); 
    transition: filter 0.6s ease, transform 0.6s ease; 
}
.category-item:hover .category-img img { filter: grayscale(0%); transform: scale(1.05); }
.category-item:hover .category-img { border-color: #e0e0e0; }

/* --- 7. INSTAGRAM --- */
.insta-item { position: relative; display: block; overflow: hidden; }
.insta-item img { transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.insta-item:hover img { transform: scale(1.05); }
.insta-overlay { 
    position: absolute; inset: 0; background: rgba(0,0,0,0.3); 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.4s ease; color: white; font-size: 2rem;
}
.insta-item:hover .insta-overlay { opacity: 1; }

/* --- 8. CRAFTSMANSHIP (Marka Hikayesi) --- */
.brand-story {
    background: url('https://images.unsplash.com/photo-1550505095-81378a675f97?auto=format&fit=crop&q=80&w=2000') center/cover fixed;
    height: 500px;
}
.brand-story-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}

/* --- 9. BLOG --- */
.blog-title { position: relative; display: inline-block; padding-bottom: 2px; }
.blog-title::after { 
    content: ''; position: absolute; width: 0; height: 1px; 
    bottom: 0; left: 0; background-color: #111; transition: width 0.4s ease; 
}
.blog-card:hover .blog-title::after { width: 100%; }

/* --- 10. FOOTER & MISC --- */
.footer-link { transition: color 0.3s, opacity 0.3s; }
.footer-link:hover { opacity: 1 !important; color: #fff !important; }
.footer-icon { transition: transform 0.3s, opacity 0.3s; opacity: 0.8; }
.footer-icon:hover { transform: translateY(-3px); opacity: 1; }

.floating-wa {
    position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; 
    justify-content: center; align-items: center; font-size: 32px; 
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); z-index: 1000; 
    transition: transform 0.3s, box-shadow 0.3s; text-decoration: none;
}
.floating-wa:hover {
    transform: scale(1.1); color: white; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-height { height: 65vh; }
    .slider-caption-custom { bottom: 10%; left: 5%; right: 5%; width: 90%; text-align: center; }
    .slider-caption-custom h2 { font-size: 2.5rem; }
    .slider-caption-custom .btn { width: 100%; padding: 15px !important; }
    .brand-story { background-attachment: scroll; }
}

/* --- HOVER DROPDOWN (Masaüstü Menüsü İçin) --- */
@media (min-width: 992px) {
    .hover-dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeDown 0.3s ease forwards;
    }
    
    /* Fare menüden açılır kısma geçerken kapanmasın diye margin iptali */
    .hover-dropdown .dropdown-menu {
        margin-top: 0;
    }
}

/* Yumuşak Açılış Animasyonu */
@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- OFFCANVAS (Mobil Menü Özelleştirmeleri) --- */
.offcanvas { background-color: #fff; }
.offcanvas-body .nav-link { font-size: 14px; padding: 10px 0; border-color: #eee !important; }
.offcanvas-body .dropdown-menu { 
    background-color: #fafafa; 
    border-left: 2px solid #111 !important; 
    padding-left: 1rem; 
}

/* --- FOOTER EKSTRA DOKUNUŞLAR --- */
.hover-white { transition: color 0.3s ease, padding-left 0.3s ease; }
.hover-white:hover { color: #ffffff !important; padding-left: 5px; }

.social-circle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-circle-btn:hover {
    background-color: #ffffff;
    color: #0a0a0a;
    transform: translateY(-3px);
}

/* --- FAVORİ BUTONU (Sağ Üst Sabit) --- */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #111;
    font-size: 20px;
    z-index: 3;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 0;
}
.wishlist-btn:hover {
    transform: scale(1.1);
    color: #8b0000; /* Vurgu rengi */
}

/* --- SEPETE EKLE BARI (Aşağıdan Kayarak Çıkar) --- */
.add-to-cart-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #111;
    border: none;
    padding: 14px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(100%); /* Başlangıçta gizli */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s, color 0.3s;
    z-index: 3;
}
.premium-card:hover .add-to-cart-bar {
    transform: translateY(0); /* Hover olunca yukarı çıkar */
}
.add-to-cart-bar:hover {
    background-color: #111;
    color: #fff;
}

/* --- TİPOGRAFİ & FİYAT HİZALAMASI --- */
.product-info {
    padding-top: 15px;
}
.product-price {
    justify-content: flex-start; /* Fiyatları sola yasla */
}

/* --- RENK SEÇENEKLERİ (SWATCHES) --- */
.color-swatches {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Seçili olan renge dış çerçeve ekler */
.swatch.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111;
}
.swatch:hover {
    transform: scale(1.2);
}

/* --- MOBİL MENÜ AKORDİYON EFEKTLERİ --- */
.mobile-menu-icon {
    transition: transform 0.3s ease;
}

/* Bootstrap aria-expanded=true yapınca ok 180 derece döner */
.nav-link[aria-expanded="true"] .mobile-menu-icon {
    transform: rotate(180deg);
}

/* --- LOGO DİNAMİK BOYUTLANDIRMA --- */
.header-logo {
    /* clamp() fonksiyonu: (Minimum Boyut, Ideal Boyut, Maksimum Boyut) */
    /* Bu kod; mobilde 30px'ten küçük olmaz, masaüstünde 45px'i geçmez */
    height: clamp(30px, 4vw, 45px); 
    width: auto; /* Oran bozulmasın diye */
    object-fit: contain;
    transition: all 0.4s ease; /* Boyut değişimlerinde yumuşak geçiş */
    display: block;
}

/* Masaüstü Ekranlarda İnce Ayar */
@media (min-width: 992px) {
    .header-logo {
        height: 45px; /* Standart masaüstü yüksekliği */
    }
}

/* Tablet ve Küçük Laptoplar */
@media (max-width: 991px) {
    .header-logo {
        height: 38px;
    }
}

/* Telefonlar */
@media (max-width: 576px) {
    .header-logo {
        height: 32px; /* Mobilde header'ı çok şişirmemesi için */
    }
}

/* Instagram Galeri Kare Yapısı */
.insta-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Tarayıcıya bunun bir kare olduğunu zorla öğretir */
    overflow: hidden;
    display: block;
}

.insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi ezmeden, kare alana sığacak şekilde kırpar */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.insta-item:hover .insta-img {
    transform: scale(1.1); /* Hafif zoom efekti lüks durur */
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.brand-story {
    /* Görseli tamamen kaldırmak istersen background: #000 yapabilirsin */
    /* Eğer görsel kalsın ama simsiyah görünsün istersen: */
    background: #000 !important; 
    min-height: 450px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand-story h2 {
    font-size: clamp(1.8rem, 5vw, 3rem); /* Mobilde küçülen, masaüstünde devleşen başlık */
    letter-spacing: 0.3em !important;
}

.brand-story p {
    font-weight: 300; /* Daha asil durması için biraz ince font */
    letter-spacing: 0.05em;
}

.brand-story .btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}


.category-header { border-bottom: 1px solid #eee; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: #ccc; }
.breadcrumb-item a { transition: color 0.3s ease; }
.breadcrumb-item a:hover { color: #000 !important; }

.custom-aspect {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #fcfcfc;
}

.product-img-obj {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-card:hover .product-img-obj {
    transform: scale(1.05);
}

@media (min-width: 992px) {
    aside .sticky-top { padding-right: 2rem; }
}

.category-seo-text {
    border-top: 1px solid #eee;
    margin-top: 5rem;
    padding-top: 3rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

.blog-header {
    background-color: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
}

.blog-img-wrapper {
    position: relative;
    width: 100%;
    /* Featured (ilk yazı) için farklı, diğerleri için kareye yakın bir oran */
    aspect-ratio: 16 / 9; 
}

.col-md-6.col-lg-4 .blog-img-wrapper {
    aspect-ratio: 4 / 3; /* Alt taraftaki küçük kartlar için */
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-img {
    transform: scale(1.08);
}

.blog-card h2 a:hover {
    color: #555 !important;
}

.line-height-lg {
    line-height: 1.8;
}

.max-w-800 {
    max-width: 800px;
}

.fs-xs {
    font-size: 0.75rem;
}

/* Hover Efekti: Alt çizgi animasyonu */
.btn-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-link:hover {
    padding-left: 10px;
    letter-spacing: 0.2em;
}

.blog-detail-hero {
    height: 60vh;
    min-height: 400px;
}

.blog-main-content {
    color: #222;
    line-height: 1.9;
    letter-spacing: -0.01em;
}

.blog-main-content p {
    margin-bottom: 2rem;
}

/* Editörden gelen görselleri kontrol et */
.blog-main-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

.dot-separator {
    color: #ccc;
    font-size: 8px;
}

.line-height-xl {
    line-height: 2;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.transition-transform {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Breadcrumb İnce Ayar */
.breadcrumb-item.active {
    font-weight: 600;
}

/* Mobil Ayarlar */
@media (max-width: 768px) {
    .blog-detail-hero {
        height: 40vh;
    }
    .display-4 {
        font-size: 1.8rem;
    }
}

 .sticky-lg-top { align-self: start; }
        .line-height-xl { line-height: 2; }
        .pointer { cursor: pointer; }
        .custom-aspect { aspect-ratio: 3/4; }
        .product-img-obj { transition: 0.8s ease; }
        
       
       
        .thumb-wrapper { transition: 0.3s; opacity: 0.6; border-width: 2px !important; }
        .thumb-wrapper:hover, .thumb-wrapper.active { opacity: 1; border-color: #000 !important; }
        
        .main-img-item a { cursor: zoom-in; }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
        .shake-effect { animation: shake 0.3s ease-in-out; border-color: #dc3545 !important; }
        .hover-shadow:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); }

        .hover-dark-brand {
            transition: color 0.3s ease;
        }

        .hover-dark-brand:hover {
            color: #000 !important; /* Hafif griden tam siyaha geçiş */
        }

h1, h2, h3, .product-title {
    text-rendering: optimizeLegibility;
    letter-spacing: -0.02em; /* Büyük başlıklarda harfleri biraz yakınlaştırmak lüks durur */
}

/* Resimler yüklenene kadar boş kalmasın (Skeleton etkisi) */
.bg-light {
    background-color: #f5f5f5 !important;
    position: relative;
}

/* Sepete ekle barı için hafif bir cam efekti (Glassmorphism) */
.add-to-cart-bar {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


       /* Buton Alanı Kısıtlama */
.action-area-limited {
    width: 100%;
}

@media (min-width: 992px) {
    .action-area-limited {
        max-width: 400px; /* Masaüstünde butonların devasa olmasını engeller */
    }
}

/* Butonlara Hover Efekti (Premium His) */
#basket:hover {
    transform: translateY(-2px);
}

#buy-now:hover {
    background-color: #333; /* Hafif bir ton farkı */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hover-opacity:hover {
    opacity: 0.7;
}

/* Adet Kontrolü Genişliği */
.qty-control {
    min-width: 110px;
}


/* =========================================================
PREMIUM WOMEN EYEWEAR COLOR SYSTEM
Sadece renk dönüşümü — yapı korunur
========================================================= */




.product-price del {
color: #b5aaa4;
}



.product-price .discount-price {
color: var(--color-accent);
}

/* CATEGORY */
.category-item:hover .category-img {
border-color: #d9c6ba;
}

/* BLOG */
.blog-title::after {
background-color: var(--color-primary);
}

.blog-card h2 a:hover {
color: var(--color-primary) !important;
}

/* OFFCANVAS */
.offcanvas {
background-color: var(--color-bg);
}

.offcanvas-body .dropdown-menu {
background-color: var(--color-bg-soft);
border-left: 2px solid var(--color-primary) !important;
}

/* FAVORI */
.wishlist-btn:hover {
color: var(--color-primary);
}

/* ADD TO CART */
.add-to-cart-bar {
background-color: rgba(255,255,255,0.88);
color: var(--color-text);
}

.add-to-cart-bar:hover {
background-color: var(--color-primary);
color: var(--white);
}

/* SWATCH ACTIVE */
.swatch.active {
box-shadow:
0 0 0 2px #fff,
0 0 0 3px var(--color-primary);
}

/* FOOTER */
.footer-link:hover {
color: #f3d8d8 !important;
}

.social-circle-btn:hover {
background-color: var(--color-primary);
color: var(--white);
}

/* BUTTON HOVERS */
#basket:hover {
background-color: var(--color-primary);
color: var(--white);
}

#buy-now:hover {
background-color: var(--color-accent);
color: var(--white);
box-shadow: 0 10px 25px rgba(92,58,70,0.18);
}

/* BORDER SYSTEM */
.category-header,
.category-seo-text,
.blog-header {
border-color: var(--color-border);
}

/* LIGHT AREAS */
.bg-light,
.custom-aspect {
background-color: var(--color-bg-card) !important;
}




#buy-now {
    background-color: var(--color-primary); /* Rose Nude */
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(217, 179, 168, 0.2);
    transition: var(--transition);
}

#buy-now:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 179, 168, 0.4);
}

#wishlist {
    color: var(--color-text-soft);
    font-size: 11px;
    letter-spacing: 1px;
}

#wishlist:hover {
    color: var(--color-primary) !important;
}