/* Autoaddz Filtro - Brand Colors: #ea562c, #092143, White */
.autoaddz-filtro {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 30px;
    margin: 25px 0;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf1;
}

.autoaddz-filtro-title {
    text-align: center;
    font-size: 22px;
    margin: 0 0 25px;
    color: #092143;
    font-weight: 700;
}

.autoaddz-filtro-title span {
    color: #ea562c;
}

.autoaddz-filtro-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 20px;
}

.autoaddz-step {
    flex: 1;
    min-width: 155px;
    position: relative;
}

.autoaddz-step label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    color: #092143;
    font-weight: 700;
}

/* ========== SELECT FIX: White bg + dark text = visible dropdown options ========== */
.autoaddz-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: auto;
    outline: none;
    min-height: 44px;
}

.autoaddz-select option {
    background: #ffffff;
    color: #1f2937;
    padding: 8px;
}

.autoaddz-select:focus {
    border-color: #ea562c;
    box-shadow: 0 0 0 3px rgba(234, 86, 44, 0.15);
}

.autoaddz-select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.autoaddz-select:disabled option {
    background: #f3f4f6;
    color: #9ca3af;
}

/* ========== BUTTON ========== */
.autoaddz-step-btn {
    min-width: 140px;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 5px;
}

.autoaddz-btn {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: #ea562c !important;
    -webkit-text-fill-color: #ea562c;
    border: 2px solid #ea562c;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.autoaddz-btn:hover:not(:disabled) {
    background: #ea562c;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 86, 44, 0.3);
}

.autoaddz-btn:active:not(:disabled) {
    transform: translateY(0);
}

.autoaddz-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af;
    border-color: #d1d5db;
    cursor: not-allowed;
    transform: none;
    text-shadow: none;
}

/* ========== SELECTION BAR ========== */
.autoaddz-selection {
    background: #f0f4f9;
    padding: 14px 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #092143;
    border-left: 4px solid #ea562c;
}

.autoaddz-selection strong {
    color: #ea562c;
}

.autoaddz-btn-small {
    background: rgba(234, 86, 44, 0.1);
    border: 1px solid #ea562c;
    color: #ea562c;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.autoaddz-btn-small:hover {
    background: rgba(234, 86, 44, 0.2);
}

/* ========== RESULTS ========== */
.autoaddz-results {
    margin-top: 28px;
}

.autoaddz-loading,
.autoaddz-noresults {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* ========== BULB RESULT ========== */
.autoaddz-bulb-result {
    text-align: center;
    font-size: 18px;
    padding: 18px 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #092143 0%, #0b2d5a 100%);
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(9, 33, 67, 0.2);
}

.autoaddz-bulb-result strong {
    color: #ea562c;
    font-size: 24px;
    font-weight: 700;
}

/* ========== PRODUCT GRID ========== */
.autoaddz-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.autoaddz-product-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 16px 20px;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.autoaddz-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ea562c;
}

.autoaddz-product-card img {
    max-width: 100%;
    height: 130px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 6px;
    background: #f9fafb;
    padding: 8px;
}

.autoaddz-product-card h4 {
    font-size: 14px;
    margin: 0 0 6px;
    color: #092143;
    line-height: 1.4;
    font-weight: 600;
}

.autoaddz-product-card .price {
    color: #ea562c;
    font-weight: 700;
    font-size: 17px;
    margin: 8px 0;
}

.autoaddz-product-card .bulb-tag {
    display: inline-block;
    background: #ea562c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    margin-bottom: 10px;
    font-weight: 700;
}

.autoaddz-product-card .view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #092143;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.autoaddz-product-card .view-btn:hover {
    background: #0f3368;
    color: #fff;
}

.autoaddz-product-card a {
    text-decoration: none;
}

.autoaddz-product-card .no-image {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f9 0%, #e2e8f0 100%);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ========== SPINNER ========== */
.autoaddz-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(9, 33, 67, 0.15);
    border-top: 3px solid #ea562c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .autoaddz-filtro {
        padding: 18px;
    }
    
    .autoaddz-filtro-steps {
        flex-direction: column;
        align-items: stretch;
    }
    
    .autoaddz-step {
        min-width: 100%;
    }
    
    .autoaddz-step-btn {
        min-width: 100%;
        padding: 0;
    }
    
    .autoaddz-products {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .autoaddz-products {
        grid-template-columns: 1fr;
    }
    
    .autoaddz-bulb-result strong {
        font-size: 20px;
    }
}
