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

body {
	font-family: "Verdana", sans-serif;
	background-color: #f4f4f8;
	color: #333;
}

.headd {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 170px;
	padding: 20px;
	background: linear-gradient(135deg, #2c3e50, #34495e);
	color: white;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	animation: fadeInDown 1s ease;
}

.headd h1 {
	margin-bottom: 5px;
	font-size: xx-large;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.headd p {
	font-size: 1rem;
}

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

h2 {
	margin: 20px 0;
	color: #2c3e50;
	border-bottom: 2px solid #3498db;
	display: inline-block;
}

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

.product-card {
	background-color: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	position: relative;
}

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

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

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

.product-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.product-info {
	padding: 15px;
	text-align: center;
	position: relative;
	z-index: 1;
}

.product-info h3 {
	font-size: 1.2rem;
	color: #2c3e50;
	margin-bottom: 8px;
}

.product-info p {
	font-size: 0.95rem;
	color: #777;
	margin-bottom: 10px;
}

.product-info span {
	font-weight: bold;
	color: #3498db;
	font-size: 1.05rem;
}

/* 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) {
	.headd {
		margin-top: 60px;
		padding: 10px;
	}
	.headd h1 {
		font-size: 1.4rem;
	}
	.headd p {
		font-size: 0.9rem;
	}
	main {
		padding: 0 8px;
		margin-top: 60px;
	}
	h2 {
		font-size: 1.1rem;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 12px;
	}
	.product-card img {
		height: 130px;
	}
	.product-info h3 {
		font-size: 0.95rem;
	}
	.product-info p {
		font-size: 0.8rem;
	}
	.product-info span {
		font-size: 0.9rem;
	}
}

/* Telefoni standardni (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
	.headd {
		margin-top: 70px;
		padding: 12px;
	}
	.headd h1 {
		font-size: 1.5rem;
	}
	.headd p {
		font-size: 0.95rem;
	}
	main {
		padding: 0 10px;
		margin-top: 70px;
	}
	h2 {
		font-size: 1.2rem;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
		gap: 14px;
	}
	.product-card img {
		height: 140px;
	}
	.product-info h3 {
		font-size: 1rem;
	}
	.product-info p {
		font-size: 0.85rem;
	}
	.product-info span {
		font-size: 0.95rem;
	}
}

/* Telefoni veći (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
	.headd {
		margin-top: 80px;
		padding: 15px;
	}
	.headd h1 {
		font-size: 1.6rem;
	}
	.headd p {
		font-size: 1rem;
	}
	main {
		padding: 0 12px;
		margin-top: 80px;
	}
	h2 {
		font-size: 1.3rem;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: 15px;
	}
	.product-card img {
		height: 150px;
	}
	.product-info h3 {
		font-size: 1rem;
	}
	.product-info p {
		font-size: 0.85rem;
	}
	.product-info span {
		font-size: 0.95rem;
	}
}

/* Tableti (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
	.headd {
		margin-top: 110px;
		padding: 20px;
	}
	.headd h1 {
		font-size: 1.8rem;
	}
	.headd p {
		font-size: 1rem;
	}
	main {
		padding: 0 16px;
		margin-top: 100px;
	}
	h2 {
		font-size: 1.5rem;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 18px;
	}
	.product-card img {
		height: 180px;
	}
	.product-info h3 {
		font-size: 1.05rem;
	}
	.product-info p {
		font-size: 0.9rem;
	}
	.product-info span {
		font-size: 1rem;
	}
}

/* Desktop (1025px i više) */
@media (min-width: 1025px) {
	.headd {
		margin-top: 170px;
		padding: 20px;
	}
	.headd h1 {
		font-size: 2rem;
	}
	.headd p {
		font-size: 1rem;
	}
	main {
		padding: 0 20px;
		margin-top: 120px;
	}
	h2 {
		font-size: 1.6rem;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 20px;
	}
	.product-card img {
		height: 200px;
	}
	.product-info h3 {
		font-size: 1.1rem;
	}
	.product-info p {
		font-size: 0.9rem;
	}
	.product-info span {
		font-size: 1rem;
	}
}
