/**
 * 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
 */

/* =========================================================================
 * 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 {
	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 {
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #403A60;
}

.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--no-photo .sp-doctor-videos-lightbox__photo {
	display: none;
}

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

/* Bez fotky: úvodzovky na začiatku. */
.sp-doctor-videos-lightbox--no-photo .sp-doctor-videos-lightbox__quote {
	left: 28px;
}

.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;
}

@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--no-photo .sp-doctor-videos-lightbox__quote {
		left: 20px;
	}

	.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--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;
}

/* 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;
	}
}
