@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

/* =========================================
   1. GENEL AYARLAR VE RESET
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #d63031; 
    --primary-dark: #b71c1c;
    --dark: #2d3436; 
    --light: #f5f6fa; 
    --white: #ffffff;
    --success: #27ae60; 
    --warning: #f39c12; 
    --info: #3498db;
    --border-color: #e1e1e1; /* Yeni gri çerçeve rengi */
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--light); 
    color: var(--dark); 
    overflow-x: hidden; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
button, input, select, textarea { font-family: inherit; outline: none; }

/* =========================================
   2. HEADER VE TOP BAR (MEVCUT TASARIM KORUNDU)
   ========================================= */
.top-bar { 
    background: var(--dark); 
    color: #ccc; 
    padding: 8px 5%; 
    font-size: 0.8rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.currency-badge { 
    background: rgba(255,255,255,0.1); 
    padding: 4px 10px; 
    border-radius: 4px; 
    color: #fff; 
    font-weight: 600; 
    border: 1px solid rgba(255,255,255,0.2); 
    margin-left: 10px; 
    display:inline-flex; 
    align-items:center;
}
.currency-sep { margin: 0 8px; opacity: 0.5; }

.user-balance-display { 
    background: #e1f7d5; 
    color: #27ae60; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    border: 1px solid #27ae60; 
    display: inline-block; 
    margin-left: 10px; 
}
.user-balance-display.negative { background: #ffcccc; color: #c0392b; border-color: #c0392b; }

header { 
    background: var(--white); 
    padding: 10px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); 
    height: 100px; 
}

/* LOGO DÜZENİ */
.logo-container { display: flex; align-items: center; gap: 15px; text-decoration: none; cursor: pointer; }
.logo-img { height: 75px; width: auto; object-fit: contain; }
.logo { display: flex; flex-direction: column; justify-content: center; }
.logo-main { font-weight: 900; color: var(--dark); font-size: 1.3rem; line-height: 1.1; letter-spacing: 0.5px; }
.logo-sub { font-weight: 600; color: #7f8c8d; font-size: 0.7rem; text-align: justify; text-align-last: justify; width: 100%; margin-top: 2px; }

/* HEADER SAĞ TARAF */
.header-actions { display: flex; gap: 10px; align-items: center; }

/* Header Butonları (İkonlu) */
.btn-header-icon {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50%; /* Yuvarlak */
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
    color: var(--dark);
    font-size: 1.1rem;
}
.btn-header-icon:hover { background: #f5f5f5; color: var(--primary); border-color: var(--primary); }

.cart-wrap { position: relative; cursor: pointer; }
.btn-cart {
    background: linear-gradient(135deg, #2d3436, #000000);
    color: white;
    width: 45px; height: 45px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.btn-cart:hover { transform: scale(1.05); background: var(--primary); }
.cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--primary); color: white;
    border: 2px solid white;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: bold;
}

/* =========================================
   3. HERO ALANI (MEVCUT TASARIM KORUNDU)
   ========================================= */
.hero { 
    background: linear-gradient(180deg, #1a1a1a 0%, #4a0000 100%); 
    padding: 60px 20px 90px 20px; 
    text-align: center; 
    color: #fff; 
    margin-bottom: -40px; 
    border-radius: 0 0 50% 50% / 10px; 
}
.hero h1 { margin: 0 0 25px; font-weight: 400; font-size: 2.2rem; letter-spacing: 1px; color: #ecf0f1; }
.hero b { color: #fff; font-weight: 700; text-transform: uppercase; border-bottom: 3px solid var(--primary); padding-bottom: 5px; }

.search-wrapper { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.search-input { width: 100%; padding: 18px 60px 18px 30px; border-radius: 50px; border: none; outline: none; font-size: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: 0.3s; }
.search-input:focus { transform: scale(1.01); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.search-btn-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: var(--primary); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.search-btn-icon:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.1); }

/* =========================================
   4. LAYOUT & GRID SİSTEMİ (6 SÜTUN)
   ========================================= */
.container { 
    max-width: 1450px; /* 6 sütun için genişletildi */
    margin: 0 auto 60px; 
    padding: 0 20px; 
    flex: 1; 
}
.section-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; margin-top: 40px; } 
.section-header h2 { margin: 0; font-size: 1.5rem; color: var(--dark); font-weight: 800; white-space: nowrap; } 
.line { flex-grow: 1; height: 2px; background: #eee; border-radius: 2px; }

/* Grid Yapısı */
.layout-grid { display: flex; gap: 20px; align-items: start; } 
.sidebar { 
    width: 240px; 
    flex-shrink: 0; 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    position: sticky; 
    top: 120px; 
    max-height: 80vh; 
    overflow-y: auto; 
}
.sidebar::-webkit-scrollbar { width: 4px; } .sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.product-grid-area { flex-grow: 1; } 

/* ÜRÜN LİSTESİ (Responsive) */
.product-list { 
    display: grid; 
    /* Mobilde 2'li, Tablette 3-4'lü, PC'de 6'lı olacak şekilde otomatik ayarla */
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); 
    gap: 15px; 
}

/* Büyük Ekranda Kesin 6 Sütun */
@media (min-width: 1400px) {
    .product-list { grid-template-columns: repeat(6, 1fr); }
}

/* 3. ÜRÜN KARTLARI (MODERN & GRİ TONLU) */
.product-card { 
    background: #fff; 
    border: 1px solid #f0f0f0; /* Çerçeve çok silik gri yapıldı */
    border-radius: 16px; /* Köşeler daha modern (yuvarlak) oldu */
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Yumuşak geçiş */
    position: relative; 
    height: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); /* Çok hafif gölge */
}
.product-card:hover { 
    transform: translateY(-8px); /* Yukarı doğru hafif süzülme */
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
    border-color: transparent; 
}

/* Kart içindeki renkli alanları GRİ yapıyoruz */
.price-lock {
    font-size: 0.85rem;
    color: #636e72; /* Koyu gri yazı */
    background: #f1f2f6; /* Açık gri zemin */
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    margin-top: auto;
    font-weight: 600;
}
/* Koli Bilgisi Kutusu */
.box-info-badge {
    font-size: 0.75rem; 
    background: #f5f6fa; /* Gri Zemin */
    color: #2d3436; /* Koyu Gri Yazı */
    padding: 6px; 
    border-radius: 6px; 
    margin-top: 5px; 
    text-align: center; 
    border: 1px solid #e1e1e1;
}
/* Görsel */
.p-img { 
    height: 180px; 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #fff; 
    border-bottom: 1px solid #f5f6fa; 
    position: relative;
}
.p-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.3s; }
.product-card:hover .p-img img { transform: scale(1.05); }

/* Bilgi */
.p-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.p-code { color: #95a5a6; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.p-title { 
    font-weight: 600; 
    font-size: 0.95rem; 
    margin: 0 0 10px; 
    color: var(--dark); 
    line-height: 1.3; 
    height: 2.6em; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}

/* Fiyat ve Buton Alanı */
.price-show { margin-top: auto; padding-top: 10px; border-top: 1px solid #f5f6fa; }
.price-lock { font-size: 0.8rem; color: #7f8c8d; background: #f1f2f6; padding: 8px; border-radius: 4px; text-align: center; width: 100%; margin-top: auto; }

/* Buton Konteyner (Alt Alta) */
.product-actions-container {
    display: flex;
    flex-direction: column; /* Dikey Dizilim */
    gap: 6px;
    width: 100%;
    margin-top: 10px;
}

/* Etiketler */
.badge-container { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 5; }
.badge { padding: 3px 8px; border-radius: 4px; color: white; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.1); letter-spacing: 0.5px; }
.badge-new { background: #e74c3c; } /* Kırmızı */
.badge-best { background: #f1c40f; color: #2d3436; } /* Sarı */

.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; min-height: 20px; } 
.tag { font-size: 0.65rem; padding: 3px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; display: inline-block; color: white; }
.tag-black { background: #2d3436; }
.tag-cyan  { background: #0984e3; }
.tag-magenta { background: #e84393; }
.tag-yellow { background: #f1c40f; color: #2d3436; }
.tag-success { background: #27ae60; }
.tag-warning { background: #e17055; }
.tag-default { background: #74b9ff; }

/* =========================================
   6. BUTONLAR VE FORMLAR
   ========================================= */
.btn { padding: 10px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 0.85rem; width: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; border-radius: 4px; width: auto; display: inline-flex; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid #ddd; background: transparent; color: var(--dark); } .btn-outline:hover { background: #f5f5f5; }
.btn-back { width: auto; border: 2px solid #c0392b; color: #c0392b; background: transparent; } .btn-back:hover { background: #c0392b; color: white; }

/* Siyah Koli Butonu */
.btn-box-add {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: 0.3s;
}
.btn-box-add:hover { background: #000; }

.form-group { margin-bottom: 15px; } 
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: #444; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem; background: #fff; transition: 0.3s; }
.form-group input:focus { border-color: var(--primary); outline: none; }

/* =========================================
   7. SEPET SAYFASI (GÜNCELLENMİŞ MODERN TASARIM)
   ========================================= */

/* GENEL DÜZEN (Sol: Ürünler, Sağ: Özet) */
.cart-layout { 
    display: flex; 
    gap: 30px; 
    align-items: flex-start; 
}

.cart-items-area { 
    flex-grow: 1; 
    background: transparent; /* Arkası şeffaf olsun ki kartlar öne çıksın */
    border-radius: 8px; 
    padding: 0; 
    border: none; 
}

.cart-summary-card { 
    width: 320px; 
    flex-shrink: 0; 
    background: #fff; 
    border-radius: 12px; 
    padding: 25px; 
    border: 1px solid #e1e1e1; 
    position: sticky; 
    top: 120px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

/* --- YENİ MODERN ÜRÜN KARTI --- */
.cart-item-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff !important;
    border: 1px solid #e1e1e1 !important; /* İnce gri çerçeve */
    border-radius: 12px !important; /* Yuvarlak köşe */
    padding: 20px !important; /* İç ferahlık */
    margin-bottom: 20px !important; /* Kartlar arası boşluk */
    width: 100% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important; /* Modern gölge */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-row:hover {
    transform: translateY(-3px); /* Hafif yukarı kalkma */
    box-shadow: 0 10px 25px rgba(0,0,0,0.07) !important;
    border-color: #d1d1d1 !important;
}

/* Ürün Görseli (Büyütüldü) */
.cart-item-img {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain !important;
    border: 1px solid #f1f2f6 !important;
    border-radius: 8px !important;
    padding: 5px !important;
    background: #fff !important;
    margin-right: 20px !important;
}

/* Ürün Bilgileri */
.cart-item-details { 
    flex: 1 !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.cart-item-title { 
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #2d3436 !important;
    margin-bottom: 5px !important;
}

.cart-item-code { 
    font-size: 0.85rem !important;
    color: #95a5a6 !important;
    font-weight: 600 !important;
}

/* Adet Kontrolü (Qty) */
.qty-control { 
    display: flex; 
    align-items: center; 
    gap: 0; 
    margin-top: 12px; 
}
.qty-btn { 
    width: 32px; height: 32px; border: 1px solid #ddd; background: #f9f9f9; cursor: pointer; font-weight: bold; 
}
.qty-btn:first-child { border-radius: 6px 0 0 6px; }
.qty-btn:last-of-type { border-radius: 0 6px 6px 0; }
.qty-input { 
    width: 45px; height: 32px; text-align: center; border: 1px solid #ddd; border-left: none; border-right: none; font-weight: bold; 
}

/* Fiyat Alanı (Sağ taraf) */
.cart-item-price {
    text-align: right !important;
    min-width: 120px !important;
    padding-left: 20px;
}
.total-price {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #d63031 !important;
}

/* Özet Alanı Alt Kısım */
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; color: #636e72; }
.summary-total { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 20px; border-top: 2px dashed #e1e1e1; font-weight: 900; font-size: 1.3rem; color: #2d3436; }
/* =========================================
   8. MODALLAR VE ADMİN PANELİ
   ========================================= */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-content { background-color: #fff; padding: 0; border-radius: 10px; width: 95%; max-width: 700px; position: relative; overflow: hidden; animation: zoomIn 0.2s ease-out; box-shadow: 0 20px 50px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
@keyframes zoomIn { from {transform: scale(0.95); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.form-header { background: #2d3436; padding: 15px; color: white; text-align: center; position: relative; }
.close-modal { position: absolute; right: 15px; top: 15px; font-size: 1.2rem; cursor: pointer; color: #555; z-index: 10; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: #f1f2f6; border-radius: 50%; }
.close-modal:hover { background: #e74c3c; color: white; }

#adminPanel { display: none; background: #fff; padding: 25px; margin: 0 auto 30px; border-radius: 10px; max-width: 1400px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e1e1e1; }
.admin-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f5f6fa; padding-bottom: 15px; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 10px; font-size: 0.9rem; } 
.admin-table th { padding: 12px; text-align: left; color: #888; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
.admin-table td { background: #fff; padding: 12px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.admin-table tr td:first-child { border-left: 1px solid #eee; border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.admin-table tr td:last-child { border-right: 1px solid #eee; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-bottom: 15px; }

/* LİSTELER */
.best-seller-list-container { background: #fff; padding: 25px; border-radius: 10px; margin-top: 40px; border: 1px solid #eee; }
.bs-list-item { display: flex; align-items: center; justify-content: space-between; padding: 15px; border-bottom: 1px solid #f5f6fa; transition: 0.2s; }
.bs-list-item:hover { background: #f9f9f9; padding-left: 10px; }
.bs-info { display: flex; align-items: center; gap: 15px; }
.bs-img { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; border: 1px solid #eee; background: white; }
.bs-title { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.bs-price { font-weight: 800; color: var(--primary); font-size: 1rem; }

/* SLIDER */
.slider-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.slider-container { display: flex; gap: 20px; overflow-x: auto; padding: 20px 5px; scroll-behavior: smooth; width: 100%; scrollbar-width: none; }
.slider-container::-webkit-scrollbar { display: none; } 
.slider-btn { background: rgba(255,255,255,0.8); border: 1px solid #eee; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 5; transition: 0.3s; flex-shrink: 0; position: absolute; }
.slider-btn.prev { left: -10px; } .slider-btn.next { right: -10px; }
.slider-btn:hover { background: var(--primary); color: white; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dot { width: 8px; height: 8px; background: #ddd; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary); transform: scale(1.2); }

/* MARKA KUTULARI (DİKDÖRTGEN & TEMİZ) */
.brand-grid {
    display: grid;
    /* Genişliği 240px yaparak daha yayvan/dikdörtgen olmasını sağladık */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 20px;
    padding: 10px 0;
}

.brand-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px; /* Yüksekliği azalttık ki dikdörtgen dursun */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #ccc;
}

.brand-title {
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.brand-desc {
    display: block !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999; /* Biraz daha soluk gri yazı */
    background: transparent; /* ARKA PLANDAKİ GRİ KUTUYU KALDIRDIK */
    padding: 0;
    border-radius: 0;
}
/* UTILS (Toast & Loader) */
#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; } 
.toast { background: #2d3436; color: #fff; padding: 14px 20px; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; animation: slideInRight 0.3s; border-left: 5px solid var(--success); font-weight: 500; font-size: 0.9rem; } 
.toast.error { border-left-color: #c0392b; }
.loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); z-index: 9999; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(2px); } 
.spinner { width: 40px; height: 40px; border: 4px solid #eee; border-radius: 50%; border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.pagination-btn { padding: 6px 12px; margin: 0 2px; border: 1px solid #ddd; background: white; cursor: pointer; border-radius: 4px; font-weight: 600; color: #555; }
.pagination-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* FOOTER */
footer { background: #2d3436; color: #dfe6e9; padding: 60px 0 20px; margin-top: 50px; border-top: 5px solid var(--primary); }
.footer-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-section h4 { color: #fff; margin-top: 0; margin-bottom: 20px; font-size: 1rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.footer-section p, .footer-section a { color: #b2bec3; font-size: 0.85rem; margin-bottom: 10px; line-height: 1.5; text-decoration: none; display: block; transition: 0.3s; }
.footer-section a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.8rem; color: #636e72; }
.designer { font-weight: bold; color: var(--primary); }

/* =========================================
   9. MOBİL UYUMLULUK (CRITICAL)
   ========================================= */
@media(max-width: 900px) { 
    /* Header düzeni dikey */
    .layout-grid, header { flex-direction: column; } 
    header { height: auto; padding: 15px; gap: 15px; }
    .header-actions { width: 100%; justify-content: center; }
    .logo-container { justify-content: center; text-align: center; }
    .search-wrapper { margin-top: 10px; width: 100%; }
    
    /* Yan menüyü gizle */
    .sidebar { display: none; } 
    
    /* Mobil Izgara (2'li Sütun - Trendyol Tarzı) */
    .product-list { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px; 
    }
    
    /* Kart detayları mobilde küçülsün */
    .p-img { height: 140px; padding: 10px; }
    .p-info { padding: 10px; }
    .p-title { font-size: 0.85rem; }
    .price-lock { font-size: 0.75rem; padding: 6px; }
    
    /* Butonlar mobilde biraz daha kompakt */
    .btn { padding: 8px; font-size: 0.8rem; }
    
    /* Sepet ve Formlar */
    .cart-layout { flex-direction: column; }
    .cart-summary-card { width: 100%; position: static; }
    .form-row-3, .form-grid-2 { grid-template-columns: 1fr; }
    .detail-layout { flex-direction: column; }
    
    /* Tablolar (Yatay kaydırma) */
    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}/* 1. SİTE GENİŞLİĞİ (BİRAZ DAHA İÇE BAKAN YAPI) */
.container { 
    width: 85%; /* %95'ten %92'ye çektik (hafif daraldı) */
    max-width: 1400px; /* Maksimum genişliği sınırladık */
    margin: 0 auto 60px; 
    padding: 0 15px; 
    flex: 1; 
}
/* Mobil için özel ayar (Mobilde kenar boşluğu az olsun) */
@media (max-width: 900px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
}

/* LOGO DÜZENİ (DÜZELTİLMİŞ) */
.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Sola yasla */
}
.logo-main {
    font-weight: 900;
    color: var(--dark);
    font-size: 1.3rem; /* Mobilde taşmasın diye biraz küçülttüm */
    line-height: 1.1;
    letter-spacing: -0.5px; /* Harfleri biraz yaklaştır */
}
/* 2. LOGO ALTI YAZISI (BÜYÜTÜLDÜ) */
.logo-sub {
    font-weight: 700;
    color: #7f8c8d;
    font-size: 0.85rem; /* 0.7'den 0.85'e çıktı (Okunabilir oldu) */
    margin-top: 4px;
    text-align: left !important;
    letter-spacing: 0.5px !important; /* Harf aralığı hafif açıldı */
}

/* 3. YÖNETİCİ PANELİ KUTUCUKLARI (MODERNLEŞTİRME) */
.add-product-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Hafif gölge */
    border: 1px solid #eee;
    margin-top: 20px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
    display: block;
}

/* İnputları güzelleştirme */
.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px 15px; /* İçi ferah olsun */
    border: 1px solid #e1e1e1;
    border-radius: 8px; /* Yumuşak köşe */
    background-color: #f9f9f9; /* Çok hafif gri */
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group select:focus {
    background-color: #fff;
    border-color: var(--primary); /* Odaklanınca kırmızı */
    box-shadow: 0 0 0 4px rgba(214, 48, 49, 0.1); /* Kırmızı parıltı */
    outline: none;
}

/* Dosya yükleme alanı özelleştirme */
.input-group input[type="file"] {
    padding: 10px;
    background: #fff;
    border: 2px dashed #ddd;
    cursor: pointer;
}/* GİRİŞ BUTONLARINI YAN YANA ALMA */
#guestNav {
    display: flex;
    align-items: center;
    gap: 10px; /* Aralarında 10px boşluk olsun */
}

/* Mobilde butonlar alt alta inmesin, sığsın */
@media(max-width: 900px) {
    #guestNav {
        width: 100%;
        justify-content: center;
    }
}/* 4. MODERN ÜRÜN DETAY MODALI (POP-UP) */
#productDetailModal .modal-content {
    width: 95%;
    max-width: 950px; /* Geniş ve ferah */
    border-radius: 20px; /* Yuvarlak köşeler */
    overflow: hidden;
    display: flex; /* Yan yana düzen */
    flex-direction: column; /* Mobilde alt alta */
    padding: 0;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media(min-width: 900px) {
    #productDetailModal .modal-content {
        flex-direction: row; /* Masaüstünde yan yana */
        height: 600px; /* Sabit yükseklik, modern görünüm */
    }
}

.detail-left {
    flex: 1;
    background: #f8f9fa; /* Resim arkası hafif gri */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}
.detail-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Beyaz arkaplanı temizler */
}

.detail-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    overflow-y: auto;
}

.detail-title { font-size: 1.8rem; font-weight: 800; color: #2d3436; margin-bottom: 10px; line-height: 1.2; }
.detail-code { font-size: 0.9rem; color: #b2bec3; font-weight: 600; margin-bottom: 20px; letter-spacing: 1px; }
.detail-price-box { margin-top: 30px; padding-top: 30px; border-top: 1px solid #f1f2f6; }
.detail-price { font-size: 2.5rem; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.detail-stock { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 10px; }
.stock-in { background: #e1f7d5; color: #27ae60; }
.stock-out { background: #ffcccc; color: #c0392b; }/* --- MARKA KUTULARI (Daha Yüksek ve Geniş) --- */
.brand-card {
    min-height: 180px !important; /* Yüksekliği artırdık */
    padding: 30px 20px !important; /* Üstten ve alttan boşluğu artırdık */
}

/* --- LOGO YAZISI (Boşluklar Azaltıldı) --- */
.logo-sub {
    letter-spacing: -0.5px !important; /* Harfleri birbirine yaklaştır */
    word-spacing: -63px !important; /* Kelimeleri birbirine yaklaştır */
    margin-top: 2px !important;
}

/* --- FOOTER KURUMSAL BAŞLIĞI ORTALAMA --- */
/* Sadece 2. sütun (Kurumsal) ortalanır */
.footer-section:nth-child(2) {
    text-align: center;
}
.footer-section:nth-child(2) h4 {
    display: inline-block; /* Çizginin yazı kadar olması için */
}/* --- 1. SİDEBAR'I GİZLE & ÜRÜNLERİ 3 SÜTUN YAP --- */
.sidebar {
    display: none !important; /* Filtre alanını tamamen kaldırdık */
}
.product-grid-area {
    width: 100% !important; /* Alanı genişlettik */
}
/* Mobilde yine 2'li kalsın */
@media (max-width: 900px) {
    .product-list { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- 2. ÜRÜN ETİKETLERİ (RENKLİLER GRİ OLDU) --- */
.badge {
    background: #636e72 !important; /* Koyu Gri */
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}
/* Çok satan biraz daha koyu, Yeni biraz daha açık gri olabilir fark etmesi için */
.badge-best { background: #2d3436 !important; } 
.badge-new { background: #b2bec3 !important; color: #2d3436 !important; }

/* --- 3. MODERN GERİ DÖN BUTONLARI --- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2d3436 !important;
    border: 1px solid #ddd !important;
    padding: 12px 25px;
    border-radius: 30px; /* Tam yuvarlak kenar */
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.btn-back:hover {
    transform: translateX(-5px);
    border-color: #2d3436 !important;
    background: #f9f9f9;
}

/* --- 4. SEPET SAĞ TARAFI UZATMA & MODERNLEŞTİRME --- */
.cart-layout {
    align-items: stretch !important; /* İki tarafı eşit boya zorla */
}
.cart-summary-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* İçeriği yay */
    height: auto !important; /* Yüksekliği serbest bırak ama stretch ile uzayacak */
    min-height: 500px; /* En az soldaki liste kadar dolu dursun */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* --- 5. FOOTER BAŞLIK AYARI (Sağa Kaydırma) --- */
/* İlk footer sütunu (Başlık olan) */
.footer-section:first-child {
    padding-left: 40px; /* Manuel olarak sağa ittirdik */
}/* --- SİDEBAR VE IZGARA YAPISI (DİNAMİK) --- */
/* Varsayılan (Marka Sayfaları): Sidebar Var, 3 Sütun */
.sidebar {
    display: block; /* Varsayılan olarak görünür */
    width: 250px;
    flex-shrink: 0;
}
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Varsayılan 3 sütun */
    gap: 20px;
}

/* "Tüm Ürünler" Sayfası İçin Özel Sınıf (6 Sütun) */
.product-list.six-columns {
    grid-template-columns: repeat(6, 1fr) !important;
}

/* Mobilde her zaman 2 sütun kalsın */
@media (max-width: 900px) {
    .product-list, .product-list.six-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- MARKA KUTULARI (BİRAZ KÜÇÜLTÜLDÜ) --- */
.brand-grid {
    /* 240px'ten 200px'e düşürdük, daha orantılı oldu */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; 
    gap: 20px;
}

/* --- RENKLERİ GERİ GETİRME (YENİ / ÇOK SATAN) --- */
.badge-new { 
    background: #e74c3c !important; /* Kırmızı */
    color: #fff !important; 
}
.badge-best { 
    background: #f1c40f !important; /* Sarı */
    color: #2d3436 !important; 
}

/* --- TEKNİK ETİKETLERİ (CHIP, TONER VS) GRİ YAPMA --- */
.tag {
    background-color: #dfe6e9 !important; /* Açık Gri */
    color: #636e72 !important; /* Koyu Gri Yazı */
    border: 1px solid #b2bec3 !important;
    font-weight: 600;
}
/* Özel renk sınıflarını eziyoruz */
.tag-black, .tag-cyan, .tag-magenta, .tag-yellow, .tag-default {
    background-color: #dfe6e9 !important;
    color: #636e72 !important;
}/* =========================================
   NİHAİ ÇÖZÜM: SINIF TABANLI KONTROL SİSTEMİ
   ========================================= */

/* 1. SİTE GENİŞLİĞİ (SINIRSIZ %85) */
.container {
    width: 85% !important;       /* Ekranın %85'ini kapla */
    max-width: none !important;  /* 1600px FRENİ İPTAL EDİLDİ */
    padding: 0 15px;
    margin: 0 auto 60px;
}

/* 2. DÜZEN VE YAYILMA */
.product-layout-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100% !important;      /* Kutuyu tam aç */
    justify-content: space-between; /* İçeriği sağa sola yasla */
}
.sidebar {
    display: none; /* Varsayılan olarak GİZLİ. JS ile açılacak. */
    width: 260px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Bu sınıf JS tarafından eklenince filtre GÖRÜNÜR olacak */
.sidebar.active {
    display: block !important;
}

.product-grid-area {
    flex: 1;
    width: 100%;
    min-width: 0;
}

/* 3. SÜTUN SİSTEMİ */

/* Varsayılan (Marka Sayfaları): 3 Sütun */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* "Tüm Ürünler" Modu: 5 SÜTUN (JS ile eklenir) */
.product-list.five-columns {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
}

/* Mobilde Zorunlu Ayarlar */
@media (max-width: 900px) {
    .container { width: 100% !important; }
    .sidebar, .sidebar.active { display: none !important; } /* Mobilde filtre hep gizli */
    .product-list, .product-list.five-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .product-layout-wrapper { flex-direction: column; }
}

/* 4. DİĞER GÖRSEL DÜZELTMELER */
.brand-card {
    min-height: 120px !important; padding: 15px !important; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pagination-container, #stockPagination, .pagination-controls {
    display: flex !important; justify-content: center; gap: 5px; margin-top: 20px; flex-wrap: wrap;
}/* =========================================
   FİNAL GÖRSEL DÜZENLEME (BUTONLAR, ETİKETLER, HEADER)
   ========================================= */

/* 1. DOLAR / EURO KUTUCUKLARI (KÜÇÜLTÜLDÜ & KİBARLAŞTI) */
.currency-badge {
    padding: 5px 12px !important; /* Boşluk azaldı */
    font-size: 0.85rem !important; /* Yazı küçüldü */
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    min-width: auto !important; /* Genişlik serbest */
    height: 35px;
}

/* 2. GİRİŞ VE BAYİ BUTONLARI (YAN YANA & EŞİT) */
#guestNav {
    display: flex;
    flex-direction: row !important; /* Yan yana zorla */
    align-items: center;
    gap: 10px; /* Aralarında boşluk */
    width: auto;
}

#guestNav .btn {
    width: 130px !important; /* İkisi de sabit eşit genişlik */
    padding: 10px !important;
    font-size: 0.9rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 40px !important;
    margin: 0 !important; /* Alt boşluğu sil */
}

/* Bayi Ol Butonunu Kırmızı Yap (Kaybolanı Geri Getir) */
#guestNav .btn-primary {
    background-color: #d63031 !important;
    color: #fff !important;
    border: none !important;
}

/* Giriş Yap Butonu */
#guestNav .btn-outline {
    border: 1px solid #ddd !important;
    background: transparent !important;
    color: #333 !important;
}
#guestNav .btn-outline:hover {
    background: #f5f5f5 !important;
}


/* =========================================
   FİNAL DÜZELTME (RENKLER VE SCROLL)
   ========================================= */

/* 1. ETİKET RENKLERİ (KIRMIZI & SARI GERİ GELDİ) */
.badge {
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-transform: uppercase;
}

.badge-new {
    background: #e74c3c !important; /* Canlı Kırmızı */
    color: #fff !important;
    border-left: none !important; /* Önceki çizgiyi kaldırdık */
}

.badge-best {
    background: #f1c40f !important; /* Canlı Sarı */
    color: #2d3436 !important; /* Koyu Yazı */
    border-left: none !important;
}

/* Teknik Etiketler (Siyah/Gri kalabilir, şık duruyor) */
.tag {
    background-color: #2d3436 !important;
    color: #fff !important;
    border: 1px solid #636e72 !important;
}

/* 2. MODAL SCROLL (BUTONUN GÖRÜNMESİ İÇİN KRİTİK) */
.modal-content {
    max-height: 90vh !important; /* Ekranın %90'ından büyük olmasın */
    overflow-y: auto !important; /* İçerik sığmazsa AŞAĞI KAYDIRMA ÇUBUĞU çıkar */
    display: flex;
    flex-direction: column;
}
/* Formun gövdesinin de kayabilir olduğundan emin olalım */
.form-body {
    overflow-y: auto;
    flex-grow: 1;
}/* =========================================
   ÜRÜN KARTLARI VE LİSTELEME (GRID SİSTEMİ)
   ========================================= */

/* 1. Ana Kapsayıcı */
#productSection {
    width: 90% !important;        /* 5 sütun sığsın diye biraz genişlettik */
    max-width: 1600px !important; 
    margin: 0 auto !important;
    padding: 20px 0;
}

/* 2. Liste Kutusu (VARSAYILAN: 3 SÜTUN) */
#productListContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Varsayılan: Yan yana 3 tane */
    gap: 20px; /* Kartlar arası boşluk */
    justify-content: center;
}

/* ÖZEL DURUM: Eğer bu sınıf eklenirse 5 SÜTUN olsun */
#productListContainer.five-columns {
    grid-template-columns: repeat(5, 1fr) !important; /* Yan yana 5 tane */
}

/* 3. Ürün Kartı: Izgaraya tam otursun */
.product-card {
    width: 100% !important;       /* Bulunduğu kutuyu doldursun (sabit değil) */
    height: 480px !important;     /* Yükseklik sabit */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    overflow: hidden;
}

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

/* 4. Resim Alanı */
.p-img {
    width: 100%;
    height: 180px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #fff;
}

.p-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 5. Ürün Bilgileri */
.p-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 5px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p-code { font-size: 0.8rem; color: #777; margin-bottom: 5px; }

/* 6. Fiyat ve Butonlar */
.price-show { margin-top: auto; width: 100%; }

/* MOBİL UYUMU: Mobilde her zaman tek veya iki sütun olsun */
@media (max-width: 768px) {
    #productListContainer, 
    #productListContainer.five-columns {
        grid-template-columns: repeat(2, 1fr) !important; /* Mobilde 2'li */
    }
}
@media (max-width: 480px) {
    #productListContainer, 
    #productListContainer.five-columns {
        grid-template-columns: 1fr !important; /* Çok küçük ekranda 1'li */
    }
}/* --- style.css EN ALTINA EKLE --- */

/* Bayi Başlık Butonu */
.accordion-btn {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.4s;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* Üzerine gelince veya tıklanınca */
.accordion-btn:hover, .accordion-btn.active {
    background-color: #ccc;
    color: #000;
}

/* Açılan Panel (Gizli Tablo Alanı) */
.accordion-panel {
    padding: 0 15px;
    background-color: white;
    display: none; /* Varsayılan gizli */
    overflow: hidden;
    border: 1px solid #f1f1f1;
    border-top: none;
    margin-bottom: 10px;
}

/* Tablo içindeki Kur Rozeti */
.rate-badge {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    border: 1px solid #ffeeba;
}