/* =================================================================
   1. TEMEL STİLLER (LIGHT MODE VARIABLES)
   ================================================================= */
:root {
    --bg: #f8f9fa;             /* Sayfa Arka Planı (Çok Açık Gri) */
    --card: #ffffff;           /* Kart Arka Planı (Beyaz) */
    --muted: #6c757d;          /* İkincil Metin (Orta Gri) */
    --text: #212529;           /* Ana Metin (Koyu Gri) */
    --accent: #007bff;         /* Vurgu Rengi (Mavi) */
    --accentText: #ffffff;     /* Vurgu Üzeri Metin (Beyaz) */
    --ok: #28a745;             /* Başarı Rengi (Yeşil) */
    --danger: #dc3545;         /* Tehlike Rengi (Kırmızı) */
    --brand: #e9ecef;          /* Marka / Ayırıcı (Açık Gri) */
    --border: #dee2e6;         /* Kenarlık Rengi (Orta Açık Gri) */
    --blue-nav: #193a7d;       /* Navigasyon Barı Rengi (Koyu Mavi) */
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu; background: var(--bg); color: var(--text); }
a {color: #193a7d;text-decoration: none;}
a:hover { color: var(--accent-hover); }

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

h1, h2, h3 { margin: 18px 0 8px; }
h2.section-title { font-size: 28px; text-align: left; margin: 40px 0 20px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* === DAHA ŞIK FOOTER STİLLERİ === */

.site-footer {
    background-color: #f8f9fa; /* Hafif ve modern bir arkaplan rengi */
    padding: 60px 0 30px 0; /* Üstten daha fazla, alttan daha az boşluk */
    border-top: 1px solid #e9ecef;
    color: #6c757d; /* Genel metin rengi */
    font-size: 0.95rem;
}

/* --- Masaüstü Stilleri (Grid) --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Masaüstünde 4 eşit sütun */
    gap: 40px; /* Sütunlar arası boşluk */
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #343a40; /* Başlıklar için daha koyu bir renk */
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
    color: var(--accent, #007bff);
    padding-left: 5px; /* Üzerine gelince hafifçe sağa kaysın */
}

/* Akordiyon ikonunu masaüstünde tamamen gizle */
.footer-toggle-icon {
    display: none;
}


/* --- Mobil Stilleri (Akordiyon - Ekran 768px'den küçükse) --- */
@media (max-width: 768px) {
    .footer-grid {
        /* Bu kuralın diğerlerini ezmesi için !important ekliyoruz. */
        grid-template-columns: 1fr !important; /* Mobilde tek sütun (alt alta) */
        gap: 0;
    }
    
    /* Diğer mobil footer stilleriniz aynı kalabilir... */
    .footer-col {
        border-bottom: 1px solid var(--border, #e0e0e0);
    }
    .footer-col:last-child {
        border-bottom: none;
    }
    .footer-col h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0; /* <-- Dikey margin'i tamamen sıfırlıyoruz */
    padding: 1px 5px; /* <-- Dikey boşluğu azalttık ve kenarlara hafif boşluk verdik */
    cursor: pointer;
    transition: color 0.3s;
}
    .footer-toggle-icon {
        display: inline-block;
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    .footer-links-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    }
    .footer-col.active .footer-links-content {
        max-height: 500px;
        padding-bottom: 20px;
    }
    .footer-col.active h4 {
        color: var(--accent, #007bff);
    }
    .footer-col.active .footer-toggle-icon {
        transform: rotate(45deg);
    }
}
/* =================================================================
   2. HEADER VE NAVİGASYON
   ================================================================= */
.header-nav ul li.active a {color: #fcdc38;} /* Navigasyon aktif link rengi sarı kalabilir */
.header-nav .nav-icon-svg { width: 22px; height: 22px; vertical-align: middle; }
header { border-bottom: 1px solid var(--border); position: relative; background: var(--card); }
.header-top { padding: 12px 0; border-bottom: 1px solid var(--border); }
.header-top .container { display: flex; align-items: center; justify-content: space-between; }
.header-top .logo img { height: 40px; }
.top-links { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.top-links img { height: 18px; vertical-align: middle; margin-right: 5px; }
.top-links a:hover { color: var(--text); }
.top-contact { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.top-contact svg { width: 18px; height: 18px; color: var(--accent); }
.header-main { padding: 16px 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-search { flex-grow: 1; position: relative; }
.site-search input { width: 100%; background-color: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px 12px 40px; font-size: 14px; color: var(--text); }
.site-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.user-actions { display: flex; align-items: center; background: var(--bg); border-radius: 8px; padding: 4px; gap: 4px; }
.user-actions a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 13px; font-weight: 600; transition: background-color .2s; }
.user-actions a:hover { background-color: var(--border); }
.user-actions a.cart-action { background-color: var(--border); }
.user-actions svg { width: 18px; height: 18px; }
.header-nav { background-color: var(--blue-nav); }
.header-nav .container { padding: 0; }
.header-nav ul { list-style: none; display: flex; justify-content: flex-start; gap: 10px; margin: 0; padding: 0; }
.header-nav ul a { display: block; padding: 14px 16px; color: #fff; font-size: 14px; font-weight: 600; transition: background-color .2s; border-radius: 4px 4px 0 0; }
.header-nav ul a:hover { background-color: rgba(255, 255, 255, 0.1); }

/* =================================================================
   3. ANA SAYFA MODÜLLERİ
   ================================================================= */
#top-grid { padding: 20px 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 20px; }
.search-box-cell { grid-column: 1 / 3; grid-row: 1 / 3; }
.banner-cell { border-radius: 16px; overflow: hidden; display: block; }
.banner-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-cell-large { grid-column: 3 / 5; }
.search-box { background: var(--card); border-radius: 18px; padding: 24px; height: 100%; }
.search-tabs { display: flex; gap: 10px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 16px; border: none; background: none; color: var(--muted); font-size: 16px; cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.search-panel { display: none; } .search-panel.active { display: block; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; align-items: flex-end; }
.form-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.form-group select, .form-group input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text); font-size: 15px; }
.search-btn { width: 100%; background: var(--accent); color: var(--accentText); border: none; padding: 12px; font-size: 16px; font-weight: 800; border-radius: 10px; cursor: pointer; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; padding: 30px 0; }
.feature-item { background: var(--card); padding: 10px; border-radius: 12px; height: 120px;}
.feature-item svg { width: 32px; height: 32px; color: var(--accent); }
.feature-item h3 { margin: 10px 0 5px 0; font-size: 16px; }
.feature-item p { font-size: 13px; color: var(--muted); margin: 0; }
.promo-banners { display: flex; gap: 20px; margin-top: 40px; }
.promo-banners a { flex: 1; display: block; border-radius: 16px; overflow: hidden; }
.promo-banners img { width: 100%; display: block; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.brand-logo { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; justify-content: center; align-items: center; transition: background-color .2s; }
.brand-logo:hover { background-color: var(--bg); }
.brand-logo img { max-width: 100%; height: 70px; } /* Karanlık tema filtresi kaldırıldı */

/* =================================================================
   4. LİSTELEME SAYFALARI (ARAMA, KATEGORİ, MARKA)
   ================================================================= */
.category-header, .search-header { padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.category-header h1, .search-header h1 { margin: 0; }
.category-description, .search-term { font-size: 1.2em; color: var(--muted); margin-top: 10px; }
.category-count, .search-count { font-weight: bold; color: var(--accent); }


.product-grid {
    display: grid;
    /* * Bu satır, yan yana kaç ürün gösterileceğini belirler.
     * repeat(4, 1fr) ifadesi, mevcut alanı 4 eşit parçaya böl ve her birine bir ürün yerleştir demektir.
     * 3 ürün için bu değer repeat(3, 1fr) idi.
     */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Ürünler arasındaki boşluk */
}

/* --- Mobil ve Tablet Uyumluluğu İçin Ekran Boyutu Kuralları --- */

/* Tabletler için (örneğin 992px altı) yan yana 3 ürün göster */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Büyük telefonlar için (örneğin 768px altı) yan yana 2 ürün göster */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Küçük telefonlar için (örneğin 480px altı) ürünleri alt alta göster (tek ürün) */
@media (max-width: 480px) {
    .product-grid {
        
        grid-template-columns: 2fr 2fr;
    }
}

/* =================================================================
   5. KARUSEL ve LİSTELEME ÜRÜN KARTLARI
   ================================================================= */
.carousel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.carousel-nav .nav-btn { background: var(--card); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.carousel-nav .nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel-container { position: relative; overflow: hidden; }
.carousel-wrapper { display: flex; gap: 20px; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.carousel-wrapper .product-card { flex: 0 0 calc(20% - 16px); min-width: 220px; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-link { display: block; text-decoration: none; }
.product-image { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.card-body { padding-top: 12px; }
.product-brand-logo { width: 100%;height:36px;margin-bottom: 10px; }


	
.product-name { font-size: 14px; font-weight: 600; color: var(--text); min-height: 40px; margin: 0; }
.eu-label-img { width: 100px; margin: 8px 0; }
.price-container { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 14px; font-weight: 800; color: var(--accent); }
.price-per-item { font-size: 11px; color: var(--muted); }
.add-to-cart-btn { width: 100%; text-align: center; background:#193a7d;color:white;padding:10px 14px;border:none;border-radius:12px;font-weight:800;cursor:pointer;}
.add-to-cart-btn:disabled { background: var(--muted); cursor: not-allowed; }

/* =================================================================
   6. ÜRÜN DETAY SAYFASI
   ================================================================= */
.breadcrumb { margin: 14px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.gallery { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs img { width: 96px; height: 96px; object-fit: contain; background: var(--bg); border-radius: 12px; border: 1px solid var(--border); cursor: pointer; opacity: .85; }
.thumbs img.active { outline: 2px solid var(--accent); opacity: 1; }
.stage { display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--border); border-radius: 16px; min-height: 475px; }
.stage img { max-width: 100%; max-height: 520px; }
.title {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4em;
    max-height: 2.8em;
}
.rating { display: flex; align-items: center; gap: 8px; color: #f59e0b; font-weight: 600; }
.stars { /* Star rating still uses yellow, which is fine */ }
.prices { display: flex; align-items: flex-end; gap: 12px; }
.old { color: var(--muted); text-decoration: line-through; }
.new { font-size: 28px; font-weight: 800; color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 12px; background: var(--bg); border: 1px solid var(--border); }
.pill.ok { color: #235eb9;
    background-color: #e6f7ff;
    border: 1px solid #e6f7ff;
    font-weight: 600; }
.buy { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px;}
.qty button { background: var(--bg); color: var(--text); border: none; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }
.qty input { width: 52px; text-align: center; background: var(--card); border: none; color: var(--text); height: 36px; }
.btn.accent { background: #193a7d; color: var(--accentText); font-weight: 800; }
.btn.secondary { background: var(--brand); color: var(--text); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv .item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.kv .k { font-size: 12px; color: var(--muted); }
.kv .v { font-weight: 700; }
table.attr { width: 100%; border-collapse: collapse; }
table.attr th, table.attr td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; }
table.attr th { color: var(--muted); width: 38%; }
.eprel { display: flex; gap: 16px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--muted); color: white; padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.campaign { background: var(--accent); color: var(--accentText); border-radius: 14px; padding: 10px 14px; font-weight: 800; display: flex; align-items: center; gap: 10px; }

/* =================================================================
   7. FOOTER VE RESPONSIVE
   ================================================================= */
footer { margin-top: 60px; background-color: #f8f9fa; padding: 40px 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-col h4 { font-size: 16px; color: #193a7d; margin-bottom: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--muted); transition: color .2s; }
.footer-col ul a:hover { color: var(--text); }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* === YENİ: OTOMATİK DOLDURMA STİLLERİ === */
    .site-search { position: relative; }
    .search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        border: 1px solid var(--border);
        border-top: none;
        border-radius: 0 0 8px 8px;
        z-index: 1000;
        display: none; /* Başlangıçta gizli */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .search-suggestions.show { display: block; }
    .suggestion-group { padding: 10px 15px; }
    .suggestion-group-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--muted);
        padding-bottom: 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--brand);
    }
    .suggestion-item {
        display: flex;
        align-items: center;
        padding: 8px 0;
        text-decoration: none;
        border-radius: 4px;
    }
    .suggestion-item:hover { background-color: var(--bg); }
    .suggestion-item img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        margin-right: 12px;
        border-radius: 4px;
    }
    .suggestion-item .name { color: var(--text); font-weight: 500; }
    .suggestion-item .type { color: var(--accent); font-size: 12px; margin-left: auto; }


/* ==========================================================================
   Hizmet Kutuları Renk Stilleri
   ========================================================================== */

/* Bu sınıf, renkli kutuların içindeki tüm metin ve ikonların beyaz olmasını sağlar */
.feature-item[class*="hizmet-"] {
    color: #ffffff;
}

/* Renk sınıfları */
.feature-item.hizmet-pembe {
    background-color: #d85c8b; /* Pembe */
}
.feature-item.hizmet-yesil {
    background-color: #97c42f; /* Yeşil */
}
.feature-item.hizmet-mavi {
    background-color: #4097d3; /* Mavi */
}
.feature-item.hizmet-turuncu {
    background-color: #e69c47; /* Turuncu */
}

/* İkonların da rengini beyaz yapmak için */
.feature-item[class*="hizmet-"] svg {
    color: #ffffff;
}
/* İkincil yazıların rengini biraz daha şeffaf beyaz yapmak için */
.feature-item[class*="hizmet-"] p {
    color: rgba(255, 255, 255, 0.85);
}

.social-links img {
  height: 40px;
  width: 40px;
  margin-right: 10px;
}

/* =================================================================
   SAYFALAMA STİLLERİ (ORİJİNAL - Mobil Kaydırma Eklenmiş)
   ================================================================= */

.pagination-container {
    margin-top: 40px;
    text-align: center; /* Ortalamak için */
}

.pagination {
    display: inline-flex; /* İçeriğe göre genişlemesi ve ortalanabilmesi için */
    padding-left: 0;
    list-style: none;
    border-radius: .25rem;
    flex-wrap: nowrap; /* Varsayılan olarak alt satıra kaymayı engelle */
}

.page-item {
    margin: 0 3px; /* Butonlar arası boşluk */
}

.page-item .page-link,
.page-item span.page-link { /* Hem linkler hem pasif spanlar */
    position: relative;
    display: block;
    padding: .5rem .95rem; /* İç boşluk */
    line-height: 1.25;
    color: var(--accent); /* Link rengi */
    background-color: var(--card); /* Arka plan */
    border: 1px solid var(--border); /* Kenarlık */
    text-decoration: none;
    border-radius: 8px; /* Köşe yuvarlama */
    transition: all 0.2s ease-in-out;
    white-space: nowrap; /* İçeriğin kaymasını engelle */
}

.page-item .page-link:hover {
    z-index: 2;
    color: var(--accentText);
    background-color: var(--accent);
    border-color: var(--accent);
}

.page-item.active .page-link {
    z-index: 1;
    color: var(--accentText);
    background-color: var(--accent);
    border-color: var(--accent);
    font-weight: bold; /* Aktif sayfayı belirginleştir */
}

.page-item.disabled span.page-link { /* Pasif linkler ("İlk", "Önceki" vb.) */
    color: var(--muted);
    background-color: var(--bg); /* Pasif arka plan */
    border-color: var(--border);
    cursor: not-allowed;
}

/* --- Mobil İçin Yatay Kaydırma --- */
@media (max-width: 768px) {
    .pagination-container {
        width: 100%;
        overflow-x: auto; /* Yatay kaydırmayı etkinleştir */
    }
    .pagination {
        justify-content: flex-start; /* Sola yasla */
        padding-bottom: 5px; /* Kaydırma çubuğu için boşluk */
    }
    .page-item .page-link,
    .page-item span.page-link {
        padding: 6px 10px; /* Mobil için padding */
        font-size: 14px; /* Mobil için font */
    }

    /* İsteğe bağlı: Kaydırma çubuğunu gizle */
    .pagination-container::-webkit-scrollbar { display: none; }
    .pagination-container { -ms-overflow-style: none; scrollbar-width: none; }
}