/**
 * Frontend Styles for WooCommerce Ingredient Images
 *
 * @package WooCommerce_Ingredient_Images
 */

/* Main container */
.product-ingredients {
	clear: both;
	margin: 2rem 0;
	padding: 0;
	background: transparent;
}

/* Heading */
.ingredients-heading {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #333;
}

/* Ingredients list container */
.ingredients-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

/* Individual ingredient item */
.ingredient-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: auto;
	max-width: 14rem;
	flex-shrink: 0;
}

.ingredient-item img {
	width: auto;
	height: auto;
	max-height: 14rem; /* 256px equivalent - retina compatible */
	display: block;
	margin-bottom: 0.5rem;
}

/* Subtitle under images */
.ingredient-subtitle {
	font-size: 0.875rem;
	color: #666;
	text-align: center;
	line-height: 1.4;
	max-width: 100%;
}

/* Footer text below ingredients */
.ingredients-footer {
	margin-top: 2rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #333;
}

.ingredients-footer p {
	margin: 0 0 1rem;
}

.ingredients-footer p:last-child {
	margin-bottom: 0;
}

/* Mobile responsive - 1 per line */
@media (max-width: 768px) {
	.product-ingredients {
		padding: 0;
		margin: 1.5rem 0;
	}

	.ingredients-heading {
		font-size: 1.125rem;
	}

	.ingredients-list {
		gap: 1rem;
		justify-content: center;
	}

	.ingredient-item {
		width: 100%;
		max-width: 100%;
	}

	.ingredient-item img {
		max-height: 12rem; /* ~192px equivalent */
		width: auto;
		max-width: 100%;
	}

	.ingredient-subtitle {
		font-size: 0.875rem;
	}
}

