/* Ürün listesi — kategori sidebar */

.shop-sidebar-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    padding: 20px 20px 18px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.shop-sidebar-panel__head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
}

.shop-sidebar-panel__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text, var(--navy));
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.shop-sidebar-panel__title i {
    color: var(--accent);
    font-size: 22px;
}

.shop-sidebar-panel__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.shop-cat-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-cat-nav__filter {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafbfc;
}

.shop-cat-nav__filter:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
    background: #fff;
}

.shop-cat-nav__filter > i {
    color: var(--accent);
    font-size: 16px;
}

.shop-cat-nav .shop-cat-nav__filter-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.shop-cat-item--all {
    border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--border));
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, var(--accent-bg) 0%, #fff 100%);
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.shop-cat-item--all.is-active {
    border-color: var(--accent);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 25%, transparent);
}

.shop-cat-nav__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: min(560px, calc(100vh - 220px));
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.shop-cat-nav__list::-webkit-scrollbar {
    width: 6px;
}

.shop-cat-nav__list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.shop-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary, var(--text-muted));
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.shop-cat-item:hover {
    background: #f8fafc;
    color: var(--text);
}

.shop-cat-item.is-active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.shop-cat-item.is-active .shop-cat-item__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.shop-cat-item__label {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.shop-cat-item__count {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-warm, #f3f4f6);
    color: var(--text-muted);
    min-width: 32px;
    text-align: center;
}

.shop-cat-parent {
    border-bottom: 1px solid var(--border-light, #f3f4f6);
}

.shop-cat-parent:last-child {
    border-bottom: none;
}

.shop-cat-parent.is-hidden {
    display: none;
}

.shop-cat-row {
    display: flex;
    align-items: stretch;
}

.shop-cat-expand {
    flex-shrink: 0;
    width: 40px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.shop-cat-expand:hover {
    color: var(--accent);
    background: var(--accent-bg);
}

.shop-cat-parent.is-expanded .shop-cat-expand i {
    transform: rotate(90deg);
}

.shop-cat-expand i {
    transition: transform 0.2s ease;
}

.shop-cat-row .shop-cat-item--parent {
    flex: 1;
    min-width: 0;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
}

.shop-cat-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: #f8fafc;
    border-top: 1px solid var(--border-light, #f3f4f6);
}

.shop-cat-parent.is-expanded .shop-cat-sub {
    display: block;
}

.shop-cat-item--child {
    padding: 11px 18px 11px 52px;
    font-size: 13px;
}

.shop-cat-nav__empty {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 8px;
}

/* AJAX yükleme */
#shopCatalogMain {
    position: relative;
    transition: opacity 0.2s ease;
}

#shopCatalogMain.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

#shopCatalogMain.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.35);
}

#shopCatalogMain.is-loading::after {
    content: '';
    position: absolute;
    top: 120px;
    left: 50%;
    z-index: 6;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: shopCatalogSpin 0.7s linear infinite;
}

@keyframes shopCatalogSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .shop-sidebar-panel {
        padding: 16px;
    }

    .shop-sidebar-panel__hint {
        display: none;
    }

    .shop-cat-nav__list {
        max-height: none;
    }
}
