/* ============================================================
   MARTAŞ OTO - PREMIUM UI KIT (2025 EDITION)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    /* --- YENİ RENK PALETİ --- */
    --primary: #e63946;       /* Canlı, Modern Kırmızı */
    --primary-dark: #b91c1c;  /* Koyu Kırmızı (Hover için) */
    --dark: #0f172a;          /* Gece Mavisi/Siyah (Daha modern siyah) */
    --light: #f8fafc;         /* Buz Beyazı Zemin */
    --gray: #64748b;          /* Modern Gri */
    --white: #ffffff;
    
    /* Efektler */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    --radius: 12px;           /* Daha yumuşak köşeler */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 1. GENEL AYARLAR --- */
* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Outfit', sans-serif; /* Daha modern bir font */
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }

/* --- 2. TOPBAR --- */
.top-bar {
    background: var(--dark);
    color: #94a3b8;
    font-size: 13px;
    padding: 10px 0;
    font-weight: 500;
}
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-left i { color: var(--primary); margin-right: 6px; }
.top-right { display: flex; gap: 20px; }
.top-right a:hover { color: var(--white); }
.wp-link { color: #4ade80 !important; }

/* --- 3. HEADER (CAM ETKİSİ) --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0; /* Header artık yapışkan değil, nav yapışkan olacak */
    z-index: 20;
}

.header-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; }

.logo a {
    font-size: 28px; font-weight: 900; color: var(--dark);
    letter-spacing: -1px; text-transform: uppercase;
    display: flex; align-items: center; gap: 10px;
}
.logo a img { max-height: 50px; }

/* Modern Arama Kutusu */
.search-box { flex-grow: 1; max-width: 600px; position: relative; }
.search-box form {
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 50px; /* Tam yuvarlak */
    padding: 4px;
    display: flex;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.search-box form:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}
.search-box input {
    flex: 1; border: none; background: transparent; padding: 0 20px;
    font-size: 15px; outline: none; font-family: 'Outfit', sans-serif;
}
.search-box button {
    background: var(--primary); color: white; border: none;
    width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.search-box button:hover { background: var(--primary-dark); transform: scale(1.05); }
.search-box button span { display: none; } /* Yazıyı gizle, sadece ikon */

/* --- 4. NAVİGASYON --- */
nav {
    background: var(--dark);
    padding: 0;
    position: sticky; top: 0; z-index: 1000;
}
.nav-container { min-height: 50px; display: flex; align-items: center; }
.nav-links { display: flex; gap: 5px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    color: #cbd5e1;
    font-size: 14px; font-weight: 600;
    padding: 14px 18px;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

/* Mobil Menü Butonu */
.mobile-menu-btn { display: none; color: white; padding: 15px 0; cursor: pointer; font-weight: 700; text-transform: uppercase; }
.mobile-menu-btn i { color: var(--primary); margin-right: 10px; }

/* --- 5. HERO SECTION (VİTRİN) --- */
.hero-section {
    position: relative; height: 550px;
    background-size: cover !important; background-position: center !important;
    display: flex; align-items: center; justify-content: flex-start; /* Sola yasla */
    overflow: hidden; margin-bottom: 40px;
    border-radius: 0 0 30px 30px; /* Alt köşeleri yuvarla */
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 100%);
    z-index: 1;
}
.hero-content-inner {
    position: relative; z-index: 2;
    padding-left: 80px; max-width: 700px;
    text-align: left;
}
.hero-content-inner h1 {
    font-size: 56px; color: var(--white);
    line-height: 1.1; margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero-content-inner p { font-size: 20px; color: #cbd5e1; margin-bottom: 35px; font-weight: 300; }

.btn-hero {
    display: inline-block; padding: 16px 40px;
    background: var(--primary); color: white;
    font-weight: 700; border-radius: 50px;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}
.btn-hero:hover { background: var(--white); color: var(--primary); transform: translateY(-5px); }

/* --- 6. MODERN ÜRÜN KARTLARI --- */
main h2 {
    font-size: 32px; color: var(--dark);
    margin-bottom: 40px; position: relative;
    display: inline-block;
}
main h2::after {
    content: ''; position: absolute; bottom: -10px; left: 0;
    width: 60px; height: 4px; background: var(--primary); border-radius: 2px;
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; padding-bottom: 60px; }

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 57, 70, 0.1);
    z-index: 10;
}

.img-box {
    height: 220px;
    display: flex; align-items: center; justify-content: center;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative; overflow: hidden;
}
.img-box img { max-width: 90%; max-height: 90%; transition: var(--transition); mix-blend-mode: multiply; }
.product-card:hover .img-box img { transform: scale(1.1) rotate(-2deg); }

/* --- MARKALAR (DÜZELTİLMİŞ) --- */
.brands-strip {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.brands-strip .container {
    display: flex;
    justify-content: center; /* Ortala */
    align-items: center;
    flex-wrap: wrap;
    gap: 40px; /* Logolar arası boşluk */
}

.brand-item {
    flex: 0 1 auto; /* Esnek ama devleşmesin */
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition);
    text-align: center;
}

/* LOGO BOYUT KISITLAMASI (Sorunu Çözen Yer) */
.brand-item img {
    height: 45px; /* Yükseklik sabit 45px */
    width: auto;  /* Genişlik orantılı */
    max-width: 150px; /* Aşırı geniş logoları engelle */
    object-fit: contain;
    display: block;
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.card-body h3 {
    font-size: 16px; margin-bottom: 10px;
    height: 44px; overflow: hidden; /* 2 satırla sınırla */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-body h3 a { color: var(--dark); }
.card-body h3 a:hover { color: var(--primary); }

.price-row {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 15px; border-top: 1px solid #f1f5f9; padding-top: 10px;
}
.price { font-size: 24px; font-weight: 900; color: var(--primary); line-height: 1; }
.price small { font-size: 14px; font-weight: 500; color: var(--gray); }
.stock-status { font-size: 12px; color: #10b981; font-weight: 700; background: #ecfdf5; padding: 2px 8px; border-radius: 4px; }

/* Kart Butonları */
.action-buttons { display: grid; grid-template-columns: 1fr 3fr; gap: 10px; }
.btn-call {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 40px; border-radius: 8px;
    background: #f1f5f9; color: var(--dark); border: 1px solid #e2e8f0;
}
.btn-call:hover { background: var(--dark); color: white; }

.btn-wp {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 40px; border-radius: 8px;
    background: #10b981; color: white; font-weight: 700; font-size: 13px;
}
.btn-wp:hover { background: #059669; box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); }

/* --- 7. ÜRÜN DETAY (DÜZENLİ & TEMİZ) --- */
.product-detail-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 40px;
}

.pd-top-section { display: flex; align-items: stretch; }

/* Sol Taraf */
.pd-left-col {
    flex: 0 0 45%; max-width: 45%;
    background: var(--white);
    padding: 40px;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid #f1f5f9;
}
.pd-image-wrapper { width: 100%; height: 500px; text-align: center; position: relative; }
.pd-image-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Sağ Taraf */
.pd-right-col { flex: 1; padding: 50px; background: #fff; }
.pd-title { font-size: 32px; color: var(--dark); line-height: 1.2; margin-bottom: 20px; }

.pd-meta-box {
    display: flex; gap: 20px; margin-bottom: 30px;
    padding: 15px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0;
}
.pm-item { font-size: 14px; color: var(--gray); font-weight: 500; }
.pm-item strong { color: var(--dark); }

.pd-price-area {
    margin-bottom: 30px;
}
.pd-price { font-size: 48px; font-weight: 900; color: var(--primary); letter-spacing: -2px; line-height: 1; }
.pd-price small { font-size: 24px; font-weight: 600; color: var(--gray); }
.pd-kdv { font-size: 13px; color: var(--gray); margin-top: 5px; font-weight: 500; }

.pd-actions { display: flex; gap: 20px; margin-bottom: 40px; }
.pd-btn {
    flex: 1; padding: 20px; border-radius: 12px;
    font-size: 16px; font-weight: 800; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-call { background: var(--white); border: 2px solid var(--dark); color: var(--dark); }
.btn-call:hover { background: var(--dark); color: white; }
.btn-wp { background: #10b981; color: white; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); }
.btn-wp:hover { background: #059669; transform: translateY(-3px); }

/* Açıklama */
.pd-bottom-section { padding: 50px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.pd-bottom-section h3 { font-size: 22px; margin-bottom: 20px; }
.desc-text { font-size: 16px; color: var(--gray); max-width: 800px; }

/* --- 8. SEO & ETİKETLER --- */
.seo-section-wrapper { background: var(--white); padding: 80px 0; border-top: 1px solid #e2e8f0; margin-top: 60px; }
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.seo-text-content h3 { font-size: 24px; margin-bottom: 20px; color: var(--dark); }
.seo-text-content p { color: var(--gray); margin-bottom: 20px; }
.tag-cloud-wrapper h3 { font-size: 18px; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
    padding: 6px 14px; font-size: 13px; font-weight: 500;
    background: #f1f5f9; color: var(--gray); border-radius: 20px;
}
.tags a:hover { background: var(--primary); color: white; }

/* --- FOOTER (DÜZENLENMİŞ) --- */
.site-footer {
    background-color: #0f172a; /* Koyu Lacivert/Siyah */
    color: #94a3b8; /* Okunaklı Gri Metin */
    padding-top: 60px;
    margin-top: 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    /* 4 Sütunlu Düzen: İlk sütun (Hakkında) biraz daha geniş */
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Link Listeleri */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: var(--white);
    transform: translateX(5px); /* Sağa kayma efekti */
    color: var(--primary);
}

/* İletişim Listesi */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.contact-list i {
    color: var(--primary);
    margin-top: 4px;
}

/* Footer Alt Çizgi */
.footer-bottom {
    background-color: #020617; /* Daha koyu zemin */
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    opacity: 0.6;
}

/* MOBİL İÇİN FOOTER DÜZENİ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 30px;
        text-align: center;
    }
    
    .footer-widget h3 {
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
        display: inline-block;
    }
    
    .contact-list li {
        justify-content: center; /* İletişim bilgilerini ortala */
    }
    
    .brands-strip .container {
        gap: 25px; /* Mobilde logoları biraz daha yaklaştır */
    }
    .brand-item img {
        height: 35px; /* Mobilde logolar biraz daha küçük */
    }
}
/* --- 10. MOBİL UYUMLULUK --- */
@media (max-width: 900px) {
    .container { padding: 0 20px; }
    .hero-section { height: auto; padding: 80px 0; border-radius: 0; text-align: center; justify-content: center; }
    .hero-content-inner { padding: 0 20px; text-align: center; }
    .hero-content-inner h1 { font-size: 36px; }
    
    .nav-links, .top-bar, .hero-section { display: none !important; }
    
    .header-content { flex-direction: column; gap: 20px; }
    .search-box { width: 100%; }
    .mobile-menu-btn { display: block; color: var(--dark); }
    
    .pd-top-section { flex-direction: column; }
    .pd-left-col { flex: auto; max-width: 100%; border-right: none; height: 350px; padding: 20px; }
    .pd-right-col { padding: 25px; }
    .pd-title { font-size: 24px; }
    .pd-price { font-size: 36px; }
    .pd-actions { flex-direction: column; gap: 15px; }
    
    .seo-grid { grid-template-columns: 1fr; }
}

/* --- 11. MOBİL YAN MENÜ --- */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(5px); }
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
    background: var(--white); z-index: 2001; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; box-shadow: 20px 0 50px rgba(0,0,0,0.2);
}
.mobile-sidebar.active { left: 0; }

.mobile-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.mobile-header .m-logo { font-size: 20px; font-weight: 900; color: var(--dark); }
.close-btn { font-size: 24px; color: var(--gray); cursor: pointer; }

.mobile-links { flex: 1; overflow-y: auto; padding: 20px; }
.mobile-links a { display: flex; align-items: center; padding: 15px 0; color: var(--dark); font-weight: 600; border-bottom: 1px solid #f1f5f9; }
.mobile-links a i { width: 30px; color: var(--primary); }

.mobile-contact { padding: 20px; border-top: 1px solid #eee; display: flex; gap: 10px; }
.m-btn { flex: 1; padding: 12px; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 14px; }
.m-call { background: var(--dark); color: white; }
.m-wp { background: #10b981; color: white; }

/* Yüzen Butonlar */
.mobile-floating-btns { display: none; }
@media (max-width: 768px) {
    .mobile-floating-btns { display: block; z-index: 3000; }
    .float-btn { position: fixed; bottom: 30px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
    .float-call { left: 20px; background: var(--dark); }
    .float-wp { right: 20px; background: #10b981; animation: pulse 2s infinite; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
}