/* ============================================================
   Ark Filters — Category & Brand filter widgets
   ============================================================ */

.ark-filter-widget {
    font-size: 14px;
    color: #374151;
}

.ark-filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    padding: 0;
    color: #111827;
}

.ark-filter-icon {
    font-size: 18px;
    line-height: 1;
    color: #374151;
}

/* List reset */
.ark-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ark-filter-item {
    margin: 0;
    padding: 0;
}

/* Link row */
.ark-filter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 2px;
    text-decoration: none;
    color: #374151;
    border-radius: 4px;
    transition: color 0.15s;
    cursor: pointer;
}

.ark-filter-link:hover {
    color: #111827;
}

.ark-filter-link.is-active {
    color: #111827;
    font-weight: 600;
}

/* Custom checkbox */
.ark-filter-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #9ca3af;
    border-radius: 3px;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}

.ark-filter-checkbox.checked {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.ark-filter-checkbox.checked::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* Label */
.ark-filter-label {
    flex: 1;
    line-height: 1.4;
}

/* Count */
.ark-filter-count {
    color: #9ca3af;
    font-size: 12px;
    margin-left: auto;
}

/* Children / subcategories */
.ark-filter-sublist {
    padding-left: 20px;
}

.ark-filter-depth-1 > .ark-filter-link {
    font-size: 13px;
    color: #6b7280;
}

.ark-filter-depth-1 > .ark-filter-link.is-active {
    color: #111827;
    font-weight: 600;
}

/* Brand logo in filter */
.ark-filter-brand-logo {
    width: 36px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Separator between filter widgets */
.ark-filter-widget + .ark-filter-widget {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

/* Active filter highlight row */
.ark-filter-item.ark-filter-active > .ark-filter-link .ark-filter-label {
    color: #111827;
}

/* ============================================================
   Radio-style indicator for single-select brand filter
   ============================================================ */
.ark-filter-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #9ca3af;
    border-radius: 50%;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}

.ark-filter-radio.checked {
    border-color: #1d4ed8;
    background: #fff;
}

.ark-filter-radio.checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1d4ed8;
}
