/* Mağaza vitrini (frontend/seller_vitrin): pazaryeri butonu ve sol kategori menüsü */

/* ── Pazaryeri ana sayfası butonu ── */
.shop-market-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.shop-market-btn i { font-size: 18px; }
.shop-market-btn:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* aiz-core .gutters-16 genel olarak sola -40px taşar; mağazada kartlar sol menüye/ekran kenarına yapışmasın */
.shop-products .row.gutters-16 { margin-left: -16px; }

/* ── Sol kategori menüsü (frontend/partials/shop_category_menu): ana sayfa menüsünün yapısı —
   ikonlu ana kategori, aşağı açılan alt kategoriler; seçili alt kategori yeşil ──
   Boşluklar burada sabit: genel bir kural bağlantıların alt boşluğunu sıfırlıyor (py-* sınıfları tutmuyor). */
@media (min-width: 992px) {
    /* Menü ana sayfadaki gibi sabit genişlikte; ürünler kalan alanı kullanır */
    .shop-cat-aside { flex: 0 0 280px; max-width: 280px; }
    .shop-products-with-cats { flex: 1 1 0; max-width: calc(100% - 280px); }
    /* Sekme çubuğunun (.shop-nav) altında sabit kalsın */
    .shop-cat-menu { position: sticky; top: 64px; }
    #shop-cat-list { max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
}
.shop-cat-menu {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.shop-cat-heading {
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 1px solid #ececec;
}
.shop-cat-heading i { font-size: 20px; color: rgb(255, 140, 114); }
.shop-cat-item + .shop-cat-item { border-top: 1px solid #f2f2f2; }
.shop-cat-row {
    display: flex;
    align-items: stretch;
    border-left: 3px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}
.shop-cat-link {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 8px 10px 13px !important;
    font-size: 15px;
    line-height: 1.3;
    color: #212529 !important;
    text-decoration: none !important;
}
.shop-cat-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #666;
}
.shop-cat-icon img { width: 24px; height: 24px; object-fit: contain; }
.shop-cat-name { font-weight: 500; }
.shop-cat-arrow {
    flex: 0 0 44px;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    outline: none !important;
}
.shop-cat-arrow i { display: inline-block; transition: transform 0.25s ease; }
.shop-cat-item:hover > .shop-cat-row { background-color: #fff6f3; }
.shop-cat-item.active > .shop-cat-row,
.shop-cat-item.selected > .shop-cat-row {
    background-color: #fff1ec;
    border-left-color: rgb(255, 140, 114);
}
.shop-cat-item.active .shop-cat-name,
.shop-cat-item.selected .shop-cat-name { font-weight: 700; color: #e8603f; }
.shop-cat-item.selected .shop-cat-icon,
.shop-cat-item.active .shop-cat-arrow { color: #e8603f; }
.shop-cat-item.active .shop-cat-arrow i { transform: rotate(180deg); }

/* Alt kategoriler (ana sayfadaki category_elements görünümü) */
.shop-cat-sub { background-color: #fafafa; border-top: 1px solid #f2f2f2; }
.shop-subcat-list { padding: 8px 12px 10px 48px; }
.shop-subcat-group { padding: 6px 0; }
.shop-subcat-all + .shop-subcat-group,
.shop-subcat-group + .shop-subcat-group { border-top: 1px solid #efefef; }
.shop-subcat-all,
.shop-subcat-title,
.shop-subcat-child {
    color: #212529 !important;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s, color 0.15s;
}
.shop-subcat-all { display: block; padding: 5px 8px !important; margin: 0 0 4px -8px; font-size: 14px; font-weight: 600; }
.shop-subcat-title { display: block; padding: 4px 8px !important; margin-left: -8px; font-size: 14px; font-weight: 600; }
.shop-subcat-children { display: flex; flex-wrap: wrap; gap: 2px; margin: 2px 0 0 -8px; }
.shop-subcat-child { display: inline-block; padding: 3px 8px !important; font-size: 13px; color: #555 !important; }
.shop-subcat-count { font-weight: 400; font-size: 12px; opacity: 0.6; }
.shop-subcat-all:hover, .shop-subcat-all.selected,
.shop-subcat-title:hover, .shop-subcat-title.selected,
.shop-subcat-child:hover, .shop-subcat-child.selected {
    background-color: #28a745;
    color: #fff !important;
}
.shop-subcat-all:hover .shop-subcat-count, .shop-subcat-all.selected .shop-subcat-count,
.shop-subcat-title:hover .shop-subcat-count, .shop-subcat-title.selected .shop-subcat-count { opacity: 0.9; }

.shop-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    background: none;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    outline: none !important;
}
