/* ===== ElectriControl Brand Filter Styles ===== */

.ec-brand-filter-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: 'PT Sans', sans-serif;
    box-sizing: border-box;
}

/* ── LAYOUT 1: Autocomplete Search Box ── */
.ec-brand-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.ec-brand-input-container {
    display: flex;
    align-items: center;
    border: 1px solid rgba(131, 131, 145, 0.2);
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.ec-brand-input-container:focus-within {
    border-color: #58BCB3; /* Mint Teal */
}

.ec-brand-search-box input[type="text"] {
    width: 100%;
    border: none !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    outline: none !important;
    font-family: 'PT Sans', sans-serif !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
}

.ec-brand-search-icon {
    padding: 0 18px;
    font-size: 18px;
    color: #838391;
    cursor: pointer;
}

/* Suggestions Dropdown */
.ec-brand-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(131, 131, 145, 0.2);
    border-top: none;
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.ec-brand-suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 18px;
    cursor: pointer;
    font-size: 14px;
    color: #012641;
    border-bottom: 1px solid rgba(131, 131, 145, 0.05);
    transition: background 0.2s ease, color 0.2s ease;
}

.ec-brand-suggestion-item:last-child {
    border-bottom: none;
}

.ec-brand-suggestion-item:hover,
.ec-brand-suggestion-item.selected {
    background-color: #58BCB3;
    color: #ffffff;
}

.ec-brand-suggestion-item:hover .ec-brand-sug-count,
.ec-brand-suggestion-item.selected .ec-brand-sug-count {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.ec-brand-sug-count {
    font-size: 11px;
    background: #f0f0f0;
    color: #838391;
    padding: 2px 7px;
    border-radius: 0px; /* Squared badges */
    font-weight: 600;
}


/* ── LAYOUT 2: Brand Showcase Grid ── */
.ec-brand-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    width: 100%;
}

.ec-brand-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid rgba(131, 131, 145, 0.15);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ec-brand-card:hover {
    border-color: #58BCB3 !important;
    box-shadow: 0 8px 20px rgba(88, 188, 179, 0.08) !important;
    transform: translateY(-2px);
}

.ec-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #012641;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ec-brand-card:hover .ec-brand-name {
    color: #58BCB3;
}

.ec-brand-badge {
    font-size: 11px;
    background: #fafafa;
    color: #838391;
    border: 1px solid rgba(131, 131, 145, 0.15);
    padding: 2px 8px;
    font-weight: 700;
}

.ec-brand-card:hover .ec-brand-badge {
    background: #58BCB3;
    color: #ffffff;
    border-color: #58BCB3;
}


/* ── LAYOUT 3: Category & Brand Dropdowns ── */
.ec-brand-dropdowns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}

.ec-dropdown-group {
    flex: 1;
    min-width: 200px;
}

.ec-filter-select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid rgba(131, 131, 145, 0.2) !important;
    background: #ffffff !important;
    font-size: 14px !important;
    font-family: 'PT Sans', sans-serif !important;
    color: #012641 !important;
    outline: none !important;
    border-radius: 0px !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.ec-filter-select:focus {
    border-color: #58BCB3 !important;
}

.ec-filter-btn {
    background-color: #58BCB3 !important;
    color: #ffffff !important;
    font-family: 'PT Sans', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0px !important;
    padding: 12px 30px !important;
    font-size: 13px !important;
    border: 1px solid #58BCB3 !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    height: 48px;
    box-sizing: border-box;
}

.ec-filter-btn:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

@media (max-width: 600px) {
    .ec-brand-dropdowns-container {
        flex-direction: column;
        align-items: stretch;
    }
    .ec-filter-btn {
        width: 100%;
    }
}
