@charset "UTF-8";

/* --- Temel Ayarlar & Gövde Renk Paleti --- */

/* --- Temel Ayarlar & Gövde Renk Paleti --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* YENİ: Çift tıklama zoom'unu ve 300ms gecikmeyi iptal eder */
html, body, button, .category-item, .brand-pill {
    touch-action: manipulation;
}

body {
    display: flex;
    background-color: #f1f5f9;
    color: #334155;
    overflow-x: hidden;
}

/* --- Sol Sidebar --- */
/* Genislikler breakpoint'e gore degisir (mobil 86 / tablet 104 / masaustu 140).
   Kategori adlari her boyutta gorunur oldugu icin sidebar salt-logo genisliginde
   olamaz; asagidaki degerler 3'lu urun grid'ini daraltmayacak sekilde secildi. */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 86px;
    background: linear-gradient(to bottom, rgba(15, 30, 60, 1), rgba(73, 97, 155, 1));
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    z-index: 100;
    transition: width 0.3s ease;
    padding-top: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

    .sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.02);
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

    /* Adlar zaten gorunur; genisleme yalnizca metne daha ferah alan verir */
    .sidebar.expanded {
        width: 118px;
    }

.sidebar-toggle {
    text-align: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    margin-bottom: 15px;
    transition: color 0.2s, transform 0.3s;
}

    .sidebar-toggle:hover {
        color: #ffffff;
        transform: scale(1.1);
    }

.sidebar-title {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 5px 12px 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s, border-color 0.2s;
    border-right: 3px solid transparent;
}

    .category-item:hover, .category-item.active {
        background-color: rgba(255, 255, 255, 0.15);
        border-right: 3px solid #7dd3fc;
    }

.category-img {
    width: 50px; /* tablet 55, masaustu 60 - bkz. media query'ler */
    height: 50px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 4px;
    flex-shrink: 0;
}

    .category-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Logosu olmayan kategoride kırık resim ikonu görünmesin */
    .category-img.is-empty {
        background: rgba(255, 255, 255, 0.35);
        box-shadow: none;
    }

/* Bazi logolardan kategorinin ne oldugu anlasilmiyor; bu yuzden ad artik
   HER ekran boyutunda gorunur. Uzun adlar en fazla 2 satira sarar, tasmaz. */
.category-name {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    width: 100%;
    overflow: hidden;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-item.active .category-name {
    color: #ffffff;
    font-weight: 600;
}

/* --- Sağ Ana İçerik --- */
.main-content {
    margin-left: 86px;
    width: calc(100% - 86px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease, width 0.3s ease; /* YENİ: İçeriğin itilme animasyonu */
}

/* YENİ: Sidebar açıldığında ana içeriği de sağa it */
.sidebar.expanded ~ .main-content {
    margin-left: 118px;
    width: calc(100% - 118px);
}

/* --- Header --- */
.header {
    background: rgba(15, 30, 60, 1);
    padding: 12px 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 90;
}
/* Üç kolon: [badge] [logo] [boş]. Logo orta kolonda olduğu için badge gizlense
   de ortalı kalır; badge kendi kolonuna sıkıştığı için uzun adlarda logonun
   üstüne binemez. Sağdaki boşluk mutlak konumlu arama ikonu içindir.
   Badge'in soldaki 15px'i .header padding'inden gelir - sağdaki arama
   ikonunun right:15px değeriyle simetrik. */
.header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding-right: 26px;
    min-width: 0;
}

    /* Kolonlar acik yazildi: badge hidden iken logo 1. kolona kayip
       ortadan kacmasin. */
    .header-bar > a {
        grid-column: 2;
    }

/* Seçili kategori rozeti - koyu header üzerinde sade, kompakt bir pill */
.category-badge {
    grid-column: 1;
    justify-self: start; /* header'ın sol tarafına yaslı */
    min-width: 0;
    max-width: 100%; /* kendi kolonunu aşamaz */
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .2px;
    /* Uzun kategori adı header'ı bozmasın */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /* display:flex/inline değerlerini hidden attribute'u ezebilsin */
    .category-badge[hidden] {
        display: none;
    }

/* --- YENİ: Header Resim Logosu Ayarları --- */
.header-logo {
    height: 40px; /* Mobilde header'ı taşırmaması için ideal yükseklik */
    width: auto; /* Yüksekliğe göre genişliği otomatik ayarlar (sünmeyi engeller) */
    max-width: 180px; /* Logo çok yataysa ekrana sığması için güvenlik sınırı */
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.search-toggle {
    position: absolute;
    right: 15px;
    top: 13px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.2s;
}

    .search-toggle:hover {
        color: #ffffff;
    }

.search-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, margin-top 0.3s ease-in-out;
}

    .search-container.active {
        max-height: 60px;
        margin-top: 12px;
    }

.search-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: none;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 512 512"><path fill="%2364748b" d="M416 208c0 45.9-11.4 89.1-31.6 126.9L502.6 453.3c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L338.9 380.4C301.1 400.6 257.9 412 212 412 94.9 412 0 317.1 0 200S94.9-12 212-12s212 94.9 212 212zm-204 152c83.9 0 152-68.1 152-152S295.9 56 212 56 60 124.1 60 208s68.1 152 152 152z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
}

    .search-input:focus {
        background-color: #ffffff;
        box-shadow: 0 0 0 2px #7dd3fc;
    }

    /* Arama 2 karakterin altındayken kısa süreli uyarı (catalog.js ekler/kaldırır) */
    .search-input.invalid {
        box-shadow: 0 0 0 2px #f87171;
    }

/* Input + "Ara" butonunu yan yana tutar */
.search-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

    .search-row .search-input {
        flex: 1;
        min-width: 0; /* Flex içinde input'un taşmasını engeller */
    }

.search-submit {
    flex-shrink: 0;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background-color: #38bdf8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}

    .search-submit:hover {
        background-color: #0ea5e9;
    }

/* --- Arama Sonuç Çubuğu --- */
.search-results-bar {
    display: none; /* .visible ile açılır */
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

    .search-results-bar.visible {
        display: flex;
    }

.search-results-info {
    font-size: 12px;
    color: #475569;
}

    .search-results-info strong {
        color: #0f1e3c;
    }

.search-results-term {
    color: #0369a1;
    font-weight: 700;
}

.search-results-note {
    color: #94a3b8;
}

.search-clear-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 14px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all .2s ease;
}

    .search-clear-btn:hover {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #0f1e3c;
    }

/* --- Grid İçi Durum Mesajları (yükleniyor / boş / hata) --- */
.grid-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 20px;
}

    .grid-message--error {
        color: #ef4444;
    }

/* --- Sonuç Bulunamadı Ekranı --- */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #94a3b8;
}

.no-results-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.no-results-text {
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
}

.no-results-term {
    color: #0369a1;
    font-weight: 700;
}

/* --- Ürün Listeleme Alanı --- */
.content-area {
    padding: 12px;
    flex: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.product-count {
    font-size: 11px;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* --- GÜNCELLENMİŞ: Esnek ve Responsive Grid Vitrin --- */
/* --- Mobilde 2'li görünümü garantileyen temel kural --- */
/* --- Mobilde 3'lü Vitrin --- */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Mobilde 3'lü */
    /* Sidebar kategori adları için genişledi; kart genişliğini korumak adına
       mobilde boşluklar birkaç px kısıldı (masaüstü değerleri değişmedi). */
    gap: 6px !important;
    padding: 5px !important;
}

/* --- Ürün Grubu Notu --- */
/* Grup başlığının hemen altında, grid'i tam genişlikte keser. Uyarı kutusu
   gibi sert durmasın diye yumuşak sky tonu + ince kenarlık; katalogdaki
   .product-category rozetiyle aynı vurgu rengi ailesinden. */
.product-group-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 4px 0 2px;
    padding: 8px 10px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
    font-weight:600;
}

    .product-group-note i {
        flex-shrink: 0;
        margin-top: 1px;
        font-size: 11px;
        color: #0284c7;
    }

    .product-group-note span {
        min-width: 0;
        overflow-wrap: break-word;
    }

.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px; /* 3'lü dizilimde daha küçük kartlar için köşe radyusu */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    /* Sadece transform ve box-shadow animasyonlu: ikisi de layout tetiklemez */
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

/* Hover sadece gerçek imleçli cihazlarda; dokunmatikte "yapışık hover" olmasın */
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(15, 30, 60, 0.13);
        border-color: #cbd5e1;
    }
}

/* Dokunmatikte anlık geri bildirim */
.product-card:active {
    transform: translateY(-1px);
}

.product-image {
    width: 100%;
    height: 90px; /* Görseli kısalttık ki 3'lüye sığsın */
    object-fit: cover;
    border-bottom: 1px solid #f1f5f9;
}

.product-info {
    padding: 6px;
    flex-grow: 1;
}

/* Ürünün katalogdaki konumu - yalnızca arama sonuçlarında doldurulur */
.product-category {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.3;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 4px;
    padding: 2px 5px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .product-category i {
        opacity: .75;
    }

.product-title {
    font-size: 11px; /* Fontu küçülttük */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Kartlar aynı yükseklikte kalsın diye ad 2 satırda kırpılır;
       tamamı, karta tıklayınca açılan modal'ın başlığında görünür. */
    max-height: 2.3em;
}

.product-desc {
    font-size: 9px; /* Çok küçük bir açıklama fontu */
    color: #64748b;
    margin-top: auto;
}

/* --- Ürün Detay Modal'ı --- */
/* Sidebar 100, header 90, yukarı-çık 99 -> modal hepsinin üstünde */
.product-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    /* Yalnızca opacity animasyonlu. visibility bilerek geçişe dahil edilmedi:
       modal açılır açılmaz içindeki butona focus() verilebilmesi gerekiyor ve
       geçiş hâlindeki visibility bunu engelliyor. Kapanışta fade'in görünmesi
       için .is-visible sınıfını catalog.js gecikmeli kaldırır. */
    transition: opacity .25s ease;
}

    /* hidden attribute'u, display:flex veren sınıfları ezebilsin */
    .product-modal [hidden] {
        display: none !important;
    }

    /* catalog.js: açarken anında eklenir, kapatırken fade bitince kaldırılır */
    .product-modal.is-visible {
        visibility: visible;
    }

    /* catalog.js: fade'i tetikler */
    .product-modal.is-open {
        opacity: 1;
    }

.product-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 30, 60, 0.65);
}

.product-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 32px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* Fade + hafif zoom */
    opacity: 0;
    transform: scale(.94);
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), opacity .28s ease;
}

.product-modal.is-open .product-modal-dialog {
    opacity: 1;
    transform: scale(1);
}

.product-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.product-modal-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    overflow-wrap: break-word; /* uzun ürün adları taşmasın */
}

.product-modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, color .2s ease;
}

    .product-modal-close:hover {
        background: #e2e8f0;
        color: #0f1e3c;
    }

    .product-modal-close:focus-visible {
        outline: 2px solid #38bdf8;
        outline-offset: 2px;
    }

.product-modal-body {
    padding: 16px;
    overflow-y: auto; /* uzun içerik modal içinde kaysın, sayfa kaymasın */
    -webkit-overflow-scrolling: touch;
}

.product-modal-figure {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.product-modal-image {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: #94a3b8;
}

.product-modal-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 20px;
    font-size: 12px;
    text-align: center;
    color: #94a3b8;
}

    .product-modal-fallback i {
        font-size: 30px;
    }

.product-modal-meta {
    margin-top: 12px;
}

.product-modal-category {
    font-size: 11px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 6px;
}

.product-modal-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

/* --- Modal içi Ürün Özellikleri --- */
.product-features {
    margin-top: 14px;
}

.product-features-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #64748b;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.product-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Her özellik ayrı bir hafif kart satırı */
.product-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 30, 60, 0.04);
    font-size: 12px;
    line-height: 1.45;
    color: #334155;
}

    .product-feature i {
        flex-shrink: 0;
        margin-top: 2px;
        font-size: 10px;
        color: #0284c7;
    }

    .product-feature span {
        min-width: 0;
        overflow-wrap: break-word;
    }

/* Modal açıkken arka planın kaymasını engelle */
body.modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .product-modal,
    .product-modal-dialog {
        transition-duration: .01ms;
    }
}

/* Aranan kelimenin ürün adı/açıklaması içinde işaretlenmesi */
.search-hl {
    background: #fef08a;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

/* İkonlara biraz renk katıp premium hissiyatı artırdık */
.icon {
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #0284c7;
    opacity: 0.8;
}

/* --- Footer --- */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-top: auto;
}

.footer-company {
    font-weight: 700;
    color: #475569;
}

/* Panelden footer logosu yuklendiyse yazi yerine o gosterilir */
.footer-logo {
    height: 26px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.footer-dev {
    color: #94a3b8;
    font-style: italic;
}

/* --- Yukarı Çık Butonu --- */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(15, 30, 60, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

    .scroll-top-btn.show {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top-btn:hover {
        background: #38bdf8;
    }


.mt-20 {
    margin-top: 20px;
    ;
}
/* --- YENİ: Oklar ve Menüyü Yan Yana Dizen Kapsayıcı --- */
.brand-filter-wrapper {
    display: flex;
    align-items: center; /* Oku ve menüyü dikeyde ortalar */
    justify-content: space-between;
    gap: 10px; /* Oklar ile menü arasındaki boşluk */
    margin-bottom: 15px;
    width: 100%;
}

/* YENİ: Oklar Artık Sabit ve Menünün Dışında */
.scroll-arrow {
    flex-shrink: 0; /* Okların ezilmesini engeller */
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    /* Okları gizlerken layout'un kaymamasını sağlar */
    opacity: 0;
    visibility: hidden;
}

    .scroll-arrow:hover {
        background: #f8fafc;
        color: #0f1e3c;
    }

    .scroll-arrow.visible {
        opacity: 1;
        visibility: visible;
    }

/* --- YENİ: Okların ve Kaydırma Alanının Ana Taşıyıcısı --- */
.brand-carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px; /* Oklar ile markalar arasındaki boşluk */
    margin-bottom: 15px;
}

/* Sabit Okların Tasarımı */
.carousel-arrow {
    flex-shrink: 0; /* Okların kesinlikle ezilmesini/küçülmesini engeller */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
    /* Başlangıçta pasif durumu */
    opacity: 0.3;
    pointer-events: none;
}

    /* Ok tıklanabilir (aktif) olduğunda */
    .carousel-arrow.active {
        opacity: 1;
        pointer-events: auto;
    }

        .carousel-arrow.active:hover {
            background: #f8fafc;
            color: #0f1e3c;
        }

/* --- SADECE BU ARA ALAN KAYACAK --- */
.brand-track {
    flex: 1; /* Okların arasındaki tüm boşluğu kapla */
    min-width: 0; /* KRİTİK KOD: İçerik taşmasını engeller, sağ oku ekran dışına itmez! */

    display: grid;
    grid-template-rows: repeat(2, 1fr); /* 2 Satırlı yapı */
    grid-auto-flow: column; /* Sütun sütun diz */
    gap: 8px;
    padding-bottom: 4px; /* Alt gölge kesilmesin diye */

    overflow-x: auto; /* Taşanları kendi içinde kaydır */
    -webkit-overflow-scrolling: touch; /* Mobilde yağ gibi kaysın */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .brand-track::-webkit-scrollbar {
        display: none;
    }

/* Marka Hapları (Öncekiyle aynı) */
.brand-pill {
    white-space: nowrap;
    padding: 6px 16px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    text-align: center;
    height: fit-content;
}

    .brand-pill:hover {
        background-color: #f8fafc;
        border-color: #94a3b8;
    }

    .brand-pill.active {
        background-color: rgba(15, 30, 60, 1);
        color: #ffffff;
        border-color: rgba(15, 30, 60, 1);
        box-shadow: 0 2px 6px rgba(15, 30, 60, 0.3);
    }
/* --- Tablet (768px - 1023px) --- */
@media (min-width: 768px) {
    .sidebar {
        width: 104px;
    }

        .sidebar.expanded {
            width: 128px;
        }

    .main-content {
        margin-left: 104px;
        width: calc(100% - 104px);
    }

    .sidebar.expanded ~ .main-content {
        margin-left: 128px;
        width: calc(100% - 128px);
    }

    .category-img {
        width: 55px;
        height: 55px;
    }

    .category-name {
        font-size: 11px;
    }

    .category-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* --- Masaüstü Görünüm (Responsive) --- */
@media(min-width: 1024px) {
    /* Sidebar ve Ana İçerik Düzeni */
    .sidebar-toggle {
        display: none;
    }

    .sidebar {
        width: 140px;
    }

    /* Toggle masaüstünde gizli olduğu için genişleyen hâl de sabit kalır */
    .sidebar.expanded {
        width: 140px;
    }

    .main-content {
        margin-left: 140px;
        width: calc(100% - 140px);
    }

    .sidebar.expanded ~ .main-content {
        margin-left: 140px;
        width: calc(100% - 140px);
    }

    .category-img {
        width: 60px;
        height: 60px;
    }

    /* Genişlik sınırını artık grid kolonu veriyor, yüzde override gerekmiyor */
    .category-badge {
        font-size: 12px;
    }

    /* 6'lı Görünümün Garantilenmesi */
    .product-grid {
        display: grid !important; /* Diğer tüm stilleri ez ve grid yap */
        grid-template-columns: repeat(6, 1fr) !important; /* Kesinlikle 6 sütun */
        gap: 20px !important;
        padding: 8px !important; /* masaüstünde eski değerinde kalsın */
    }

    .product-image {
        height: 160px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-category {
        font-size: 11px;
        padding: 3px 7px;
        margin-bottom: 6px;
    }

    .product-group-note {
        gap: 9px;
        margin: 8px 0 4px;
        padding: 10px 14px;
        font-size: 13px;
    }

        .product-group-note i {
            font-size: 13px;
        }

    /* Arama sonuç çubuğu */
    .search-results-info {
        font-size: 13px;
    }

    .search-clear-btn {
        font-size: 13px;
    }

    .no-results {
        padding: 60px 20px;
    }

    .no-results-icon {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }

    .no-results-title {
        font-size: 19px;
    }

    .no-results-text {
        font-size: 14px;
    }

    /* Ürün detay modal'ı */
    .product-modal {
        padding: 30px;
    }

    .product-modal-dialog {
        max-height: calc(100vh - 60px);
    }

    .product-modal-header {
        padding: 16px 20px;
    }

    .product-modal-title {
        font-size: 18px;
    }

    .product-modal-close {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .product-modal-body {
        padding: 20px;
    }

    .product-modal-figure {
        min-height: 260px;
    }

    .product-modal-image {
        max-height: 65vh;
    }

    .product-modal-category {
        font-size: 12px;
    }

    .product-modal-desc {
        font-size: 14px;
    }

    .product-features-title {
        font-size: 12px;
    }

    .product-feature {
        font-size: 13px;
        padding: 9px 12px;
    }

    /* Diğer masaüstü iyileştirmeleri */
    /* max-height/opacity artık gerekmiyor: ad her boyutta görünür,
       taşmayı line-clamp yönetiyor. */
    .category-name {
        font-size: 12px;
    }

    .sidebar-title {
        font-size: 13px;
        padding: 0 10px 15px 10px;
        letter-spacing: 1px;
    }

    .category-item {
        padding: 15px 5px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .product-count {
        font-size: 13px;
        padding: 5px 10px;
    }

    .product-title {
        font-size: 15px;
    }

    .product-desc {
        font-size: 13px;
    }

    .product-info {
        padding: 12px 15px;
    }

    .footer {
        padding: 20px;
        font-size: 13px;
    }

    .scroll-top-btn {
        right: 30px;
        bottom: 30px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
