.flavor-rec-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.flavor-rec-header {
    background: transparent;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #e0e0e0;
}

.flavor-rec-header h1 {
    font-size: 2.2em;
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1976d2;
    position: relative;
}

.flavor-rec-header p {
    font-size: 1em;
    margin: 0;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.flavor-rec-filter-section {
    padding: 30px 20px;
    background: white;
}

.flavor-rec-filter-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.flavor-rec-filter-row .flavor-rec-filter-group {
    flex: 1;
    margin-bottom: 0;
}

.flavor-rec-filter-group {
    margin-bottom: 30px;
}

.flavor-rec-filter-group label {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.flavor-rec-level-buttons-container {
    width: 100%;
}

.flavor-rec-level-label {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 2px;
}

.flavor-rec-level-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.flavor-rec-level-buttons .flavor-rec-level-label:first-child {
    margin-right: 0;
    padding-right: 2px;
}

.flavor-rec-level-buttons .flavor-rec-level-label:last-child {
    margin-left: 0;
    padding-left: 2px;
}

.flavor-rec-level-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #666;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flavor-rec-level-btn:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
    color: #333;
    transform: translateY(-1px);
}

.flavor-rec-level-btn.flavor-rec-level-btn-active {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
}

.flavor-rec-level-btn.flavor-rec-level-btn-active:hover {
    background: #1565c0;
    border-color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.4);
}

.flavor-rec-level-0 { color: #999; }
.flavor-rec-level-1 { color: #4caf50; }
.flavor-rec-level-2 { color: #4caf50; }
.flavor-rec-level-3 { color: #ff9800; }
.flavor-rec-level-4 { color: #f44336; }
.flavor-rec-level-5 { color: #d32f2f; }

.flavor-rec-checkbox-group {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.flavor-rec-option-btn {
    padding: 10px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background-color: white !important;
    color: #666 !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    min-width: 80px !important;
    text-align: center !important;
    outline: none !important;
}

.flavor-rec-option-btn:hover {
    background-color: #f5f5f5 !important;
    border-color: #bdbdbd !important;
    color: #333 !important;
    transform: translateY(-1px) !important;
}

.flavor-rec-option-btn.flavor-rec-option-active {
    background-color: #1976d2 !important;
    color: white !important;
    border-color: #1976d2 !important;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3) !important;
}

.flavor-rec-option-btn.flavor-rec-option-active:hover {
    background-color: #1565c0 !important;
    border-color: #1565c0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.4) !important;
}

.flavor-rec-search-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 20px;
    font-weight: 500;
}

.flavor-rec-search-btn:hover {
    background: #1565c0;
}

.flavor-rec-results-section {
    padding: 40px;
}

.flavor-rec-results-header {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flavor-rec-results-count {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

.flavor-rec-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.flavor-rec-product-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 0;
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flavor-rec-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.flavor-rec-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9em;
}

.flavor-rec-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flavor-rec-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.flavor-rec-match-score {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 15px;
    align-self: flex-start;
}

.flavor-rec-product-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.flavor-rec-product-sku {
    font-size: 0.9em;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 500;
}

.flavor-rec-product-features {
    margin: 15px 0 20px 0;
    flex: 1;
}

.flavor-rec-feature-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.flavor-rec-feature-name {
    color: #666;
    font-size: 0.9em;
}

.flavor-rec-feature-value {
    font-weight: 600;
    color: #333;
}

.flavor-rec-stars {
    color: #ffc107;
    font-size: 1.1em;
}

.flavor-rec-product-description {
    color: #888;
    font-size: 0.85em;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    line-height: 1.6;
    flex: 1;
}

.flavor-rec-product-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.flavor-rec-product-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.flavor-rec-product-btn-primary {
    background: white;
    color: #1976d2;
    border: 2px solid #1976d2;
}

.flavor-rec-product-btn-primary:hover {
    background: #1976d2;
    border-color: #1976d2;
    color: white;
}

.flavor-rec-product-btn-secondary {
    background: white;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.flavor-rec-product-btn-secondary:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

.flavor-rec-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .flavor-rec-filter-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .flavor-rec-products-grid {
        grid-template-columns: 1fr;
    }
    
    .flavor-rec-header h1 {
        font-size: 1.8em;
    }
}