/* =====================================================================
   URUN GRUPLARI AGACI  (views/common/_katalog_agaci.php)
   Urun sayfalari sol menusu + Destek sayfasi.
   ===================================================================== */

.kagac-kutu {
    --kagac-lacivert: #00006b;
    --kagac-kenar: #e2e7f2;
    --kagac-soluk: #5a6780;
    background: #fff;
    border: 1px solid var(--kagac-kenar);
    border-radius: 12px;
    padding: 14px 10px 14px 14px;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
}
.kagac-baslik {
    font-size: 16px;
    font-weight: 700;
    color: var(--kagac-lacivert);
    cursor: pointer;
    list-style: none;
    padding: 2px 0 10px;
}
.kagac-baslik::-webkit-details-marker { display: none; }
@media (min-width: 992px) {
    .kagac-baslik { cursor: default; pointer-events: none; }
}
@media (max-width: 991.98px) {
    .kagac-kutu { position: static; max-height: none; margin-bottom: 16px; }
    .kagac-baslik::after { content: " \25BE"; }
    .kagac-kutu[open] > .kagac-baslik::after { content: " \25B4"; }
}

.kagac-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kagac-liste .kagac-liste {
    padding-left: 14px;
    margin-left: 7px;
    border-left: 1px dashed #cfd6e4;
}
.kagac-liste li { margin: 0; padding: 0; border: 0; }
.kagac details > summary {
    list-style: none;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}
.kagac details > summary::-webkit-details-marker { display: none; }
.kagac details > summary::before {
    content: "";
    flex: 0 0 auto;
    width: 0;
    height: 0;
    margin: 12px 6px 0 0;
    border-left: 5px solid var(--kagac-soluk);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform .15s ease;
}
.kagac details[open] > summary::before { transform: rotate(90deg); }
.kagac li.yaprak { padding-left: 11px; }

.kagac-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex: 1 1 auto;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #1f2a44;
    text-decoration: none !important;
}
.kagac-link:hover { background: #eef1f7; color: #1f2a44; }
.kagac-link.secili {
    background: var(--kagac-lacivert);
    color: #fff;
    font-weight: 600;
}
.kagac-link.secili:hover { color: #fff; }
.kagac-sayi {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--kagac-soluk);
    background: #eef1f7;
    border-radius: 9px;
    padding: 1px 7px;
}
.kagac-link.secili .kagac-sayi { background: rgba(255, 255, 255, .2); color: #fff; }
