/* Base Styles */
.store-container {
    background: #f0f2f5;
    /* Daha koyu arka plan rengi */
    min-height: 100vh;
    display: flow-root;
    /* banner margin-top'unun dışarı taşıp üstte beyaz şerit göstermesini engeller (margin collapse fix) */
}

/* Magaza Hero Banner - STL Pazarı Dark Style */
.magaza-hero {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 4rem 2rem 3rem;
    position: relative;
    overflow: hidden;
    margin: 1rem 1rem 0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.magaza-hero .light-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.magaza-hero .light-beam {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.magaza-hero .light-beam.primary {
    width: 400px; height: 400px;
    background: rgba(255,140,0,.15);
    top: -150px; right: -100px;
    animation: magazaFloat 8s ease-in-out infinite;
}
.magaza-hero .light-beam.secondary {
    width: 300px; height: 300px;
    background: rgba(255,69,0,.1);
    bottom: -80px; left: -80px;
    animation: magazaFloat 12s ease-in-out infinite reverse;
}
.magaza-hero .light-beam.tertiary {
    width: 250px; height: 250px;
    background: rgba(255,200,0,.08);
    top: 20px; left: 30%;
    animation: magazaFloat 10s ease-in-out infinite 2s;
}
@keyframes magazaFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%       { transform: translate(20px,-20px) scale(1.1); }
}
.magaza-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.magaza-hero-inner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}
.magaza-hero-inner h1 span {
    display: inline-block;
    background: linear-gradient(120deg, #ffb347, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.magaza-hero-inner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.magaza-hero-inner p i { color: #FF8C00; font-size: 1.1rem; }

@media (max-width: 768px) {
    .magaza-hero { padding: 3rem 1rem 2rem; border-radius: 12px; margin: .5rem .5rem 0; }
    .magaza-hero-inner h1 { font-size: 2rem; }
    .magaza-hero-inner p { font-size: .95rem; }
}

/* İndirim Badge'i - Rengi yeşil olarak değiştirildi */
.discount-badge-corner {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Modernleştirilmiş fiyat gösterimi */
.price-wrapper-modern {
    margin: 15px 0;
    padding: 8px 0;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FF8C00;
}

/* Sidebar Filters - Improved contrast */
.filter-sidebar {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    position: sticky;
    top: 24px;
    border: 1px solid #eef0f2;
    padding-bottom: 6px;
}

.filter-header {
    background: transparent;
    color: #94a3b8;
    padding: 16px 18px 6px;
    text-align: left;
    border-bottom: none;
}

.filter-header h5 {
    margin: 0;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-header h5 i {
    color: var(--primary, #FF8C00);
    font-size: 0.8rem;
}

/* Search Bar */
.search-container {
    padding: 15px;
    border-bottom: 1px solid #d1d5db;
    /* Daha belirgin ayırıcı */
    background: #f9fafb;
    /* Hafif arka plan rengi */
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Daha belirgin gölge */
    border: 1px solid #d1d5db;
    /* Daha belirgin kenarlık */
    background: #ffffff;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    outline: none;
    font-size: 0.9rem;
    color: #334155;
    background: transparent;
}

.search-button {
    background: #f1f5f9;
    border: none;
    padding: 10px 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.search-button:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Category List - STL pazarı stili */
.category-list {
    padding: 2px 8px 8px;
    background: #fff;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-decoration: none;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 10px;
}

.category-item i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ic, #94a3b8) 15%, #fff);
    color: var(--ic, #94a3b8);
    font-size: 0.8rem;
    margin: 0;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

.category-item span:not(.count) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.category-item.active {
    background: color-mix(in srgb, var(--ic, #FF8C00) 12%, #fff);
    color: var(--ic, #FF8C00);
    font-weight: 700;
}

/* Aktif satırda ikon: beyaz kutu + koyu kategori renginde simge.
   main.css'teki global gradient-text kuralını (text-fill-color:transparent) ez. */
.category-item.active i {
    background: #ffffff !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: var(--ic, #c2410c) !important;
    -webkit-text-fill-color: var(--ic, #c2410c) !important;
    border: 1.5px solid color-mix(in srgb, var(--ic, #c2410c) 35%, #fff);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

/* Kategori rengi (başlık hash'ine göre) - satıra --ic olarak işlenir.
   Koyu/doygun tonlar: açık zeminde simge kontrastı yüksek olsun. */
.category-item.cat-ic-1 { --ic: #c2410c; }
.category-item.cat-ic-2 { --ic: #6d28d9; }
.category-item.cat-ic-3 { --ic: #0369a1; }
.category-item.cat-ic-4 { --ic: #047857; }
.category-item.cat-ic-5 { --ic: #b91c1c; }
.category-item.cat-ic-6 { --ic: #b45309; }
.category-item.cat-ic-7 { --ic: #4338ca; }
.category-item.cat-ic-8 { --ic: #be185d; }

.category-item .count {
    margin-left: auto;
    background: #eef1f5;
    color: #94a3b8;
    padding: 2px 9px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.category-item.active .count {
    background: color-mix(in srgb, var(--ic, #FF8C00) 20%, #fff);
    color: var(--ic, #FF8C00);
}

/* Filtreleri Temizle - kompakt, sade buton */
.clear-filters-wrap {
    padding: 8px 12px 12px;
}
.clear-filters-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ef4444;
    background: #fff;
    border: 1.5px solid #fdd5d5;
    border-radius: 9px;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
}
.clear-filters-btn i { font-size: 0.72rem; }
.clear-filters-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

/* Price Range Slider */
.price-filter {
    padding: 20px;
    border-top: 1px solid #d1d5db;
    /* Daha belirgin ayırıcı */
    background: #f9fafb;
    /* Hafif arka plan rengi */
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.range-slider-container {
    position: relative;
    width: 100%;
    height: 30px;
}

.price-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: #e2e8f0;
    outline: none;
    border-radius: 4px;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #64748b;
    border: 2px solid white;
    cursor: pointer;
    z-index: 3;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #64748b;
    border: 2px solid white;
    cursor: pointer;
    z-index: 3;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Filter action buttons */
.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-filter {
    width: 100%;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: #e2e8f0;
}

.btn-outline-danger {
    border: 1px solid #ef4444 !important;
    color: #ef4444 !important;
    background: transparent;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 6px;
}

.btn-outline-danger:hover {
    background: #fef2f2 !important;
}

/* Sorting Options */
.sorting-options {
    padding: 20px;
    border-top: 1px solid #d1d5db;
    /* Daha belirgin ayırıcı */
    background: #f9fafb;
    /* Hafif arka plan rengi */
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1f2937;
    /* Daha koyu metin rengi */
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #d1d5db;
    /* Daha belirgin kenarlık */
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-select:focus {
    border-color: #64748b;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}

/* Active Filters — arama kutusunun YANINDA, aynı satırda.
   Önceden toolbar'ın altında ayrı bir satırdı; filtre seçildikçe çubuk iki kata
   çıkıp içeriği aşağı itiyordu. */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Etiketler kendi genişliği kadar yer alır; artan yeri aramaya bırakır ama
       gerektiğinde aramayı iterek daraltır. */
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.af-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.af-label i {
    color: var(--primary, #FF8C00);
    font-size: 0.75rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
/* Uzun etiket satırı diğer araçları itmesin */
.active-filters .filter-tag span:not(:empty) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-tag i {
    cursor: pointer;
    font-size: 0.7rem;
    padding: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-tag i:hover {
    background: rgba(255, 255, 255, 0.5);
}

.badge-primary {
    background: #64748b;
}

.badge-success {
    background: #0ea5e9;
}

.badge-info {
    background: #8b5cf6;
}

.badge-warning {
    background: #f59e0b;
}

.badge-satici {
    background: #ff8c00;
}
.badge-satici i.fa-store {
    margin-right: 2px;
    cursor: default;
}

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #4b5563;
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    /* Header'a boşluksuz sticky yapışma (STL pazarı mantığı) */
    position: sticky;
    top: calc(var(--header-height, 90px) - 1px);
    z-index: 30;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.per-page-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.per-page-select .form-select {
    width: auto;
    padding: 4px 24px 4px 8px;
}

/* ── Sticky Toolbar (STL pazarı stili) ── */
.magaza-toolbar {
    position: sticky;
    top: calc(var(--header-height, 90px) - 1px);
    z-index: 40;
    background: #fff;
    margin: 18px 16px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: margin .25s ease, border-radius .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Kaydırınca: tam genişlik düz bar (header'ın uzantısı gibi) */
.magaza-toolbar.is-sticky {
    margin: 0;
    border-radius: 0;
    border-color: transparent;
    border-bottom: 1px solid #eef0f2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.magaza-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.magaza-toolbar .search-wrapper {
    flex: 1;
    margin: 0;
    min-width: 0;
    box-shadow: none;
}
.toolbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-left: auto;   /* sağa yasla: arama solda, filtreler ortada */
}
.toolbar-count {
    font-size: 0.9rem;
    color: #4b5563;
    white-space: nowrap;
}
.toolbar-count strong { color: #111827; font-weight: 800; }
.toolbar-filter-btn { padding: 8px 12px; }

/* Toolbar arama (STL stili: ikon içeride, ayrı buton yok) */
/* Arama boştaki alanı doldurur ve yanında filtre etiketi çıktıkça DARALIR
   (sabit genişlik verilirse etiketler alt satıra kaçıyordu). */
.mgz-search { position: relative; flex: 1 1 240px; min-width: 130px; }
.mgz-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
    pointer-events: none;
}
.mgz-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .9rem;
    color: #334155;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.mgz-search input::placeholder { color: #9aa5b1; }
.mgz-search input:focus {
    border-color: var(--primary, #FF8C00);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, .12);
}

/* Toolbar select'leri (Sırala / Sayfa) */
.tb-select { display: flex; align-items: center; gap: 6px; }
.tb-select label { font-size: .8rem; color: #64748b; margin: 0; white-space: nowrap; }
.tb-select .form-select {
    width: auto;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: .82rem;
    padding: 6px 28px 6px 10px;
    color: #334155;
    background-color: #f8fafc;
}
.tb-select .form-select:focus {
    border-color: var(--primary, #FF8C00);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, .12);
}

@media (max-width: 575px) {
    .magaza-toolbar { margin: 12px; }
    .magaza-toolbar.is-sticky { margin: 0; }
    .magaza-toolbar-inner { gap: 10px; flex-wrap: wrap; }
    .toolbar-count { display: none; }
    .tb-select label { display: none; }
}

/* ── Sayfa gövdesi: sabit genişlikte filtre sütunu + kalan alan ürünlere ──
   Bootstrap col-md-3/col-md-9 kullanılıyordu; geniş ekranda filtreler %25 (300px+)
   yer kaplayıp ızgarayı daraltıyordu. Filtre sütunu artık sabit, ürünler esner. */
/* align-items: stretch (varsayılan) BİLEREK: yan sütun satır boyunca uzasın ki
   içindeki .filter-sidebar'ın position:sticky'si kayacak alan bulsun. flex-start
   verilince sütun içerik kadar kısalıyor ve yapışkanlık hiç çalışmıyordu. */
.magaza-govde {
    display: flex;
    align-items: stretch;
    gap: 22px;
}
.magaza-yan {
    flex: 0 0 228px;
    width: 228px;
    max-width: 228px;
}
.magaza-icerik {
    flex: 1 1 auto;
    min-width: 0;   /* ızgaranın taşmaması için şart */
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h4 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

/* Boş durum "Filtreleri Temizle" - kompakt gradient buton */
.empty-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #FF8C00, #FF4500);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.30);
}
/* .empty-state i (üzgün surat) kuralını ez: buton ikonu beyaz, küçük, ortalı */
.empty-clear-btn i {
    font-size: 0.85rem;
    color: #fff;
    -webkit-text-fill-color: #fff;
    margin: 0;
}
.empty-clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.40);
}

/* Pagination */
.pagination-container {
    margin-top: 30px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0 3px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #d1d5db;
    /* Daha belirgin kenarlık */
    color: #4b5563;
    /* Daha koyu metin rengi */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background: #f1f5f9;
    color: #ff8c00;
    border-color: #ff8c00;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    color: white;
    border-color: #ff8c00;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.page-item.disabled .page-link {
    color: #cbd5e1;
    pointer-events: none;
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Product Card Styles */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Daha belirgin gölge */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #d1d5db;
    /* Daha belirgin kenarlık */
    position: relative;
    /* Flex kolon: içerik değişse de "Sepete Ekle" hep altta hizalı kalır */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Daha kuvvetli hover gölgesi */
    border-color: #ff8c00;
}

.product-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

.product-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
}

.product-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.bestseller-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.product-content {
    padding: 20px;
    /* Kartın kalan alanını kaplasın → fiyat+buton alta yapışsın */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.product-title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
    /* Uzun isimleri 2 satırda kes + "..." (kısa isimler tek satır → kompakt) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fiyat bloğunu alta sabitle → başlık/meta yüksekliği ne olursa olsun butonlar hizalı */
.price-wrapper-modern {
    margin-top: auto;
    padding-top: 10px;
}

.product-title a {
    color: #1f2937;
    /* Daha koyu link rengi */
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #ff8c00;
}

.product-brand {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    /* Daha koyu marka rengi */
    margin-bottom: 12px;
}

.filter-sidebar {
    position: sticky;
    /* Toolbar'ın hemen altına yapışır (STL pazarı mantığı) */
    top: calc(var(--header-height, 90px) + var(--magaza-tb-h, 64px) + 8px) !important;
    max-height: calc(100vh - var(--header-height, 90px) - var(--magaza-tb-h, 64px) - 24px);
    overflow-y: auto;
    /* Scrollbar gizle (açılınca görünümü bozmasın - STL pazarı gibi) */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filter-sidebar::-webkit-scrollbar {
    display: none;
}

/* ── Kompakt satıcı + marka meta (pazar yeri) ── */
.pc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 8px;
    min-height: 24px;
}
.pc-satici {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 2px 8px 2px 3px;
    background: #f6f7f9;
    border: 1px solid #eef0f3;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.pc-satici:hover {
    background: #fff4e8;
    border-color: #ffd6a8;
}
.pc-satici img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eef0f3;
    padding: 1px;
    flex: 0 0 auto;
}
.pc-satici-ph {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef0f3;
    color: #9aa1ad;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 10px;
}
.pc-satici span {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
/* Marka: başlığın önünde kalın vurgu (Trendyol/Hepsiburada mantığı) */
.pc-title-marka {
    font-weight: 800;
    color: #111827;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.stars i.active {
    color: #fbbf24;
}

.rating-count {
    font-size: 0.8rem;
    color: #64748b;
}

.price-wrapper {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ff8c00;
}

.discount-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* ── Adet seçici + Sepete Ekle ────────────────────────────────────────────
   DURGUN HÂL : yalnız "Sepete Ekle" görünür ve kartta ORTALIDIR.
   ÜZERİNE GELİNCE: adet seçici soldan kayarak girer, buton sağa kayar.

   İkisinin de ÖLÇÜSÜ HİÇ DEĞİŞMEZ — buton sabit genişlikte (kabın genişliği
   eksi seçici + boşluk), yer değiştirme yalnız transform ile yapılır. Böylece
   ne yazı sıkışır ne de kart yüksekliği oynar.

   Ölçüler birbirine bağlı: seçici 76px (24+28+24) + 6px boşluk = 82px.
   Buton ortadayken sol kenarı 41px'te, sağa kayınca 82px'te → translateX(41px).
   Seçici dar tutuldu ki 230px'lik kartta butona "Sepete Ekle" yazısı sığsın. */
.add-to-cart-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-bottom: 16px;
}

.quantity-section {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(-12px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

/* Karttaki stepper kompakt ve SABİT genişlikte (hesabın dayanağı). */
.add-to-cart-row .qty-stepper { width: 76px; height: 40px; }
.add-to-cart-row .qty-stepper button { width: 24px; flex: 0 0 24px; font-size: 10px; }
.add-to-cart-row .qty-stepper input { width: 28px; flex: 0 0 28px; font-size: 13px; }

.add-to-cart-btn {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}
/* Sabit genişlik YALNIZ satır içindeki butona: aynı sınıf başka yerlerde de var. */
.add-to-cart-row .add-to-cart-btn {
    width: calc(100% - 82px);
    flex: 0 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    font-size: .85rem;
    overflow: hidden;          /* dar kartta taşmasın, kırpılsın */
    transform: translateX(0);
    transition: transform .22s ease;
}

/* Açılış: fare kartın üzerindeyken ya da klavyeyle içine odaklanıldığında. */
.product-card:hover .quantity-section,
.product-card:focus-within .quantity-section {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
/* Kaydırma yalnız ETKİN butona: stoksuz kartta adet seçici yok, buton yerinde kalır.
   ÖNEMLİ: kural artık @media (hover: hover) İÇİNDE. Eskiden dışarıdaydı ve dokunmatikte
   dokununca :hover ÜSTTE KALDIĞI için buton sağa kayıyordu. Aşağıdaki
   @media (hover: none) bloğu bunu "transform: none" ile geri almaya çalışıyordu ama
   media query ÖZGÜLLÜK EKLEMEZ: `.product-card:hover .add-to-cart-row .add-to-cart-btn`
   (0,5,0) her zaman `.add-to-cart-row .add-to-cart-btn` (0,2,0) kuralını yeniyordu. */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover .add-to-cart-row .add-to-cart-btn:not(.disabled),
    .product-card:focus-within .add-to-cart-row .add-to-cart-btn:not(.disabled) {
        transform: translateX(41px);
    }
}

/* Dokunmatik (fare olmayan) cihazda "üzerine gelme" yok: adet seçici hep açık
   olmalı, yoksa miktar hiç seçilemezdi. */
@media (hover: none) {
    .add-to-cart-row { justify-content: flex-start; gap: 6px; }
    .add-to-cart-row--tek { justify-content: center; }
    .quantity-section {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .add-to-cart-row .add-to-cart-btn { transform: none; }
}

/* ═══ TELEFON: SEPETE EKLE = YALNIZ İKON ═══
   Kart genişliği ~170px'e düşünce "Sepete Ekle" yazısı + ikon sığmıyor, yazı
   kırpılıyordu (butonda overflow:hidden var). Telefonda yazı gizlenir, buton kare
   bir ikon butonuna dönüşür; kalan yer adet seçiciye gider.
   STOKSUZ butonda yazı KALIR ("Stokta Yok" bilgi taşır, kırpılma sorunu da yok). */
@media (max-width: 575.98px) {
    .add-to-cart-row .add-to-cart-btn:not(.disabled) span {
        display: none;
    }

    .add-to-cart-row .add-to-cart-btn:not(.disabled) {
        width: 46px;
        flex: 0 0 46px;
        padding-left: 0;
        padding-right: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .add-to-cart-row .add-to-cart-btn:not(.disabled) i {
        margin: 0;
        font-size: 1.02rem;
    }

    /* Adet seçici kalan alanı kaplasın */
    .add-to-cart-row .quantity-section {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.qty-btn {
    background: #f9fafb;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

.qty-btn:hover {
    background: #ff8c00;
    color: white;
}

.qty-input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 36px;
    text-align: center;
    border: none;
    background: white;
    font-weight: 600;
    color: #1e293b;
    padding: 0;
    /* İşaretçi gölgelerini kaldır */
    -moz-appearance: textfield;
}

/* Chrome, Safari, Edge'deki spinner'ları kaldır */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Sepete ekle butonu ve stokta yok butonu için ortak ayarlar */
.add-to-cart-btn,
.add-to-cart-btn.disabled {
    width: 100%;
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    min-height: 44px; /* Minimum yükseklik garantisi */
    line-height: 1;
    box-sizing: border-box;
    padding: 10px 16px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #ea7c00, #e55600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.add-to-cart-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    padding: 10px 16px;
}

/* Collapsible Sections */
.collapsible-header {
    cursor: pointer;
    user-select: none;
}

.collapsible-header h5 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    font-size: 0.7rem;
    color: #cbd5e1;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.collapsible-header.active .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.active {
    max-height: 500px;
}

/* Filter Sidebar - Set fixed min height to prevent layout shifts */
.filter-sidebar {
    min-height: 500px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 160px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .filter-sidebar {
        margin-bottom: 20px;
        position: static;
    }

    /* Tablet ve altı: yan sütun tam genişlik (mobilde zaten açılır panel olur). */
    .magaza-govde { display: block; }
    .magaza-yan { width: auto; max-width: none; }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 140px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    /* Mobile Sidebar Filter - Arttırılmış kontrast */
    .filter-sidebar {
        position: fixed;
        top: 0 !important;
        left: -100%;
        width: 85%;
        height: 100vh;
        z-index: 1000;
        transition: all 0.3s;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        /* Daha belirgin gölge */
    }

    .filter-sidebar.active {
        left: 0;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: linear-gradient(135deg, #ff8c00, #ff6600);
        /* Mavi yerine turuncu gradient */
        color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .close-filter-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Ürün kartını daha kompakt hale getir */
    .product-card {
        border-radius: 8px;
    }

    /* Resim bölümünü küçült */
    .product-image-wrapper {
        height: 140px;
    }

    /* İçerik alanını daha kompakt hale getir */
    .product-content {
        padding: 8px;
    }

    /* Başlığı küçült ve satır sınırla */
    .product-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 2px;
        height: auto;
        max-height: 2.4rem;
    }

    /* Marka bilgisini küçült */
    .product-brand {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    /* Yıldız derecelendirmelerini küçült veya gizle */
    .product-rating {
        margin-bottom: 6px;
    }

    .stars i {
        font-size: 0.7rem;
    }

    .rating-count {
        font-size: 0.6rem;
    }

    /* Fiyat bölümünü düzenle */
    .price-wrapper-modern {
        margin: 6px 0;
        padding: 4px 0;
    }

    .old-price {
        font-size: 0.7rem;
    }

    .current-price {
        font-size: 0.9rem;
    }

    /* Adet seçici ve buton ölçüleri her ekranda AYNI kalır (bkz. .add-to-cart-row). */

    .quantity-controls {
        width: 100%;
        height: 30px;
        display: grid;
        grid-template-columns: 28px 1fr 28px;
    }

    .qty-btn {
        width: 100%;
        height: 30px;
    }

    .qty-input {
        width: 100%;
        height: 30px;
        font-size: 0.8rem;
    }

    /* Sepete ekle butonunun yüksekliğini arttır */
    .add-to-cart-btn {
        height: 32px;
        margin-top: 4px;
    }

    /* Sepete ekle ve stokta yok butonlarını mobilde aynı boyutta göster */
    .add-to-cart-btn,
    .add-to-cart-btn.disabled {
        height: 40px; /* Mobilde biraz daha küçük ama tutarlı */
        margin-top: 4px;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .products-grid {
        gap: 6px;
    }

    .product-image-wrapper {
        height: 120px;
    }

    .product-content {
        padding: 6px;
    }

    .product-title {
        font-size: 0.7rem;
        height: 2rem;
    }

    /* Yıldız derecelendirmelerini gizle */
    .product-rating {
        display: none;
    }

    /* Sepete ekle butonu metni gizle, sadece ikon göster - Padding düzeltildi */
    .add-to-cart-btn {
        height: 36px; /* Yüksekliği arttırdım */
        padding: 0 15px; /* Yatay padding'i arttırdım */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sepete ekle butonu için metin gösterim ayarları */
    .add-to-cart-btn span {
        display: inline-block; /* Küçük ekranlarda da metni göster */
        font-size: 0.8rem; /* Yazı boyutu küçültüldü */
        margin-left: 5px; /* İkon ile metin arasına boşluk ekledim */
    }

    /* Küçük ekranlarda butonlar için tutarlı stil */
    .add-to-cart-btn,
    .add-to-cart-btn.disabled {
        height: 36px;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sepete ekle butonu için metin gösterim ayarları - her iki buton tipi için */
    .add-to-cart-btn span,
    .add-to-cart-btn.disabled span {
        display: inline-block;
        font-size: 0.8rem;
        margin-left: 5px;
    }

    /* Fiyat alanını daha kompakt hale getir */
    .price-wrapper-modern {
        margin: 4px 0;
    }
}

/* Marka/satıcı filtreleri artık <button> (erişilebilirlik). .category-item görünümünü
   korumak için buton varsayılanlarını sıfırla (arka plan/kenarlık/font/genişlik). */
button.category-item {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    width: 100%;
    font-family: inherit;
    text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBİL: KATEGORİLER (sol, 3 çizgi) ve FİLTRELER (sağ, huni) AYRI ÇEKMECE
   ───────────────────────────────────────────────────────────────────────
   Eskiden tek panel vardı ve kategoriler + fiyat/marka/satıcı hepsi birlikte
   açılıyordu; kategori listesi uzun olduğu için filtrelere ulaşmak (ve tersi)
   zordu. Artık aynı panel iki modda açılıyor:
     .filter-sidebar.mod-kategori → yalnız kategori bloğu
     .filter-sidebar.mod-filtre   → yalnız filtre bloğu (fiyat, marka, satıcı)
   Masaüstünde iki blok da normal şekilde alt alta görünür (mod sınıfı yok).
   ═══════════════════════════════════════════════════════════════════════ */
.toolbar-kategori-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    /* Açık moda göre yalnızca ilgili blok görünür */
    .filter-sidebar.mod-kategori .mgz-blok-filtre,
    .filter-sidebar.mod-filtre .mgz-blok-kategori {
        display: none;
    }

    /* Filtre modunda ilk başlığın üst boşluğu (mt-4) fazla kalıyor */
    .filter-sidebar.mod-filtre .mgz-blok-filtre>.filter-header:first-child {
        margin-top: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBİL DÜZELTMELER (kategori/filtre butonları · çekmece · adet seçici)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1) KATEGORİLER + FİLTRELER: alt satırda yan yana, eşit ölçü ────────── */
@media (max-width: 767.98px) {
    /* Arama alt satıra taşındığında sıralama/sayfa/kategori/filtre grubu
       margin-left:auto yüzünden sağa yaslı kalıyordu → mobilde ORTALANIR. */
    .magaza-toolbar-inner .toolbar-meta {
        gap: 8px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    .toolbar-kategori-btn,
    .toolbar-filter-btn {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-size: 1rem;
    }
}

/* ── 2) ÇEKMECE: ekranın dışında/yarım açılıyordu ───────────────────────────
   Sorunlar: (a) sticky sürümden gelen max-height ~674px kalıyordu → panel
   ekranı doldurmuyor, ortada asılı bir kart gibi duruyordu; (b) z-index 1000,
   site başlığı (2000), alt navbar (1900) ve FAB (2100) panelin ÜSTÜNE
   biniyordu → başlığı kesiliyordu. Artık tam yükseklikte, hepsinin üstünde
   ve soldan kayan düzgün bir çekmece.  */
@media (max-width: 767.98px) {
    .filter-sidebar {
        position: fixed;
        top: 0 !important;
        bottom: 0;
        left: 0;
        width: min(88vw, 360px);
        height: 100dvh;
        max-height: none;
        margin: 0;
        z-index: 2200;
        border: none;
        border-radius: 0 18px 18px 0;
        /* KAPALI hâlde gölge YOK: panel translateX(-100%) ile sağ kenarı tam x=0'da
           duruyor, gölge sağa doğru sayfaya taşıp sol kenarda koyu bir şerit
           bırakıyordu. Gölge yalnızca panel açıkken verilir. */
        box-shadow: none;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .filter-sidebar.active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 14px 0 36px rgba(0, 0, 0, .28);
    }

    .mobile-overlay {
        z-index: 2150;
        background: rgba(15, 23, 42, .55);
        backdrop-filter: blur(2px);
    }

    /* Panel başlığı kaydırırken üstte kalsın */
    .mobile-filter-header {
        position: sticky;
        top: 0;
        z-index: 2;
        border-radius: 0 18px 0 0;
    }
}

/* ── 3) KARTTA ADET SEÇİCİ + SEPET BUTONU ───────────────────────────────────
   Adet kutusu 76px sabit genişlikteydi ama kapsayıcısı esniyordu: seçici solda,
   sepet butonu sağda, ortada koca boşluk kalıyordu. Artık seçici kalan alanın
   tamamını kaplıyor, − / + tuşları da parmakla basılabilir genişlikte. */
@media (max-width: 575.98px) {
    .add-to-cart-row {
        height: 46px;
        gap: 8px;
        justify-content: flex-start;
    }

    .add-to-cart-row .quantity-section {
        flex: 1 1 auto;
        min-width: 0;
    }

    .add-to-cart-row .qty-stepper {
        display: flex;
        width: 100%;
        height: 46px;
    }

    .add-to-cart-row .qty-stepper button {
        flex: 0 0 42px;
        width: 42px;
        font-size: 13px;
    }

    .add-to-cart-row .qty-stepper input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        font-size: 15px;
    }

    .add-to-cart-row .add-to-cart-btn:not(.disabled) {
        height: 46px;
    }

    /* Stoksuz kart: tek buton, satırı doldurur */
    .add-to-cart-row--tek .add-to-cart-btn {
        width: 100%;
        height: 46px;
    }
}

/* Çekmecenin turuncu başlığı ("Kategoriler") ile bloğun kendi küçük başlığı
   ("KATEGORİLER") üst üste biniyordu → kategori modunda içteki başlık gizlenir. */
@media (max-width: 767.98px) {
    .filter-sidebar.mod-kategori .mgz-blok-kategori > .filter-header:first-child {
        display: none;
    }
    .filter-sidebar.mod-kategori .mgz-blok-kategori {
        padding-top: 8px;
    }
}

/* ── TAM 768px SINIRI ────────────────────────────────────────────────────────
   Butonlar Bootstrap'ın d-md-none'ı ile 768px'ten İTİBAREN gizleniyor, çekmece
   kuralları ise eski blokta max-width:768px ile 768'i DE kapsıyordu: tam 768px
   genişlikte panel ekran dışında kalıp filtrelere hiç ulaşılamıyordu.
   Bu aralıkta yan sütun normal (akış içinde) görünür. */
@media (min-width: 768px) and (max-width: 992px) {
    .filter-sidebar {
        position: static !important;
        transform: none;
        width: auto;
        height: auto;
        max-height: none;
        z-index: auto;
        border: 1px solid #eef0f2;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
        padding-bottom: 6px;
    }
    .mobile-filter-header { display: none; }
    .mobile-overlay { display: none; }
}

/* ── SONSUZ KAYDIRMA: "Daha Fazla Ürün" / "Tümü gösterildi" ─────────────────
   Sayfa numaralı pagination kaldırıldı; buton hem tıklanabilir hem de aşağı
   inildikçe otomatik tetiklenen gerçek bir link. */
.mgz-daha {
    display: flex;
    justify-content: center;
    padding: 26px 0 8px;
}

.mgz-daha-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 12px;
    border: 1.5px solid #ffd9b8;
    background: #fff;
    color: #c2410c;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(255, 140, 0, .12);
    transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
}

@media (hover: hover) and (pointer: fine) {
    .mgz-daha-btn:hover {
        background: linear-gradient(135deg, #FF8C00, #FF4500);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 6px 18px rgba(255, 106, 0, .28);
    }
}

.mgz-daha-btn:active { transform: scale(.985); }
.mgz-daha-btn[disabled] { opacity: .7; pointer-events: none; }

.mgz-daha-bitti {
    color: #94a3b8;
    font-size: .88rem;
    font-weight: 600;
    gap: 8px;
    align-items: center;
}
.mgz-daha-bitti i { color: #10b981; }

@media (max-width: 575.98px) {
    .mgz-daha { padding: 20px 0 4px; }
    .mgz-daha-btn { width: 100%; max-width: 320px; }
}

/* ── FİLTRELER SAĞDAN, KATEGORİLER SOLDAN ───────────────────────────────────
   Butonların konumuyla panelin geldiği yön uyuşsun: sol buton (☰ Kategoriler)
   soldan, sağdaki (⏷ Filtreler) sağdan açılır. Panel kapanırken de kendi
   tarafına doğru gider — mod sınıfı geçişten SONRA temizlenir (bkz. magaza
   blade'indeki kapat()). */
@media (max-width: 767.98px) {
    .filter-sidebar.mod-filtre {
        left: auto;
        right: 0;
        transform: translateX(100%);
        border-radius: 18px 0 0 18px;
    }

    .filter-sidebar.mod-filtre.active {
        transform: translateX(0);
        box-shadow: -14px 0 36px rgba(0, 0, 0, .28);
    }

    .filter-sidebar.mod-filtre .mobile-filter-header {
        border-radius: 18px 0 0 0;
    }
}
