/* ==========================================================================
   1. MARKA RENKLERİ VE DEĞİŞKENLER (MAVİ TONLARI)
   ========================================================================== */
:root {
    --primary: #1d4ed8;          /* Marka Mavisi (Ana Vurgu) */
    --primary-hover: #1e40af;    /* Koyu Mavi (Üzerine gelince) */
    --secondary: #1e293b;        /* Koyu Lacivert / Başlıklar */
    --bg-soft: #f8fafc;          /* Çok Açık Gri Zemin */
    --border-color: #e2e8f0;     /* Standart Kenarlık */
    --text-main: #334155;        /* Ana Metin */
    --text-muted: #64748b;       /* Soluk Metin */
    --font-main: 'Inter', sans-serif;
}

/* ==========================================================================
   2. RESET VE GENEL AYARLAR
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-main); background-color: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Renk Yardımcı Sınıfları */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; color: #fff !important; }
.hover-primary:hover { color: var(--primary) !important; }

/* ==========================================================================
   3. HEADER, DUYURU BARI VE ARAMA ÇUBUĞU
   ========================================================================== */
.main-header { border-bottom: 1px solid var(--border-color); background: #fff; }
.header-top { background: var(--secondary); color: #fff; font-size: 13px; }

/* Arama Çubuğu */
.search-form { position: relative; width: 100%; max-width: 350px; }
.search-form .form-control { 
    border-radius: 50px; 
    padding: 10px 45px 10px 20px; 
    border: 1px solid var(--border-color); 
    box-shadow: none; 
    font-size: 14px; 
    background: #f8fafc; 
    transition: 0.3s; 
}
.search-form .form-control:focus { 
    border-color: var(--primary); 
    background: #fff; 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); 
}
.search-form .search-btn { 
    position: absolute; 
    right: 5px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    color: var(--text-muted); 
    padding: 8px 12px; 
    border-radius: 50px; 
    transition: 0.2s; 
}
.search-form .search-btn:hover { color: var(--primary); }

/* ==========================================================================
   4. BUTONLAR
   ========================================================================== */
.btn-primary { 
    background-color: var(--primary) !important; 
    border-color: var(--primary) !important; 
    color: #fff !important; 
    font-weight: 700; 
    transition: 0.3s; 
}
.btn-primary:hover { 
    background-color: var(--primary-hover) !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 15px rgba(29, 78, 216, 0.25); 
}
.btn-outline-dark { 
    color: var(--secondary) !important; 
    border-color: var(--secondary) !important; 
    font-weight: 700; 
}
.btn-outline-dark:hover { 
    background-color: var(--secondary) !important; 
    color: #fff !important; 
}

/* ==========================================================================
   5. ANA SAYFA HERO BÖLÜMÜ
   ========================================================================== */
.hero-minimal { padding: 60px 0; background: radial-gradient(circle at top right, #f1f5f9, #fff); }
.hero-img-wrap { max-height: 400px; overflow: hidden; border-radius: 20px; display: flex; align-items: center; }
.hero-img-wrap img { width: 100%; object-fit: cover; }

/* ==========================================================================
   6. PREMIUM VİTRİN KARTLARI (ÜRÜNLER)
   ========================================================================== */
.premium-card { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 16px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    position: relative; 
    text-decoration: none; 
}
.premium-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 16px 32px rgba(0,0,0,0.08); 
    border-color: var(--primary); 
}

.premium-img-box { 
    background: #f8fafc; 
    border-radius: 12px; 
    padding: 25px; 
    aspect-ratio: 1 / 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    position: relative; 
    overflow: hidden; 
}
.premium-img-box img { max-height: 100%; mix-blend-mode: multiply; transition: transform 0.6s ease; }
.premium-card:hover .premium-img-box img { transform: scale(1.06); }

.premium-badge { 
    position: absolute; 
    top: 12px; left: 12px; 
    background: #fff; 
    color: var(--primary); 
    font-size: 11px; font-weight: 800; 
    padding: 6px 12px; border-radius: 50px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    text-transform: uppercase; letter-spacing: 0.5px; 
    z-index: 2; 
}

.premium-title { font-size: 15px; font-weight: 700; color: var(--secondary); line-height: 1.4; height: 42px; overflow: hidden; margin-bottom: 16px; }
.premium-footer { margin-top: auto; display: flex; flex-direction: column; gap: 15px; }
.premium-price-box { display: flex; flex-direction: column; }
.premium-price { font-size: 1.35rem; font-weight: 800; color: var(--secondary); }
.premium-price small { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.premium-btn { 
    display: flex; align-items: center; justify-content: center; gap: 8px; 
    background: #eff6ff; color: var(--primary); font-weight: 700; 
    padding: 12px; border-radius: 10px; transition: 0.3s; font-size: 14px; 
}
.premium-card:hover .premium-btn { background: var(--primary); color: #fff; }

/* ==========================================================================
   7. SEPET, ÖDEME VE SİPARİŞ TAKİBİ SAYFALARI (KORUNAN ALANLAR)
   ========================================================================== */
.cart-summary, .checkout-summary, .tracking-box, .success-box { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 30px; 
    margin-bottom: 30px; 
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 600; color: var(--secondary); }
.grand-total { font-size: 1.4rem; font-weight: 800; color: var(--primary); border-top: 2px solid var(--border-color); padding-top: 15px; margin-top: 15px; }
.cart-table th, .cart-table td { padding: 15px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer { background-color: var(--secondary); color: #fff; padding: 80px 0 30px; margin-top: 80px; }
.footer-col h3 { font-size: 15px; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 1px; color: #fff; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #cbd5e1; font-size: 14px; transition: 0.2s; }
.footer-col a:hover { color: #fff; }

/* ==========================================================================
   9. MOBİL UYUMLULUK (RESPONSIVE)
   ========================================================================== */
@media (max-width: 991px) {
    .search-form { max-width: 100%; margin: 15px 0; }
    .hero-minimal { padding: 40px 0; text-align: center; }
}

/* ==========================================================================
   WHATSAPP SABİT BUTON (YAZILI VERSİYON)
   ========================================================================== */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px; /* Hap (Pill) görünümü */
    display: flex;
    align-items: center;
    gap: 10px; /* İkon ve yazı arası boşluk */
    font-size: 15px;
    font-weight: 700;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float-btn i {
    font-size: 22px;
}

/* Hover Efekti: Yukarı kalkar ve parlar */
.whatsapp-float-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(18, 140, 126, 0.4);
}

/* Mobilde biraz daha kibar dursun */
@media (max-width: 768px) {
    .whatsapp-float-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 14px;
    }
    .whatsapp-float-btn i {
        font-size: 20px;
    }
}

/* --- LOGO YÜKSEKLİK SINIRI VE RESPONSIVE AYARI --- */
.navbar-brand img {
    max-height: 55px; /* Masaüstünde çıkabileceği maksimum yükseklik */
    width: auto;      /* Genişliği orantılı olarak kendi ayarlar */
    object-fit: contain; /* Logonun kesilmesini/ezilmesini engeller */
    transition: 0.3s;
}

/* Mobilde logoyu biraz daha derli toplu tutalım */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 40px; 
    }
}
/* ==========================================================================
   ÜRÜNLER SAYFASI (SOL FİLTRE MENÜSÜ)
   ========================================================================== */
.filter-sidebar {
    position: sticky;
    top: 120px; /* Header'ın altında sabit kalması için */
}

.filter-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.filter-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-list li {
    margin-bottom: 12px;
}
.filter-list li:last-child {
    margin-bottom: 0;
}

/* Özel Mavi Checkbox Tasarımı */
.custom-checkbox .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.custom-checkbox .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.custom-checkbox .form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    padding-top: 1px;
}
.custom-checkbox:hover .form-check-label {
    color: var(--primary);
}

/* Pagination (Sayfalama) Stilleri */
.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: 0.3s;
}
/* Header İkon Butonları Genel Stil */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    color: #1e293b;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Efektleri */
.header-icon-btn:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #3498db;
}

/* İkon Renkleri ve Boyutları */
.header-icon-btn i {
    font-size: 1.1rem;
}

/* Kayıt ve Çıkış İçin Özel Renkler */
.header-icon-btn.register {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.header-icon-btn.logout:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* MOBİL ÖZEL AYARLAR */
@media (max-width: 768px) {
    .header-icon-btn {
        height: 38px;
        width: 38px; /* Mobilde sadece kare ikon */
        padding: 0;
        border-radius: 10px;
    }
    
    .header-icon-btn span {
        display: none !important; /* Mobilde yazıları gizle, sadece şık ikon kalsın */
    }
    
    .gap-2 {
        gap: 6px !important; /* Mobilde aradaki boşluğu daralt */
    }
}
