@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --primary-color: #4f46e5; /* Güven veren Indigo Mavi */
    --primary-hover: #3730a3; /* Daha koyu hover rengi */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* =======================================
   1. NAVBAR & MEGA MENU
======================================= */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

@media all and (min-width: 992px) {
    .nav-item.dropdown.position-static {
        position: static !important;
    }
    .mega-menu {
        width: 100%;
        border: none;
        border-top: 2px solid var(--primary-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-radius: 0 0 12px 12px;
        padding: 30px;
        margin-top: 0;
    }
}

.mega-menu-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

/* =======================================
   2. BUTONLAR
======================================= */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* =======================================
   3. ÜRÜN & KATEGORİ KARTLARI
======================================= */
.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--primary-color);
}

.product-img-wrapper {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-img-wrapper i {
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper i {
    transform: scale(1.15);
}

.product-img-placeholder {
    height: 180px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    display: block;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Sepete Ekle Butonu Animasyonu */
.btn-add-cart-anim {
    transition: all 0.2s;
}
.btn-add-cart-anim:active {
    transform: scale(0.95);
}

/* =======================================
   4. E-TİCARET DETAYLARI (Fiyatlar & Adımlar)
======================================= */
.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 8px;
}

/* 2 Satır Metin Sınırlandırma (Uzun başlıklar için) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nasıl Çalışır (Adımlar) Kutu CSS'i */
.step-box {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.step-box:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px auto;
}

/* =======================================
   5. BİLEŞENLER (WhatsApp & Arama Menüsü)
======================================= */
/* Floating WhatsApp Button */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.floating-chat:hover {
    transform: scale(1.1);
    color: white;
}

/* Full Screen Mobile Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 99999; /* En üstte durmalı */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-close-search {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 100000;
    transition: transform 0.3s ease;
}

.btn-close-search:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.cursor-pointer { 
    cursor: pointer; 
    transition: all 0.2s; 
}

.cursor-pointer:hover { 
    background-color: var(--primary-color) !important; 
    color: white !important; 
    border-color: var(--primary-color) !important;
}

.search-overlay-input:focus {
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
}

/* =======================================
   6. FOOTER (Koyu Tema & Animasyonlar)
======================================= */
.footer-custom {
    background-color: #0f172a; /* Slate 900 - Premium Koyu Lacivert */
    color: #f2f2f2;
}

.footer-links a {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover sağa kayma efekti */
.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px); 
}

/* Sosyal Medya Kutucukları */
.social-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f2f2f2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-box:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Güvenli Ödeme Kutucukları */
.payment-methods .payment-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f2f2f2;
}