/* Reset and base styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f4f4f4;
	padding: 50px;
}

header {
	text-align: center;
	margin-bottom: 30px;
}

header h1 {
	color: #2c3e50;
	font-size: 2.5rem;
	font-weight: 300;
}

main {
	max-width: 1200px;
	margin: 0 auto;
}

/* Product grid */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	padding: 0 10px;
}

/* Product card */
.product-card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
	width: 100%;
	height: 160px;
	object-fit: contain;
	background: #f0ebea;
}

.product-info {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.product-info h3 {
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: #2c3e50;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.product-price {
	font-size: 1.1rem;
	font-weight: bold;
	color: #e74c3c;
	margin-bottom: 8px;
}

.product-category {
	font-size: 0.9rem;
	color: #7f8c8d;
	text-transform: capitalize;
}

/* Responsive design */
@media (max-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 15px;
	}

	header h1 {
		font-size: 2rem;
	}
}

@media (max-width: 480px) {
	.product-grid {
		grid-template-columns: 1fr;
	}

	body {
		padding: 10px;
	}
}
