/* Helpnisi E-shop – karty produktov */

.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
}

.woocommerce ul.products li.product > a.woocommerce-loop-product__link {
	flex: 1 1 auto;
}

/* Tlačidlo vždy na spodku karty, aby boli karty rovnaké. */
.woocommerce ul.products li.product > .button {
	align-self: flex-start;
	margin-top: auto;
}

.woocommerce ul.products li.product .price {
	margin-top: 0.35rem;
}

/* Krátky popis */
.woocommerce ul.products li.product .hne-excerpt {
	margin: 0.35rem 0 0;
	padding: 0 18.4px;
	font-family: Inter, sans-serif;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #4a4a4a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Produkt bez ceny */
.hne-soon {
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	color: #c27559;
}

/* Odznaky */
.woocommerce ul.products li.product .hne-badges {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}

.hne-badge {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	font-family: Inter, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #01372f;
	background: #fffbf5;
	box-shadow: 0 2px 8px rgba(1, 55, 47, 0.08);
}

.hne-badge--best {
	color: #fff;
	background: #01372f;
}

.hne-badge--new {
	color: #fff;
	background: #c27559;
}

.hne-badge--low {
	color: #9a3d22;
	background: #fde4da;
}

.hne-badge--soon {
	color: #01372f;
	background: #fffbf5;
}

.hne-badge--soldout {
	color: #fff;
	background: #6b6b6b;
}

/* Druhá fotka pri prechode kurzorom */
.woocommerce ul.products li.product .hne-hover-img {
	position: absolute;
	top: 9.6px;
	left: 9.6px;
	z-index: 2;
	width: calc(100% - 19.2px);
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	border-radius: 8px;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

@media (hover: hover) {
	.woocommerce ul.products li.product.hne-has-hover:hover .hne-hover-img,
	.woocommerce ul.products li.product.hne-has-hover:focus-within .hne-hover-img {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product .hne-hover-img {
		transition: none;
	}
}

/* ---------- v1.2.0 (2026-10-15) ---------- */

/* Väčšia medzera medzi krátkym popisom a cenou na karte */
.woocommerce ul.products li.product .hne-excerpt {
	margin-bottom: 0;
}
.woocommerce ul.products li.product .hne-excerpt + .price,
.woocommerce ul.products li.product .hne-excerpt ~ .price {
	margin-top: 1rem;
}

/* Štítky zo Značiek (Produkty → Značky) */
.hne-badge--tag {
	color: #01372f;
	background: #fffbf5;
}

/* Štítky sa nezobrazujú ako „Značka:" pod tlačidlom (sú ako odznak nad názvom) */
.product_meta .posted_in:has(a[href*="/značka/"]),
.product_meta .posted_in:has(a[href*="/zna%C4%8Dka/"]),
.product_meta .posted_in:has(a[href*="product_brand"]),
.product_meta .tagged_as {
	display: none;
}

/* Štítky na detaile produktu */
.hne-badges--single {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 0.9rem;
}
.hne-badges--single .hne-badge {
	box-shadow: none;
}
.hne-badges--single .hne-badge--tag {
	border: 1px solid #f3c3b5;
}

/* Úvodný text e-shopu */
.hne-shop-intro {
	max-width: 62rem;
	margin: 0.25rem 0 2.25rem;
}
.hne-shop-intro__lead {
	margin: 0 0 0.75rem;
	font-family: "DM Serif Display", serif;
	font-size: 1.65rem;
	line-height: 1.3;
	color: #000;
}
.hne-shop-intro__lead em {
	color: #c27559;
}
.hne-shop-intro__text {
	max-width: 46rem;
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #323232;
}

/* Sekcia programov pod produktmi */
.hne-programs {
	clear: both;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 2.5rem;
	align-items: center;
	margin: 4.5rem 0 2.5rem;
	padding: 3.25rem 3rem;
	border-radius: 1.25rem;
	background: #ffe9e1;
	border: 1px solid #f3c3b5;
}
.hne-programs__title {
	margin: 0 0 0.5rem;
	font-family: "DM Serif Display", serif;
	font-weight: 400;
	font-size: 2.3rem;
	line-height: 1.15;
	color: #000;
}
.hne-programs__sub {
	margin: 0;
	font-family: "DM Serif Display", serif;
	font-style: italic;
	font-size: 1.35rem;
	color: #c27559;
}
.hne-programs__body p {
	margin: 0 0 1.5rem;
	font-family: Inter, sans-serif;
	font-size: 1.02rem;
	line-height: 1.65;
	color: #323232;
}
.hne-programs__btn {
	display: inline-block;
	padding: 0.95rem 2rem;
	border-radius: 999px;
	background: #01372f;
	color: #fff !important;
	font: 500 1rem/1.2 Inter, sans-serif;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -8px rgba(1, 55, 47, 0.45);
	transition: background 0.25s;
}
.hne-programs__btn:hover,
.hne-programs__btn:focus-visible {
	background: #012621;
}

/* Zoradenie (Odporúčané…) */
body.woocommerce .woocommerce-ordering {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}
body.woocommerce .woocommerce-ordering::before {
	content: "Zoradiť:";
	font-family: Inter, sans-serif;
	font-size: 0.88rem;
	color: #6b6b6b;
}
body.woocommerce .woocommerce-ordering select.orderby {
	min-width: 0;
	width: auto;
	padding: 0.6rem 1rem 0.6rem 1.15rem;
	border: 1px solid #f3c3b5;
	border-radius: 999px;
	background-color: #fff;
	font-family: Inter, sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	color: #01372f;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}
body.woocommerce .woocommerce-ordering select.orderby:hover {
	border-color: #c27559;
}
body.woocommerce .woocommerce-ordering select.orderby:focus-visible {
	outline: none;
	border-color: #c27559;
	box-shadow: 0 0 0 3px rgba(194, 117, 89, 0.18);
}
@supports (appearance: base-select) {
	body.woocommerce .woocommerce-ordering select.orderby,
	body.woocommerce .woocommerce-ordering select.orderby::picker(select) {
		appearance: base-select;
	}
	body.woocommerce .woocommerce-ordering select.orderby {
		display: inline-flex;
		align-items: center;
		gap: 0.75rem;
	}
	body.woocommerce .woocommerce-ordering select.orderby::picker-icon {
		content: "";
		width: 0.45rem;
		height: 0.45rem;
		margin: -0.2rem 0.15rem 0 0;
		border-right: 1.5px solid #c27559;
		border-bottom: 1.5px solid #c27559;
		color: transparent;
		transform: rotate(45deg);
		transition: transform 0.2s ease, margin 0.2s ease;
	}
	body.woocommerce .woocommerce-ordering select.orderby:open::picker-icon {
		margin-top: 0.25rem;
		transform: rotate(225deg);
	}
	body.woocommerce .woocommerce-ordering select.orderby::picker(select) {
		margin-top: 0.4rem;
		padding: 0.35rem;
		border: 1px solid #f3c3b5;
		border-radius: 14px;
		background: #fffbf5;
		box-shadow: 0 18px 40px -18px rgba(1, 55, 47, 0.3);
	}
	body.woocommerce .woocommerce-ordering select.orderby option {
		padding: 0.6rem 0.85rem;
		border-radius: 9px;
		font-family: Inter, sans-serif;
		font-size: 0.9rem;
		font-weight: 400;
		color: #323232;
		background: transparent;
		cursor: pointer;
	}
	body.woocommerce .woocommerce-ordering select.orderby option:hover,
	body.woocommerce .woocommerce-ordering select.orderby option:focus-visible {
		background: #ffe9e1;
		outline: none;
	}
	body.woocommerce .woocommerce-ordering select.orderby option:checked {
		background: #fcd9ce;
		color: #01372f;
		font-weight: 600;
	}
	body.woocommerce .woocommerce-ordering select.orderby option::checkmark {
		color: #c27559;
	}
}

@media (max-width: 767px) {
	.hne-shop-intro__lead {
		font-size: 1.35rem;
	}
	.hne-shop-intro__text {
		font-size: 1rem;
	}
	.hne-programs {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		margin-top: 3.5rem;
		padding: 2.25rem 1.25rem;
	}
	.hne-programs__title {
		font-size: 1.85rem;
	}
	.hne-programs__btn {
		display: block;
		text-align: center;
	}
	body.woocommerce .woocommerce-ordering::before {
		display: none;
	}
}

/* Hlavička e-shopu: nadpis → úvodný text → „Pozrieť ponuku" pod textom */
body.woocommerce-shop .woocommerce-products-header > .woocommerce-products-header__title {
	grid-area: 1 / 1 / 2 / -1;
}
body.woocommerce-shop .woocommerce-products-header > .hne-shop-intro {
	grid-area: 2 / 1 / 3 / -1;
	margin: 1.75rem 0 0;
}
body.woocommerce-shop .woocommerce-products-header > .hn-shop-jump {
	grid-area: 3 / 1 / 4 / -1;
	justify-self: start;
	margin: 1.5rem 0 2.5rem;
}
body.woocommerce-shop .woocommerce-products-header > .hnb {
	grid-row: 4;
}
@media (max-width: 767px) {
	body.woocommerce-shop .woocommerce-products-header > .hne-shop-intro {
		margin-top: 1.25rem;
	}
	body.woocommerce-shop .woocommerce-products-header > .hn-shop-jump {
		margin: 1.25rem 0 2rem;
	}
}

/* Hlavička e-shopu: nadpis → text na celú šírku → „Pozrieť ponuku" pod textom (v1.2.5) */
body.woocommerce-shop .woocommerce-products-header {
	grid-template-columns: minmax(0, 1fr);
}
body.woocommerce-shop .woocommerce-products-header > .woocommerce-products-header__title {
	grid-area: 1 / 1 / 2 / -1;
}
body.woocommerce-shop .woocommerce-products-header > .hne-shop-intro {
	grid-area: 2 / 1 / 3 / -1;
	max-width: none;
	margin: 1.5rem 0 0;
}
body.woocommerce-shop .hne-shop-intro__lead {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	line-height: 1.3;
}
body.woocommerce-shop .hne-shop-intro__text {
	max-width: none;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #4a4a4a;
}
body.woocommerce-shop .woocommerce-products-header > .hn-shop-jump {
	grid-area: 3 / 1 / 4 / -1;
	justify-self: start;
	margin: 0.75rem 0 2rem;
	font-size: 0.92rem;
}
body.woocommerce-shop .woocommerce-products-header > .hnb {
	grid-row: 4;
}
@media (max-width: 767px) {
	body.woocommerce-shop .woocommerce-products-header > .hne-shop-intro {
		margin-top: 1rem;
	}
	body.woocommerce-shop .woocommerce-products-header > .hn-shop-jump {
		margin: 0.6rem 0 1.5rem;
	}
	body.woocommerce-shop .hne-shop-intro__lead {
		font-size: 1.1rem;
	}
	body.woocommerce-shop .hne-shop-intro__text {
		font-size: 0.88rem;
	}
}

/* Produkt so štítkom „Pripravujem" – namiesto nákupu odkaz/poznámka */
.hne-coming {
	margin: 1.25rem 0 0;
	padding: 1.1rem 1.25rem;
	border-radius: 0.9rem;
	background: #ffe9e1;
}
.hne-coming p {
	margin: 0 0 0.85rem;
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #323232;
}
.hne-coming__btn {
	display: inline-block;
	padding: 0.85rem 1.75rem;
	border-radius: 999px;
	background: #01372f;
	color: #fff !important;
	font: 500 1rem/1.2 Inter, sans-serif;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -8px rgba(1, 55, 47, 0.45);
	transition: background 0.25s;
}
.hne-coming__btn:hover,
.hne-coming__btn:focus-visible {
	background: #012621;
}

/* Sekcie zo šablóny Elementor „E-shop" (v1.3.0) */
.hne-programs-tpl {
	clear: both;
	margin: 4.5rem 0 2.5rem;
}
@media (max-width: 767px) {
	.hne-programs-tpl {
		margin-top: 3.5rem;
	}
}
