/* RV Product Finder Styles */
.rv-product-finder-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.product-finder {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-finder h3 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Form Styles */
.finder-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 2rem;
}

.finder-form select,
.finder-form button {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
}

.finder-form select {
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.finder-form select:focus {
    outline: none;
    border-color: #4A90E2;
}

.finder-form button {
    background: #4A90E2;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.finder-form button:hover {
    background: #357ABD;
}

/* Additional Filters */
.additional-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-clear {
    padding: 0.75rem 1.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-clear:hover {
    background: #c82333;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 3rem;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Recommendations */
.recommendations {
    display: none;
    margin-top: 2rem;
}

.recommendations.active {
    display: block;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f0f0f0;
}

.product-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h5 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.4;
    flex: 1;
}

.product-rating {
    color: #FFD700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-price {
    color: #FF6B6B;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.product-sale-price {
    color: #666;
    text-decoration: line-through;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-view, .btn-compare {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-view {
    background: #4A90E2;
    color: white;
}

.btn-view:hover {
    background: #357ABD;
}

.btn-compare {
    background: white;
    color: #4A90E2;
    border: 2px solid #4A90E2;
}

.btn-compare:hover {
    background: #4A90E2;
    color: white;
}

.btn-compare.added {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Comparison Bar */
.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem 2rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.comparison-bar.active {
    display: flex;
}

.comparison-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-compare-view {
    padding: 0.75rem 2rem;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-compare-view:hover {
    background: #357ABD;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .product-finder {
        padding: 2rem 1.5rem;
    }
    
    .finder-form {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}