/* assets/css/style.css - GÜNCEL TAM HALİ (MOBİL HİZALAMA DÜZELTİLDİ) */

/* --- 1. FONTLAR VE TEMEL AYARLAR --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-body: #F5F7FA;
    --bg-card: #FFFFFF;
    --primary: #4318FF;
    --primary-soft: #EFF4FF;
    --secondary: #6AD2FF;
    --text-main: #2B3674;
    --text-sub: #A3AED0;
    --success: #05CD99;
    --danger: #EE5D50;
    
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 10px;
    
    --shadow-card: 0px 18px 40px rgba(112, 144, 176, 0.12);
    --shadow-hover: 0px 25px 50px rgba(112, 144, 176, 0.22);
}

body {
    background-color: var(--bg-body);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }

.ls-1 { letter-spacing: 1px; }
.z-index-2 { position: relative; z-index: 2; }
.hover-bg-white:hover { background: white !important; color: var(--primary) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.transition-all { transition: all 0.3s ease; }

/* --- 2. HEADER & MENÜ --- */
.navbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.nav-link-pro {
    font-weight: 700; text-transform: uppercase; color: #333 !important;
    font-size: 0.9rem; padding: 10px 18px !important;
}
.nav-link-pro:hover { color: var(--primary) !important; }

/* --- 3. MODERN HERO SECTION (NEON TASARIM) --- */
.hero-section {
    background: radial-gradient(circle at 50% -20%, #31767A 0%, #2C4E50 40%, #0C2928 100%) !important;
    padding: 100px 0 120px;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.1;
    z-index: 1;
}

.hero-content { position: relative; z-index: 5; }

/* --- 4. GLASS BADGE (POPÜLER KATEGORİLER İÇİN) --- */
.glass-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.glass-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* --- 5. MODERN ARAMA KUTUSU --- */
.search-box-modern {
    background: #ffffff;
    border-radius: 60px;
    padding: 8px;
    display: flex;
    align-items: center;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-box-modern:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(58, 105, 105, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-box-modern i { color: var(--primary); margin-left: 20px; margin-right: 15px; }

.search-box-modern input {
    border: none; background: transparent; flex-grow: 1;
    padding: 12px 0; font-size: 1rem; color: #333; font-weight: 500; outline: none;
}

.search-box-modern button {
    background: linear-gradient(135deg, #BD845A 0%, #FFCEA7 100%);
    color: white; border: none; padding: 12px 35px;
    border-radius: 50px; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 207, 167, 0.4);
}

.search-box-modern button:hover {
    background: linear-gradient(135deg, #FFCEA7 0%, #BD845A 100%);
    transform: scale(1.05); box-shadow: 0 8px 25px rgba(255, 207, 167, 0.6);
}

/* --- 6. SIDEBAR & FİLTRELER --- */
.filter-sidebar {
    position: sticky; top: 100px;
    background: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 25px;
    box-shadow: var(--shadow-card);
    border: none;
}
.filter-option { display: block; cursor: pointer; margin-bottom: 8px; }
.filter-option input { display: none; }
.filter-chip {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 15px; background: #f8f9fa;
    border: 1px solid #e9ecef; border-radius: 12px;
    color: #495057; font-weight: 500; font-size: 0.9rem;
    transition: all 0.2s ease;
}
.filter-chip:hover { background: #e9ecef; transform: translateX(3px); }
.filter-option input:checked + .filter-chip {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(67, 24, 255, 0.1);
}

/* --- 7. ÜRÜN KARTLARI --- */
.product-card, .urun-kart {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%; position: relative;
    overflow: hidden; padding: 15px;
}
.product-card:hover, .urun-kart:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.card-img-wrapper {
    background: #F4F7FE; border-radius: var(--radius-m);
    height: 220px; display: flex;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden; margin-bottom: 15px;
}
.card-img-top {
    max-height: 85%; max-width: 85%;
    object-fit: contain; transition: transform 0.5s ease;
}
.product-card:hover .card-img-top { transform: scale(1.1); }

.product-brand {
    color: var(--text-sub); font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 5px;
}
.product-title {
    font-size: 1.1rem; font-weight: 700; color: var(--text-main);
    margin-bottom: 10px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.spec-pill {
    display: inline-flex; align-items: center;
    background: var(--bg-body); color: var(--text-sub);
    font-size: 0.75rem; font-weight: 600;
    padding: 5px 10px; border-radius: 8px;
    margin-right: 5px; margin-bottom: 5px;
}
.price-tl { font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1; }

/* WHATSAPP BUTON EFEKTİ (PULSE) */
.pulse-animation {
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 8. MOBİL UYUMLULUK --- */
.mobile-filter-btn {
    position: fixed; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary); color: white;
    padding: 14px 28px; border-radius: 50px;
    font-weight: 700; border: none;
    box-shadow: 0 10px 30px rgba(67, 24, 255, 0.4);
    z-index: 9999;
}

@media (max-width: 991px) {
    /* HATALI KOD DÜZELTİLDİ: Artık ortalamıyor, sağa ve sola yaslıyor */
    .middle-header .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0; /* Boşluk kaldırıldı */
        text-align: left; /* Ortalama iptal edildi */
    }

    .hero-section { padding: 60px 0 80px; border-radius: 0 0 30px 30px; }
    .hero-section h1 { font-size: 1.8rem; }
    .search-box-modern { padding: 4px; flex-direction: row; }
    .search-box-modern input { padding: 10px 0; font-size: 0.9rem; }
    .search-box-modern button { padding: 8px 20px; font-size: 0.9rem; }
    .glass-badge { padding: 6px 12px; font-size: 0.75rem; }
    
    /* Mobil Header Boşluğu */
    .mobile-header-spacing {
        margin-top: 130px !important; 
    }
}

/* Varsayılan (Masaüstü): Ekstra boşluk yok */
.mobile-header-spacing {
    margin-top: 0 !important; 
}
/* --- MOBİL FİLTRE MENÜSÜ DÜZELTMESİ --- */
.offcanvas {
    z-index: 10500 !important; /* Menüyü en üste çıkart */
    background-color: #ffffff !important; /* Arka planı beyaz yap, şeffaflığı önle */
}

.offcanvas-backdrop {
    z-index: 10490 !important; /* Arka plan karartmasını menünün hemen altına al */
}

/* Hero alanındaki yazıların mobilde menü üzerine çıkmasını engelle */
@media (max-width: 991px) {
    .hero-content {
        z-index: 1 !important; 
    }
}