/* "Unsere Bestseller": nur das Layout ergaenzen, das den bestehenden
   Klassen (mh-card, mh-badge, mh-price, wp-block-button__link) fehlt.
   Farben/Radius/Schatten kommen unveraendert aus style.css/theme.json.
   Eigenstaendige Datei, aendert keine bestehenden Regeln. */

#mh-bestseller-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media (max-width: 980px) {
	#mh-bestseller-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 420px) {
	#mh-bestseller-grid {
		grid-template-columns: 1fr;
	}
}

#mh-bestseller-grid .mh-product {
	height: 100%;
	display: flex;
	flex-direction: column;
}

#mh-bestseller-grid .mh-product-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #fff;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#mh-bestseller-grid .mh-product-media img {
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#mh-bestseller-grid .mh-product-media .mh-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	margin: 0;
}

#mh-bestseller-grid .mh-product-dots {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
}

#mh-bestseller-grid .mh-product-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--contrast, #ccc);
	opacity: .35;
	border: 0;
	padding: 0;
	cursor: pointer;
}

#mh-bestseller-grid .mh-product-dot.is-active {
	opacity: 1;
}

#mh-bestseller-grid .mh-product-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px;
	gap: 8px;
}

#mh-bestseller-grid .mh-product-title {
	font-size: 15px;
	font-weight: 400;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#mh-bestseller-grid .mh-product-body .mh-price {
	margin: 0;
}

#mh-bestseller-grid .mh-product-actions {
	margin-top: auto;
	margin-bottom: 0;
}
