* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f5f5f5;
	color: #333;
}

.container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 20px;
	background: white;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	margin-top: 150px;
	animation: fadeInDown 1s ease;
	margin-top: 45px;
}

h1 {
	text-align: center;
	color: #8b4513;
	margin-bottom: 40px;
	font-size: 3rem;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
	margin-top: 45px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 25px;
	animation: fadeInUp 1s ease;
}

.product-card {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	text-align: center;
	padding: 15px;
	position: relative;
}

.product-card::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(139, 69, 19, 0.1), transparent 70%);
	z-index: 0;
	transition: opacity 0.5s ease;
	opacity: 0;
}

.product-card:hover::before {
	opacity: 1;
}

.product-card:hover {
	transform: translateY(-10px) scale(1.03);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.product-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-bottom: 1px solid #ddd;
	transition: transform 0.4s ease;
}

.product-card:hover img {
	transform: scale(1.08);
}

.product-card h2 {
	font-size: 20px;
	color: #444;
	margin: 15px 0 10px 0;
	z-index: 1;
	position: relative;
}

.product-card p {
	font-size: 15px;
	color: #777;
	margin-bottom: 15px;
	z-index: 1;
	position: relative;
}

/* Animacije */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Telefoni vrlo mali (do 375px) */
@media (max-width: 375px) {
	h1 {
		font-size: 1.8rem;
		margin-bottom: 20px;
	}
	.container {
		padding: 10px;
		margin-top: 100px;
	}
	.product-grid {
		grid-template-columns: 1fr;
	}
	.product-card img {
		height: 150px;
	}
	.product-card h2 {
		font-size: 16px;
	}
	.product-card p {
		font-size: 12px;
	}
}

/* Telefoni standardni (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
	h1 {
		font-size: 2rem;
		margin-bottom: 25px;
	}
	.container {
		padding: 15px;
		margin-top: 110px;
	}
	.product-grid {
		grid-template-columns: 1fr;
	}
	.product-card img {
		height: 160px;
	}
	.product-card h2 {
		font-size: 16px;
	}
	.product-card p {
		font-size: 13px;
	}
}

/* Telefoni veći (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
	h1 {
		font-size: 2.3rem;
	}
	.container {
		padding: 20px;
		margin-top: 120px;
	}
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.product-card img {
		height: 170px;
	}
	.product-card h2 {
		font-size: 17px;
	}
	.product-card p {
		font-size: 13px;
	}
}

/* Tableti (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
	h1 {
		font-size: 2.5rem;
	}
	.container {
		padding: 20px;
		margin-top: 130px;
	}
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.product-card img {
		height: 180px;
	}
	.product-card h2 {
		font-size: 18px;
	}
	.product-card p {
		font-size: 14px;
	}
}

/* Desktop (1025px i više) */
@media (min-width: 1025px) {
	h1 {
		font-size: 3rem;
	}
	.container {
		padding: 20px;
		margin-top: 150px;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
	.product-card img {
		height: 200px;
	}
	.product-card h2 {
		font-size: 18px;
	}
	.product-card p {
		font-size: 14px;
	}
}
