/* ==========================================================================
   GrabbyHost — Native category sidebar (sidebar-categories.tpl family)
   Path: /services/templates/orderforms/standard_cart/css/sidebar-categories.css

   Used by: sidebar-categories.tpl (full desktop panel list),
            sidebar-categories-collapsed.tpl (mobile dropdown fallback,
            currently rendered inside products.tpl's
            .gh-products-mobile-categories), and its sub-include
            sidebar-categories-selector.tpl.

   This is WHMCS's native $panel/$child menu-object renderer — every
   menuItemName attribute, getIcon()/getLabel()/getBadge() call,
   card-minimise/panel-minimise collapse toggle and collapsable-card-body
   class is left exactly as-is. Only wrapped in .ghsc-scope and styled.

   Palette matches the order-forms convention: navy #17263b, orange
   #ff7a1a, muted #667085, border #e2e8f0.
   ========================================================================== */

.ghsc-scope {
    --ghsc-navy: #17263b;
    --ghsc-orange: #ff7a1a;
    --ghsc-muted: #667085;
    --ghsc-border: #e2e8f0;
}

.ghsc-scope .card.card-sidebar {
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ghsc-border);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(23, 38, 59, 0.06);
}

.ghsc-scope .card-header {
    padding: 14px 16px;
    background: #f6f8fb;
    border-bottom: 1px solid var(--ghsc-border);
}

.ghsc-scope .panel-title {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--ghsc-navy);
    font-size: 14px;
    font-weight: 800;
}

.ghsc-scope .panel-title i:first-child {
    margin-right: 8px;
    color: var(--ghsc-orange);
}

.ghsc-scope .panel-title .badge {
    margin-left: 8px;
    padding: 3px 8px;
    background: var(--ghsc-orange);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.ghsc-scope .card-minimise,
.ghsc-scope .panel-minimise {
    color: var(--ghsc-muted);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.ghsc-scope .list-group {
    padding: 8px;
}

.ghsc-scope .list-group-item {
    display: flex;
    align-items: center;
    margin: 2px 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    color: var(--ghsc-navy);
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.ghsc-scope .list-group-item:hover {
    background: #fff1e8;
    color: var(--ghsc-orange);
}

.ghsc-scope .list-group-item.active {
    background: var(--ghsc-orange);
    color: #fff;
}

.ghsc-scope .list-group-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.ghsc-scope .list-group-item .badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--ghsc-border);
    border-radius: 999px;
    color: var(--ghsc-navy);
    font-size: 10px;
    font-weight: 800;
}

.ghsc-scope .list-group-item.active .badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.ghsc-scope .card-footer {
    padding: 12px 16px;
    background: #f6f8fb;
    border-top: 1px solid var(--ghsc-border);
    font-size: 12.5px;
}

/* Mobile dropdown fallback (sidebar-categories-collapsed.tpl) */
.ghsc-scope.sidebar-collapsed .custom-select,
.ghsc-scope .card-body select.custom-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 34px 10px 14px;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23667085' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid var(--ghsc-border);
    border-radius: 11px;
    color: var(--ghsc-navy);
    font-size: 14px;
    font-weight: 600;
}

.ghsc-scope .card-body select.custom-select:focus {
    border-color: #ff9b55;
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.11);
    outline: none;
}

.ghsc-scope .form-control.currency-selector {
    min-height: 40px;
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--ghsc-border);
    border-radius: 10px;
    color: var(--ghsc-navy);
    font-size: 13px;
}

@media (max-width: 767.98px) {
    .ghsc-scope .card.card-sidebar {
        margin-bottom: 10px;
    }
}
