.product-selection {
    margin-bottom: 20px;
}

.product-selection h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.product-tag {
    display: inline-block;
    background: #e8f5e8;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid #c8e6c9;
    transition: all 0.2s ease;
    font-size: 14px;
}

.product-tag:hover {
    background: #c8e6c9;
    border-color: #a5d6a7;
}

.product-tag.selected {
    background: #4caf50;
    color: white;
    border-color: #388e3c;
}

.selected-ingredients {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

#ingredient-list {
    font-weight: bold;
    color: #856404;
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.clear-btn:hover {
    background: #c82333;
}

.ingredient-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ingredient-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ingredient-input .button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ingredient-input .button:hover {
    background: #45a049;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recipe-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recipe-card h4 {
    margin-top: 0;
    font-size: 18px;
}

.recipe-card h4 a {
    text-decoration: none;
    color: #333;
}

.recipe-card h4 a:hover {
    color: #4CAF50;
}

.recipe-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin: 10px 0;
}

.recipe-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.cuisine-badge, .difficulty-badge {
    display: inline-block;
    background: #e0f2f1;
    color: #00695c;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-top: 5px;
}

.difficulty-badge {
    background: #fff3e0;
    color: #e65100;
}

.mwf-product-recipes {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mwf-product-recipes h3 {
    color: #333;
    margin-bottom: 15px;
}

.mwf-product-recipes .recipes-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ── Tabs ──────────────────────────────────────────────── */
.mwf-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #4caf50;
    margin-bottom: 25px;
}

.mwf-tab {
    padding: 10px 22px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
    color: #555;
    transition: background 0.2s;
    margin-right: 4px;
}

.mwf-tab:hover { background: #e8f5e8; color: #2e7d32; }

.mwf-tab.active {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.mwf-tab-content { display: none; }
.mwf-tab-content.active { display: block; }

/* ── Browse filters bar ────────────────────────────────── */
.mwf-browse-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.mwf-browse-filters input,
.mwf-browse-filters select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.mwf-browse-filters input { flex: 1 1 200px; }

.mwf-browse-filters button.button {
    padding: 10px 20px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.mwf-browse-filters button.button:hover { background: #43a047; }

/* ── Browse pagination ─────────────────────────────────── */
#browse-pagination button.button {
    padding: 8px 18px;
    background: #fff;
    color: #4caf50;
    border: 1px solid #4caf50;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#browse-pagination button.button:hover { background: #e8f5e8; }

/* ── Recipe card hover effect ─────────────────────────── */
.recipe-card:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76,175,80,0.2);
    transform: translateY(-1px);
    transition: all 0.15s ease;
}