/**
 * Spiridea – vlastné štýly témy (jediný CSS súbor pre všetky úpravy).
 * Načítava sa na každej stránke cez functions.php (sp_enqueue_theme_css).
 *
 * Sekcie:
 *   1. Live search (hlavička, desktop + mobil)
 *   2. Odporúčania lekárov (sekcia pod galériou produktu + lightbox)
 *   3. Produktová karta – hover/tap popis ikoniek problémov
 *   4. Popis kategórie pod výpisom – zbaliteľný (gradient + tlačidlo so šípkou)
 *   5. Pätička (.sp-foot) – kontakty, menu, doprava/platba, Heureka, krajiny, lišta
 *   6. Sticky add-to-cart lišta na detaile produktu (.sp-sticky-atc)
 *   7. Fixná hlavička (js/sp-theme.js: desktop po scrolle pod hlavičku, mobil hneď za topbarom)
 *   8. Košík – rozloženie, info panely, sumár s kupónom, odporúčané produkty
 *   9. Detail produktu – sticky pravý stĺpec (desktop), poradie blokov (mobil)
 *  10. Zákaznícke videá – sekcia „Čo hovoria zákazníci“, video v galérii (2. položka)
 *  11. Fotky k recenziám – upload vo formulári, miniatúry v karte, lightbox
 *  12. Recenzie – karta poďakovania / chyby, mobil: meno a email pod sebou
 *  13. Logá dopravcov podľa názvu – FAN Courier, GLS (pokladňa)
 *  14. Články – nadpisy h3 < h2, h4 < h3 v obsahu článku
 *  15. Akciový popup – zreteľný krížik (biely kruh)
 *  16. Produktové karty – bez recenzií skryté hviezdičky (miesto ostáva)
 *  17. Pätička – mriežka kontaktov podľa počtu položiek
 */

/* =========================================================================
 * 1. Live search
 * ====================================================================== */

/* Zoznam ------------------------------------------------------------------ */

.sp-header__search .sp-live-search-results {
	overflow: hidden;
}

.sp-header__search .sp-live-search-results__list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
}

.sp-header__search .sp-live-search-results__item {
	margin: 0;
	border-top: 1px solid #eef0f5;
}

.sp-header__search .sp-live-search-results__item:first-child {
	border-top: 0;
}

.sp-header__search .sp-live-search-results__item a.sp-live-search-results__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	color: #403A60;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.sp-header__search .sp-live-search-results__item a.sp-live-search-results__link:hover,
.sp-header__search .sp-live-search-results__item a.sp-live-search-results__link:focus {
	background-color: #f4f3f9;
	text-decoration: none;
}

.sp-header__search .sp-live-search-results__image {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	background: #f6f6f8;
}

/* Názov + cena: cena má pevnú šírku vpravo, názov zaberá zvyšok. */
.sp-header__search .sp-live-search-results__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

.sp-header__search .sp-live-search-results__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
}

.sp-header__search .sp-live-search-results__price {
	flex: 0 0 84px;
	width: 84px;
	min-width: 84px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	text-align: right;
	line-height: 1.25;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 700;
}

.sp-header__search .sp-live-search-results__price del {
	font-size: 12px;
	font-weight: 400;
	color: #8d8a9e;
	text-decoration: line-through;
}

.sp-header__search .sp-live-search-results__price ins {
	text-decoration: none;
}

.sp-header__search .sp-live-search-results__price .woocommerce-Price-amount {
	white-space: nowrap;
}

.sp-header__search .sp-live-search-results__message {
	padding: 18px 16px;
	text-align: center;
	font-size: 14px;
	color: #6f6c84;
}

/* Mobil ------------------------------------------------------------------- */

@media (max-width: 767px) {
	/* 16px zabráni automatickému zoomu Safari/Chrome pri fokuse na políčko. */
	.sp-header__search .search-field,
	.sp-header__search .woocommerce-product-search input[type="search"] {
		font-size: 16px !important;
	}

	/* Otvorené vyhľadávanie: plné biele pozadie namiesto blur efektu. */
	#masthead .sp-header__search.is-mobile-open {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	/* Výsledky na celú šírku obrazovky tesne pod bielou lištou, bez zaoblenia,
	   oddelené linkou a jemným tieňom. */
	#masthead .sp-header__search.is-mobile-open .sp-live-search-results {
		top: 100%;
		left: 0;
		width: 100vw;
		padding-top: 0;
		border-radius: 0;
		border-top: 1px solid #e6e4ef;
		box-shadow: 0 12px 24px rgba(64, 58, 96, 0.14);
		max-height: calc(100vh - 170px);
		max-height: calc(100dvh - 170px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.sp-header__search .sp-live-search-results__item a.sp-live-search-results__link {
		padding: 10px 14px;
		gap: 12px;
	}

	.sp-header__search .sp-live-search-results__image {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
	}

	.sp-header__search .sp-live-search-results__price {
		flex-basis: 78px;
		width: 78px;
		min-width: 78px;
	}
}

/* =========================================================================
 * 2. Odporúčania lekárov
 * ====================================================================== */

.sp-doctor-videos {
	margin: 30px 0 0;
	padding: 32px;
	background: #fff;
	border-radius: 16px;
}

.sp-doctor-videos__title {
	margin: 0 0 24px;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: #403A60;
	text-align: center;
}

/* 3 stĺpce po 1/3; položka má vnútorné odsadenie, aby texty neboli až po okraj stĺpca. */
.sp-doctor-videos__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 0;
}

.sp-doctor-videos__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 0 12px;
	box-sizing: border-box;
}

/* 3+ položiek: Owl carousel namiesto mriežky (Owl si stage rieši sám). */
.sp-doctor-videos__list.owl-carousel.owl-loaded {
	display: block;
}

.sp-doctor-videos__list.owl-carousel:not(.owl-loaded) {
	display: grid;
}

.sp-doctor-videos__list.owl-carousel:not(.owl-loaded) .sp-doctor-videos__item:nth-child(n+4) {
	display: none;
}

/* Fotka sa pri hoveri zväčšuje (scale 1.05) – stage potrebuje rezervu, inak Owl oreže jej horný okraj. */
.sp-doctor-videos .owl-stage-outer {
	padding: 10px 0;
	margin: -10px 0;
}

.sp-doctor-videos .owl-nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.sp-doctor-videos .owl-nav button.owl-prev,
.sp-doctor-videos .owl-nav button.owl-next,
.sp-doctor-videos .owl-nav button.owl-prev:hover,
.sp-doctor-videos .owl-nav button.owl-next:hover {
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid #e6e4ef !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #403A60 !important;
	font-size: 24px !important;
	line-height: 34px !important;
	box-shadow: none !important;
}

.sp-doctor-videos .owl-nav button.owl-prev:hover,
.sp-doctor-videos .owl-nav button.owl-next:hover {
	border-color: #403A60 !important;
}

.sp-doctor-videos .owl-nav button.disabled {
	opacity: 0.35;
}

/* Thumb button – reset Storefront aj Elementor kit štýlov buttonov (fialové pozadie, padding, radius). */
.sp-doctor-videos__thumb,
.sp-doctor-videos__thumb:hover,
.sp-doctor-videos__thumb:focus,
.sp-doctor-videos__thumb:active {
	display: block;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	line-height: 0 !important;
	font-size: 0 !important;
	color: inherit;
}

.sp-doctor-videos__thumb:focus-visible .sp-doctor-videos__ring {
	outline: 2px solid #403A60;
	outline-offset: 3px;
}

/* Fialový rámik (farba webu) okolo kruhovej fotky, max 100px. */
.sp-doctor-videos__ring {
	position: relative;
	display: block;
	width: 100px;
	height: 100px;
	max-width: 100%;
	padding: 3px;
	border-radius: 50%;
	background: #403A60;
	transition: transform 0.2s ease;
	box-sizing: border-box;
}

.sp-doctor-videos__thumb:hover .sp-doctor-videos__ring {
	transform: scale(1.05);
}

.sp-doctor-videos__preview {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: #E0E5EE;
	border: 2px solid #fff;
	box-sizing: border-box;
}

.sp-doctor-videos__item--video .sp-doctor-videos__preview {
	background: #111;
}

.sp-doctor-videos__preview img,
.sp-doctor-videos__preview video,
.sp-doctor-videos__preview .sp-doctor-videos__avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.sp-doctor-videos__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.sp-doctor-videos__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: #fff;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}

.sp-doctor-videos__meta {
	padding: 10px 0 0;
	text-align: center;
	width: 100%;
	max-width: 220px;
}

/* Povolanie (zobrazuje sa namiesto Instagramu). */
.sp-doctor-videos__profession {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.3;
	color: #6f6c84;
}

/* Odznak s bublinou na fotke textového testimonialu. */
.sp-doctor-videos__badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #403A60;
	border: 2px solid #fff;
	box-sizing: border-box;
	pointer-events: none;
}

.sp-doctor-videos__badge svg {
	display: block;
	width: 16px;
	height: 16px;
}

.sp-doctor-videos__name {
	display: block;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #403A60;
}

/* Meno ako odkaz vyzerá rovnako ako obyčajné meno. */
a.sp-doctor-videos__name,
a.sp-doctor-videos__name:hover,
a.sp-doctor-videos__name:focus {
	color: #403A60;
	text-decoration: none;
}

.sp-doctor-videos__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
}

.sp-doctor-videos__link {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #403A60;
	text-decoration: none;
}

.sp-doctor-videos__link:hover,
.sp-doctor-videos__link:focus {
	text-decoration: underline;
	color: #403A60;
}

/* ---------------------------------------------------------------------
 * Lightbox
 * ------------------------------------------------------------------ */

.sp-doctor-videos-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sp-doctor-videos-lightbox[hidden] {
	display: none;
}

/* Len minimálne stmavenie + jemný blur – stránka pod tým ostáva čitateľná. */
.sp-doctor-videos-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.18);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.sp-doctor-videos-lightbox__dialog {
	position: relative;
	z-index: 1;
	max-width: min(92vw, 480px);
	max-height: 88vh;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.sp-doctor-videos-lightbox__video {
	display: block;
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	background: #000;
}

/* Režimy: video vs. text – nepoužitý obsah je skrytý. */
.sp-doctor-videos-lightbox__text {
	display: none;
}

.sp-doctor-videos-lightbox--text .sp-doctor-videos-lightbox__video {
	display: none;
}

.sp-doctor-videos-lightbox--text .sp-doctor-videos-lightbox__dialog {
	width: min(92vw, 560px);
	max-width: none;
	background: #fff;
	overflow: auto;
}

.sp-doctor-videos-lightbox--text .sp-doctor-videos-lightbox__text {
	display: block;
	position: relative;
	padding: 56px 36px 32px;
	color: #403A60;
}

/* Úvodzovky vpravo od fotky, ktorá trčí z ľavého horného rohu. */
.sp-doctor-videos-lightbox__quote {
	position: absolute;
	top: 16px;
	left: 64px;
	width: 40px;
	height: 40px;
	opacity: 0.18;
}

.sp-doctor-videos-lightbox__quote svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: #403A60;
}

/* Fotka lekára trčí z ľavého horného rohu karty von, text má celú šírku. */
.sp-doctor-videos-lightbox__photo {
	position: absolute;
	top: -28px;
	left: -24px;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	padding: 3px;
	background: #403A60;
	box-sizing: border-box;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.sp-doctor-videos-lightbox__photo img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-sizing: border-box;
}

.sp-doctor-videos-lightbox__photo .sp-doctor-videos__avatar {
	display: none;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid #fff;
	box-sizing: border-box;
}

/* Bez fotky: v kruhu je avatar zdravotníka. */
.sp-doctor-videos-lightbox--no-photo .sp-doctor-videos-lightbox__photo img {
	display: none;
}

.sp-doctor-videos-lightbox--no-photo .sp-doctor-videos-lightbox__photo .sp-doctor-videos__avatar {
	display: block;
}

.sp-doctor-videos-lightbox__body {
	font-size: 17px;
	line-height: 1.6;
	font-style: italic;
	min-height: 60px;
}


.sp-doctor-videos-lightbox__body p {
	margin: 0 0 1em;
}

.sp-doctor-videos-lightbox__body p:last-child {
	margin-bottom: 0;
}

.sp-doctor-videos-lightbox__author {
	margin-top: 20px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sp-doctor-videos-lightbox__author:empty {
	display: none;
}

.sp-doctor-videos-lightbox__profession {
	margin-top: 2px;
	font-size: 13px;
	color: #6f6c84;
}

.sp-doctor-videos-lightbox__profession:empty {
	display: none;
}

.sp-doctor-videos-lightbox__close,
.sp-doctor-videos-lightbox__close:hover,
.sp-doctor-videos-lightbox__close:focus,
.sp-doctor-videos-lightbox__close:active {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.55) !important;
	color: #fff !important;
	font-size: 26px !important;
	line-height: 36px !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none !important;
	outline: none;
}

.sp-doctor-videos-lightbox__close:hover {
	background: rgba(0, 0, 0, 0.8) !important;
}

/* V textovom popupe je krížik fialový a nad fotkou v rohu. */
.sp-doctor-videos-lightbox--text .sp-doctor-videos-lightbox__close {
	top: -4px;
	right: -4px;
	width: 30px !important;
	height: 30px !important;
	line-height: 30px !important;
	font-size: 22px !important;
	background: #403A60 !important;
	transform: translate(0, 0);
}

.sp-doctor-videos-lightbox--text .sp-doctor-videos-lightbox__dialog {
	overflow: visible;
}

.sp-doctor-videos-lightbox__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

body.sp-doctor-videos-lightbox-open {
	overflow: hidden;
}

/* Prepínanie položiek v popupe: šípky po stranách (desktop), pod obsahom (mobil). */
.sp-doctor-videos-lightbox__stage {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto;
	grid-template-areas: "dlg";
	align-items: center;
	justify-items: center;
}

.sp-doctor-videos-lightbox__stage > .sp-doctor-videos-lightbox__dialog {
	grid-area: dlg;
}

.sp-doctor-videos-lightbox__nav,
.sp-doctor-videos-lightbox__count {
	display: none;
}

.sp-doctor-videos-lightbox--has-nav .sp-doctor-videos-lightbox__stage {
	grid-template-columns: 52px auto 52px;
	grid-template-areas:
		"prev dlg next"
		". count .";
	column-gap: 20px;
	row-gap: 12px;
}

.sp-doctor-videos-lightbox--has-nav .sp-doctor-videos-lightbox__nav {
	display: inline-flex;
}

.sp-doctor-videos-lightbox--has-nav .sp-doctor-videos-lightbox__count {
	display: block;
	grid-area: count;
	padding: 4px 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.92);
	color: #403A60;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.sp-doctor-videos-lightbox__nav,
.sp-doctor-videos-lightbox__nav:hover,
.sp-doctor-videos-lightbox__nav:focus,
.sp-doctor-videos-lightbox__nav:active {
	align-items: center;
	justify-content: center;
	width: 52px !important;
	height: 52px !important;
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #403A60 !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
	cursor: pointer;
	outline: none;
	transition: transform 0.15s ease;
}

.sp-doctor-videos-lightbox__nav:hover {
	transform: scale(1.06);
}

.sp-doctor-videos-lightbox__nav:focus-visible {
	outline: 2px solid #403A60;
	outline-offset: 2px;
}

.sp-doctor-videos-lightbox__nav svg {
	width: 24px;
	height: 24px;
}

.sp-doctor-videos-lightbox__nav--prev {
	grid-area: prev;
}

.sp-doctor-videos-lightbox__nav--next {
	grid-area: next;
}

/* Desktop: textový popup musí nechať miesto na šípky. */
.sp-doctor-videos-lightbox--has-nav.sp-doctor-videos-lightbox--text .sp-doctor-videos-lightbox__dialog {
	width: min(calc(100vw - 200px), 560px);
}

.sp-doctor-videos-lightbox--has-nav .sp-doctor-videos-lightbox__dialog,
.sp-doctor-videos-lightbox--has-nav .sp-doctor-videos-lightbox__video {
	max-height: calc(88vh - 48px);
}

@media (max-width: 767px) {
	/* Mobil: obsah na celú šírku, pod ním šípky a počítadlo. */
	.sp-doctor-videos-lightbox--has-nav .sp-doctor-videos-lightbox__stage {
		grid-template-columns: auto auto auto;
		grid-template-areas:
			"dlg dlg dlg"
			"prev count next";
		justify-content: center;
		column-gap: 18px;
		row-gap: 14px;
	}

	.sp-doctor-videos-lightbox--has-nav.sp-doctor-videos-lightbox--text .sp-doctor-videos-lightbox__dialog {
		width: min(92vw, 560px);
	}

	.sp-doctor-videos-lightbox--has-nav .sp-doctor-videos-lightbox__dialog,
	.sp-doctor-videos-lightbox--has-nav .sp-doctor-videos-lightbox__video {
		max-height: calc(88vh - 70px);
	}

	.sp-doctor-videos-lightbox__nav,
	.sp-doctor-videos-lightbox__nav:hover,
	.sp-doctor-videos-lightbox__nav:focus,
	.sp-doctor-videos-lightbox__nav:active {
		width: 46px !important;
		height: 46px !important;
	}
}

@media (max-width: 767px) {
	.sp-doctor-videos {
		padding: 20px;
		border-radius: 12px;
	}

	.sp-doctor-videos__title {
		font-size: 24px;
		margin-bottom: 18px;
	}

	/* Telefón: 2 vedľa seba. */
	.sp-doctor-videos__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 0;
	}

	.sp-doctor-videos__list.owl-carousel:not(.owl-loaded) .sp-doctor-videos__item:nth-child(n+3) {
		display: none;
	}

	.sp-doctor-videos__item {
		padding: 0 6px;
	}

	.sp-doctor-videos__ring {
		width: 84px;
		height: 84px;
	}

	.sp-doctor-videos__icon {
		width: 30px;
		height: 30px;
	}

	.sp-doctor-videos__badge {
		width: 28px;
		height: 28px;
	}

	.sp-doctor-videos__badge svg {
		width: 14px;
		height: 14px;
	}

	.sp-doctor-videos-lightbox {
		padding: 12px;
	}

	/* Telefón: úvodzovky menšie a nad textom (text začína až pod nimi), aby ho neprekrývali. */
	.sp-doctor-videos-lightbox--text .sp-doctor-videos-lightbox__text {
		padding: 60px 22px 24px;
	}

	.sp-doctor-videos-lightbox__quote {
		top: 20px;
		left: 48px;
		width: 28px;
		height: 28px;
		opacity: 0.3;
	}


	.sp-doctor-videos-lightbox__photo {
		width: 60px;
		height: 60px;
		top: -22px;
		left: -12px;
	}

	.sp-doctor-videos-lightbox__body {
		font-size: 15px;
	}
}


/* =========================================================================
 * 3. Produktová karta – ikonky problémov: hover (desktop) / ťuknutie (mobil)
 * zobrazí popis ako "pill" s názvom problému vedľa zväčšenej ikonky.
 * Základné štýly (pozícia, veľkosť ikoniek, max 3) sú v Customizer CSS.
 * ====================================================================== */

/* Customizer: max-height 210px + overflow:hidden = zámerne max 4 ikonky.
   Overflow by ale orezal aj pill (kontajner je široký len 48px), preto rovnaký limit
   riešime skrytím 5. a ďalšej ikonky a kontajner necháme neorezaný. */
div.sp-product-card__problemy-labels {
	overflow: visible;
	max-height: none;
}

div.sp-product-card__problemy-labels > .sp-product-card__problemy-label:nth-child(n+5) {
	display: none;
}

/* Veľkosť labelu určuje obrázok (desktop 48px, mobil 35px z Customizer CSS) – nič pevné,
   inak by vznikli väčšie medzery medzi ikonkami. */
.sp-product-card__problemy-label {
	position: relative;
	display: block;
	width: max-content;
	height: auto;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
}

.sp-product-card__problemy-label img.sp-product-card__problemy-label-img {
	position: relative;
	z-index: 2;
	display: block;
	transition: transform 0.2s ease;
	transform-origin: center;
	background: #fff;
}

.sp-product-card__problemy-item--icon svg {
	z-index: 3;
	transition: transform 0.2s ease;
}

/* Pill s názvom – skrytý, zobrazí sa pri hoveri / is-open. */
.sp-product-card__problemy-label-text {
	position: absolute;
	top: 50%;
	left: -4px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	width: max-content;
	max-width: 235px; /* karta má overflow:hidden – dlhší názov sa zalomí do 2 riadkov */
	min-height: 54px;
	padding: 8px 20px 8px 70px;
	box-sizing: border-box;
	transform: translateY(-50%);
	background: #fff;
	border: 1px solid #403A60;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(64, 58, 96, 0.16);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: #403A60;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

.sp-product-card__problemy-label.is-open {
	z-index: 20;
}

.sp-product-card__problemy-label.is-open img.sp-product-card__problemy-label-img {
	transform: scale(1.4);
}

.sp-product-card__problemy-label.is-open .sp-product-card__problemy-item--icon svg {
	transform: translate(4px, -4px);
}

.sp-product-card__problemy-label.is-open .sp-product-card__problemy-label-text {
	opacity: 1;
	visibility: visible;
}

@media (hover: hover) {
	.sp-product-card__problemy-label:hover {
		z-index: 20;
	}

	.sp-product-card__problemy-label:hover img.sp-product-card__problemy-label-img {
		transform: scale(1.4);
	}

	.sp-product-card__problemy-label:hover .sp-product-card__problemy-item--icon svg {
		transform: translate(4px, -4px);
	}

	.sp-product-card__problemy-label:hover .sp-product-card__problemy-label-text {
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 767px) {
	/* Karta má na mobile ~163px a overflow:hidden; ikonka 35px, label začína 10px od okraja. */
	.sp-product-card__problemy-label-text {
		left: -3px;
		min-height: 40px;
		max-width: 150px;
		padding: 5px 10px 5px 46px;
		font-size: 12px;
		line-height: 1.15;
		letter-spacing: -0.01em;
	}

	.sp-product-card__problemy-label.is-open img.sp-product-card__problemy-label-img {
		transform: scale(1.25);
	}
}


/* =========================================================================
 * 4. Popis kategórie pod výpisom – zbaliteľný
 *    Základ boxu (.sp-archive-description-box) je v includes/archive-banner.php.
 * ====================================================================== */

.sp-archive-description-box--collapsible {
	position: relative;
	padding-bottom: 30px;
}

.sp-archive-description__content {
	position: relative;
	max-height: 170px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

/* Gradient do bielej (pozadie boxu je biele). */
.sp-archive-description__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 85%);
	pointer-events: none;
}

/* Okrúhle tlačidlo so šípkou, bez textu, v strede pod gradientom (reset Storefront buttonu). */
.sp-archive-description__toggle,
.sp-archive-description__toggle:hover,
.sp-archive-description__toggle:focus,
.sp-archive-description__toggle:active {
	position: absolute;
	left: 50%;
	bottom: -22px;
	z-index: 2;
	width: 44px !important;  /* globálne štýly buttonov ho inak rozťahujú na 50px */
	min-width: 0 !important;
	height: 44px !important;
	padding: 0 !important;  /* Elementor prepisuje padding a farby buttonov */
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: #403A60 !important;
	background-color: #403A60 !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(64, 58, 96, 0.3);
	outline: none;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.sp-archive-description__toggle:hover {
	background: #2f2a4a !important;
	background-color: #2f2a4a !important;
	transform: translateX(-50%) scale(1.06);
}

.sp-archive-description__toggle:focus-visible {
	outline: 2px solid #403A60;
	outline-offset: 3px;
}

.sp-archive-description__toggle svg {
	display: block;
	width: 22px;
	height: 22px;
	color: #fff;
	transition: transform 0.25s ease;
}

/* Chevron biely vždy, nie len pri hoveri (globálne štýly menia farbu buttonu). */
.sp-archive-description__toggle svg path {
	stroke: #fff !important;
	fill: none !important;
}

/* Rozbalené: bez limitu, bez gradientu, šípka hore. */
.sp-archive-description-box--collapsible.is-expanded .sp-archive-description__content {
	max-height: none;
}

.sp-archive-description-box--collapsible.is-expanded .sp-archive-description__content::after {
	display: none;
}

.sp-archive-description-box--collapsible.is-expanded .sp-archive-description__toggle svg {
	transform: rotate(180deg);
}

/* Krátky popis (JS): nič nezbaľovať, žiadne tlačidlo. */
.sp-archive-description-box--collapsible.is-short {
	padding-bottom: 30px;
}

.sp-archive-description-box--collapsible.is-short .sp-archive-description__content {
	max-height: none;
}

.sp-archive-description-box--collapsible.is-short .sp-archive-description__content::after,
.sp-archive-description-box--collapsible.is-short .sp-archive-description__toggle {
	display: none;
}

@media (max-width: 767px) {
	.sp-archive-description__content {
		max-height: 150px;
	}

	.sp-archive-description-box--collapsible {
		padding-bottom: 20px;
	}

	.sp-archive-description__toggle,
	.sp-archive-description__toggle:hover {
		width: 40px !important;
		height: 40px !important;
		bottom: -20px;
	}
}


/* =========================================================================
 * 5. Pätička (footer.php + includes/footer-data.php)
 *    Nový blok .sp-foot – Customizer štýly pre starú .sp-footer sa naň nevzťahujú.
 * ====================================================================== */

#colophon.site-footer.sp-foot {
	background: #fff !important;
	padding: 60px 0 0 !important;
	color: #403A60;
	font-family: 'Montserrat', sans-serif;
}

.sp-foot__inner {
	padding-left: 20px;
	padding-right: 20px;
}

.sp-foot a {
	text-decoration: none;
}

/* --- Riadok 1: logo + kontakty ---------------------------------------- */

.sp-foot__top {
	display: flex;
	align-items: center;
	gap: 40px;
	padding-bottom: 50px;
	border-bottom: 1px solid #e6e4ef;
}

.sp-foot__brand {
	flex: 0 0 auto;
}

.sp-foot__logo-img {
	display: block;
	width: 240px;
	max-width: 100%;
	height: auto;
}

.sp-foot__logo-link--text {
	font-size: 28px;
	font-weight: 700;
	color: #403A60;
}

.sp-foot__contacts {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #e6e4ef;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(64, 58, 96, 0.06);
}

.sp-foot__contact {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 24px 22px;
	border-left: 1px solid #e6e4ef;
	min-width: 0;
}

.sp-foot__contact:first-child {
	border-left: 0;
}

.sp-foot__contact-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f1f0f7;
	color: #403A60;
}

.sp-foot__icon {
	display: block;
	width: 20px;
	height: 20px;
}

.sp-foot__contact-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.sp-foot__contact-label {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8d8a9e;
}

.sp-foot__contact-value {
	font-size: 14px;
	line-height: 1.4;
	color: #403A60;
	word-break: break-word;
}

.sp-foot__contact-value--strong {
	font-weight: 700;
}

.sp-foot__contact-value--strong:hover {
	text-decoration: underline;
}

/* --- Riadok 2: stĺpce -------------------------------------------------- */

.sp-foot__cols {
	display: grid;
	grid-template-columns: 1.1fr 1.1fr 1.7fr 1.4fr;
	gap: 40px;
	padding: 45px 0 40px;
	border-bottom: 1px solid #e6e4ef;
}

.sp-foot__cols--no-reviews {
	grid-template-columns: 1.1fr 1.1fr 1.3fr 1.5fr;
}

.sp-foot__col {
	min-width: 0;
}

.sp-foot__heading {
	margin: 0 0 18px;
	font-family: 'AvertaFinal' !important;
	font-size: 16px;
	font-weight: 700;
	color: #333;
}

.sp-foot__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp-foot__menu li {
	margin: 0 0 10px;
}

.sp-foot__menu a {
	font-size: 14px;
	font-weight: 400;
	color: #6f6c84;
	transition: color 0.15s ease;
}

.sp-foot__menu a:hover {
	color: #403A60;
}

/* Podnadpisy (Spôsoby dopravy / platby, Partneri) – rovnaké písmo ako nadpis stĺpca. */
.sp-foot__sublabel {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-family: 'AvertaFinal' !important;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: #333;
}

.sp-foot__sublabel .sp-foot__icon {
	width: 18px;
	height: 18px;
	color: #6f6c84;
}

.sp-foot__logos + .sp-foot__sublabel {
	margin-top: 22px;
}

.sp-foot__logos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Pill s logom dopravcu / platby. */
.sp-foot__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid #e6e4ef;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 500;
	color: #403A60;
}

.sp-foot__logo img,
.sp-foot__logo svg {
	display: block;
	width: auto;
	height: 20px;
	max-width: 110px;
	object-fit: contain;
}

.sp-foot__logo--packeta img,
.sp-foot__logo--zasilkovna img {
	height: 18px;
}

.sp-foot__logo--dpd img {
	height: 22px;
}

.sp-foot__logo--ppl img {
	height: 24px;
	border-radius: 4px;
}

.sp-foot__logo--fan-courier img {
	height: 32px;
}

.sp-foot__logo--gls img {
	height: 24px;
	border-radius: 4px;
}

.sp-foot__logo--expressone img {
	height: 18px;
}

.sp-foot__logo--cargus img {
	height: 30px;
}

.sp-foot__logo--visa img {
	height: 14px;
}

.sp-foot__logo--mastercard svg {
	height: 24px;
}

.sp-foot__logo--apple-pay img,
.sp-foot__logo--google-pay img {
	height: 18px;
}

.sp-foot__logo--gopay img {
	height: 18px;
}

.sp-foot__logo--cod .sp-foot__icon {
	width: 20px;
	height: 20px;
}

/* Heureka widget (SK, CZ) – obrázok 340x100 v bielej karte. */
.sp-foot__heureka {
	margin: 0 0 22px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e6e4ef;
	border-radius: 16px;
	min-height: 60px;
}

.sp-foot__heureka img,
.sp-foot__heureka iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Widget sa nenačíta bez súhlasu s cookies – prázdnu kartu skryť. */
.sp-foot__heureka:has(#showHeurekaBadgeHere-11:empty) {
	display: none;
}

.sp-foot__partners {
	display: flex;
	gap: 12px;
}

.sp-foot__partner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	background: #fff;
	border: 1px solid #e6e4ef;
	border-radius: 12px;
}

.sp-foot__partner img {
	display: block;
	max-width: 48px;
	max-height: 52px;
	width: auto;
	height: auto;
}

/* --- Riadok 3: krajiny + sociálne siete -------------------------------- */

.sp-foot__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0 34px;
}

.sp-foot__countries,
.sp-foot__social {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.sp-foot__bottom-label {
	font-size: 13px;
	font-weight: 700;
	color: #403A60;
	white-space: nowrap;
}

.sp-foot__country-list,
.sp-foot__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp-foot__country-list li,
.sp-foot__social-list li {
	margin: 0;
}

.sp-foot__country {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 14px 0 8px;
	border: 1px solid #e6e4ef;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: #403A60;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.sp-foot__country:hover {
	border-color: #403A60;
}

.sp-foot__country.is-current {
	background: #403A60;
	border-color: #403A60;
	color: #fff;
}

/* Globálne štýly farbia <span> v odkazoch – text pilulky musí dediť farbu. */
.sp-foot__country span:last-child {
	color: inherit !important;
}

.sp-foot__country.is-current span:last-child {
	color: #fff !important;
}

.sp-foot__flag {
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f0f7;
	flex: 0 0 24px;
}

.sp-foot__flag svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sp-foot__flag--globe {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #403A60;
}

.sp-foot__country.is-current .sp-foot__flag--globe {
	color: #403A60;
}

.sp-foot__flag--globe .sp-foot__icon {
	width: 16px;
	height: 16px;
}

.sp-foot__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #403A60;
	color: #fff;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.sp-foot__social-link:hover {
	background: #2f2a4a;
	transform: translateY(-1px);
}

.sp-foot__social-link svg {
	display: block;
	width: 18px;
	height: 18px;
	color: #fff;
}

/* --- Spodná lišta --------------------------------------------------------- */

.sp-foot__bar {
	background: #403A60;
	color: #fff;
}

.sp-foot__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	min-height: 50px;
	padding: 10px 20px;
	font-size: 13px;
}

.sp-foot__copyright {
	color: rgba(255, 255, 255, 0.9);
}

.sp-foot__bar-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp-foot__bar-menu li {
	margin: 0;
}

.sp-foot__bar-menu a {
	color: #fff;
	font-size: 13px;
}

.sp-foot__bar-menu a:hover {
	text-decoration: underline;
}

/* --- Tablet ---------------------------------------------------------------- */

@media (max-width: 1100px) {
	.sp-foot__top {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.sp-foot__brand {
		display: flex;
		justify-content: center;
	}

	.sp-foot__contacts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sp-foot__contact:nth-child(3) {
		border-left: 0;
	}

	.sp-foot__contact:nth-child(n+3) {
		border-top: 1px solid #e6e4ef;
	}

	.sp-foot__cols,
	.sp-foot__cols--no-reviews {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 30px;
	}
}

/* --- Mobil ------------------------------------------------------------------ */

@media (max-width: 767px) {
	#colophon.site-footer.sp-foot {
		padding-top: 40px !important;
	}

	.sp-foot__top {
		padding-bottom: 32px;
	}

	.sp-foot__logo-img {
		width: 200px;
	}

	/* Kontakty: 2 v riadku (2 riadky), ikona nad textom, na stred. */
	.sp-foot__contacts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-radius: 14px;
	}

	.sp-foot__contact {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 10px;
		padding: 16px 10px;
		border-left: 1px solid #e6e4ef;
		border-top: 0;
	}

	.sp-foot__contact:nth-child(odd) {
		border-left: 0;
	}

	.sp-foot__contact:nth-child(n+3) {
		border-top: 1px solid #e6e4ef;
	}

	.sp-foot__contact-body {
		align-items: center;
	}

	.sp-foot__contact-icon {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}

	/* Stĺpce pod sebou, všetko na stred. */
	.sp-foot__cols,
	.sp-foot__cols--no-reviews {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 32px 0 28px;
	}

	.sp-foot__col {
		text-align: center;
	}

	.sp-foot__heading {
		margin-bottom: 12px;
	}

	.sp-foot__sublabel,
	.sp-foot__logos,
	.sp-foot__partners {
		justify-content: center;
	}

	.sp-foot__heureka {
		display: flex;
		justify-content: center;
	}

	.sp-foot__bottom {
		flex-direction: column;
		align-items: center;
		gap: 20px;
		padding: 22px 0 28px;
		text-align: center;
	}

	.sp-foot__countries,
	.sp-foot__social {
		justify-content: center;
	}

	.sp-foot__bottom-label {
		width: 100%;
		text-align: center;
	}

	.sp-foot__country-list,
	.sp-foot__social-list {
		justify-content: center;
	}

	.sp-foot__bar-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 14px 20px;
	}

	.sp-foot__bar-menu {
		justify-content: center;
		gap: 6px 16px;
	}
}


/* =========================================================================
 * 6. Sticky add-to-cart lišta (includes/sticky-add-to-cart.php)
 *    Všetky selektory sú pod .sp-sticky-atc – nezasahujú do ničoho iného.
 * ====================================================================== */

.sp-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.sp-sticky-atc[hidden] {
	display: none;
}

.sp-sticky-atc.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.sp-sticky-atc__inner {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 12px 10px 14px;
	background: #fff;
	border: 1px solid #e6e4ef;
	border-radius: 999px;
	box-shadow: 0 14px 40px rgba(64, 58, 96, 0.18);
	font-family: 'Montserrat', sans-serif;
	color: #403A60;
}

.sp-sticky-atc__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f3f9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sp-sticky-atc__thumb img,
.sp-sticky-atc__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sp-sticky-atc__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sp-sticky-atc__title {
	font-family: 'AvertaFinal', 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-sticky-atc__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 12px;
	line-height: 1.3;
}

.sp-sticky-atc__rating .sp-product-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 12px;
}

.sp-sticky-atc__variant {
	color: #6f6c84;
	font-weight: 600;
}

.sp-sticky-atc__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: #6f6c84;
}

.sp-sticky-atc__stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b0adbd;
}

.sp-sticky-atc__stock.is-in-stock {
	color: #2e8b57;
}

.sp-sticky-atc__stock.is-in-stock::before {
	background: #2e8b57;
}

.sp-sticky-atc__stock.is-out-of-stock {
	color: #c0392b;
}

.sp-sticky-atc__stock.is-out-of-stock::before {
	background: #c0392b;
}

.sp-sticky-atc__price {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.15;
	text-align: right;
}

.sp-sticky-atc__amount {
	font-size: 20px;
	font-weight: 700;
	color: #333;
	white-space: nowrap;
}

.sp-sticky-atc__amount del {
	font-size: 13px;
	font-weight: 400;
	color: #8d8a9e;
	margin-right: 6px;
}

.sp-sticky-atc__amount ins {
	text-decoration: none;
}

.sp-sticky-atc__vat {
	font-size: 11px;
	color: #8d8a9e;
}

/* Množstvo */
.sp-sticky-atc__qty {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 4px;
	border-radius: 999px;
	background: #f4f3f9;
}

.sp-sticky-atc__qty-btn,
.sp-sticky-atc__qty-btn:hover,
.sp-sticky-atc__qty-btn:focus {
	width: 36px;
	height: 40px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	background: transparent !important;
	color: #403A60 !important;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
}

.sp-sticky-atc__qty-input {
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: #333;
	-moz-appearance: textfield;
}

.sp-sticky-atc__qty-input::-webkit-outer-spin-button,
.sp-sticky-atc__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Tlačidlo */
.sp-sticky-atc__btn,
.sp-sticky-atc__btn:hover,
.sp-sticky-atc__btn:focus {
	flex: 0 0 auto;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #403A60 !important;
	color: #fff !important;
	/* Rovnaké písmo ako hlavné tlačidlo (.sp-single-product__add-to-cart-btn): Bronova 15px 700. */
	font-family: 'Bronova', sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	box-shadow: 0 0 8px rgba(64, 58, 96, 0) !important;
	transition: box-shadow 0.2s ease-in-out, background-color 0.15s ease;
}

.sp-sticky-atc__btn:hover {
	box-shadow: 0 0 8px rgba(64, 58, 96, 0.8) !important;
}

/* Výber variantu v lište (len desktop). */
.sp-sticky-atc__variants {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	max-width: 360px;
}

.sp-sticky-atc__variant-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sp-sticky-atc__variant-option,
.sp-sticky-atc__variant-option:hover,
.sp-sticky-atc__variant-option:focus {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 12px !important;
	border: 2px solid #e6e4ef !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #403A60 !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: border-color 0.15s ease;
}

.sp-sticky-atc__variant-option.has-image,
.sp-sticky-atc__variant-option.has-image:hover,
.sp-sticky-atc__variant-option.has-image:focus {
	padding-left: 4px !important;
}

.sp-sticky-atc__variant-option:hover {
	border-color: #b9b4d4 !important;
}

.sp-sticky-atc__variant-option.is-active {
	border-color: #403A60 !important;
	background: #f4f3f9 !important;
}

.sp-sticky-atc__variant-option img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.sp-sticky-atc__btn svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.sp-sticky-atc__btn svg path {
	fill: #fff;
}

.sp-sticky-atc__btn.is-variant-needed {
	background: #fff !important;
	color: #403A60 !important;
	border: 2px solid #403A60 !important;
}

.sp-sticky-atc__btn.is-variant-needed svg path {
	fill: #403A60;
}

.sp-sticky-atc__btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.sp-sticky-atc__btn.is-added {
	background: #2e8b57 !important;
}

/* Loader */
.sp-sticky-atc__loader {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sp-sticky-atc-spin 0.7s linear infinite;
}

.sp-sticky-atc__btn.is-loading .sp-sticky-atc__loader {
	display: inline-block;
}

.sp-sticky-atc__btn.is-loading svg,
.sp-sticky-atc__btn.is-loading .sp-sticky-atc__btn-text {
	display: none;
}

@keyframes sp-sticky-atc-spin {
	to { transform: rotate(360deg); }
}

/* Cookiebot widget (ikona vľavo dole) sa pri zobrazenej lište posunie nad ňu, s prechodom. */
#CookiebotWidget {
	transition: transform 0.25s ease !important;
}

@media (max-width: 767px) {
	body.sp-sticky-atc-open #CookiebotWidget {
		transform: translateY(-78px) !important;
	}
}

@media (min-width: 768px) and (max-width: 1320px) {
	body.sp-sticky-atc-open #CookiebotWidget {
		transform: translateY(-112px) !important;
	}
}

/* --- Tablet / mobil -------------------------------------------------------- */

@media (max-width: 1023px) {
	.sp-sticky-atc__inner {
		gap: 12px;
	}

	.sp-sticky-atc__variants {
		display: none;
	}

	.sp-sticky-atc__rating,
	.sp-sticky-atc__vat {
		display: none;
	}
}

@media (max-width: 767px) {
	.sp-sticky-atc {
		padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
	}

	/* Mobil: obrázok | názov + cena pod ním | tlačidlo (ako v návrhu). */
	.sp-sticky-atc__inner {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		column-gap: 10px;
		row-gap: 2px;
		align-items: center;
		padding: 8px 8px 8px 10px;
		border-radius: 20px;
	}

	.sp-sticky-atc__thumb {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.sp-sticky-atc__info {
		grid-column: 2;
		grid-row: 1;
		gap: 0;
	}

	.sp-sticky-atc__price {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
	}

	.sp-sticky-atc__btn,
	.sp-sticky-atc__btn:hover,
	.sp-sticky-atc__btn:focus {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	/* V meta ostáva len názov variantu; hodnotenie a dostupnosť sú v detaile. */
	.sp-sticky-atc__meta > :not(.sp-sticky-atc__variant) {
		display: none;
	}

	.sp-sticky-atc__thumb {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	/* Názov môže mať 2 riadky, aby ho tlačidlo neorezalo na pár písmen. */
	.sp-sticky-atc__title {
		font-size: 13px;
		line-height: 1.2;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.sp-sticky-atc__meta {
		gap: 4px 10px;
		font-size: 11px;
	}

	/* Na mobile množstvo riadi hlavný formulár, v lište by nebolo miesto. */
	.sp-sticky-atc__qty {
		display: none;
	}

	.sp-sticky-atc__price {
		flex-direction: row;
		align-items: center;
	}

	.sp-sticky-atc__amount {
		font-size: 16px;
	}

	.sp-sticky-atc__amount del {
		display: none;
	}

	.sp-sticky-atc__btn,
	.sp-sticky-atc__btn:hover,
	.sp-sticky-atc__btn:focus {
		height: 44px;
		padding: 0 12px !important;
		gap: 7px;
		font-size: 12px !important;
	}

	/* Výber variantu na mobile nie je v lište – tlačidlo odroluje k variantom. */
	.sp-sticky-atc__variants {
		display: none;
	}

	.sp-sticky-atc__btn svg {
		width: 16px;
		height: 16px;
		flex-basis: 16px;
	}
}


/* =========================================================================
 * 7. Fixná hlavička
 *    Customizer má `.sp-header { position: initial !important }`, preto vyššia
 *    špecificita + !important. Markup hlavičky sa nemení.
 * ====================================================================== */

/* Desktop: triedu sp-header-stuck pridáva js/sp-theme.js po odrolovaní pod hlavičku. */
html.sp-header-stuck #masthead.sp-header {
	position: fixed !important;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 9998;
	background: #fff;
	box-shadow: 0 6px 24px rgba(64, 58, 96, 0.14) !important;
}

/* Nižšie obrazovky (napr. MacBook 14", ~800 px výšky okna): prilepená hlavička je kompaktná
   – 76 px namiesto 125 px (Customizer), menšie logo, menu v jednom riadku, vyhľadávanie / účet / košík 46 px.
   Spacer drží pôvodnú výšku (meria sa pred prilepením), takže obsah neposkočí. */
@media (min-width: 768px) and (max-height: 900px) {
	html.sp-header-stuck #masthead .sp-header__inner {
		height: 76px !important;
	}

	html.sp-header-stuck #masthead .sp-header__logo img {
		width: auto !important;
		height: 46px !important;
		max-height: 46px !important;
	}

	html.sp-header-stuck #masthead .sp-header__menu .menu > li > a {
		padding-top: 12px !important;
		padding-bottom: 12px !important;
		white-space: nowrap;
	}

	/* Vyhľadávanie, účet a košík: jednotná výška 46 px (tlačidlo lupy nesmie trčať spoza poľa). */
	html.sp-header-stuck #masthead .sp-header__search input[type="search"] {
		height: 46px !important;
		padding-top: 11px !important;
		padding-bottom: 11px !important;
	}

	html.sp-header-stuck #masthead .sp-header__search button[type="submit"] {
		width: 46px !important;
		height: 46px !important;
		background-size: 20px auto !important;
	}

	html.sp-header-stuck #masthead .sp-header__user,
	html.sp-header-stuck #masthead .sp-header__user a {
		width: 46px !important;
		height: 46px !important;
	}

	/* SVG ikony účtu sa na webe vypisuje bez viewBox – zmena width/height by ju orezala,
	   preto ostáva 50×50 a zmenší sa transformom na 46×46. */
	html.sp-header-stuck #masthead .sp-header__user svg {
		display: block;
		width: 50px !important;
		height: 50px !important;
		transform: scale(0.92);
		transform-origin: 0 0;
	}

	html.sp-header-stuck #masthead .sp-header__cart,
	html.sp-header-stuck #masthead .sp-header__cart .site-header-cart,
	html.sp-header-stuck #masthead .sp-header__cart .site-header-cart > li,
	html.sp-header-stuck #masthead #site-header-cart .cart-contents {
		height: 46px !important;
	}

	html.sp-header-stuck #masthead #site-header-cart .cart-contents {
		line-height: 46px !important;
	}
}

/* Mobil: rovnaký mechanizmus, JS prilepí hlavičku hneď po odrolovaní topbaru.
   Otvorené vyhľadávanie sa vtedy pozicuje voči hlavičke, nie voči stránke. */
@media (max-width: 767px) {
	/* Nižšia hlavička so zaoblenými spodnými rohmi (podľa návrhu). */
	#masthead.sp-header {
		border-radius: 0 0 22px 22px;
		box-shadow: 0 8px 24px rgba(64, 58, 96, 0.14) !important;
		background: #fff;
	}

	#masthead .sp-header__inner {
		height: 92px;
	}

	#masthead .sp-header__search.is-mobile-open {
		height: 92px;
	}

	/* Hlavička je vždy pozicovaná (relative / fixed), takže rozbalené menu aj otvorené
	   vyhľadávanie sa pozicujú voči nej a sedia tesne pod ňou v oboch stavoch.
	   (Customizer: .handheld-navigation top:167px = starý topbar + stará výška hlavičky.) */
	#masthead.sp-header {
		position: relative !important;
	}

	#masthead .sp-header__search.is-mobile-open {
		top: 0;
	}

	#masthead .handheld-navigation {
		top: 92px;
	}

	/* Otvorené menu: hlavička bez zaoblených spodných rohov (menu na ňu priamo nadväzuje).
	   Triedu sp-menu-open pridáva js/sp-theme.js; :has() je záloha pre prípad bez JS. */
	#masthead.sp-header.sp-menu-open,
	#masthead.sp-header:has(.main-navigation.toggled) {
		border-radius: 0;
	}
}


/* =========================================================================
 * 8. Košík (woocommerce/cart/cart.php + includes/cart-page.php)
 * ====================================================================== */

.sp-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 30px;
	align-items: start;
	margin-bottom: 40px;
}

.sp-cart__main {
	min-width: 0;
	background: #fff;
	border-radius: 25px;
	padding: 22px 24px 18px;
}

/* Kompaktnejšia tabuľka: menšie odsadenia, bez spodnej medzery z WooCommerce table.cart. */
.sp-cart .shop_table.cart {
	margin: 0 !important;
}

.sp-cart .shop_table.cart th,
.sp-cart .shop_table.cart td {
	padding: 10px 8px !important;
}

.sp-cart .shop_table.cart thead th {
	padding-top: 0 !important;
}

.sp-cart .shop_table.cart tr:last-child td {
	border-bottom: 0 !important;
}

/* Riadok s Update cart (JS naň klikne cez trigger, display:none mu nevadí; nonce input sa odosiela). */
.sp-cart .sp-cart__actions-row {
	display: none !important;
}

.sp-cart__side {
	min-width: 0;
}

/* Info panely nad tabuľkou. */
.sp-cart-panels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 18px;
}

.sp-cart-panel {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px 12px 12px;
	background: #f4f3f9;
	border-radius: 14px;
	min-width: 0;
}

.sp-cart-panel__icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: #403A60;
}

.sp-cart-panel__icon svg {
	width: 18px;
	height: 18px;
}

.sp-cart-panel__body {
	flex: 1 1 auto;
	min-width: 0;
}

.sp-cart-panel__text {
	font-size: 13px;
	line-height: 1.35;
	color: #403A60;
	margin-bottom: 8px;
}

.sp-cart-panel__text strong {
	font-weight: 700;
}

.sp-cart-panel__text .woocommerce-Price-amount {
	font-weight: 700;
}

.sp-cart-panel__bar {
	height: 6px;
	border-radius: 999px;
	background: #e3e0ee;
	overflow: hidden;
}

.sp-cart-panel__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #403A60;
	transition: width 0.3s ease;
}

.sp-cart-panel.is-complete .sp-cart-panel__bar span {
	background: #2e8b57;
}

/* Sumár vpravo (Storefront dáva .cart_totals width 48% + float). */
.sp-cart__side .cart-collaterals,
.sp-cart__side .cart_totals {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.sp-cart__side .cart-collaterals::after {
	content: "";
	display: block;
	clear: both;
}

/* Jeden biely box: kupón hore, sumár pod ním. */
.sp-cart__box {
	background: #fff;
	border-radius: 25px;
	overflow: hidden;
}

.sp-cart__side .cart_totals {
	padding: 26px 30px 30px !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-sizing: border-box;
}

.sp-cart__side .cart_totals h2 {
	font-size: 26px;
	margin: 0 0 18px;
}

.sp-cart__side .cart_totals table {
	margin-bottom: 20px;
}

.sp-cart__side .cart_totals table th,
.sp-cart__side .cart_totals table td {
	padding: 12px 10px;
	vertical-align: middle;
}

.sp-cart__side .cart_totals .cart-subtotal td {
	background: #f7f6fb;
	border-radius: 10px;
}

.sp-cart__side .cart_totals .order-total td {
	font-weight: 700;
}

.sp-cart__side .cart_totals .order-total .includes_tax {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #403A60;
}

.sp-cart__side .wc-proceed-to-checkout {
	padding: 0;
	margin: 0;
}

.sp-cart__side .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	margin: 0;
	text-align: center;
	font-size: 15px !important;
	padding: 16px 20px !important;
}

/* Kupón nad sumárom, oddelený linkou. */
.sp-cart__coupon {
	margin: 0;
	padding: 24px 30px 22px;
	border-bottom: 1px solid #e6e4ef;
}

.sp-cart__coupon-label {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: #403A60;
}

.sp-cart__coupon-row {
	display: flex;
	gap: 8px;
}

.sp-cart__coupon-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	padding: 0 16px !important;
	border: 1px solid #e6e4ef !important;
	border-radius: 999px !important;
	background: #f7f6fb !important;
	box-shadow: none !important;
	font-size: 14px;
}

.sp-cart__coupon-btn,
.sp-cart__coupon-btn:hover,
.sp-cart__coupon-btn:focus {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #e9e6f3 !important;
	color: #403A60 !important;
	font-weight: 700;
	font-size: 14px;
	box-shadow: none !important;
	cursor: pointer;
}

.sp-cart__coupon-btn:hover {
	background: #dcd8ec !important;
}

/* Odporúčané produkty – carousel. */
.sp-cart-upsells {
	margin: 0 0 40px;
}

.sp-cart-upsells__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
}

.sp-cart-upsells__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #403A60;
}

.sp-cart-upsells__nav {
	display: flex;
	gap: 8px;
}

.sp-cart-upsells__arrow,
.sp-cart-upsells__arrow:hover,
.sp-cart-upsells__arrow:focus {
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border: 1px solid #e6e4ef !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #403A60 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none !important;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.sp-cart-upsells__arrow:hover {
	border-color: #403A60 !important;
}

.sp-cart-upsells__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.sp-cart-upsells__arrow svg {
	width: 18px;
	height: 18px;
}

.sp-cart-upsells__arrow--prev svg {
	transform: rotate(180deg);
}

/* Pred inicializáciou Owl zobraziť prvé 3 karty v riadku (bez preblikávania). */
.sp-cart-upsells__carousel:not(.owl-loaded) {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.sp-cart-upsells__carousel:not(.owl-loaded) .sp-cart-upsells__item:nth-child(n+5) {
	display: none;
}

.sp-cart-upsells__item {
	min-width: 0;
}

/* Owl oreže stage; padding + záporný margin nechajú miesto na hover efekt kariet (tieň, zväčšenie,
   pill). Vodorovná rezerva (18px) je menšia než medzera medzi kartami (20px), takže susedné karty
   nevykukujú a tieň krajných kariet je viditeľný. */
.sp-cart-upsells .owl-stage-outer {
	padding: 24px 18px;
	margin: -24px -18px;
	width: calc(100% + 36px);
	box-sizing: border-box;
}

.sp-cart-upsells__item .sp-product-card {
	height: 100%;
}

/* --- Tablet / mobil ------------------------------------------------------ */

@media (max-width: 1100px) {
	.sp-cart {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 20px;
	}
}

/* Tablet: medzera kariet 16px → vodorovná rezerva 14px. */
@media (min-width: 768px) and (max-width: 1023px) {
	.sp-cart-upsells .owl-stage-outer {
		padding: 24px 14px;
		margin: -24px -14px;
		width: calc(100% + 28px);
	}
}

@media (max-width: 900px) {
	.sp-cart {
		grid-template-columns: 1fr;
	}

	.sp-cart__main {
		padding: 20px;
	}

	.sp-cart-panels {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.sp-cart-upsells__carousel:not(.owl-loaded) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sp-cart-upsells__carousel:not(.owl-loaded) .sp-cart-upsells__item:nth-child(n+3) {
		display: none;
	}

	.sp-cart__box {
		border-radius: 18px;
	}
}

@media (max-width: 767px) {
	.sp-cart__main {
		padding: 14px 14px 10px;
		border-radius: 18px;
	}

	.sp-cart .shop_table.cart td {
		padding: 8px 6px !important;
	}

	/* Mobil: medzera 10px → vodorovná rezerva 8px. */
	.sp-cart-upsells .owl-stage-outer {
		padding: 16px 8px;
		margin: -16px -8px;
		width: calc(100% + 16px);
	}

	.sp-cart-panel {
		padding: 10px 12px;
		border-radius: 12px;
	}

	.sp-cart-panel__text {
		font-size: 12px;
	}

	.sp-cart__side .cart_totals {
		padding: 20px !important;
		border-radius: 18px !important;
	}

	.sp-cart__side .cart_totals h2 {
		font-size: 22px;
	}

	.sp-cart__coupon {
		padding: 18px 20px 16px;
	}

	.sp-cart-upsells__title {
		font-size: 20px;
	}

	.sp-cart-upsells__carousel:not(.owl-loaded) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.sp-cart-upsells__carousel:not(.owl-loaded) .sp-cart-upsells__item:nth-child(n+3) {
		display: none;
	}
}


/* =========================================================================
 * 9. Detail produktu (woocommerce/content-single-product.php)
 *    Desktop: pravý stĺpec (.sp-single-product__content) je sticky v rámci bloku
 *    dvoch stĺpcov; odsadenie počíta js/sp-theme.js (--sp-sticky-top).
 *    Mobil/tablet: nadpis → recenzie → galéria → obsah pravej strany → videá
 *    → videá od lekárov → popis. Markup sa nemení (display: contents + order).
 * ====================================================================== */

@media (min-width: 1024px) {
	/* overflow:hidden na obaloch (Customizer) by sticky vyradil – clip oreže rovnako, ale sticky nechá fungovať. */
	.single-product #page {
		overflow: clip !important;
		overflow-x: clip !important;
		overflow-y: visible !important;
	}

	.single-product .sp-single-product {
		overflow: clip !important;
	}

	.sp-single-product__container {
		align-items: flex-start;
	}

	.sp-single-product__content {
		position: -webkit-sticky;
		position: sticky;
		top: var(--sp-sticky-top, 145px);
	}
}

@media (max-width: 1023px) {
	.sp-single-product__container {
		display: flex !important;
		flex-direction: column !important;
	}

	.sp-single-product__gallery,
	.sp-single-product__content {
		display: contents !important;
	}

	.sp-single-product__content > * {
		order: 10;
	}

	.sp-single-product__gallery > * {
		order: 4;
		margin-bottom: 20px;
	}

	.sp-single-product__title {
		order: 1;
	}

	.sp-single-product__rating {
		order: 2;
		margin-bottom: 16px;
	}

	/* Zľavový štítok: obal galérie už nie je pozicovaný, preto ako pilulka nad galériou. */
	.sp-single-product__discount-badge {
		order: 3;
		position: static !important;
		align-self: flex-start;
		margin: 0 0 12px;
	}

	.sp-single-product__video {
		order: 20;
	}

	.sp-single-product__doctor-videos,
	.sp-doctor-videos {
		order: 21;
	}

	/* Medzery: kontajner má flex gap 40px (Customizer), ktorý sa v stĺpci uplatní medzi každým blokom –
	   vypnúť zvislú medzeru a nastaviť menšie okraje jednotlivým blokom. */
	.sp-single-product__container {
		row-gap: 0 !important;
	}

	.sp-single-product__title {
		margin-bottom: 6px !important;
	}

	.single-product div.product .sp-single-product__rating,
	.single-product div.product .woocommerce-product-rating {
		margin-top: 0 !important;
		margin-bottom: 10px !important;
	}

	.sp-single-product__gallery > .woocommerce-product-gallery {
		margin-bottom: 18px !important;
	}

	.sp-single-product__description {
		margin-bottom: 14px !important;
	}

	.sp-single-product__quantity-discount {
		margin-bottom: 14px !important;
	}

	.sp-akcia-note {
		margin-bottom: 12px !important;
	}

	.sp-single-product__purchase-info {
		margin-bottom: 12px !important;
	}

	.sp-single-product__add-to-cart {
		margin-bottom: 16px !important;
	}

	.sp-single-product__video {
		margin-bottom: 0 !important;
	}

	.sp-single-product__video:not(:has(*)) {
		display: none;
	}

	.sp-doctor-videos {
		margin-top: 8px !important;
		margin-bottom: 8px !important;
	}

	.sp-single-product__accordions {
		margin-top: 12px !important;
	}

	/* Akordeón (Popis…): väčší nadpis aj ikona +/−. */
	.single-product .sp-single-product__accordions button.sp-single-product__accordion-header {
		font-size: 18px !important;
		padding: 18px 0 !important;
	}

	.sp-single-product__accordion-icon {
		font-size: 24px !important;
		line-height: 1 !important;
	}
}


/* =========================================================================
 * 10. Zákaznícke videá (includes/customer-videos.php)
 * ====================================================================== */

/* Sekcia „Čo hovoria zákazníci“ – rovnaký vzhľad ako lekári, bez mien. */
.sp-doctor-videos--customers .sp-doctor-videos__meta {
	display: none;
}

.sp-single-product__video--customers {
	margin-top: 30px;
}

/* Video v galérii (2. položka): viditeľné aj na desktope, kde sú ostatné videá galérie skryté. */
@media (min-width: 769px) {
	.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper .sp-product-gallery__video.sp-product-gallery__video--featured {
		display: block !important;
	}
}


/* Videá v galérii (aj na výšku 9:16): rámček má výšku okna galérie (štvorec ako obrázky),
   video je celé a vycentrované. Inline štýl videa má height:auto, preto !important. */
.woocommerce-product-gallery .sp-product-gallery__video .sp-product-gallery__video-element {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: transparent;
}


/* =========================================================================
 * 11. Fotky k recenziám (includes/review-photos.php)
 * ====================================================================== */

/* Natívny input je skrytý (prístupný cez tlačidlo). */
.sp-review-upload__input {
	position: absolute !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}

.sp-review-upload {
	position: relative;
}

/* Tlačidlo „Pridať fotku“ – čiarkovaný rámik vo farbách webu. */
.sp-review-upload__btn,
.sp-review-upload__btn:hover,
.sp-review-upload__btn:focus {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 18px !important;
	border: 2px dashed #b9b4d4 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #403A60 !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sp-review-upload__btn:hover {
	border-color: #403A60 !important;
	background: #f7f6fb !important;
}

.sp-review-upload__btn svg {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

.sp-review-upload__hint {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	color: #6f6c84;
}

/* Zoznam vybraných fotiek s krížikom na odstránenie. */
.sp-review-upload__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 10px;
}

.sp-review-upload__list:empty {
	display: none;
}

.sp-review-upload__thumb {
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: visible;
}

.sp-review-upload__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #e6e4ef;
	background: #f4f3f9;
}

.sp-review-upload__remove,
.sp-review-upload__remove:hover,
.sp-review-upload__remove:focus {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px !important;
	height: 24px !important;
	padding: 0 !important;
	border: 2px solid #fff !important;
	border-radius: 50% !important;
	background: #403A60 !important;
	color: #fff !important;
	font-size: 16px !important;
	line-height: 20px !important;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(64, 58, 96, 0.3) !important;
}

/* Miniatúry v karte recenzie. */
.sp-review-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 4px;
}

.sp-review-photos__item {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e6e4ef;
	background: #f4f3f9;
	transition: transform 0.15s ease;
}

.sp-review-photos__item:hover {
	transform: scale(1.04);
}

.sp-review-photos__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Lightbox (js/sp-theme.js). */
.sp-photo-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.sp-photo-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.sp-photo-lightbox__img {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sp-photo-lightbox__close,
.sp-photo-lightbox__close:hover,
.sp-photo-lightbox__close:focus {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.15) !important;
	color: #fff !important;
	font-size: 28px !important;
	line-height: 40px !important;
	cursor: pointer;
	box-shadow: none !important;
}

body.sp-photo-lightbox-open {
	overflow: hidden;
}


/* =========================================================================
 * 12. Poďakovanie po odoslaní recenzie (woocommerce/content-single-product.php)
 * ====================================================================== */

#sp-review-form[hidden],
.sp-review-success[hidden] {
	display: none !important;
}

.sp-review-success {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	margin-top: 10px;
	padding: 28px 30px;
	border-radius: 20px;
	background: #F1EFF6;
}

.sp-review-success__icon {
	flex: 0 0 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #403A60;
	color: #fff;
}

.sp-review-success__icon svg {
	width: 26px;
	height: 26px;
}

.sp-review-success__title {
	margin: 0 !important;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: #403A60;
}

/* Chybová správa (email bez objednávky a pod.) – rovnaká karta, červená. */
.sp-review-success--error {
	margin-top: 18px;
	background: #FDEDED;
}

.sp-review-success--error .sp-review-success__icon {
	background: #C62828;
}

.sp-review-success--error .sp-review-success__title {
	font-size: 18px;
	color: #A61B1B;
}

@media (max-width: 768px) {
	/* Meno a email pod sebou. */
	.sp-single-product__form-groups {
		flex-direction: column !important;
		gap: 0 !important;
	}

	.sp-single-product__form-groups > .sp-single-product__form-group,
	.sp-single-product__form-groups > .sp-single-product__form-group input {
		width: 100%;
	}

	.sp-review-success {
		gap: 14px;
		padding: 22px 20px;
	}

	.sp-review-success__icon {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.sp-review-success__icon svg {
		width: 22px;
		height: 22px;
	}

	.sp-review-success--error .sp-review-success__title {
		font-size: 16px;
	}

	.sp-review-success__title {
		font-size: 19px;
	}
}


/* =========================================================================
 * 13. Logá dopravcov (includes/shipping-images.php – podľa ID sadzby: RO FANbox, Cargus, HU Expressone; podľa názvu: FAN Courier, GLS)
 * ====================================================================== */

/* Obdĺžnikové logá: pevná výška, šírka podľa pomeru strán (štvorcové ikony ostávajú 40×40). */
.shipping_method_image_wrap.shipping_method_image_wrap--brand img.shipping_method_image--brand {
	width: auto !important;
	max-width: 64px !important;
	height: 28px !important;
	object-fit: contain;
}

.shipping_method_image_wrap.shipping_method_image_wrap--brand img.shipping_method_image--gls {
	height: 24px !important;
	border-radius: 4px;
}

/* RO výdajné miesta (podľa ID sadzby): FANbox – štvorcová ikona, Cargus – logo s textom. */
.shipping_method_image_wrap.shipping_method_image_wrap--brand img.shipping_method_image--fanbox {
	height: 26px !important;
}

.shipping_method_image_wrap.shipping_method_image_wrap--brand img.shipping_method_image--cargus {
	height: 32px !important;
}

/* Zoznam dopráv (košík aj pokladňa): logá v rovnako širokom rámiku na stred, aby text začínal
   vždy na rovnakom mieste; cena sa nezalamuje; ikony poskytovateľov z pluginu VP Woo Pont
   (výdajné miesta) vpravo sa nezobrazujú – stačí logo vľavo. */
.woocommerce-shipping-methods .shipping_method_image_wrap {
	flex: 0 0 60px !important;
	width: 60px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
}

.woocommerce-shipping-methods .shipping_method_custom_box {
	flex-shrink: 0 !important;
}

.woocommerce-shipping-methods .shipping_method_image_wrap img {
	max-width: 60px !important;
	margin: 0 !important;
}

/* FAN Courier logo má v obrázku veľký okraj – väčšia výška, aby bolo čitateľné. */
.shipping_method_image_wrap.shipping_method_image_wrap--brand img.shipping_method_image--fan-courier {
	height: 34px !important;
}

.woocommerce-shipping-methods .woocommerce-Price-amount,
.woocommerce-shipping-methods .lhms-free-shipping-label {
	white-space: nowrap;
}

/* VP Woo Pont (výdajné miesta) má cenu vnútri vlastného labelu – label na celú šírku, cena vpravo
   ako pri ostatných dopravách. */
.woocommerce-shipping-methods .vp-woo-pont-shipping-method-label {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.woocommerce-shipping-methods .vp-woo-pont-shipping-method-label-price {
	margin-left: auto;
	white-space: nowrap;
	font-weight: 700;
}

.woocommerce-shipping-methods .vp-woo-pont-shipping-method-icons {
	display: none !important;
}

/* HU Expressone (flat_rate:33) – široké logo: nižšie, širší limit. */
.shipping_method_image_wrap.shipping_method_image_wrap--brand img.shipping_method_image--expressone {
	height: 20px !important;
	max-width: 80px !important;
}

/* VP Woo Pont – okno s mapou nad hlavičkou (topbar má z-index 9999, prilepená hlavička 9998;
   plugin dáva oknu 1151 → hlavička prekrývala vrch mapy). */
.vp-woo-pont-modal-bg {
	z-index: 100000 !important;
}

.vp-woo-pont-modal {
	z-index: 100001 !important;
}

/* VP Woo Pont – výber výdajného miesta (woocommerce/checkout/pont.php): box pod zoznamom dopráv
   s výrazným tlačidlom; po výbere karta s miestom a tlačidlom „Módosítás“. */
.sp-pont-pick {
	margin: 14px 0 4px;
	padding: 14px;
	border: 1px solid #DCD9EC;
	border-radius: 10px;
	background: #F5F4F9;
}

.sp-pont-pick-row > td {
	padding: 0 !important;
	border: 0 !important;
}

.sp-pont-pick .sp-pont-pick__btn,
.sp-pont-pick .sp-pont-pick__btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 10px 18px;
	border-radius: 50px;
	background: #403A60;
	color: #fff !important;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: background-color .15s ease;
}

.sp-pont-pick .sp-pont-pick__btn:hover,
.sp-pont-pick .sp-pont-pick__btn:focus-visible {
	background: #2E2947;
	color: #fff !important;
}

.sp-pont-pick .sp-pont-pick__btn:focus-visible,
.sp-pont-pick .sp-pont-pick__change:focus-visible {
	outline: 3px solid #8F89B8;
	outline-offset: 2px;
}

.sp-pont-pick .sp-pont-pick__icon {
	flex: 0 0 auto;
}

.sp-pont-pick .sp-pont-pick__selected {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sp-pont-pick .sp-pont-pick__selected > i {
	flex: 0 0 auto;
}

.sp-pont-pick .sp-pont-pick__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	line-height: 1.4;
}

.sp-pont-pick .sp-pont-pick__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6B6785;
}

.sp-pont-pick .sp-pont-pick__info strong {
	color: #403A60;
	font-size: 15px;
}

.sp-pont-pick .sp-pont-pick__change,
.sp-pont-pick .sp-pont-pick__change:visited {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 2px solid #403A60;
	border-radius: 50px;
	background: #fff;
	color: #403A60 !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	white-space: nowrap;
}

.sp-pont-pick .sp-pont-pick__change:hover {
	background: #403A60;
	color: #fff !important;
}

@media (max-width: 480px) {
	.sp-pont-pick .sp-pont-pick__selected {
		flex-wrap: wrap;
	}

	.sp-pont-pick .sp-pont-pick__change {
		width: 100%;
		text-align: center;
	}
}


/* =========================================================================
 * 14. Články (blog) – hierarchia nadpisov v obsahu
 *    Customizer dáva h2 aj h3 rovnako (40 px desktop / 30 px mobil). H2 ostáva,
 *    h3 < h2, h4 < h3, h5 < h4. Len obsah článku (.sp-blog-post-content).
 * ====================================================================== */

.single-post .sp-blog-post-content h3 {
	font-size: 30px;
	line-height: 1.25;
}

.single-post .sp-blog-post-content h4 {
	font-size: 24px;
	line-height: 1.3;
}

.single-post .sp-blog-post-content h5 {
	font-size: 20px;
	line-height: 1.35;
}

@media (max-width: 768px) {
	.single-post .sp-blog-post-content h3 {
		font-size: 24px;
	}

	.single-post .sp-blog-post-content h4 {
		font-size: 20px;
	}

	.single-post .sp-blog-post-content h5 {
		font-size: 18px;
	}
}


/* =========================================================================
 * 15. Akciový popup (includes/akcia.php) – krížik
 *    Elementor kit štýluje všetky <button> (fialové pozadie, malé písmo), krížik tak bol
 *    malý fialový ovál a dal sa prehliadnuť. Pevný biely kruh s tmavým ×.
 * ====================================================================== */

.sp-akcia-popup .sp-akcia-popup__close,
.sp-akcia-popup .sp-akcia-popup__close:hover,
.sp-akcia-popup .sp-akcia-popup__close:focus {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 3 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #1f1d2b !important;
	font-family: Arial, sans-serif !important;
	font-size: 28px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
	cursor: pointer;
}

.sp-akcia-popup .sp-akcia-popup__close:hover {
	background: #f1eff6 !important;
}


/* =========================================================================
 * 16. Produktové karty – hviezdičky bez recenzií
 *    sp_display_product_stars() pridá triedu --empty; skryté cez visibility, aby ostalo
 *    prázdne miesto a nadpis karty sa neposunul vyššie.
 * ====================================================================== */

.sp-product-stars.sp-product-stars--empty {
	visibility: hidden;
}


/* =========================================================================
 * 17. Pätička – kontakty podľa počtu položiek (footer.php: sp-foot__contacts--count-N)
 *    Bez telefónu / adresy ostávali v mriežke na 4 stĺpce prázdne bunky. Na desktope je kartička
 *    s 1–2 kontaktmi len na šírku obsahu a vpravo.
 * ====================================================================== */

.sp-foot__contacts.sp-foot__contacts--count-1 {
	grid-template-columns: minmax(0, 1fr);
}

.sp-foot__contacts.sp-foot__contacts--count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-foot__contacts.sp-foot__contacts--count-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Desktop: 1–2 kontakty (napr. len 2× email) – kartička len na šírku obsahu, zarovnaná doprava. */
@media (min-width: 1101px) {
	.sp-foot__contacts.sp-foot__contacts--count-1,
	.sp-foot__contacts.sp-foot__contacts--count-2 {
		flex: 0 0 auto;
		margin-left: auto;
	}

	.sp-foot__contacts.sp-foot__contacts--count-1 {
		grid-template-columns: auto;
	}

	.sp-foot__contacts.sp-foot__contacts--count-2 {
		grid-template-columns: repeat(2, auto);
	}

	.sp-foot__contacts--count-1 .sp-foot__contact,
	.sp-foot__contacts--count-2 .sp-foot__contact {
		padding-right: 32px;
	}
}

@media (max-width: 1100px) {
	/* Tablet a mobil: 2 v riadku; tretí kontakt (z troch) cez celú šírku. */
	.sp-foot__contacts.sp-foot__contacts--count-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sp-foot__contacts--count-3 .sp-foot__contact:nth-child(3) {
		grid-column: 1 / -1;
	}
}


/* =========================================================================
 * 18. Detail produktu – doplnky (includes/product-page-extras.php, zatiaľ len admin):
 *     balíky s produktom (carousel kompaktných kariet), labely problémov v galérii,
 *     dátum doručenia za textom dostupnosti.
 * ====================================================================== */

/* Balíky – hlavička a šípky ako odporúčania v košíku (sekcia 8), vlastná kompaktná karta. */
.sp-product-bundles {
	margin: 20px 0 24px;
}

.sp-product-bundles .sp-cart-upsells__head {
	margin-bottom: 12px;
}

.sp-product-bundles .sp-cart-upsells__title {
	font-size: 18px;
	line-height: 1.25;
}

.sp-product-bundles .sp-cart-upsells__arrow,
.sp-product-bundles .sp-cart-upsells__arrow:hover,
.sp-product-bundles .sp-cart-upsells__arrow:focus {
	width: 32px;
	height: 32px;
}

.sp-product-bundles .sp-cart-upsells__arrow svg {
	width: 14px;
	height: 14px;
}

/* Rezerva pre tieň karty pri hoveri (menšia než v košíku). */
/* Bez pevnej šírky (width: auto + záporné okraje) – inak Owl rozšíri pravý stĺpec a ten sa oreže. */
.sp-product-bundles .owl-stage-outer {
	padding: 6px 6px 10px;
	margin: -6px -6px -10px;
	width: auto;
}

.sp-single-product__content {
	min-width: 0;
}

.sp-product-bundles .sp-cart-upsells__carousel:not(.owl-loaded) {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.sp-product-bundles .sp-cart-upsells__carousel:not(.owl-loaded) .sp-cart-upsells__item:nth-child(n+5) {
	display: none;
}

.sp-bundle-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 8px 8px 10px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e6e4ef;
	border-radius: 12px;
	text-align: center;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sp-bundle-card:hover {
	border-color: #cfcbe0;
	box-shadow: 0 4px 14px rgba(64, 58, 96, 0.12);
}

.sp-bundle-card__image {
	position: relative;
	display: block;
	margin-bottom: 6px;
}

.sp-product-bundles .sp-bundle-card__image img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: contain;
	margin: 0;
	border-radius: 8px;
}

.sp-bundle-card__badge {
	position: absolute;
	top: 0;
	right: 0;
	padding: 3px 7px;
	border-radius: 999px;
	background: #403A60;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.sp-bundle-card__badge .woocommerce-Price-amount,
.sp-bundle-card__badge .woocommerce-Price-currencySymbol {
	color: inherit;
	font-weight: inherit;
}

.sp-product-bundles a.sp-bundle-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	color: #403A60;
	text-decoration: none;
}

.sp-bundle-card__price {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #403A60;
}

.sp-bundle-card__price del {
	display: block;
	font-size: 11px;
	font-weight: 400;
	opacity: 0.6;
}

.sp-bundle-card__price ins {
	text-decoration: none;
}

.sp-product-bundles .sp-add-to-cart-btn.sp-bundle-card__btn {
	display: block !important;
	width: 100%;
	margin-top: auto;
	padding: 7px 6px !important;
	font-size: 12px !important;
	line-height: 1.2;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.sp-product-bundles .sp-bundle-card__image img {
		height: 84px;
	}

	.sp-bundle-card {
		padding: 6px 6px 8px;
	}

	.sp-product-bundles a.sp-bundle-card__title {
		font-size: 12px;
	}

	.sp-bundle-card__price {
		font-size: 13px;
	}

	.sp-product-bundles .sp-add-to-cart-btn.sp-bundle-card__btn {
		padding: 6px 4px !important;
		font-size: 11px !important;
	}

	.sp-product-bundles .sp-cart-upsells__carousel:not(.owl-loaded) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.sp-product-bundles .sp-cart-upsells__carousel:not(.owl-loaded) .sp-cart-upsells__item:nth-child(n+4) {
		display: none;
	}
}

/* Labely problémov: ľavý horný roh hlavného obrázka (JS presunie do .woocommerce-product-gallery). */
.sp-single-product__problemy-labels {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 6;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sp-single-product__problemy-labels:not(.is-placed) {
	visibility: hidden;
}

.sp-single-product__problemy-labels .sp-product-card__problemy-label img.sp-product-card__problemy-label-img {
	width: 56px;
	height: 56px !important;
	object-fit: cover !important;
	border-radius: 50% !important;
	border: 1px solid #403A60;
}

.sp-single-product__problemy-labels .sp-product-card__problemy-label-text {
	min-height: 62px;
	padding-left: 76px;
	max-width: 280px;
}

@media (max-width: 767px) {
	.sp-single-product__problemy-labels {
		top: 12px;
		left: 12px;
		gap: 6px;
	}

	.sp-single-product__problemy-labels .sp-product-card__problemy-label img.sp-product-card__problemy-label-img {
		width: 40px;
		height: 40px !important;
	}

	.sp-single-product__problemy-labels .sp-product-card__problemy-label-text {
		min-height: 44px;
		padding: 5px 12px 5px 52px;
		max-width: 220px;
		font-size: 13px;
	}
}

/* Dátum doručenia: „Odosielame ihneď (doručíme 16.11.)“ v jednom riadku, rovnaká zelená.
   Zmenšenie textu dostupnosti len tam, kde sa dátum vypisuje (teraz len admin). */
.sp-single-product__availability-wrapper:has(.sp-delivery-date) .sp-single-product__availability {
	display: inline;
}

.sp-single-product__availability-wrapper:has(.sp-delivery-date) .sp-single-product__availability-status,
.sp-delivery-date {
	font-size: 17px;
	line-height: 1.35;
}

.sp-delivery-date {
	display: inline;
	color: #008500;
}

@media (max-width: 767px) {
	.sp-single-product__availability-wrapper:has(.sp-delivery-date) .sp-single-product__availability-status,
	.sp-delivery-date {
		font-size: 14px;
	}
}

/* Variant vypredaný (JS zmení dostupnosť) → dátum skryť. */
.sp-single-product__availability:has(.sp-single-product__availability-status--out-of-stock) + .sp-delivery-date {
	display: none;
}

/* Cena a dostupnosť bez popiskov, väčšia cena, ikonka doručenia – len pri body.sp-pp-extras (admin). */
.sp-pp-extras .sp-single-product__price-label,
.sp-pp-extras .sp-single-product__availability-label {
	display: none;
}

.sp-pp-extras .sp-single-product__purchase-info {
	align-items: center;
}

.sp-pp-extras .sp-single-product__price .amount {
	font-size: 40px;
	line-height: 1.1;
}

.sp-pp-extras .sp-single-product__price del .amount {
	font-size: 18px;
}

.sp-pp-extras .sp-single-product__availability-wrapper:has(.sp-delivery-date) .sp-single-product__availability::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-right: 6px;
	vertical-align: -5px;
	background-color: #008500;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h14v12H1z'/%3E%3Cpath d='M15 8h4l4 4v4h-8z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5' fill='white'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h14v12H1z'/%3E%3Cpath d='M15 8h4l4 4v4h-8z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5' fill='white'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sp-pp-extras .sp-single-product__availability:has(.sp-single-product__availability-status--out-of-stock)::before {
	display: none !important;
}

@media (max-width: 767px) {
	.sp-pp-extras .sp-single-product__price .amount {
		font-size: 30px;
	}

	.sp-pp-extras .sp-single-product__price del .amount {
		font-size: 15px;
	}

	.sp-pp-extras .sp-single-product__availability-wrapper:has(.sp-delivery-date) .sp-single-product__availability::before {
		width: 18px;
		height: 18px;
		margin-right: 4px;
		vertical-align: -4px;
	}
}


/* =========================================================================
 * 19. FAN Courier – výdajné miesta (includes/fan-courier-pickup.php, js/sp-fan-pickup.js):
 *     blok pod zvolenou metódou v pokladni + okno s mapou (Leaflet) a zoznamom.
 * ====================================================================== */

.woocommerce-shipping-methods li:has(.sp-fan-pickup) {
	flex-wrap: wrap;
}

.sp-fan-pickup {
	flex: 0 0 100%;
	width: 100%;
	box-sizing: border-box;
	margin: 10px 0 4px;
	padding: 12px 14px;
	border: 1px solid #e6e4ef;
	border-radius: 12px;
	background: #f7f6fb;
	font-size: 14px;
	line-height: 1.4;
	color: #403A60;
}

.sp-fan-pickup__empty {
	margin: 0 0 10px;
	color: #b4231b;
	font-weight: 600;
}

.sp-fan-pickup__selected {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 10px;
}

.sp-fan-pickup__type,
.sp-fan-pickup-item__type {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	opacity: 0.7;
}

.sp-fan-pickup__schedule,
.sp-fan-pickup-item__schedule {
	font-size: 12px;
	opacity: 0.75;
}

.sp-fan-pickup .button.sp-fan-pickup__open {
	padding: 8px 14px;
	font-size: 14px;
	line-height: 1.2;
}

html.sp-fan-pickup-open,
html.sp-fan-pickup-open body {
	overflow: hidden;
}

.sp-fan-pickup-modal[hidden] {
	display: none !important;
}

.sp-fan-pickup-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sp-fan-pickup-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(32, 28, 52, 0.55);
}

.sp-fan-pickup-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	height: min(720px, 100%);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	color: #403A60;
}

.sp-fan-pickup-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #e6e4ef;
}

.sp-fan-pickup-modal .sp-fan-pickup-modal__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
}

.sp-fan-pickup-modal .sp-fan-pickup-modal__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f0f6;
	color: #403A60;
	font-size: 24px;
	line-height: 36px;
	cursor: pointer;
}

.sp-fan-pickup-modal__toolbar {
	display: flex;
	gap: 10px;
	padding: 12px 18px;
	border-bottom: 1px solid #e6e4ef;
}

.sp-fan-pickup-modal .sp-fan-pickup-modal__search {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #cfcbe0;
	border-radius: 10px;
	font-size: 16px;
}

.sp-fan-pickup-modal .sp-fan-pickup-modal__near {
	flex: 0 0 auto;
	padding: 10px 14px;
	border: 1px solid #403A60;
	border-radius: 10px;
	background: #fff;
	color: #403A60;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.sp-fan-pickup-modal__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	flex: 1 1 auto;
	min-height: 0;
}

.sp-fan-pickup-modal__map {
	min-height: 0;
	background: #eef0f3;
}

.sp-fan-pickup-modal--no-map .sp-fan-pickup-modal__body {
	grid-template-columns: minmax(0, 1fr);
}

.sp-fan-pickup-modal--no-map .sp-fan-pickup-modal__map {
	display: none;
}

.sp-fan-pickup-modal__list {
	overflow-y: auto;
	border-left: 1px solid #e6e4ef;
	-webkit-overflow-scrolling: touch;
}

.sp-fan-pickup-modal__msg {
	margin: 0;
	padding: 16px 18px;
	font-size: 14px;
	opacity: 0.8;
}

.sp-fan-pickup-modal__msg--error {
	color: #b4231b;
	opacity: 1;
}

.sp-fan-pickup-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 18px;
	border-bottom: 1px solid #efedf5;
	border-left: 4px solid transparent;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
}

.sp-fan-pickup-item:hover {
	background: #faf9fd;
}

.sp-fan-pickup-item.is-active {
	background: #f3f1fa;
	border-left-color: #403A60;
}

.sp-fan-pickup-item--paypoint .sp-fan-pickup-item__type {
	color: #0a66d8;
	opacity: 1;
}

.sp-fan-pickup-modal .button.sp-fan-pickup-item__choose,
.sp-fan-pickup-popup .button.sp-fan-pickup-popup__choose {
	align-self: flex-start;
	margin-top: 6px;
	padding: 6px 12px;
	font-size: 13px;
	line-height: 1.2;
}

.sp-fan-pickup-item:not(.is-active) .sp-fan-pickup-item__choose {
	display: none;
}

.sp-fan-pickup-popup {
	font-size: 13px;
	line-height: 1.35;
	color: #403A60;
}

.sp-fan-pickup-popup .sp-fan-pickup-item__type {
	display: block;
}

@media (max-width: 767px) {
	.sp-fan-pickup-modal {
		padding: 0;
	}

	.sp-fan-pickup-modal__dialog {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.sp-fan-pickup-modal__head,
	.sp-fan-pickup-modal__toolbar {
		padding: 10px 12px;
	}

	.sp-fan-pickup-modal .sp-fan-pickup-modal__title {
		font-size: 17px;
	}

	.sp-fan-pickup-modal__body {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 42% minmax(0, 1fr);
	}

	.sp-fan-pickup-modal--no-map .sp-fan-pickup-modal__body {
		grid-template-rows: minmax(0, 1fr);
	}

	.sp-fan-pickup-modal__list {
		border-left: 0;
		border-top: 1px solid #e6e4ef;
	}

	.sp-fan-pickup-item {
		padding: 10px 12px;
	}
}


/* =========================================================================
 * 20. Produktový popup (includes/akcia-product-popup.php) – HTML verzia akciového popupu
 *     v štýle obrázkového (tmavomodrý + zelený nadpis, biela karta „Cena | Zľava“).
 *     Základ (overlay, krížik, otváranie) zdieľa s .sp-akcia-popup (akcia.php, sekcia 15).
 * ====================================================================== */

.sp-akcia-popup--product .sp-promo {
	--sp-promo-navy: #073155;
	--sp-promo-teal: #068180;
	--sp-promo-mint: #d1ebe7;
	max-width: 580px;
	padding: 0;
	border-radius: 18px;
	background:
		radial-gradient(circle at 82% 34%, rgba(6, 129, 128, 0.16) 0, rgba(6, 129, 128, 0) 42%),
		linear-gradient(165deg, #f4fbf9 0%, #ffffff 48%, #e6f4f1 100%);
	color: var(--sp-promo-navy);
	font-family: 'Montserrat', sans-serif;
	text-align: left;
}

.sp-promo__top {
	padding: 22px 28px 0;
}

.sp-promo__logo {
	display: block;
	width: auto;
	height: 44px;
	margin: 0 auto 10px;
}

.sp-promo__hero {
	display: grid;
	grid-template-columns: 1fr 190px;
	gap: 8px;
	align-items: center;
}

.sp-promo__eyebrow {
	margin: 0 0 8px;
	color: var(--sp-promo-teal);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-akcia-popup--product .sp-promo__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: 'AvertaFinal', 'Montserrat', sans-serif;
	font-size: 46px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.sp-promo__title span {
	display: block;
}

.sp-promo__title-1 {
	color: var(--sp-promo-navy);
}

.sp-promo__title-2 {
	color: var(--sp-promo-teal);
}

.sp-promo__text {
	margin: 0;
	color: #3c4f63;
	font-size: 15px;
	line-height: 1.45;
}

.sp-promo__media {
	position: relative;
	text-align: center;
}

.sp-akcia-popup--product .sp-promo__product {
	display: block;
	width: auto;
	max-width: 100%;
	height: 250px;
	margin: 0 auto;
	object-fit: contain;
	transform: rotate(8deg);
	filter: drop-shadow(0 14px 18px rgba(7, 49, 85, 0.18));
}

.sp-promo__badge {
	position: absolute;
	top: 18px;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--sp-promo-teal);
	color: #fff;
	font-family: 'AvertaFinal', 'Montserrat', sans-serif;
	font-size: 21px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(6, 129, 128, 0.35);
	transform: rotate(-10deg);
}

.sp-promo__card {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	margin: 6px 28px 0;
	padding: 16px 20px;
	border: 1px solid var(--sp-promo-mint);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 24px rgba(7, 49, 85, 0.08);
	text-align: center;
}

.sp-promo__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.sp-promo__label {
	color: var(--sp-promo-navy);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sp-promo__divider {
	width: 1px;
	height: 64px;
	background: var(--sp-promo-mint);
}

.sp-promo__price {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 16px;
	border: 2px dashed rgba(6, 129, 128, 0.45);
	border-radius: 10px;
	line-height: 1.15;
}

.sp-akcia-popup--product .sp-promo__price del {
	color: #7b8794;
	font-size: 14px;
	font-weight: 500;
}

.sp-akcia-popup--product .sp-promo__price ins {
	color: var(--sp-promo-navy);
	font-family: 'AvertaFinal', 'Montserrat', sans-serif;
	font-size: 26px;
	font-weight: 800;
	text-decoration: none;
	background: none;
}

.sp-promo__percent {
	color: var(--sp-promo-teal);
	font-family: 'AvertaFinal', 'Montserrat', sans-serif;
	font-size: 54px;
	font-weight: 800;
	line-height: 1;
}

.sp-promo__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 18px 28px 20px;
}

.sp-akcia-popup--product .sp-promo__button,
.sp-akcia-popup--product .sp-promo__button:hover,
.sp-akcia-popup--product .sp-promo__button:focus {
	display: block;
	width: 100%;
	padding: 16px 24px;
	border-radius: 10px;
	background: var(--sp-promo-teal);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.sp-akcia-popup--product .sp-promo__button:hover,
.sp-akcia-popup--product .sp-promo__button:focus {
	background: #05696a;
}

/* Elementor kit štýluje všetky <button> (fialové pozadie) – „Teraz nie“ ako nenápadný odkaz. */
.sp-akcia-popup--product .sp-promo__dismiss,
.sp-akcia-popup--product .sp-promo__dismiss:hover,
.sp-akcia-popup--product .sp-promo__dismiss:focus {
	padding: 6px 10px !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: #6b7785 !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-decoration: underline !important;
	text-transform: none !important;
	cursor: pointer;
}

@media (max-width: 480px) {
	.sp-promo__top {
		padding: 18px 18px 0;
	}

	.sp-promo__logo {
		height: 36px;
	}

	.sp-promo__hero {
		grid-template-columns: 1fr 118px;
	}

	.sp-akcia-popup--product .sp-promo__title {
		font-size: 34px;
	}

	.sp-promo__text {
		font-size: 14px;
	}

	.sp-akcia-popup--product .sp-promo__product {
		height: 180px;
	}

	.sp-promo__badge {
		top: 4px;
		left: -8px;
		width: 58px;
		height: 58px;
		font-size: 17px;
	}

	.sp-promo__card {
		gap: 10px;
		margin: 4px 18px 0;
		padding: 14px 12px;
	}

	.sp-promo__price {
		padding: 6px 10px;
	}

	.sp-akcia-popup--product .sp-promo__price ins {
		font-size: 22px;
	}

	.sp-promo__percent {
		font-size: 42px;
	}

	.sp-promo__bottom {
		padding: 16px 18px 16px;
	}
}
