* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f8f9fa; }

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

/* Modernes Masonry Grid via CSS Columns */
.masonry {
	column-count: 4;
	column-gap: 20px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

@media (max-width: 1200px) { .masonry { column-count: 3; } }
@media (max-width: 800px)  { .masonry { column-count: 2; } }
@media (max-width: 500px)  { .masonry { column-count: 1; } }

.card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 20px;
	break-inside: avoid;
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card img {
	width: 100%;
	display: block;
	height: auto;
	background: #eee;
}

.card-content { padding: 15px; }
.card-title { font-weight: 600; font-size: 1.05em; margin-bottom: 6px; color: #222; }
.card-price { color: #666; font-size: 0.95em; margin-bottom: 12px; }


.btn-buy {
	width: 100%;
	background: #111;
	color: white;
	border: none;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

.btn-buy:hover { background: #333; }

/* Modal Overlay für den Checkout */
.modal {
	display: none;
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal-content {
	background: white;
	padding: 20px;
	border-radius: 12px;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.close-btn {
	position: absolute;
	top: 10px; right: 15px;
	font-size: 24px;
	cursor: pointer;
	border: none;
	background: none;
}
/* Loading Spinner Element am Seitenende */
#loading-trigger {
	text-align: center;
	padding: 30px;
	font-size: 1.1em;
	color: #777;
}