/**
 * ANE Faceted Search — Styles
 * Agent: ui-ux-pro-max — 60-30-10 rule
 */

#ane-faceted {
    margin-bottom: 1.5rem;
}
.ane-faceted-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ane-faceted-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.ane-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}
.ane-filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: Inter, system-ui, sans-serif;
}
.ane-filter-group select,
.ane-filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: Inter, system-ui, sans-serif;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}
.ane-filter-group select:focus,
.ane-filter-group input:focus {
    outline: none;
    border-color: var(--color-primary, #415097);
    box-shadow: 0 0 0 3px rgba(65, 80, 151, 0.1);
}
.ane-filter-search {
    flex: 1.5;
}
.ane-faceted-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
#ane-filter-count {
    font-size: 13px;
    color: #6b7280;
    font-family: Inter, system-ui, sans-serif;
}
#ane-filter-reset {
    padding: 5px 14px;
    font-size: 12px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    font-family: Inter, system-ui, sans-serif;
    transition: all 0.2s;
}
#ane-filter-reset:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Product cards from AJAX */
.ane-product-brand {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(65, 80, 151, 0.08);
    color: var(--color-primary, #415097);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    font-family: Inter, system-ui, sans-serif;
}
.ane-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    font-family: Inter, system-ui, sans-serif;
}
.ane-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f9fafb;
    font-size: 3rem;
    border-radius: 8px;
}

/* Pagination */
.ane-faceted-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
}
.ane-faceted-pagination button {
    padding: 8px 18px;
    background: var(--color-primary, #415097);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: filter 0.2s;
}
.ane-faceted-pagination button:hover { filter: brightness(1.15); }
.ane-faceted-pagination span { color: #6b7280; }

/* Mobile */
@media (max-width: 768px) {
    .ane-faceted-filters { flex-direction: column; }
    .ane-filter-group { min-width: 100%; }
}
