/* ==============================================================
   YENİ EKSTRA KOYU RENK PALETİ VE RESET
   ============================================================== */
:root {
    --bg-dark: #020203; /* Neredeyse tam siyah */
    --bg-panel: #0a0a0d; /* Çok koyu antrasit */
    --glass-border: rgba(255, 255, 255, 0.05);
    --red-premium: #b3001b; /* Daha tok, kan kırmızısı */
    --red-premium-hover: #e60026;
    --text-muted: #8b92a5;
    --white: #F8FAFC;
    --primary-color: #050505; /* Navbar arka planı tam siyah/koyu */
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--white); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { text-decoration: none; color: inherit; }

/* ==============================================================
   NAVBAR (KURUMSAL & MAĞAZA ORTAK)
   ============================================================== */
.main-header {
    background-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.navbar {
    display: flex;
    align-items: center;
    height: 80px;
    position: relative;
}

/* Logo En Solda */
.navbar-logo {
    flex: 0 0 auto; /* Esnemez, sabit kalır */
    margin-right: 3rem; /* Menü ile arasına zorunlu boşluk koyar */
}
.navbar-logo a {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
}
.navbar-logo span { color: var(--red-premium); }

/* Menü Ortada / Sola Yaslı */
.navbar-menu {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin-right: auto; /* Kalan boşluğu sağa iter, sağ menüyü en sağa yapıştırır */
}
.nav-link { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: var(--transition-speed); }
.nav-link:hover { color: var(--white); }
.nav-link-premium { color: var(--red-premium); font-weight: 800; }
.nav-link-premium:hover { color: var(--red-premium-hover); }

/* Sağ Alan (Dil, Sepet, Profil) */
.navbar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Sepet */
.cart-wrapper { position: relative; font-size: 1.4rem; display: flex; align-items: center; transition: 0.3s; }
.cart-wrapper:hover { transform: scale(1.1); }
.cart-badge { position: absolute; top: -5px; right: -10px; background-color: var(--red-premium); color: var(--white); font-size: 0.7rem; font-weight: bold; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* ==============================================================
   YUVARLAK PROFİL BUTONU VE AÇILIR MENÜSÜ
   ============================================================== */
.profile-dropdown-wrapper { position: relative; }
.profile-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-panel);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
}
.profile-btn:hover { border-color: var(--red-premium); }
.profile-btn img { width: 100%; height: 100%; object-fit: cover; }
.profile-btn .placeholder-icon { font-size: 1.2rem; color: var(--text-muted); }

.profile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
}
.profile-menu.show { display: block; }
.profile-menu-header { padding: 15px; border-bottom: 1px solid var(--glass-border); }
.profile-menu-header p { font-size: 0.9rem; font-weight: 700; color: var(--white); }
.profile-menu-header span { font-size: 0.8rem; color: var(--text-muted); }

.profile-menu-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
}
.profile-menu-link:hover { background-color: rgba(255,255,255,0.03); color: var(--white); }
.profile-menu-link.text-danger { color: #ef4444; border-top: 1px solid var(--glass-border); }
.profile-menu-link.text-danger:hover { background-color: rgba(239, 68, 68, 0.1); }

/* Ortak Butonlar */
.btn-primary { background: var(--red-premium); color: #fff; padding: 10px 20px; border-radius: 8px; font-weight: 700; border: none; cursor: pointer; }
.btn-text { color: var(--text-muted); font-weight: 600; padding: 10px; }
/* ==============================================================
   MOBİL HAMBURGER BUTONU STİLLERİ (Default Gizli)
   ============================================================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    margin-left: 10px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition-speed);
}

/* ==============================================================
   RESPONSIVE (MOBİL) DÜZEN
   ============================================================== */
@media (max-width: 992px) {
    /* Logoyu sola, sağdaki ikonları en sağa it */
    .navbar-logo {
        margin-right: auto; 
    }
    .navbar-logo a {
        font-size: 1.3rem; /* Telefondan girince logo biraz küçülsün */
    }
    
    /* Sağ alandaki boşlukları daralt */
    .navbar-right {
        gap: 0.8rem;
    }
    
    /* Hamburger Butonunu Göster */
    .mobile-menu-btn { 
        display: flex; 
    }

    /* Masaüstü menüsünü gizle, dikey mobil menüye çevir */
    .navbar-menu { 
        display: none; /* JavaScript ile 'active' sınıfı alınca açılacak */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Navbarın tam altından başlar */
        left: 0;
        width: 100%;
        background-color: var(--bg-panel); /* Koyu arka plan */
        border-bottom: 1px solid var(--glass-border);
        padding: 20px;
        gap: 15px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.9);
        z-index: 999;
    }
    
    /* JS 'active' sınıfını ekleyince menüyü göster */
    .navbar-menu.active {
        display: flex;
    }

    /* Hamburger İkonunu Çarpıya (X) Dönüştürme Animasyonu */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--red-premium);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--red-premium);
    }
}
/* ==============================================================
   1. FOOTER'I EN ALTA SABİTLEME MANTIĞI (ÇOK ÖNEMLİ)
   ============================================================== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sayfa yüksekliğini en az ekran boyu kadar yapar */
}

main {
    flex: 1; /* Sayfada içerik az olsa bile boşluğu doldurup footer'ı aşağı iter */
}

/* ==============================================================
   2. FOOTER TASARIMI VE İKONLAR
   ============================================================== */
footer { 
    background: var(--bg-panel); 
    border-top: 1px solid var(--glass-border); 
    padding: 40px 20px 30px; 
    text-align: center; 
    margin-top: auto; /* Esnek yapıda footer'ı en dibe yapıştırır */
}

.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 25px; 
}

.social-links a { 
    color: var(--text-muted); 
    background: var(--bg-dark); 
    border: 1px solid var(--glass-border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 45px; 
    height: 45px;
    border-radius: 50%; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* İkonların üzerine gelince (Hover) kırmızı premium parlama efekti */
.social-links a:hover { 
    color: var(--white); 
    background: var(--red-premium);
    border-color: var(--red-premium); 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(179, 0, 27, 0.5);
}

.footer-text { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    font-weight: 500;
    letter-spacing: 0.5px;
}