/* My greens – Karty produktov v1.13 (štýl konfigurátora Carmen odporúča)
   Všetko je pod .mg-pc s !important, aby to téma ani Elementor neprebili. */

ul.products li.product.mg-pc-li {
	display: flex !important;
	flex-direction: column !important;
	padding: 0 !important;
	margin-bottom: 28px !important;
	text-align: left !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.mg-pc {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	width: 100% !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 18px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	transition: transform .2s ease, box-shadow .2s ease !important;
}
.mg-pc:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 10px 26px rgba(109, 42, 106, .13) !important;
}

/* Obrázok */
.mg-pc__img {
	display: block !important;
	position: relative !important;
	aspect-ratio: 1 / 1 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}
.mg-pc__img img,
ul.products li.product .mg-pc .mg-pc__img img,
.woocommerce ul.products li.product .mg-pc__img img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
	min-height: 0 !important; /* Elementor Archive Products nastavuje min-height 370px */
	max-height: none !important;
	object-fit: cover !important;
	margin: 0 !important;
	border-radius: 0 !important;
	display: block !important;
	max-width: none !important;
}
.mg-pc__badge {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	left: auto !important;
	z-index: 2 !important;
	background: #e5c649 !important;
	color: #2a2a2a !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	padding: 6px 11px !important;
	border-radius: 999px !important;
	letter-spacing: .04em !important;
	text-transform: uppercase !important;
}

/* Telo karty */
.mg-pc__body {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	padding: 16px 18px 18px !important;
}
.mg-pc .mg-pc__title {
	font-family: 'Google Sans', 'Montserrat', sans-serif !important;
	font-size: 21px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	color: #2a2a2a !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.mg-pc .mg-pc__title a {
	color: inherit !important;
	text-decoration: none !important;
}
.mg-pc .mg-pc__title a:hover { color: #6d2a6a !important; }

.mg-pc .mg-pc__quote {
	font-family: 'Google Sans', 'Montserrat', sans-serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	font-style: italic !important;
	line-height: 1.25 !important;
	color: #2a2a2a !important;
	margin: 0 0 10px !important;
	text-align: left !important;
}

.mg-pc .mg-pc__label {
	align-self: flex-start !important;
	display: block !important;
	background: none !important;
	color: #8a6a12 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	margin: 0 0 6px !important;
	text-transform: uppercase !important;
	letter-spacing: .04em !important;
}
.mg-pc__facts {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 4px 16px !important;
	margin: 0 0 10px !important;
}
.mg-pc .mg-pc__fact {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	background: none !important;
	color: #6d2a6a !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	white-space: nowrap !important;
}
.mg-pc .mg-pc__fact svg {
	width: 15px !important;
	height: 15px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	flex: none !important;
}
.mg-pc .mg-pc__use {
	font-size: 13.5px !important;
	line-height: 1.4 !important;
	color: #5a5a5a !important;
	margin: 0 0 14px !important;
	text-align: left !important;
}
.mg-pc .mg-pc__use strong { display: inline !important; color: #2a2a2a !important; font-weight: 700 !important; }

/* Cena + tlačidlo */
.mg-pc__foot {
	margin-top: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	flex-wrap: wrap !important;
}
.mg-pc .mg-pc__price {
	font-size: 19px !important;
	font-weight: 800 !important;
	color: #2a2a2a !important;
	line-height: 1.2 !important;
	margin: 0 !important;
}
.mg-pc .mg-pc__price del {
	display: block !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #9a9a9a !important;
	opacity: 1 !important;
}
.mg-pc .mg-pc__price ins {
	text-decoration: none !important;
	color: #2a2a2a !important;
	background: none !important;
}
.mg-pc .mg-pc__price .woocommerce-Price-currencySymbol { font-size: inherit !important; }
.mg-pc .mg-pc__price .woocommerce-price-suffix { display: block !important; font-size: 11px !important; font-weight: 500 !important; color: #9a9a9a !important; }
.mg-pc .mg-pc__price .screen-reader-text { position: absolute !important; clip: rect(0 0 0 0) !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.mg-pc a.mg-pc__btn,
.mg-pc a.mg-pc__btn.button {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: none !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 12px 0 0 !important;
	background: #e5c649 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 14px !important;
	box-shadow: 0 4px 12px rgba(61, 30, 30, .12) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	transition: background .2s ease, transform .15s ease !important;
}
.mg-pc a.mg-pc__btn:hover { background: #d4b33a !important; transform: translateY(-1px) !important; }
.mg-pc .mg-pc__cart {
	width: 26px !important;
	height: 26px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2.2 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	display: block !important;
}
.mg-pc .mg-pc__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}
.mg-pc a.mg-pc__btn.loading { opacity: .6 !important; }
.mg-pc a.mg-pc__btn.loading::after,
.mg-pc a.mg-pc__btn::before { display: none !important; content: none !important; }
/* po pridaní do košíka: košík vymeníme za fajku */
.mg-pc a.mg-pc__btn.added .mg-pc__cart { display: none !important; }
.mg-pc a.mg-pc__btn.added::after {
	content: "" !important;
	display: block !important;
	position: static !important;
	width: 11px !important;
	height: 20px !important;
	margin: -4px 0 0 0 !important;
	border: solid #fff !important;
	border-width: 0 3px 3px 0 !important;
	transform: rotate(45deg) !important;
	animation: none !important;
	background: none !important;
}
.mg-pc a.mg-pc__btn--off,
.mg-pc a.mg-pc__btn--off:hover {
	background: #e7e2d6 !important;
	color: #8a8578 !important;
	transform: none !important;
}
/* WooCommerce po pridaní vloží odkaz „Zobraziť košík" – na karte ho skryjeme */
.mg-pc a.added_to_cart { display: none !important; }

/* Mobil – 2 stĺpce, preto kompaktnejšie a bez riadku Použi */
@media (max-width: 600px) {
	.mg-pc .mg-pc__body { padding: 10px 10px 12px !important; }
	.mg-pc .mg-pc__label { font-size: 10.5px !important; margin: 0 0 5px !important; }
	.mg-pc .mg-pc__title { font-size: 16.5px !important; margin: 0 0 4px !important; }
	.mg-pc .mg-pc__quote { font-size: 14px !important; line-height: 1.25 !important; margin: 0 0 8px !important; }
	.mg-pc .mg-pc__facts { gap: 3px 10px !important; flex-wrap: wrap !important; margin: 0 0 10px !important; }
	.mg-pc .mg-pc__fact { font-size: 11.5px !important; gap: 3px !important; }
	.mg-pc .mg-pc__fact svg { width: 12px !important; height: 12px !important; }
	.mg-pc .mg-pc__use { display: none !important; }
	.mg-pc .mg-pc__foot { flex-direction: row !important; align-items: center !important; flex-wrap: nowrap !important; gap: 6px !important; }
	.mg-pc .mg-pc__price { font-size: 16px !important; }
	.mg-pc a.mg-pc__btn, .mg-pc a.mg-pc__btn.button { width: 42px !important; height: 42px !important; border-radius: 12px !important; margin: 0 8px 0 0 !important; }
	.mg-pc .mg-pc__cart { width: 23px !important; height: 23px !important; }
	.mg-pc:hover { transform: none !important; }
}
