/* assets/css/style.css - Tosun Demir Final Master (Slider Fix) */

:root {
    --primary: #c62828;          /* Kırmızı */
    --primary-dark: #8e0000;     /* Koyu Kırmızı */
    --secondary: #37474f;        /* Koyu Gri/Mavi */
    --light: #f5f5f5;           /* Açık Gri */
    --dark: #263238;            /* Koyu Antrasit */
    --gray: #546e7a;            /* Gri */
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { line-height: 1.6; color: var(--secondary); background-color: #fff; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   HEADER & MENU
   ========================================= */
header { background-color: white; padding: 10px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.1); }
.header-main { display: flex; justify-content: space-between; align-items: center; }

.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { max-height: 60px; width: auto; transition: var(--transition); }
.logo-img { width: 45px; height: 45px; background-color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 18px; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--dark); }
.logo-text span { color: var(--primary); }

nav ul { display: flex; gap: 5px; margin: 0; padding: 0; }
nav ul li a { color: var(--dark); font-weight: 600; padding: 10px 15px; display: block; transition: var(--transition); border-radius: 5px; font-size: 15px; }
nav ul li a:hover, nav ul li a.active { color: var(--primary); background: rgba(198, 40, 40, 0.05); }
.mobile-menu { display: none; color: var(--dark); font-size: 24px; cursor: pointer; }

/* =========================================
   GENEL ELEMENTLER
   ========================================= */
.btn { display: inline-block; background-color: var(--primary); color: white; padding: 12px 30px; border: none; border-radius: 5px; font-weight: bold; transition: var(--transition); cursor: pointer; text-align: center; }
.btn:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.page-header { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); background-size: cover; background-position: center; color: white; padding: 80px 0; text-align: center; margin-bottom: 40px; }
.page-header h1 { font-size: 42px; margin-bottom: 15px; }
.breadcrumb { display: flex; justify-content: center; padding: 0; }
.breadcrumb li { margin: 0 5px; }
.breadcrumb li a { color: #ddd; }
.breadcrumb li:not(:last-child)::after { content: ">"; margin-left: 10px; color: #999; }

.section-title { text-align: center; margin-bottom: 50px; margin-top: 40px; }
.section-title h2 { font-size: 36px; color: var(--dark); position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--primary); }

/* =========================================
   ANA SAYFA: HERO SLIDER (DÜZELTİLDİ)
   ========================================= */
.hero-slider { 
    position: relative; 
    height: 600px; 
    overflow: hidden; 
    background: #333; 
}

.slider-item { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 1s ease; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center;
    
    /* Tıklama Sorunu Çözümü: Görünmeyen slaytlar tıklanamaz */
    z-index: 0; 
    pointer-events: none; 
}

.slider-item.active { 
    opacity: 1; 
    z-index: 2; /* Öne çıkar */
    pointer-events: auto; /* Tıklanabilir yap */
}

.slider-content { 
    max-width: 600px; 
    color: white; 
    padding: 40px; 
    background: rgba(0,0,0,0.6); 
    border-radius: 10px; 
    margin-left: 10%; 
    backdrop-filter: blur(5px); 
    position: relative;
    z-index: 3; /* İçerik en üstte */
}

.slider-content h1 { font-size: 42px; margin-bottom: 20px; line-height: 1.2; }
.slider-arrows { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 20px; transform: translateY(-50%); z-index: 10; }
.slider-arrow { width: 50px; height: 50px; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; cursor: pointer; transition: var(--transition); }
.slider-arrow:hover { background: rgba(0,0,0,0.8); }

/* =========================================
   ANA SAYFA: KALİTE BÖLÜMÜ (3'LÜ ORTALI)
   ========================================= */
.about { padding: 80px 0; background-color: #fcfcfc; }
.about-features { display: flex !important; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 50px; }
.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 300px; padding: 10px; transition: var(--transition); }
.feature-item:hover { transform: translateY(-10px); }
.feature-icon { width: 100px; height: 100px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 40px; margin-bottom: 25px; flex-shrink: 0; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.feature-item:hover .feature-icon { box-shadow: 0 10px 25px rgba(198, 40, 40, 0.15); color: var(--primary-dark); }
.feature-item h4 { font-size: 20px; margin-bottom: 15px; color: var(--dark); font-weight: 700; }
.feature-item p { font-size: 15px; color: var(--gray); line-height: 1.6; }

/* =========================================
   ANA SAYFA: TEDARİKÇİLER (YAN YANA SLIDER)
   ========================================= */
.suppliers-section { padding: 60px 0; background: white; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.suppliers-wrapper { display: flex; align-items: center; gap: 20px; position: relative; }
.suppliers-container { overflow: hidden; width: 100%; position: relative; }
.suppliers-track { display: flex; gap: 30px; transition: transform 0.5s ease-in-out; width: max-content; flex-wrap: nowrap; }
.supplier-item { width: 200px; height: 100px; display: flex; align-items: center; justify-content: center; border: 1px solid #f5f5f5; border-radius: 8px; padding: 15px; background: #fff; flex-shrink: 0; }
.supplier-item img { max-width: 100%; max-height: 100%; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; object-fit: contain; }
.supplier-item:hover img { filter: grayscale(0); opacity: 1; }
.sup-arrow { background: transparent; border: 1px solid var(--primary); color: var(--primary); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: 0.3s; flex-shrink: 0; }
.sup-arrow:hover { background: var(--primary); color: white; }

/* =========================================
   VİDEO BÖLÜMÜ
   ========================================= */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); background: #000; margin-top: 30px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-container-limited { max-width: 800px; margin: 0 auto; }

/* =========================================
   ÜRÜNLER LİSTESİ
   ========================================= */
.products { padding: 80px 0; background-color: white; }
.products-page { padding: 60px 0; }
.page-layout { display: flex; gap: 40px; align-items: flex-start; }
.sidebar { width: 300px; flex-shrink: 0; }
.sidebar-widget { background: var(--light); padding: 30px; border-radius: 10px; margin-bottom: 30px; }
.sidebar-widget h3 { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); color: var(--dark); font-size: 18px; }
.category-list li { margin-bottom: 10px; }
.category-list li a { display: block; padding: 8px 12px; background: white; border-radius: 5px; border: 1px solid #eee; transition: var(--transition); }
.category-list li a:hover, .category-list li a.active { background: var(--primary); color: white; border-color: var(--primary); }
.main-content { flex: 1; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: var(--transition); border: 1px solid #eee; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.product-image { height: 240px; overflow: hidden; background: #f9f9f9; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.1); }
.product-info { padding: 25px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { margin-bottom: 10px; color: var(--dark); font-size: 18px; }
/* 3 Satır Sabit Yükseklik */
.product-card .product-info p { color: var(--gray); margin-bottom: 25px; min-height: 4.5em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5em; }
.product-info .btn { margin-top: auto; }

/* =========================================
   ÜRÜN DETAY SAYFASI
   ========================================= */
.product-detail { padding: 60px 0; }
.product-layout { display: flex; gap: 50px; align-items: flex-start; }
.product-gallery { flex: 1; position: sticky; top: 100px; }
.main-image { border-radius: 10px; overflow: hidden; margin-bottom: 20px; border: 1px solid #eee; }
.main-image img { width: 100%; height: auto; display: block; }

/* Küçük Resimler */
.thumbnails { display: flex; gap: 10px; margin-top: 15px; }
.thumbnail { width: 80px; height: 80px; border-radius: 5px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease; opacity: 0.7; }
.thumbnail:hover, .thumbnail.active { border-color: var(--primary); opacity: 1; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Bilgi Alanı */
.product-detail .product-info { text-align: left; padding: 0; flex: 1; display: block; }
.product-title { font-size: 32px; margin-bottom: 15px; color: var(--dark); line-height: 1.2; }

/* Tam Metin (Sınırsız) */
.product-description, .product-detail .product-info p { margin-bottom: 25px; color: var(--gray); font-size: 16px; line-height: 1.6; display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; height: auto !important; min-height: 0 !important; }

/* Özellikler */
.product-features { margin-bottom: 30px; background: #f9f9f9; padding: 20px; border-radius: 8px; }
.product-features h3 { font-size: 18px; margin-bottom: 15px; color: var(--dark); border-bottom: 1px solid #eee; padding-bottom: 10px; }
.features-list { list-style: none; padding: 0; margin: 0; }
.features-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: #555; }
.features-list li i { color: var(--primary); }

/* Tablo */
.specifications { margin-bottom: 30px; }
.specifications h3 { font-size: 18px; margin-bottom: 15px; color: var(--dark); }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid #eee; }
.spec-table th, .spec-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.spec-table th { background: var(--light); font-weight: 600; color: var(--dark); width: 40%; }

/* Aksiyon Butonları */
.product-actions { margin-top: 30px; display: flex; gap: 15px; }
.related-products { padding: 60px 0; background: var(--light); margin-top: 60px; }

/* =========================================
   HİZMETLER
   ========================================= */
.services-page { padding: 60px 0; }
.services-page .page-intro { margin-bottom: 80px; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.service-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: var(--transition); border: 1px solid #eee; }
.service-card:hover { transform: translateY(-10px); }
.service-image { height: 220px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.service-content { padding: 25px; }
.service-content h3 { font-size: 22px; margin-bottom: 15px; color: var(--dark); }
.service-content p { color: var(--gray); }

/* =========================================
   İLETİŞİM
   ========================================= */
.contact-page { padding: 60px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info { background: transparent; padding: 0; }
.contact-details { display: flex; flex-direction: column; margin-top: 15px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; color: var(--secondary); }
.contact-item i { color: var(--primary); margin-top: 5px; font-size: 20px; width: 25px; text-align: center; }
.contact-form { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border: 1px solid #eee; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; }
.form-control:focus { border-color: var(--primary); outline: none; }
textarea.form-control { height: 120px; resize: vertical; }
.map-section { margin-top: 60px; }
.map-responsive iframe { width: 100%; height: 450px; border-radius: 10px; border: none; }

/* =========================================
   ŞUBELER (ORTAK)
   ========================================= */
.locations { padding: 80px 0; background-color: var(--light); }
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.location-card { background: white; border-radius: 10px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); border-left: 4px solid var(--primary); }
.location-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.location-info h3 { margin-bottom: 20px; color: var(--dark); font-size: 22px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.location-detail { display: flex; gap: 15px; margin-bottom: 10px; }
.location-detail i { color: var(--primary); margin-top: 5px; width: 20px; text-align: center; }

/* =========================================
   FOOTER
   ========================================= */
footer { background-color: var(--dark); color: white; padding: 70px 0 0; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-contact h3 { margin-bottom: 25px; font-size: 18px; position: relative; padding-bottom: 10px; }
.footer-contact h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--primary); }
footer .contact-item { margin-bottom: 20px; color: #ccc; display: flex; align-items: flex-start; gap: 15px; }
footer .contact-item i { color: var(--primary); margin-top: 5px; }
.copyright { text-align: center; padding: 25px 0; border-top: 1px solid #444; font-size: 14px; }

/* =========================================
   RESPONSIVE (MOBİL DÜZELTMELER - FİNAL)
   ========================================= */
@media (max-width: 992px) {
    .page-layout { flex-direction: column; }
    .sidebar { width: 100%; margin-bottom: 40px; }
    .contact-layout { grid-template-columns: 1fr; }
    .product-layout { flex-direction: column; }
    .product-gallery { position: static; } 
}

@media (max-width: 768px) {
    .header-main { flex-direction: row; position: relative; justify-content: space-between; align-items: center; padding: 10px 15px; height: 70px; }
    
    /* MOBİL LOGO KÜÇÜLTME */
    .logo img { max-height: 35px; width: auto; transition: var(--transition); }
    
    /* Hamburger Menü */
    .mobile-menu { display: block; font-size: 28px; color: var(--dark); cursor: pointer; }

    nav ul { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 9999; }
    nav ul.active { display: flex; }
    
    /* MOBİL SLIDER İNCELTME */
    .hero-slider { height: 280px !important; }
    .slider-content { max-width: 100%; margin: 0 15px; text-align: center; padding: 20px; }
    .slider-content h1 { font-size: 20px; margin-bottom: 10px; }
    .slider-content p { font-size: 13px; margin-bottom: 10px; line-height: 1.4; }
    .slider-content .btn { padding: 8px 20px; font-size: 13px; }
    .slider-arrows { display: none; }

    /* MOBİL ABOUT (ÖZELLİKLER) */
    .about-features { flex-direction: column; align-items: center; gap: 30px; }
    .feature-item { width: 100%; max-width: 300px; padding: 20px; }

    /* MOBİL FOOTER SOLA YASLAMA */
    .footer-content { grid-template-columns: 1fr; text-align: left !important; }
    .footer-contact h3::after { left: 0 !important; transform: none !important; }
    footer .contact-item { justify-content: flex-start !important; }
    
    /* MOBİL TEDARİKÇİ */
    .suppliers-wrapper { padding: 0; }
    .sup-arrow { display: none; }
    .suppliers-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}