/* =================================================================
   1. TEMEL STİLLER (VARIABLES AND RESETS)
   ================================================================= */
:root {
  --bg: #0b0c10; --card: #121319; --muted: #6b7280; --text: #e5e7eb; --accent: #fcdc38; --accentText: #111827;
  --ok: #10b981; --danger: #ef4444; --brand: #1f2937; --border: #2d3748; --blue-nav: #193a7d;
}
* { 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;}
.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(--brand); border-radius: 18px; padding: 16px; }

/* =================================================================
   2. HEADER VE NAVİGASYON
   ================================================================= */
.header-nav ul li.active a {color: var(--accent);}
.header-nav .nav-icon-svg {
    width: 22px;
    height: 22px;
    vertical-align: middle; /* Dikeyde ortalamak için */
}
.responsiveresim {
  max-width: 100%;
  height: auto;
  display: flex;
  justify-self: center;
}
/* Header'daki Telefon ve Sosyal Medya Alanını Hizalamak İçin */
.header-contact-social {
    display: flex; /* İçindeki elemanları (telefon ve sosyal medya) yan yana getirir */
    align-items: center; /* Dikey olarak ortalar */
    gap: 20px; /* Aralarına 20px boşluk bırakır */
    margin-left: auto; /* Bu grubu sağa yaslar (logo ve top-links'ten sonra) */
}

/* Header'daki Telefon ve Sosyal Medya Alanını Hizalamak İçin */
.header-contact-social {
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-left: auto;
}

/* Header'daki Sosyal Medya Linkleri */
.header-top .social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-top .social-links a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.header-top .social-links a:hover {
    transform: translateY(-2px);
}

/* --- DEĞİŞİKLİK: SVG yerine IMG'yi hedefliyoruz --- */
.header-top .social-links img {
    width: 20px; /* İkon boyutu */
    height: 20px;
    vertical-align: middle; /* Resimlerin dikey hizalamasını düzeltir */
}

/* Telefon numarasının ikonunu ve metnini hizalamak için */
.top-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-contact img {
    width: 20px;
    height: 20px;
}


/* Header'daki Sosyal Medya Linkleri */
.header-top .top-email{
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-top .top-email a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.header-top .top-email a:hover {
    transform: translateY(-2px);
}

/* --- DEĞİŞİKLİK: SVG yerine IMG'yi hedefliyoruz --- */
.header-top .top-email img {
    width: 20px; /* İkon boyutu */
    height: 20px;
    vertical-align: middle; /* Resimlerin dikey hizalamasını düzeltir */
}

/* Telefon numarasının ikonunu ve metnini hizalamak için */
.top-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-contact img {
    width: 20px;
    height: 20px;
}
header { border-bottom: 1px solid var(--border); position: relative; }
.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(--card); 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: #fff; border-radius: 8px; padding: 4px; gap: 4px; }
.user-actions a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; color: #333; font-size: 13px; font-weight: 600; transition: background-color .2s; }
.user-actions a:hover { background-color: #f0f0f0; }
.user-actions a.cart-action { background-color: #f0f0f0; }
.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); }
/* =================================================================
   GELİŞMİŞ ÇOK KATMANLI NAVİGASYON MENÜSÜ
   ================================================================= */

/* Ana menü ve alt menülerin temel konumlandırma ayarı */
.site-header .header-nav ul li {
    position: relative; /* Alt menülerin konumlanacağı referans noktası */
}

/* Ana menü linklerinin üzerine gelindiğinde alt menüyü gösterir */
.site-header .header-nav > .container > ul > li:hover > .dropdown-menu {
    display: block;
}

/* Tüm alt menülerin (hem birinci hem de ikinci seviye) temel stilleri */
.site-header .dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--card);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    border-top: 1px solid var(--border);
    padding: 10px 0;
    min-width: 220px; /* Açılır menü genişliği */
    z-index: 1000;
}

/* BİRİNCİ SEVİYE ALT MENÜ (Aşağı Açılır) */
.site-header .header-nav > .container > ul > li > .dropdown-menu {
    top: 100%; /* Ana menü elemanının tam altında başlar */
    left: 0;
}

/* İKİNCİ VE DAHA DERİN SEVİYE ALT MENÜLER (Sağa Açılır) - İSTEDİĞİNİZ ÖZELLİK */
.site-header .dropdown-menu .has-dropdown:hover > .dropdown-menu {
    display: block;
    top: -1px;      /* Ebeveyn menüyle aynı hizada başlaması için (kenarlık payı) */
    left: 100%;     /* Ebeveyn menünün tam sağında başlamasını sağlar */
    border-radius: 8px; /* Köşeleri yuvarlak yap */
}

/* Alt menülerdeki linklerin stilleri */
.site-header .dropdown-menu a {
    padding: 10px 20px;
    display: flex; /* İkon ve metni hizalamak için */
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap; /* Metinlerin alt satıra kaymasını engeller */
}

.site-header .dropdown-menu a:hover {
    background-color: var(--bg);
    color: var(--accent);
}

/* Sağa açılacak menülerin ok ikonunu -90 derece döndürerek sağa bakmasını sağla */
.site-header .dropdown-menu .has-dropdown > a .dropdown-arrow {
    transform: rotate(-90deg);
}
/* =================================================================
   8. RESPONSIVE VE MOBİL MENÜ STİLLERİ
   ================================================================= */

/* Mobil menü butonunu masaüstünde gizle */
.mobile-menu-button {
    display: none; /* Varsayılan olarak gizli */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text);
}
.mobile-menu-button svg {
    width: 28px;
    height: 28px;
}

/* --- Mobil Menü ve Overlay Temel Stilleri (Tüm ekran boyutları için) --- */

/* Arka planı karartan overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden; /* Opaklık 0 olduğunda tıklanamaz yapar */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Kenardan açılan mobil menü paneli */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -300px; /* Ekranın dışında başlar */
    width: 280px;
    height: 100%;
    background: var(--card);
    z-index: 1001;
    transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.mobile-menu-panel.show {
    left: 0; /* .show sınıfı eklendiğinde ekranın içine gelir */
}
.mobile-menu-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
}
.mobile-menu-panel .top-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu-panel ul li a {
    display: block;
    padding: 12px 5px;
    color: #eef1f5;
    font-weight: 600;
    border-bottom: 1px solid var(--brand);
}

/* Arka planın kaymasını engellemek için body'e eklenecek sınıf */
body.mobile-menu-open {
    overflow: hidden;
}


/* --- Media Query: Mobil Görünüm (992px ve altı) --- */
@media (max-width: 992px) {
    /* Masaüstü header elemanlarını gizle */
    .header-top .top-links,
    .header-top .top-contact,
    .header-main .user-actions,
    .header-nav {
        display: none;
    }

    /* Mobil menü (hamburger) butonunu göster */
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Header'daki boşlukları ve hizalamaları düzenle */
    .header-top .container, .header-main .container {
        gap: 15px;
    }
    .header-main {
        padding: 12px 0;
    }

    /* Logoyu biraz küçültelim */
    .header-top .logo img {
        height: 32px;
    }
    
    /* Arama çubuğunu düzenle */
    .site-search input {
        padding: 10px 12px 10px 36px;
        font-size: 13px;
    }
    .site-search svg {
        left: 10px;
        width: 18px;
        height: 18px;
    }
}

/* =================================================================
   9. MASAÜSTÜNDE MOBİL MENÜYÜ ZORLA GİZLEME KURALI
   ================================================================= */
@media (min-width: 750px) {
    .mobile-menu-panel,
    .menu-overlay {
        display: none !important;
    }
}

/* =================================================================
   10. MOBİL MENÜ BUTONLARI İÇİN NİHAİ STİLLER
   ================================================================= */

/* --- Butonlar için genel temel stil --- */
.mobile-menu-button {
    display: none; /* Varsayılan olarak tüm butonları gizle */
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text); /* SVG ikon rengini belirler */
    z-index: 1002; /* Diğer header elemanlarının üzerinde kalması için */
    align-items: center;
    justify-content: center;
}

.mobile-menu-button svg {
    width: 28px;
    height: 28px;
}

/* --- Hamburger İkonunu Sadece Mobilde Göster --- */
@media (max-width: 992px) {
    /* ID kullanarak daha spesifik bir hedefleme yapıyoruz */
    #main-header #mobile-menu-toggle {
        display: flex; 
    }
}

/* --- Kapatma Butonu için özel stiller --- */
.mobile-menu-panel .mobile-menu-close-btn {
    display: flex; /* Bu buton her zaman görünür olmalı (panel içindeyken) */
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px; /* Dokunma alanını büyütelim */
    height: 44px;
}

/* =================================================================
   11. MOBİL ALT SABİT MENÜ (ŞIK VE KOMPAKT VERSİYON)
   ================================================================= */

@media (max-width: 992px) {

    body {
        /* YENİ: Menü küçüldüğü için body'deki boşluk da azaltıldı */
        padding-bottom: 5px; 
    }

    body header#main-header .user-actions {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--card);
        /* YENİ: Dikey padding azaltılarak menü yüksekliği düşürüldü */
        padding: 4px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08); /* YENİ: Gölge yumuşatıldı */
        z-index: 1000;
        border-top: 1px solid var(--border);
        justify-content: space-around;
        gap: 4px;
        border-radius: 0;
    }

    body header#main-header .user-actions a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        /* YENİ: Yazı boyutu küçültüldü */
        font-size: 10px; 
        font-weight: 500;
        color: var(--muted);
        /* YENİ: İkon ve yazı arası boşluk azaltıldı */
        gap: 2px; 
        padding: 6px 0; /* YENİ: Dikey padding ayarlandı */
        border-radius: 8px;
        /* YENİ: Renk değişimi için yumuşak bir geçiş efekti eklendi */
        transition: color 0.2s ease-in-out;
    }
	
	.header-top .top-links,
.header-top .top-contact,
.header-top .top-email,
.header-top .social-links,
.header-main .user-actions,
.header-nav {
    display: none;
}

    body header#main-header .user-actions a:hover {
        background-color: var(--bg);
    }
    
    body header#main-header .user-actions a.cart-action {
        background-color: transparent;
    }
    
    body header#main-header .user-actions a.active,
    body header#main-header .user-actions a:hover {
        color: var(--accent);
    }

    body header#main-header .user-actions svg {
        /* YENİ: İkon boyutları küçültüldü */
        width: 22px;
        height: 22px;
    }
}
/* =================================================================
   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; border: 1px solid var(--border); }
.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; border-bottom: 1px solid var(--border); }
.feature-item { background: var(--card); padding: 20px; border-radius: 12px; }
.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; border: 1px solid var(--border); }
.promo-banners img { width: 100%; display: block; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.brand-logo { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; justify-content: center; align-items: center; transition: background-color .2s; }
.brand-logo:hover { background-color: var(--brand); }
.brand-logo img { max-width: 100%; height: 30px;}

/* =================================================================
   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-header, .page-header { padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.category-header h1, .page-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; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding-bottom: 40px; }

/* =================================================================
   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(--brand); 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.2); }
.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 { height: 16px; margin-bottom: 8px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); min-height: 40px; margin: 0; /* ----- İki satırla sınırlama için eklenecek kodlar ----- */
    overflow: hidden; /* Taşmayı gizle */
    text-overflow: ellipsis; /* Taşma durumunda üç nokta (...) ekle */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Satır sayısını 2 ile sınırla */
    -webkit-box-orient: vertical;
    line-height: 1.4em; /* Satır yüksekliğini ayarlayın (font boyutunuza göre değişebilir) */
    max-height: 2.8em; /* İki satırın toplam yüksekliği (line-height * 2) */
    /* ----- Eklenecek kodların sonu ----- */ }
.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:var(--ok);color:var(--bg);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: #9ca3af; }
.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.gallery { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
/* --- Galeri Küçük Resimleri (Tüm Görünümler İçin Temel Ayarlar) --- */
.gallery .thumbs {
    display: flex; /* Flexbox'ı her zaman kullan */
    gap: 10px;    /* Resimler arası boşluk */
    flex-shrink: 0; /* Konteynerin küçülmesini engelle */

    /* --- Kaydırma Çubuğunu Gizleme (Tüm Tarayıcılar) --- */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Webkit Kaydırma Çubuğunu Gizle */
.gallery .thumbs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge vb. */
}

/* Küçük resim stilleri (Tüm Görünümler) */
.gallery .thumbs img {
    border-radius: 6px; /* Köşeleri yuvarlat */
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    object-fit: cover; /* Resmi kutuya sığdır, oranı koru */
    flex-shrink: 0; /* Resimlerin küçülmesini engelle (ÇOK ÖNEMLİ) */
}

.gallery .thumbs img:hover,
.gallery .thumbs img.active {
    border-color: var(--accent, #007bff); /* Aktif/Hover rengi */
}

/* --- Masaüstü Görünümü (Dikey Düzen ve Kaydırma) --- */
/* 577px ve üzeri ekranlar için */
@media (min-width: 577px) {
    .gallery .thumbs {
        flex-direction: column; /* Alt alta diz */
        width: 80px;          /* Sabit genişlik */
        max-height: 450px;    /* Maksimum yükseklik (Ana resme göre ayarlayın) */
        overflow-y: auto;     /* Dikey kaydırmayı etkinleştir */
        overflow-x: hidden;   /* Yatay kaydırmayı engelle */
    }

    .gallery .thumbs img {
        width: 100%;       /* Konteyner genişliğini kullan (80px) */
        height: auto;      /* Yüksekliği otomatik ayarla */
        aspect-ratio: 1 / 1; /* Kare yapmak için */
    }
}

/* --- Mobil Görünüm (Yatay Düzen ve Kaydırma) --- */
/* 576px ve altı ekranlar için */
@media (max-width: 576px) {
    .gallery {
        /* Küçük resimleri ana resmin ALTINA al */
        flex-direction: column-reverse;
    }

    .gallery .thumbs {
        flex-direction: row; /* Yan yana diz */
        width: 100%;        /* Tam genişlik */
        overflow-x: auto;   /* Yatay kaydırmayı etkinleştir */
        overflow-y: hidden; /* Dikey kaydırmayı engelle */
        max-height: none;   /* Yükseklik limitini kaldır */
        padding-bottom: 5px; /* Kaydırma için küçük boşluk */
    }

    .gallery .thumbs img {
        width: 65px; /* Mobilde istediğiniz sabit genişlik (örn: 4 resim sığacak gibi) */
        height: 65px; /* Genişlikle aynı (kare) */
    }
}

/* --- Kartlar İçin Responsive İyileştirmeler --- */

/* Genel Kart Stili (Mevcut stilinizi teyit edin veya bunu kullanın) */
.card {
    background: var(--card); /* Temanızın kart arka plan rengi */
    border: 1px solid var(--border); /* Temanızın kenarlık rengi */
    border-radius: 18px; /* Yuvarlaklık */
    padding: 16px; /* Masaüstü için iç boşluk */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Gölgelendirme (isteğe bağlı) */
    overflow: hidden; /* İçerik taşmasını engellemek için eklenebilir, ancak dikkatli kullanın */
}

/* Küçük Ekranlar (Tablet ve Telefonlar) için Kart Boşluğunu Azaltma */
@media (max-width: 768px) {
    .card {
        padding: 12px; /* İç boşluğu biraz azalt */
    }

    /* Ürün detay sayfasındaki kartlar için özel ayar (isteğe bağlı) */
    .product-detail-grid > .card {
        padding: 15px; /* Belki biraz daha fazla boşluk istersiniz */
    }
}

/* Çok Küçük Ekranlar (Telefonlar) için Kart Boşluğunu Daha da Azaltma */
@media (max-width: 576px) {
    .card {
        padding: 10px; /* İç boşluğu daha da azalt */
        border-radius: 12px; /* Yuvarlaklığı biraz azaltabilirsiniz */
    }

     /* Ürün detay sayfasındaki kartlar için özel ayar (isteğe bağlı) */
    .product-detail-grid > .card {
        padding: 12px;
    }

    /* Ürün detay sayfasındaki galeri ve bilgi kartları arasındaki boşluğu azalt */
    .product-detail-grid {
        gap: 20px;
    }
}

/* --- Ürün Detay Sayfası Özel Stilleri (Gerekirse) --- */

/* Miktar artırma/azaltma butonlarının mobilde daha dokunulabilir olması */
@media (max-width: 576px) {
    .qty button {
        width: 40px; /* Buton genişliğini artır */
        height: 40px; /* Buton yüksekliğini artır */
    }
     .qty input {
        height: 40px; /* Input yüksekliğini eşitle */
        width: 45px; /* Gerekirse input genişliğini ayarla */
    }
     .buy {
        flex-wrap: wrap; /* Butonlar sığmazsa alt satıra geçsin */
    }
    .add-to-cart-btn, #buy-now-btn {
        flex-grow: 1; /* Butonlar kalan alanı doldursun */
    }
}
.stage { display: flex; align-items: center; justify-content: center; background: #0f1117; border: 1px solid var(--brand); border-radius: 16px; min-height: 450px; }
.stage img { max-width: 100%; max-height: 520px; }
.title { font-size: 22px; font-weight: 700; margin: 8px 0; }
.rating { display: flex; align-items: center; gap: 8px; color: #fbbf24; font-weight: 600; }


/* =============================================== */
/* YILDIZ DEĞERLENDİRME (RATING STARS) STİLLERİ     */
/* =============================================== */

.stars {
  --v: 0; /* Bu değer PHP tarafından stil etiketiyle ezilecek */
  display: inline-block;
  font-size: 18px; /* <<< YILDIZLARIN BOYUTUNU BURADAN DEĞİŞTİRİN */
  font-family: Times; /* Yıldız karakterini destekleyen bir font */
  line-height: 1;
  position: relative;
}

.stars::before {
  content: "★★★★★";
  /* Boş yıldızların rengi */
  color: #ddd; 
}

.stars::after {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  /* Dolu yıldızların rengi */
  color: #fcdc38; 
  overflow: hidden;
  white-space: nowrap;
  width: calc(var(--v) / 5 * 100%);
}




.prices { display: flex; align-items: flex-end; gap: 12px; }
.old { color: #9ca3af; text-decoration: line-through; }
.new { font-size: 28px; font-weight: 800; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 12px; background: #0f1117; border: 1px solid var(--brand); }
.pill.ok { color: #34d399; }
.buy { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.qty { display: flex; align-items: center; border: 1px solid var(--brand); border-radius: 12px;}
.qty button { background: #0f1117; color: #fff; border: none; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }
.qty input { width: 52px; text-align: center; background: #0f1117; border: none; color: #fff; height: 36px; }
.btn.accent { background: var(--accent); 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: #0f1117; border: 1px solid var(--brand); border-radius: 12px; padding: 10px; }
.kv .k { font-size: 12px; color: #9ca3af; }
.kv .v { font-weight: 700; }
table.attr { width: 100%; border-collapse: collapse; }
table.attr th, table.attr td { border-bottom: 1px solid var(--brand); padding: 10px; text-align: left; }
table.attr th { color: #9ca3af; width: 38%; }
.eprel { display: flex; gap: 16px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #1f2937; color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.campaign { background: var(--accent); color: #111827; 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: var(--card); 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: var(--accent); 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; }

@media (max-width: 1180px) { .top-links { display: none; } }
@media (max-width: 1024px) { .header-top .top-contact, .header-nav { display: none; } .mobile-menu-button { display: block; } .header-main { flex-wrap: wrap; } .site-search { min-width: 100%; order: 1;} .user-actions { flex-grow: 1; order: 2; justify-content: center; } .header-main { padding-bottom: 0; } }
@media (max-width: 900px) { #top-grid, .grid { grid-template-columns: 1fr; } .search-box-cell, .banner-cell-large { grid-column: auto; grid-row: auto; } .promo-banners { flex-direction: column; } }

/* =================================================================
   RESPONSIVE STİLLER (GÜNCELLENMİŞ)
   ================================================================= */
@media (max-width: 1180px) {
  .top-links {
    display: none;
  }
}

@media (max-width: 1024px) {
  /* Üst bar ve ana navigasyonu gizle */
  .header-top .top-contact,
  .header-nav {
    display: none;
  }
  
  /* Mobil menü butonunu göster */
  .mobile-menu-button {
    display: block; 
  }
  
  /* Arama ve kullanıcı aksiyonlarını alt alta getir */
  .header-main .container {
    flex-wrap: wrap;
  }
  .site-search {
    min-width: 100%;
    order: 1;
  }
  .user-actions {
    flex-grow: 1;
    order: 2;
    justify-content: center;
  }
  .header-main {
    padding-bottom: 0;
  }
  /* Mobil menü butonu user-actions gizlenince görünür kalsın */
  .header-main .mobile-menu-button {
      display: block;
      order: 3;
      margin-left: 10px;
  }
  .header-main .user-actions {
      display: none; /* Mobilde kullanıcı aksiyonlarını gizle, sadece ikon kalsın */
  }
}

@media (max-width: 900px) {
  #top-grid, .grid {
    grid-template-columns: 1fr;
  }
  .search-box-cell,
  .banner-cell-large {
    grid-column: auto;
    grid-row: auto;
  }
  .promo-banners {
    flex-direction: column;
  }
}

/* =================================================================
   MOBİL MENÜ STİLLERİ (GÜNCELLENMİŞ)
   ================================================================= */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 101;
}
.mobile-menu-button svg {
  width: 30px;
  height: 30px;
  color: #787a7c;
}

/* Sayfa kaymasını engelleyecek class */
body.mobile-menu-active {
  overflow: hidden;
}

/* Arkaplanı karartan overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.mobile-menu-active .menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Menü paneli artık 'fixed' pozisyonunda */
.mobile-menu-panel {
  display: block; /* 'none' yerine 'block' olacak */
  position: fixed; /* 'absolute' yerine 'fixed' olacak */
  top: 0;
  right: 0;
 /* width: 200px;*/
  max-width: 80%;
  height: 100%;
  background: #0a1732;
  border-left: 1px solid var(--border);
  z-index: 100;
  padding: 20px;
  box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
/*  transform: translateX(100%); /* Başlangıçta ekranın dışında */
  transition: transform 0.3s ease;
}
/* Menü açıldığında pozisyonu */
body.mobile-menu-active .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-panel .top-links,
.mobile-menu-panel .header-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}
.mobile-menu-panel .header-nav ul {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu-panel .top-links a,
.mobile-menu-panel .header-nav a {
  width: 100%;
  padding: 10px;
  color: var(--text);
}
.mobile-menu-panel .top-links img {
  display: none;
}
.mobile-menu-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
}

/* =============================================== */
/* KULLANICI GİRİŞ VE KAYIT FORM STİLLERİ           */
/* =============================================== */

.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 2rem;
    background-color: var(--card);
    border: 1px solid var(--brand);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

/* Form Elemanları */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--brand);
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Buton */
.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Form Altı Link */
.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 14px;
    color: var(--muted);
}

.auth-link a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-link a:hover {
    text-decoration: underline;
}

/* Hata ve Başarı Mesajları */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
}
.alert-danger {
    color: #e53e3e;
    background-color: #fed7d7;
    border-color: #fbb6b6;
}
.alert-success {
    color: #38a169;
    background-color: #c6f6d5;
    border-color: #9ae6b4;
}
.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* Özel Checkbox Stili */
.form-group input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--bg);
    margin-right: 0.5em;
    font: inherit;
    color: var(--muted);
    width: 1.15em;
    height: 1.15em;
    border: 1px solid var(--brand);
    border-radius: 0.25em;
    transform: translateY(-0.075em);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

.form-group input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--accent);
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.form-group input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.form-group input[type="checkbox"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Story Modülü Stilleri */
.story-circles-container { display: flex; gap: 20px; padding: 20px 0; overflow-x: auto; }
.story-circle { cursor: pointer; text-align: center; }
.story-circle img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); padding: 2px; }
.story-circle span { font-size: 13px; font-weight: 500; color: var(--muted); display: block; margin-top: 5px; }

.story-viewer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.story-container { position: relative; width: 100%; max-width: 400px; height: 90vh; max-height: 800px; background: #000; border-radius: 10px; overflow: hidden; }
.story-progress-bars { position: absolute; top: 10px; left: 5%; width: 90%; display: flex; gap: 4px; height: 2px; }
.progress-bar-segment { flex-grow: 1; background: rgba(255,255,255,0.3); }
.progress-bar-segment .progress { background: #fff; height: 100%; width: 0%; }
.story-header { position: absolute; top: 20px; left: 15px; display: flex; align-items: center; gap: 10px; }
.story-group-cover { width: 32px; height: 32px; border-radius: 50%; }
.story-group-title { color: #fff; font-weight: bold; }
.story-media { width: 100%; height: 100%; object-fit: cover; }
.story-nav-prev, .story-nav-next { position: absolute; top: 0; height: 100%; width: 30%; }
.story-nav-prev { left: 0; }
.story-nav-next { right: 0; }
.story-close-btn { position: absolute; top: 10px; right: 5px; background: none; border: none; color: #000; font-size: 40px; cursor: pointer; }

.product-carousel-nav {
    display: flex;
    gap: 8px;
}
.product-carousel-nav .swiper-button-prev,
.product-carousel-nav .swiper-button-next {
    position: static;
    width: 36px;
    height: 36px;
    margin-top: 0;
    background-color: var(--card);
    border: 1px solid var(--brand);
    border-radius: 50%;
    transition: background-color 0.2s;
}
.product-carousel-nav .swiper-button-prev:hover,
.product-carousel-nav .swiper-button-next:hover {
    background-color: var(--bg);
}
.product-carousel-nav .swiper-button-next::after,
.product-carousel-nav .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent);
}
/* Genel Buton Stilleri */
.btn {
    display: inline-block; /* Butonun diğer elementlerle yan yana durmasını sağlar */
    padding: 10px 20px; /* Butonun iç boşlukları (yukarı/aşağı - sağ/sol) */
    font-size: 16px; /* Yazı tipi boyutu */
    font-weight: bold; /* Yazı tipi kalınlığı */
    text-align: center; /* Metni ortala */
    text-decoration: none; /* Metnin altındaki çizgiyi kaldır (<a> etiketiyse) */
    border: none; /* Kenarlığı kaldır */
    border-radius: 5px; /* Kenarları yuvarlat */
    cursor: pointer; /* Üzerine gelince el işareti çıkar */
    transition: background-color 0.3s ease, transform 0.1s ease; /* Renk ve basma efekti için animasyon */
}

/* Birincil Buton Rengi (Örnek: Mavi) */
.btn-primary {
    background-color: #007bff; /* Arka plan rengi */
    color: #ffffff; /* Yazı rengi */
}

/* Butonun üzerine gelindiğinde (hover) olacak stil */
.btn-primary:hover {
    background-color: #0056b3; /* Arka plan rengini koyulaştır */
}

/* Butona tıklandığında (active) olacak stil */
.btn:active {
    transform: scale(0.98); /* Hafifçe küçülerek basma hissi verir */
}

/* =================================================================
   MOBİL MENÜ AKORDİYON DROPDOWN (GARANTİLİ YÖNTEM)
   ================================================================= */

/* --- Ana Menü Listesi --- */
.mobile-main-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
}

/* --- Menü Öğeleri ve Linkleri (En Önemli Değişiklik Burada) --- */
.mobile-main-menu li a {
    position: relative; /* Ok ikonunu buna göre konumlandıracağız */
    display: block; /* Flex yerine block kullanmak daha garanti */
    padding: 14px 50px 14px 20px; /* OK İÇİN SAĞ TARAFTA BOŞLUK BIRAKILDI */
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.mobile-main-menu li a:hover {
    background-color: var(--bg);
}

.mobile-main-menu li:last-child a {
    border-bottom: none;
}

/* --- Alt Menü Ok İkonu (Yeni Konumlandırma) --- */
.mobile-main-menu .submenu-arrow {
    position: absolute; /* Akıştan çıkar ve 'a' etiketine göre konumlanır */
    top: 50%; /* Dikey olarak tam ortaya hizala */
    right: 20px; /* Sağ kenardan 20px boşluk bırak */
    transform: translateY(-50%); /* Dikey hizalamayı mükemmelleştir */
    
    width: 20px;
    height: 20px;
    color: var(--muted);
    transition: transform 0.3s ease;
}

/* --- Alt Menü Kapsayıcısı (Gizli Alan) --- */
.mobile-main-menu .mobile-submenu {
    list-style: none;
    padding-left: 25px;
    background-color: var(--bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* --- Alt Menü Linkleri --- */
.mobile-main-menu .mobile-submenu li a {
    padding: 12px 15px;
    font-size: 14px;
    border-bottom: none;
}

/* --- JavaScript ile eklenen 'open' class'ı için stiller --- */
.mobile-main-menu li.has-submenu.open > .mobile-submenu {
    max-height: 1000px;
}

.mobile-main-menu li.has-submenu.open > a .submenu-arrow {
    /* Dönme animasyonunu dikey hizalamayı koruyarak yap */
    transform: translateY(-50%) rotate(90deg); 
    color: var(--accent);
}

/* Star Rating Stilleri */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 2.5em;
    line-height: 1;
}
.star-rating input { display: none; }
.star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 0.1em;
}
.star-rating input:checked ~ label,
.star-rating:not(:checked) > label:hover,
.star-rating:not(:checked) > label:hover ~ label {
    color: #fcdc38;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

