/* ==========================================
   HERO BANNER IMAGE (PATH A)
   ========================================== */
.page-hero {
    /* Make sure to save your red ingredients background image here! */
    background-image: url('/CookLoop/img/ingredients_hero_bg.jpg'); 
}

/* ==========================================
   INGREDIENT CARDS (Wireframe Match)
   ========================================== */
.ingredient-card {
    background: white;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.ingredient-img-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem;
    background-color: #fff;
}

.ingredient-img-wrapper img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: contain; /* Keeps the whole ingredient visible without cropping */
}

/* The small grey heart icon from the wireframe */
.ing-like-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    transition: transform 0.2s, color 0.2s;
    z-index: 2;
}

.ing-like-btn:hover, .ing-like-btn.liked { 
    transform: scale(1.1); 
    color: #d4090d; 
}

/* Data Layout at the bottom of the card */
.ingredient-card-body {
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: auto;
}

.ingredient-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    max-width: 55%;
}

.ingredient-meta {
    text-align: right;
}

.ingredient-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
}

.ingredient-unit {
    font-size: 0.7rem;
    color: #888;
}

.ingredient-stock {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.ingredient-stock i {
    -webkit-text-stroke: 0.6px currentColor; 
}

/* Quantity Input inside the Modal */
.qty-input {
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
}