/* Временные стили для placeholder изображений */
.hero-image img[src="images/vegetables-display.jpg"] {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.hero-image img[src="images/vegetables-display.jpg"]::before {
    content: "Свежие овощи и фрукты";
}

/* Категории продуктов */
.category-image img[src="images/vegetables.jpg"] {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.category-image img[src="images/vegetables.jpg"]::before {
    content: "🥬 Овощи";
}

.category-image img[src="images/fruits.jpg"] {
    background: linear-gradient(135deg, #fb923c, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.category-image img[src="images/fruits.jpg"]::before {
    content: "🍎 Фрукты";
}

.category-image img[src="images/meat.jpg"] {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.category-image img[src="images/meat.jpg"]::before {
    content: "🥩 Мясо";
}

.category-image img[src="images/greens.jpg"] {
    background: linear-gradient(135deg, #84cc16, #65a30d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.category-image img[src="images/greens.jpg"]::before {
    content: "🌿 Зелень";
}

/* Общие стили для всех placeholder изображений */
img[src^="images/"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: inherit;
}

/* Альтернативный способ отображения placeholder изображений */
img[src^="images/"]:not([src*="http"]) {
    position: relative;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Скрываем alt текст когда изображение не загружено */
img[src^="images/"]:not([src*="http"]):after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}
