/* Dosya: assets/css/style.css */

:root {
    /* --- KURUMSAL RENKLER --- */
    --primary-color: #ffdd17;       /* Marka Sarısı */ 
    --primary-hover: #ffca2c;       /* Hover (Açık Sarı) */
    --primary-text: #000000;        /* Sarı üzeri yazı rengi */
    
    --secondary-color: #6c757d;     /* Gri */
    --dark-color: #1a1a1a;          /* Koyu Antrasit/Siyah */
    --light-bg: #f8f9fa;            /* Sayfa Arka Planı */
    --border-color: #e9ecef;        /* Çizgi Rengi */
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Yumuşak Gölge */
    --card-radius: 12px;            /* Kart Köşe Yuvarlaklığı */
}

/* --- TEMEL AYARLAR --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light-bg);
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}
a:hover { 
    color: var(--primary-color); 
}

/* =========================================
   1. HEADER & NAVIGATION (Ana Yapı)
   ========================================= */

/* --- TOP HEADER (En Üst Bant) --- */
.top-header {
    background-color: #0f172a; /* Premium Dark Lacivert */
    color: rgba(255, 255, 255, 0.85);
    padding: 9px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.top-link:hover { color: var(--primary-color); }

.top-header .divider { color: rgba(255, 255, 255, 0.2); margin: 0 5px; }
.top-header .dot { color: rgba(255, 255, 255, 0.4); margin: 0 4px; }
.work-hours { font-size: 0.8rem; color: rgba(255, 255, 255, 0.9); }

/* --- MAIN HEADER (Orta Logo Alanı) --- */
.main-header {
    background-color: #1e293b; /* Koyu Gri/Mavi Ton */
    padding: 20px 0;
    color: #fff;
    position: relative;
    z-index: 100;
}

/* Logo */
.site-logo img { max-height: 50px; width: auto; display: block; }
.site-logo h3 { color: #fff; font-weight: 800; margin: 0; }

/* Arama Kutusu */
.header-search {
    position: relative; width: 100%; display: flex; background: #fff; border-radius: 50px; overflow: hidden; height: 46px;
}
.header-search .form-control {
    border: none; height: 100%; padding-left: 20px; font-size: 0.95rem; box-shadow: none !important;
}
.header-search .btn {
    background: var(--primary-color); border: none; color: #000; width: 60px; height: 100%; display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.header-search .btn:hover { background: #e0a800; }

/* Header Sağ Buton Grubu */
.header-actions { gap: 15px; }

.btn-mobile-search, .btn-mobile-user {
    width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
}

/* Kullanıcı Dropdown */
.user-dropdown-btn {
    background: transparent; border: none; display: flex; align-items: center; gap: 10px; color: #fff; padding: 0;
}
.user-dropdown-btn .icon-box {
    width: 42px; height: 42px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.1rem; transition: 0.3s;
}
.user-dropdown-btn:hover .icon-box { background: var(--primary-color); color: #000; }
.user-info { text-align: left; line-height: 1.2; }
.user-info span { display: block; font-size: 0.75rem; opacity: 0.7; }
.user-info strong { font-size: 0.9rem; display: block; }

/* Giriş / Kayıt Linkleri */
.auth-links { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem; }
.auth-links a { color: #fff; }
.auth-links a:hover { color: var(--primary-color); }
.auth-links .sep { opacity: 0.3; color: #fff; }

/* Sepet Butonu */
.cart-btn {
    background: #fff; color: #1e293b; border-radius: 50px; padding: 8px 20px; display: flex; align-items: center; gap: 10px; font-weight: 700; height: 46px; transition: 0.3s;
}
.cart-btn i { font-size: 1.1rem; }
.cart-btn .count {
    background: #1e293b; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.cart-btn:hover { background: var(--primary-color); color: #000; }

/* Teklif Al Butonu */
.btn-offer {
    background-color: var(--dark-color);
    color: #fff;
    border-radius: 50px;
    height: 46px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    padding: 0 20px;
}
.btn-offer i { color: var(--primary-color); font-size: 1rem; }
.btn-offer:hover { background-color: var(--primary-color); color: #000; transform: translateY(-2px); }
.btn-offer:hover i { color: #000; }

/* --- 3. NAVBAR (Kategori Menüsü - Tek Satır & Mega Menü) --- */
.navbar-custom {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.navbar-custom .nav-link {
    padding: 14px 8px !important; /* Sıkı boşluklar */
    font-weight: 700;
    color: #444;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: 0.2s;
    position: relative;
    white-space: nowrap; /* Tek satır zorunluluğu */
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.show {
    color: var(--primary-color);
    background: rgba(0,0,0,0.02);
}

/* Alt Çizgi Efekti */
.navbar-custom .nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--primary-color); transition: width 0.3s;
}
.navbar-custom .nav-link:hover::after { width: 100%; }

/* Mega Menü Genel Ayarları */
.dropdown-menu.mega-menu {
    border: none;
    border-top: 3px solid var(--primary-color);
    margin-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
    width: 100%;
    left: 0;
    right: 0;
    background: #fff;
    display: none; /* JS ile kontrol edilir */
}

.navbar-custom .dropdown:hover .mega-menu {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu .container { padding: 20px; }

/* Mega Menü İçindeki Linkler */
.dropdown-item {
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #555;
    border-radius: 6px;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Küçük Kategori İkonları (Mega Menü İçin) */
.cat-thumb-small {
    transition: all 0.2s;
}
.dropdown-item:hover .cat-thumb-small {
    border-color: var(--primary-color) !important;
    background: #fff;
    transform: scale(1.05);
}

/* Resim Efekti */
.mix-blend-multiply {
    mix-blend-mode: multiply;
}

/* =========================================
   2. SLIDER & HERO (Modern Efektli)
   ========================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.mainSlider {
    width: 100%;
    height: 600px; /* Masaüstü Yüksekliği */
}

/* Arkaplan Resmi Ayarları - SABİT VE TAM SIĞAN */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Resmi kutuya tam yayar */
    background-size: 100% 100% !important; 
    background-position: center center;
    background-repeat: no-repeat;
    /* Zoom efekti (transition) kaldırıldı */
    transition: none !important; 
    transform: none !important;
}

/* Zoom efekti (transform) kaldırıldı */
.swiper-slide-active .slide-bg {
    transform: none !important;
}

/* Koyu Gradyan Katmanı (Yazı Okunabilirliği İçin) */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* İçerik Konumlandırma */
.slide-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #fff;
}

/* Başlık Stili */
.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
}

/* Açıklama Stili */
.slide-desc {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

/* Buton Alanı */
.slide-btn-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

/* Swiper Okları Özelleştirme */
.swiper-button-next, .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff !important;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: #000 !important;
    border-color: var(--primary-color);
}

/* Sayfalama Noktaları */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: 0.3s;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 30px; /* Aktif olan uzasın */
    border-radius: 5px;
}

/* Animasyon Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   3. BİLEŞENLER (Kartlar, Footer, vb.)
   ========================================= */

/* --- Ürün Kartları (Pro Card) --- */
.pro-card {
    border: 1px solid #f1f1f1; border-radius: var(--card-radius); overflow: hidden; background: #fff; transition: all 0.3s ease; position: relative; height: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.pro-img-box { position: relative; height: 240px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.pro-img-box img { max-width: 90%; max-height: 90%; transition: 0.5s; }
.pro-badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px; z-index: 2; letter-spacing: 0.5px; }
.badge-new { background: #222; color: #fff; }
.badge-sale { background: #dc3545; color: #fff; }
.badge-popular { background: var(--primary-color); color: #000; }
.pro-actions { position: absolute; bottom: -50px; left: 0; width: 100%; display: flex; justify-content: center; gap: 8px; transition: 0.3s; opacity: 0; }
.btn-action { width: 35px; height: 35px; border-radius: 50%; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; background: #fff; color: #333; transition: 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-action:hover { background: var(--primary-color); border-color: var(--primary-color); color: #000; }
.pro-info { padding: 15px; text-align: left; position: relative; padding-bottom: 35px !important; }
.pro-cat { font-size: 10px; text-transform: uppercase; color: #999; letter-spacing: 1px; margin-bottom: 3px; display: block; font-weight: 600; }
.pro-title { font-weight: 700; color: #333; font-size: 14px; display: block; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.pro-price { font-weight: 800; font-size: 15px; color: var(--dark-color); }

/* Yıldızları Sağ Alta Hizalama */
.pro-rating {
    position: absolute;
    bottom: 12px;
    right: 12px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}
.pro-rating i { font-size: 10px; color: #ffdd17; }
.pro-rating span { font-size: 10px; color: #888; margin-left: 3px; font-weight: 700; }

/* --- Kategori Kartları (Eski Tip) --- */
.cat-card { background: #fff; border: 1px solid #eee; padding: 25px; text-align: center; border-radius: 12px; transition: 0.3s; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cat-card:hover { border-color: var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-5px); }
.cat-card img { max-height: 80px; margin-bottom: 15px; }
.cat-card h5 { font-size: 1rem; font-weight: 700; margin: 0; color: #333; }

/* --- Footer --- */
.main-footer { background-color: #151b26; color: #a0a0a0; font-size: 0.9rem; }
.footer-links { padding: 0; list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a0a0a0; transition: 0.2s; font-size: 0.9rem; display: flex; align-items: center; }
.footer-links a:before { content: '\f105'; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; font-size: 0.8rem; opacity: 0.5; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-links a:hover:before { opacity: 1; color: var(--primary-color); }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; color: #fff; transition: 0.3s; margin-right: 5px; }
.social-icons a:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: #000; }
.newsletter-form input { background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; padding: 12px 20px; padding-right: 100px; color: #fff; width: 100%; }
.newsletter-form input:focus { background-color: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); outline: none; }
.newsletter-form button { position: absolute; right: 5px; top: 5px; border-radius: 50px; padding: 7px 20px; background-color: var(--primary-color); color: #000; border: none; font-weight: 600; }
.newsletter-form button:hover { background-color: #fff; }

/* --- Utilities --- */
.btn-primary { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; color: #000 !important; font-weight: 600; }
.btn-primary:hover { background-color: #e0a800 !important; border-color: #e0a800 !important; }
.btn-dark { background-color: var(--dark-color); border-color: var(--dark-color); }
.btn-dark:hover { background-color: #000; border-color: #000; }
.text-primary { color: #d69e00 !important; }
.bg-primary { background-color: var(--primary-color) !important; color: #000 !important; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* =========================================
   4. SAYFALAR (Sepet vb.)
   ========================================= */

/* --- SEPET --- */
.cart-item-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px; margin-bottom: 20px; transition: 0.3s; position: relative; }
.cart-item-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--primary-color); }
.cart-img-wrap { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: #f9f9f9; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-img-wrap img { max-width: 100%; max-height: 100%; }
.qty-control { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 50px; padding: 5px; width: fit-content; }
.qty-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: #f1f1f1; color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.qty-btn:hover { background: var(--dark-color); color: #fff; }
.qty-input { width: 40px; text-align: center; border: none; background: transparent; font-weight: bold; font-size: 14px; }
.summary-card { background: #f8f9fa; border: 1px solid #eee; border-radius: 12px; padding: 25px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.95rem; color: #555; }
.summary-total { border-top: 1px solid #ddd; padding-top: 15px; margin-top: 15px; display: flex; justify-content: space-between; align-items: center; }
.summary-total span { font-size: 1.1rem; font-weight: bold; color: #000; }
.summary-total strong { font-size: 1.5rem; color: var(--primary-color); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .mainSlider { height: 450px; }
    .slide-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%); }
    .slide-title { font-size: 2rem; }
    .slide-desc { font-size: 1rem; margin-bottom: 20px; margin: 0 auto 20px auto; border-left: none; }
    .swiper-button-next, .swiper-button-prev { display: none; } 
    .slide-content { text-align: center; }
    
    .cart-item-card { flex-direction: column; align-items: flex-start !important; }
    .cart-img-wrap { width: 100%; height: 150px; margin-bottom: 15px; }
    .cart-details, .cart-actions { width: 100%; margin-bottom: 15px; }
    .cart-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 15px; }
}

/* --- ANASAYFA ÖZEL TASARIM (KOMPAKT VERSİYON) --- */

/* Bölüm Başlıkları */
.home-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.home-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Nasıl Çalışır? (Kompakt Tasarım) */
.how-it-works-section {
    background-color: #f8f9fa;
    padding: 30px 0;
}
.work-step-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f1f1;
    height: 100%;
    position: relative;
    margin-top: 10px;
}
.work-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}
.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    z-index: 2;
}
.step-icon-box {
    width: 45px;
    height: 45px;
    background: #fff9e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.work-step-card h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; }
.work-step-card p { font-size: 0.75rem; color: #666; margin: 0; line-height: 1.4; }

/* Kampanyalar */
.campaign-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    background: #fff;
}
.campaign-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.campaign-card img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 12px; }

/* Ürün Grid Düzeni */
.products-grid-section { padding: 40px 0; }
.view-all-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
    transition: 0.3s;
}
.view-all-btn:hover { color: var(--primary-color); transform: translateX(5px); }

/* --- MUTLU MÜŞTERİLER MODERN TASARIM (Kompakt) --- */
.testimonial-section {
    padding: 50px 0;
    background-color: #ffffff;
}

.commentSlider {
    padding: 30px 10px !important;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #f0f0f0 !important;
    border-radius: 15px !important;
    padding: 30px 20px 20px 20px !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02) !important;
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    border-color: var(--primary-color) !important;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.15;
}

.avatar-wrapper {
    position: absolute;
    top: -22px;
    left: 20px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #ffdb70);
    color: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f8f8f8;
    padding-top: 10px;
}

.testimonial-name h6 {
    margin: 0;
    font-weight: 700;
    color: #333;
    font-size: 0.85rem;
}

.testimonial-name span {
    font-size: 0.7rem;
    color: #aaa;
}

.testimonial-stars {
    color: #ffdd17;
    font-size: 0.7rem;
}