/**
 * MagicMushrooms.Space – panely, bannery, záhlaví, lišty, karty; výpis produktů i ostatní stránky.
 */

/* ==========================================================================
   1. Panel se zkosenými rohy
   ========================================================================== */

/* Vnější prvek = přechodový rámeček 1 px, vnitřní prvek = výplň. */
.mm-panel {
	--mm-cut: 22px;
	--mm-cut-shape: polygon(0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)));
	padding: 1px;
	clip-path: var(--mm-cut-shape);
	background: linear-gradient(160deg, rgba(176, 90, 255, 0.7), rgba(176, 90, 255, 0.15));
}

.mm-panel__inner {
	height: 100%;
	box-sizing: border-box;
	clip-path: var(--mm-cut-shape);
	background: rgba(22, 11, 40, 0.92);
}

.mm-panel--sm {
	position: relative;
	background: none;
}

/*
 * Skleněný panel – průhledný, rozostří pozadí stránky pod sebou.
 */
.mm-panel--glass {
	position: relative;
	background: none;
}

.mm-panel--glass .mm-panel__inner,
.mm-panel--sm .mm-panel__inner {
	background: var(--mm-glass-fill);
	-webkit-backdrop-filter: var(--mm-glass-blur);
	backdrop-filter: var(--mm-glass-blur);
}

/*
 * Rámeček se zkosenými rohy – boxy vlevo, záhlaví, lišty, karty produktů a boxy obsahu
 * ostatních stránek (sekce 11) a patičky.
 * ::before nese jeden plynulý přechod a clip-path z něj vyřízne 1px rám (vnější obrys
 * minus vnitřní obrys, evenodd), takže rovné i šikmé hrany mají stejný postupný přechod.
 * Šikmý vnitřní obrys je posunutý o √2 − 1 ≈ 0,414 px, aby měl rám všude 1 px.
 */
.mm-panel--glass,
.mm-panel--sm,
.mm-cat-hero,
.mm-bottom-bar,
.mm-card,
.mm-site .site-main > article,
.mm-site .site-main > .error-404,
.mm-site .site-main > .no-results,
.mm-site .site-main > .navigation,
.mm-site .comments-area,
.mm-site div.product .woocommerce-product-gallery,
.mm-site div.product .summary,
.mm-site .woocommerce-tabs,
.mm-site .related.products,
.mm-site .upsells.products,
.site-footer .footer-widgets,
.site-footer .site-info {
	--mm-cut: 22px;
	/* Sklo shora dolů ze 100 % do 20 % krytí. */
	--mm-glass-fill: linear-gradient(180deg, rgba(22, 11, 40, 1), rgba(22, 11, 40, 0.2));
	--mm-glass-blur: blur(14px) saturate(150%);
	--mm-frame: linear-gradient(160deg, rgba(224, 140, 255, 0.8), rgba(150, 90, 230, 0.5) 50%, rgba(44, 224, 192, 0.45));
	position: relative;
	clip-path: polygon(0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)));
}

.mm-panel--glass::before,
.mm-panel--sm::before,
.mm-cat-hero::before,
.mm-bottom-bar::before,
.mm-card::before,
.mm-site .site-main > article::before,
.mm-site .site-main > .error-404::before,
.mm-site .site-main > .no-results::before,
.mm-site .site-main > .navigation::before,
.mm-site .comments-area::before,
.mm-site div.product .woocommerce-product-gallery::before,
.mm-site div.product .summary::before,
.mm-site .woocommerce-tabs::before,
.mm-site .related.products::before,
.mm-site .upsells.products::before,
.site-footer .footer-widgets::before,
.site-footer .site-info::before {
	content: "";
	/* block – Storefront dává některým prvkům ::before display: table (clearfix), to by rám smrštilo na nulu. */
	display: block;
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: var(--mm-frame);
	clip-path: polygon(evenodd,
		0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)), 0 0,
		1px 1px, calc(100% - var(--mm-cut) - 0.414px) 1px, calc(100% - 1px) calc(var(--mm-cut) + 0.414px), calc(100% - 1px) calc(100% - 1px), calc(var(--mm-cut) + 0.414px) calc(100% - 1px), 1px calc(100% - var(--mm-cut) - 0.414px), 1px 1px);
}

/* Karta má rámeček v místě své 1px průhledné hranice. */
.mm-card {
	--mm-frame: linear-gradient(150deg, #C02CC0, #5B2A9C 45%, var(--mm-teal));
	overflow: visible;
	border-radius: 0;
}

.mm-card::before {
	inset: -1px;
}

/* ==========================================================================
   2. Rozvržení výpisu
   ========================================================================== */

.mm-listing {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	padding: 16px 0 72px;
}

/*
 * Levý panel s bannery drží při posouvání na místě pod lepící horní lištou,
 * a když vyjede lišta s menu (.mm-nav-docked), posune se i pod ni.
 * Když je panel vyšší než volné místo v okně, drží se místo toho spodní hranou 16 px nad dolním
 * okrajem, aby karta s platbami nezmizela pod oknem.
 * Výšky lišt (--mm-topbar-h, --mm-dockbar-h) a panelu (--mm-aside-h) měří header.js.
 */
.mm-listing__aside {
	--mm-aside-fit: calc(100vh - var(--mm-aside-h, 0px) - 16px);
	position: sticky;
	top: min(calc(var(--wp-admin--admin-bar--height, 0px) + var(--mm-topbar-h, 70px) + 16px), var(--mm-aside-fit));
	display: flex;
	flex-direction: column;
	gap: 26px;
	transition: top 0.35s ease;
}

/*
 * Na konci stránky drží lepící prvek jeho řádek mřížky – bez úpravy by panel zajel pod horní lištu.
 * Záporný spodní okraj ho pustí do prázdného prostoru nad patičkou (až 16 px nad ni)
 * a min. výška hlavního sloupce prodlouží krátké stránky, aby se panel vešel celý.
 */
.mm-listing__aside {
	margin-bottom: -56px;
}

.mm-listing__main {
	min-height: var(--mm-aside-h, 0px);
}

.mm-nav-docked .mm-listing__aside {
	top: min(calc(var(--wp-admin--admin-bar--height, 0px) + var(--mm-topbar-h, 70px) + var(--mm-dockbar-h, 98px) + 16px), var(--mm-aside-fit));
}

/* Nižší okna – nižší boxy v levém panelu, aby se panel vešel celý. */
@media (min-width: 1001px) and (max-height: 900px) {
	.mm-listing__aside {
		gap: 18px;
	}

	/* Nižší box s bannerem (obrázek se dál vejde celý – contain). */
	.mm-listing__aside .mm-banners__track {
		aspect-ratio: 5 / 2;
	}

	.mm-listing__aside .mm-discreet__item {
		gap: 8px;
	}

	.mm-listing__aside .mm-discreet .mm-icon {
		width: 30px;
		height: 30px;
	}

	.mm-listing__aside .mm-discreet__title {
		font-size: 15px;
	}
}

/* Velmi nízká okna – panel se s horními lištami a patičkou nevejde; posouvá se normálně se stránkou. */
@media (min-width: 1001px) and (max-height: 760px) {
	.mm-listing__aside {
		position: static;
		margin-bottom: 0;
	}

	.mm-listing__main {
		min-height: 0;
	}
}

.mm-listing__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	margin: 0;
}

/* ==========================================================================
   3. Bannery v levém panelu
   ========================================================================== */

.mm-banners .mm-panel__inner {
	padding: 18px 16px 12px;
}

/* Obrázek banneru se do boxu vždy vejde celý (contain) – nic se neořízne. */
.mm-banners__track {
	position: relative;
	aspect-ratio: 16 / 9;
}

.mm-banners__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: scale(0.96);
	transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s linear 0.8s;
	color: #FFFFFF;
	text-decoration: none;
}

.mm-banners__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s;
}

.mm-banners__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

/* Výchozí textové bannery – stejný font jako nadpisy webu. */
.mm-banners__title {
	padding: 0 6px 0.12em;
	font-family: var(--mm-font-display);
	font-size: clamp(36px, 4.4vw, 60px);
	line-height: 1.15;
	text-align: center;
	background: linear-gradient(90deg, var(--mm-g1), var(--mm-g2) 55%, var(--mm-g3));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.mm-banners__title--priroda {
	--mm-g1: var(--mm-purple-2);
	--mm-g2: var(--mm-magenta);
	--mm-g3: #FF8A5C;
}

.mm-banners__title--vedomi {
	--mm-g1: var(--mm-gold);
	--mm-g2: #7FE07A;
	--mm-g3: var(--mm-teal);
}

.mm-banners__title--spojeni {
	--mm-g1: var(--mm-teal);
	--mm-g2: #4F7CFF;
	--mm-g3: var(--mm-magenta);
}

/* Anglická verze (TranslatePress) – delší slova Consciousness / Connection se musí vejít do boxu. */
:lang(en) .mm-banners__title--vedomi {
	font-size: clamp(25px, 3vw, 41px);
}

:lang(en) .mm-banners__title--spojeni {
	font-size: clamp(30px, 3.6vw, 49px);
}

a.mm-banners__slide:hover,
a.mm-banners__slide:focus {
	color: #FFFFFF;
}

/* Text banneru (pole „Stručný výpis“) – pod obrázkem, obrázek se kvůli němu zmenší. */
.mm-banners__slide:has(.mm-banners__text) {
	flex-direction: column;
	gap: 8px;
}

.mm-banners__slide:has(.mm-banners__text) .mm-banners__img {
	height: auto;
	min-height: 0;
	flex: 1;
}

.mm-banners__text {
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.mm-banners__dots {
	display: flex;
	justify-content: center;
	gap: 2px;
	margin-top: 6px;
}

/* Tečky: viditelná část 5 px, klikací plocha 20 px. */
.mm-listing .mm-banners__dot {
	position: relative;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mm-listing .mm-banners__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	margin: -2.5px 0 0 -2.5px;
	border-radius: 50%;
	border: 1px solid var(--mm-purple-3);
	box-sizing: border-box;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mm-listing .mm-banners__dot:hover {
	background: transparent;
}

.mm-listing .mm-banners__dot[aria-current="true"]::before {
	background: var(--mm-magenta);
	border-color: var(--mm-magenta);
	box-shadow: 0 0 5px rgba(224, 64, 200, 0.8);
	transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
	.mm-banners__slide,
	.mm-banners__img {
		transition: none;
	}

	.mm-banners__slide {
		transform: none;
	}
}

/* ==========================================================================
   4. Karta pod bannery – doprava a platby
   ========================================================================== */

/* Položky se střídají jako bannery (.mm-banners) – ikona nad textem, uprostřed boxu. */
.mm-discreet .mm-icon {
	flex: none;
	color: var(--mm-gold);
	stroke-width: 1.4;
}

.mm-discreet__item {
	flex-direction: column;
	gap: 12px;
	padding: 0 8px;
	text-align: center;
}

.mm-discreet__title {
	margin: 0;
	color: var(--mm-teal);
	font-size: 16px;
	font-weight: 700;
}

/* ==========================================================================
   5. Záhlaví kategorie
   ========================================================================== */

.mm-cat-hero {
	min-height: 150px;
	padding: 22px 30px 26px;
	box-sizing: border-box;
	background: var(--mm-glass-fill);
	-webkit-backdrop-filter: var(--mm-glass-blur);
	backdrop-filter: var(--mm-glass-blur);
}

.mm-cat-hero__content {
	position: relative;
	max-width: 62%;
}

.mm-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mm-pink);
}

.mm-breadcrumb a {
	color: var(--mm-pink);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Informační stránky si nechávají tlumené odkazy. */
.mm-info-page .mm-breadcrumb a {
	color: var(--mm-muted);
}

.mm-breadcrumb a:hover,
.mm-breadcrumb a:focus-visible {
	color: var(--mm-magenta);
	text-shadow: 0 0 12px rgba(224, 64, 200, 0.55);
}

/* „Domů“ – zlatá jako košík v hlavičce, po najetí září. */
.mm-breadcrumb a:first-child,
.mm-info-page .mm-breadcrumb a:first-child {
	color: var(--mm-gold);
}

.mm-breadcrumb a:first-child:hover,
.mm-breadcrumb a:first-child:focus-visible,
.mm-info-page .mm-breadcrumb a:first-child:hover,
.mm-info-page .mm-breadcrumb a:first-child:focus-visible {
	color: #FFD27A;
	text-shadow: 0 0 8px rgba(242, 150, 60, 0.9), 0 0 18px rgba(242, 150, 60, 0.6);
}

.mm-breadcrumb .mm-icon {
	color: var(--mm-purple-3);
	stroke-width: 2.4;
	opacity: 0.9;
}

/* Stránky z informačního menu – barvy spodní řady hexagonů (tyrkysová → modrofialová). */
.mm-info-page .mm-breadcrumb {
	color: var(--mm-teal);
}

.mm-info-page .mm-breadcrumb a:hover,
.mm-info-page .mm-breadcrumb a:focus-visible {
	color: var(--mm-teal);
	text-shadow: 0 0 12px rgba(44, 224, 192, 0.55);
}

.mm-info-page .mm-breadcrumb .mm-icon {
	color: #7B6BFF;
}

.mm-info-page h1.mm-cat-hero__title {
	background-image: linear-gradient(90deg, var(--mm-teal), #5BB8FF 55%, #7B6BFF);
}

h1.mm-cat-hero__title {
	margin: 18px 0 14px;
	font-size: 42px;
	line-height: 1.1;
	letter-spacing: 0;
}

.mm-cat-hero__desc,
.mm-cat-hero__desc p {
	margin: 0;
	color: var(--mm-text);
	font-size: 15px;
}

.mm-cat-hero__desc p + p {
	margin-top: 0.6em;
}

/* ==========================================================================
   6. Lišta řazení a filtrů
   ========================================================================== */

.mm-toolbar .mm-panel__inner {
	padding: 10px 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mm-listing .mm-toolbar__filter {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mm-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.mm-listing .mm-toolbar__filter:hover,
.mm-listing .mm-toolbar__filter[aria-expanded="true"] {
	background: transparent;
	color: #FFFFFF;
}

.mm-listing .mm-toolbar__filter[aria-expanded="true"] .mm-icon {
	color: var(--mm-gold);
}

.mm-listing .mm-sort {
	float: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0 0 0 auto;
	padding: 0;
}

.mm-sort__label {
	color: var(--mm-muted);
	font-size: 14px;
}

.mm-sort__label--perpage {
	margin-left: 16px;
}

.mm-listing select.mm-select {
	height: 40px;
	min-width: 120px;
	padding: 0 38px 0 12px;
	border: 1px solid var(--mm-panel-border);
	border-radius: 4px;
	background: #120922 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F4EEFF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--mm-text);
	font-family: inherit;
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.mm-listing select.mm-perpage {
	min-width: 76px;
}

.mm-listing select.mm-select option {
	background: #120922;
	color: var(--mm-text);
}

/* Panel s widgety filtrů. */
.mm-filters {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px 28px;
	padding: 20px 22px;
	border: 1px solid rgba(176, 90, 255, 0.3);
	border-radius: 4px;
	background: var(--mm-panel);
}

.mm-filters[hidden] {
	display: none;
}

.mm-filters__widget {
	margin: 0;
}

.mm-filters__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--mm-text);
}

/* ==========================================================================
   7. Mřížka a karty produktů
   ========================================================================== */

ul.products.mm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
}

ul.products.mm-grid::before,
ul.products.mm-grid::after {
	display: none;
}

/* Přebití plovoucích sloupců Storefrontu (.site-main ul.products.columns-4 li.product…). */
ul.products.mm-grid > li.product.mm-card {
	text-align: left;
	width: auto !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
}

.mm-card {
	display: flex;
	flex-direction: column;
	border: 1px solid transparent;
	background: var(--mm-glass-fill);
	-webkit-backdrop-filter: var(--mm-glass-blur);
	backdrop-filter: var(--mm-glass-blur);
	font-size: 15px;
	text-align: left;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mm-card:hover {
	box-shadow: inset 0 0 18px rgba(192, 44, 192, 0.35);
	transform: translateY(-2px);
}

.mm-card__media {
	position: relative;
	height: 210px;
	margin: 14px 14px 0;
	background: #070410;
}

.mm-card__image {
	display: block;
	height: 100%;
}

ul.products li.product.mm-card .mm-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.mm-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	padding: 4px 9px;
	border-radius: 4px;
	background: var(--mm-magenta-dark);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.4;
	text-transform: uppercase;
	pointer-events: none;
}

.mm-card .mm-fav {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0 10px 0 0;
	background: rgba(10, 6, 20, 0.7);
	color: #FF6FA8;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mm-card .mm-fav:hover,
.mm-card .mm-fav:focus-visible {
	background: rgba(10, 6, 20, 0.9);
	color: #FF8FC0;
}

.mm-card .mm-fav .mm-icon {
	stroke-width: 1.8;
	transition: transform 0.2s ease;
}

.mm-card .mm-fav[aria-pressed="true"] .mm-icon {
	fill: currentColor;
	transform: scale(1.08);
}

.mm-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 18px;
}

ul.products li.product.mm-card .mm-card__title {
	min-height: 47px;
	margin: 0 0 8px;
	font-family: var(--mm-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

ul.products li.product.mm-card .mm-card__title a {
	color: #FFFFFF;
	font: inherit;
	text-decoration: none;
}

ul.products li.product.mm-card .mm-card__title a:hover {
	color: var(--mm-pink);
}

.mm-card__desc {
	display: -webkit-box;
	min-height: 61px;
	margin: 0 0 18px;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	color: #BDB3D6;
	font-size: 14px;
	line-height: 1.45;
}

ul.products li.product.mm-card .mm-card__price {
	display: block;
	margin: auto 0 16px;
	color: var(--mm-teal);
	font-size: 20px;
	font-weight: 600;
}

.mm-card__price del {
	margin-right: 8px;
	color: #8F84A8;
	font-size: 15px;
	font-weight: 400;
	opacity: 1;
}

ul.products li.product.mm-card .mm-card__price ins {
	margin-left: 0;
	color: var(--mm-teal);
	font-weight: 700;
	text-decoration: none;
}

/* Cena na detailu produktu – tyrkysová jako na kartách a v liště „Prohlížíte“. */
.mm-site div.product .summary .price,
.mm-site div.product .summary .price ins,
.mm-site div.product .woocommerce-variation-price .price,
.mm-site div.product .woocommerce-variation-price .price ins {
	color: var(--mm-teal);
	text-decoration: none;
}

.mm-site div.product .summary .price del {
	color: #8F84A8;
	opacity: 1;
}

/* --- Tlačítka na kartě --- */

.mm-card__actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

ul.products li.product.mm-card a.mm-btn.button {
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

ul.products li.product.mm-card a.mm-btn--green.button {
	border-color: #2CE0A0;
	background: rgba(44, 224, 160, 0.06);
}

ul.products li.product.mm-card a.mm-btn--green.button:hover {
	background: rgba(44, 224, 160, 0.16);
	box-shadow: 0 0 12px rgba(44, 224, 160, 0.35);
}

/*
 * „Vložit do košíku“ – zlatá podle ikony košíku v hlavičce, chování jako „Zobrazit detail“
 * (průhledné s obrysem); stejné na kartě i na stránce produktu (košík a pokladna: sekce 12).
 */
ul.products li.product.mm-card a.mm-btn--purple.button,
.mm-site div.product form.cart .single_add_to_cart_button.button {
	border: 1px solid var(--mm-gold);
	background: transparent;
	color: var(--mm-gold);
}

/* Najetí myší – stejně jako „Zobrazit detail“: jemný nádech a záře. */
ul.products li.product.mm-card a.mm-btn--purple.button:hover,
.mm-site div.product form.cart .single_add_to_cart_button.button:hover {
	background: rgba(242, 184, 75, 0.08);
	box-shadow: 0 0 12px rgba(242, 184, 75, 0.3);
	color: var(--mm-gold);
}

/* Výběr množství růžovofialově – košík a stránka produktu. */
.mm-site .quantity input.qty {
	border-color: var(--mm-orchid);
	color: var(--mm-orchid);
}

.mm-site .quantity input.qty:focus {
	border-color: var(--mm-orchid);
	box-shadow: 0 0 10px rgba(216, 140, 255, 0.3);
}

/* Tlačítko na stránce produktu – vzhled jako na kartě. */
.mm-site div.product form.cart .single_add_to_cart_button.button {
	min-height: 48px;
	padding: 0 28px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

ul.products li.product.mm-card a.mm-btn--detail.button {
	border-color: var(--mm-teal);
	background: transparent;
	color: var(--mm-teal);
}

ul.products li.product.mm-card a.mm-btn--detail.button:hover {
	background: rgba(44, 224, 192, 0.08);
	box-shadow: 0 0 12px rgba(44, 224, 192, 0.3);
}

/* Stav při přidávání do košíku (WooCommerce přidá třídy loading / added). */
ul.products li.product.mm-card a.mm-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

ul.products li.product.mm-card a.mm-btn.loading::after,
ul.products li.product.mm-card a.mm-btn.added::after {
	position: static;
	margin: 0;
	font-size: 14px;
}

/* Odkaz „Zobrazit košík“, který WooCommerce vloží po přidání. */
ul.products li.product.mm-card .added_to_cart {
	display: block;
	padding: 4px 0 0;
	background: transparent;
	color: var(--mm-teal);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

/* --- Stav skladu --- */

.mm-stock {
	margin: 16px 0 0;
	font-size: 14px;
	font-weight: 500;
}

.mm-stock--in {
	color: var(--mm-in-stock);
}

.mm-stock--out {
	color: var(--mm-out-of-stock);
}

.mm-stock--backorder {
	color: var(--mm-gold);
}

/* Příslušenství – jen k nahlédnutí. */
.mm-stock--catalog {
	color: var(--mm-muted);
}

/* ==========================================================================
   8. Spodní lišta a stránkování
   ========================================================================== */

.mm-bottom-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 22px;
	background: var(--mm-glass-fill);
	-webkit-backdrop-filter: var(--mm-glass-blur);
	backdrop-filter: var(--mm-glass-blur);
}

.mm-listing .mm-bottom-bar__count {
	float: none;
	margin: 0;
	padding: 10px 0;
	color: var(--mm-muted);
	font-size: 14px;
}

.mm-listing .mm-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
	border: 0;
}

.mm-pagination .page-numbers {
	min-width: 42px;
	height: 38px;
	padding: 0 6px;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--mm-text);
	font-weight: 600;
	text-decoration: none;
}

.mm-pagination a.page-numbers:hover {
	border-color: var(--mm-panel-border);
	color: #FFFFFF;
}

.mm-pagination .page-numbers.current {
	border-color: var(--mm-purple-2);
	background: rgba(123, 63, 228, 0.4);
	color: #FFFFFF;
}

.mm-pagination .prev,
.mm-pagination .next {
	min-width: 44px;
	height: 44px;
}

.mm-pagination .mm-icon {
	stroke-width: 2;
}

/* ==========================================================================
   9. Prázdný výpis
   ========================================================================== */

.mm-empty-panel {
	padding: 28px 30px;
	border: 1px solid rgba(176, 90, 255, 0.3);
	border-radius: 4px;
	background: var(--mm-panel);
}

.mm-empty-panel .woocommerce-info,
.mm-empty {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mm-text);
	font-size: 15px;
}

.mm-empty-panel .woocommerce-info::before {
	display: none;
}

/* ==========================================================================
   10. Responzivita
   ========================================================================== */

/* Tablet: levý panel s bannery pod obsahem, už nelepí. */
@media (max-width: 1000px) {
	.mm-listing {
		grid-template-columns: minmax(0, 1fr);
	}

	.mm-listing__aside {
		order: 2;
		position: static;
		align-items: center;
		margin-bottom: 0;
	}

	.mm-listing__main {
		min-height: 0;
	}

	.mm-banners,
	.mm-discreet {
		width: 100%;
		max-width: 380px;
	}
}

@media (max-width: 768px) {
	.mm-cat-hero {
		padding: 18px 20px 22px;
	}

	.mm-cat-hero__content {
		max-width: none;
	}

	h1.mm-cat-hero__title {
		font-size: 32px;
	}

	.mm-toolbar .mm-panel__inner {
		padding: 10px 16px;
	}

	.mm-listing .mm-sort {
		margin-left: 0;
		width: 100%;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 10px 12px;
	}

	.mm-sort__label--perpage {
		margin-left: 0;
	}

	.mm-listing select.mm-select {
		width: 100%;
	}

	.mm-bottom-bar {
		justify-content: center;
		padding: 10px 16px;
		text-align: center;
	}
}

/* Mobil: vše pod sebou. */
@media (max-width: 560px) {
	.mm-listing {
		padding-top: 8px;
	}

	h1.mm-cat-hero__title {
		font-size: 28px;
	}
}

/* ==========================================================================
   11. Ostatní stránky – detail produktu, košík, pokladna, účet, stránky, blog
   (rozvržení v inc/layout.php; rámeček a sklo boxů ze sekce 1)
   ========================================================================== */

.mm-site .content-area {
	width: 100%;
	float: none;
	margin: 0;
}

.mm-site .site-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}

/* Skleněné boxy obsahu. */
.mm-site .site-main > article,
.mm-site .site-main > .error-404,
.mm-site .site-main > .no-results,
.mm-site .site-main > .navigation,
.mm-site .comments-area,
.mm-site div.product .woocommerce-product-gallery,
.mm-site div.product .summary,
.mm-site .woocommerce-tabs,
.mm-site .related.products,
.mm-site .upsells.products,
.site-footer .footer-widgets,
.site-footer .site-info {
	box-sizing: border-box;
	margin: 0;
	padding: 26px 28px;
	border: 0;
	border-radius: 0;
	background: var(--mm-glass-fill);
	-webkit-backdrop-filter: var(--mm-glass-blur);
	backdrop-filter: var(--mm-glass-blur);
}

/* Široké bloky (košík, pokladna) se v boxu nevysouvají ven. */
.mm-site .entry-content > .alignwide,
.mm-site .entry-content > .alignfull {
	width: auto;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Záložky produktu: bez spodního odsazení panelu Storefrontu. */
.mm-site .woocommerce-tabs .panel {
	margin-bottom: 0;
}

/* Nadpis je v záhlaví – v obsahu se neopakuje. */
.mm-site-page.page .site-main > article > .entry-header,
.mm-site-page.single-post .site-main > article .entry-title,
.mm-site .page-header .page-title {
	display: none;
}

.mm-site .site-main > article .entry-content > :last-child {
	margin-bottom: 0;
}

/* Tabulky v článcích a stránkách – průhledné řádky s jemnými linkami jako v košíku (sekce 12). */
.mm-site .entry-content .wp-block-table table,
.mm-site .entry-content .wp-block-table th,
.mm-site .entry-content .wp-block-table td,
.mm-site .entry-content .wp-block-table tbody tr:nth-child(2n) td {
	background: transparent;
	color: var(--mm-text);
	border: 0;
	border-bottom: 1px solid rgba(176, 90, 255, 0.2);
}

.mm-site .entry-content .wp-block-table th,
.mm-site .entry-content .wp-block-table td {
	padding: 12px;
	text-align: left;
	vertical-align: top;
}

.mm-site .entry-content .wp-block-table thead th {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom-color: rgba(176, 90, 255, 0.45);
}

@media (max-width: 600px) {
	.mm-site .entry-content .wp-block-table {
		overflow-x: auto;
	}
}

/* Detail produktu: galerie a souhrn vedle sebe, záložky a související produkty pod nimi. */
.mm-site div.product {
	margin: 0;
}

.mm-site div.product .woocommerce-product-gallery,
.mm-site div.product .summary {
	margin-bottom: 20px;
}

.mm-site div.product .woocommerce-product-gallery {
	padding: 18px;
}

.mm-site .woocommerce-tabs,
.mm-site .related.products,
.mm-site .upsells.products {
	clear: both;
	margin-bottom: 20px;
}

.mm-site .related.products > h2,
.mm-site .upsells.products > h2 {
	margin: 0 0 18px;
}

/* Patička: bez plného pásu, obsah ve skleněných boxech zarovnaných s obsahem stránky. */
body .site-footer {
	background: transparent;
	border-top: 0;
	padding: 0 0 32px;
}

.site-footer .footer-widgets {
	margin-bottom: 20px;
}

.site-footer .site-info {
	padding: 20px 28px;
}

@media (max-width: 768px) {
	.mm-site .site-main > article,
	.mm-site .site-main > .error-404,
	.mm-site .site-main > .no-results,
	.mm-site .site-main > .navigation,
	.mm-site .comments-area,
	.mm-site div.product .woocommerce-product-gallery,
	.mm-site div.product .summary,
	.mm-site .woocommerce-tabs,
	.mm-site .related.products,
	.mm-site .upsells.products,
	.site-footer .footer-widgets,
	.site-footer .site-info {
		padding: 20px 18px;
	}
}


/* ==========================================================================
   12. Přepínač jazyka (TranslatePress – plovoucí přepínač)
   ========================================================================== */

/* Stejné sklo a rám se seříznutými rohy jako ostatní boxy.
   Plugin nastavuje barvy inline proměnnými, proto je přebíjíme přes !important. */
nav.trp-floating-switcher {
	--mm-cut: 14px;
	--mm-frame: linear-gradient(150deg, #C02CC0, #5B2A9C 45%, var(--mm-teal));
	--text: var(--mm-text) !important;
	--text-hover: var(--mm-teal) !important;
	--bg-hover: rgba(176, 90, 255, 0.18) !important;
	--bottom: 16px !important;
	min-width: 150px;
	padding: 6px 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: linear-gradient(180deg, rgba(22, 11, 40, 0.95), rgba(22, 11, 40, 0.6));
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	backdrop-filter: blur(14px) saturate(150%);
	clip-path: polygon(0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)));
}

nav.trp-floating-switcher::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: var(--mm-frame);
	clip-path: polygon(evenodd,
		0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)), 0 0,
		1px 1px, calc(100% - var(--mm-cut) - 0.414px) 1px, calc(100% - 1px) calc(var(--mm-cut) + 0.414px), calc(100% - 1px) calc(100% - 1px), calc(var(--mm-cut) + 0.414px) calc(100% - 1px), 1px calc(100% - var(--mm-cut) - 0.414px), 1px 1px);
}

nav.trp-floating-switcher .trp-language-item {
	gap: 10px;
	padding: 8px 20px;
	transition: background-color 0.2s ease;
}

nav.trp-floating-switcher .trp-language-item-name {
	font-family: var(--mm-font);
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
}

/* Aktuální jazyk – tyrkysový, když je seznam otevřený. */
nav.trp-floating-switcher.is-open .trp-language-item__current .trp-language-item-name {
	color: var(--mm-teal);
}

nav.trp-floating-switcher .trp-flag-image {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

nav.trp-floating-switcher #trp-floater-powered-by {
	--border-color: var(--mm-panel-border);
}

/* ==========================================================================
   13. Můj účet – odkazy a menu v tlumené modré místo tyrkysové
   ========================================================================== */

.woocommerce-account .site-main {
	--mm-account-link: var(--mm-link-soft);
	--mm-account-link-hover: var(--mm-link-soft-hover);
}

.woocommerce-account .site-main a:not(.button),
.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
	color: var(--mm-account-link);
	transition: color 0.2s ease;
}

.woocommerce-account .site-main a:not(.button):hover,
.woocommerce-account .site-main a:not(.button):focus-visible,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover::before,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::before {
	color: var(--mm-account-link-hover);
}

/* ==========================================================================
   14. Lepící lišta „Přidat do košíku“ na detailu produktu (Storefront)
   ========================================================================== */

/* Sklo jako horní lišta s výhodami; výška = výška horní lišty, aby nepřekryla vysunuté menu pod ní. */
.storefront-sticky-add-to-cart {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: var(--mm-topbar-h, 70px);
	padding: 0;
	color: var(--mm-text);
	background: linear-gradient(90deg, rgba(42, 15, 63, 0.82) 0%, rgba(22, 11, 40, 0.75) 45%, rgba(14, 42, 51, 0.8) 100%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	backdrop-filter: blur(14px) saturate(150%);
	border-bottom: 1px solid var(--mm-panel-border);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
	font-family: var(--mm-font);
}

.storefront-sticky-add-to-cart .col-full {
	width: 100%;
}

.storefront-sticky-add-to-cart__content {
	gap: 16px;
}

.storefront-sticky-add-to-cart img {
	max-width: none;
	width: auto;
	height: calc(var(--mm-topbar-h, 70px) - 18px);
	max-height: 56px;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mm-purple-3);
	border-radius: 4px;
	background: #120922;
	box-shadow: 0 0 10px rgba(176, 90, 255, 0.35);
}

.storefront-sticky-add-to-cart__content-product-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.storefront-sticky-add-to-cart__content-title {
	overflow: hidden;
	color: var(--mm-muted);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.storefront-sticky-add-to-cart__content-title strong {
	color: var(--mm-text);
	font-size: 15px;
	font-weight: 700;
}

.storefront-sticky-add-to-cart__content-price {
	margin-right: 0;
	opacity: 1;
	color: var(--mm-teal);
	font-size: 15px;
	font-weight: 700;
}

.storefront-sticky-add-to-cart__content-price del {
	margin-right: 6px;
	color: #8F84A8;
	font-weight: 400;
}

.storefront-sticky-add-to-cart__content-price ins {
	color: var(--mm-teal);
	text-decoration: none;
}

/* Tlačítko – zlaté s obrysem jako „Vložit do košíku“ na kartě a stránce produktu. */
.storefront-sticky-add-to-cart .storefront-sticky-add-to-cart__content-button.button {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 24px;
	border: 1px solid var(--mm-gold);
	border-radius: 4px;
	background: transparent;
	color: var(--mm-gold);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.storefront-sticky-add-to-cart .storefront-sticky-add-to-cart__content-button.button:hover,
.storefront-sticky-add-to-cart .storefront-sticky-add-to-cart__content-button.button:focus-visible {
	background: rgba(242, 184, 75, 0.08);
	box-shadow: 0 0 12px rgba(242, 184, 75, 0.3);
	color: var(--mm-gold);
}

@media (max-width: 768px) {
	.storefront-sticky-add-to-cart__content-title {
		font-size: 12px;
	}

	.storefront-sticky-add-to-cart .storefront-sticky-add-to-cart__content-button.button {
		padding: 0 14px;
		font-size: 12px;
	}
}

/* ==========================================================================
   12. Časté dotazy ([mm_faq] na úvodní stránce)
   ========================================================================== */

.mm-faq {
	margin-top: 2em;
}

.mm-faq__item {
	border-bottom: 1px solid rgba(224, 140, 255, 0.2);
}

.mm-faq__item summary {
	position: relative;
	padding: 12px 28px 12px 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.mm-faq__item summary::-webkit-details-marker {
	display: none;
}

.mm-faq__item summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	color: var(--mm-teal);
	font-size: 20px;
	line-height: 1;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
}

.mm-faq__item[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.mm-faq__item summary:hover,
.mm-faq__item summary:focus-visible {
	color: var(--mm-teal);
}

.mm-faq__item p {
	margin: 0 0 14px;
}

/* ==========================================================================
   12. Klasický košík a pokladna ([woocommerce_cart], [woocommerce_checkout])
   Bloky nahradila klasická verze kvůli pluginu Kybernaut IČ DIČ (bloky nepodporuje).
   ========================================================================== */

/* Tabulky – průhledné, jemné linky z panelů místo bílých a šedých řádků Storefrontu. */
.mm-site table.shop_table,
.mm-site table.shop_table th,
.mm-site table.shop_table td,
.mm-site table.shop_table tbody th,
.mm-site table.shop_table tfoot th,
.mm-site table.shop_table tfoot td,
.mm-site table.shop_table tbody tr:nth-child(2n) td,
.mm-site table.shop_table tbody tr:nth-child(2n) th {
	background: transparent;
	border-color: rgba(176, 90, 255, 0.2);
}

/* Barva textu bez selektoru sudých řádků – jinak by přebíjel zlaté/tyrkysové ceny níže. */
.mm-site table.shop_table,
.mm-site table.shop_table th,
.mm-site table.shop_table td {
	color: var(--mm-text);
}

.mm-site table.shop_table {
	border-collapse: collapse;
}

.mm-site table.shop_table th,
.mm-site table.shop_table td {
	padding: 14px 12px;
	border-bottom: 1px solid rgba(176, 90, 255, 0.2);
	vertical-align: middle;
}

.mm-site table.shop_table thead th {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Cena za kus a mezisoučty tyrkysově, celkové částky zlatě – jako dřív v blokovém košíku. */
.mm-site table.cart td.product-price,
.mm-site .cart_totals .cart-subtotal th,
.mm-site .cart_totals .cart-subtotal td,
.mm-site .woocommerce-checkout-review-order-table .cart-subtotal th,
.mm-site .woocommerce-checkout-review-order-table .cart-subtotal td {
	color: var(--mm-teal);
}

.mm-site table.cart thead th.product-subtotal,
.mm-site table.cart td.product-subtotal,
.mm-site .woocommerce-checkout-review-order-table td.product-total,
.mm-site table.shop_table tr.shipping th,
.mm-site table.shop_table tr.shipping td,
.mm-site table.shop_table tr.order-total th,
.mm-site table.shop_table tr.order-total td {
	color: var(--mm-gold);
}

.mm-site table.shop_table tr.order-total td strong {
	font-size: 22px;
}

.mm-site table.shop_table .includes_tax,
.mm-site table.shop_table .mm-vat-note {
	display: block;
	color: var(--mm-muted);
	font-size: 12px;
}

.mm-site table.shop_table ul#shipping_method {
	margin: 0;
	list-style: none;
}

.mm-site table.shop_table .woocommerce-shipping-destination,
.mm-site table.shop_table .woocommerce-shipping-calculator {
	color: var(--mm-muted);
	font-size: 13px;
}

/* Košík: řádek „Přeprava do …“ (adresa) skrytý – u Zásilkovny ani osobního odběru nedává smysl. */
.mm-site table.shop_table p.woocommerce-shipping-destination {
	display: none;
}

.mm-site table.shop_table .shipping-calculator-button {
	color: var(--mm-teal);
}

/* Košík: obrázek, název a odebrání položky. */
.mm-site table.cart td.product-thumbnail img {
	width: 72px;
	max-width: none;
	border-radius: 4px;
}

.mm-site table.cart td.product-name a {
	color: var(--mm-teal);
}

.mm-site table.cart td.product-remove a.remove {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-block;
	position: relative;
	vertical-align: middle;
	color: transparent !important; /* znak „×“ z HTML schováme, WooCommerce dává !important */
	font-size: 0;
	line-height: 0;
	text-decoration: none;
	text-indent: 0;
	transition: background 0.25s ease;
}

/* Křížek ze dvou čar – vždy přesně ve středu kruhu (znak z písma sedí níž a vlevo). */
.mm-site table.cart td.product-remove a.remove::before,
.mm-site table.cart td.product-remove a.remove::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 2px;
	margin: 0;
	border-radius: 2px;
	background: #FF6FA8;
	font-family: inherit; /* Storefront kreslí ikonu fontem */
	transform: translate(-50%, -50%) rotate(45deg);
}

.mm-site table.cart td.product-remove a.remove::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Kruh do ztracena – radiální přechod bez ostrého okraje. */
.mm-site table.cart td.product-remove a.remove:hover {
	background: radial-gradient(circle closest-side, rgba(255, 111, 168, 0.3) 0%, rgba(255, 111, 168, 0.1) 60%, rgba(255, 111, 168, 0) 100%);
	box-shadow: none;
}

/* Řádek s kupónem a „Aktualizovat košík“ – bez bílého podkladu. */
.mm-site table.cart td.actions {
	padding: 18px 0;
	background: transparent;
	border-top: 0; /* Storefront: 1em pruh v barvě podkladu */
	border-bottom: 0;
}

.mm-site table.cart td.actions .coupon {
	display: flex;
	gap: 10px;
}

.mm-site table.cart td.actions .coupon .input-text {
	min-width: 200px;
}

/* Vedlejší tlačítka (Aktualizovat košík, Použít kupón) – tyrkysová jako „Zobrazit detail“. */
.woocommerce-cart .mm-site .button:not(.checkout-button),
.woocommerce-checkout .mm-site .woocommerce-form-coupon .button,
.woocommerce-checkout .mm-site .woocommerce-form-login .button {
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--mm-teal);
	border-radius: 4px;
	background: transparent;
	color: var(--mm-teal);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* Odkaz jako tlačítko („Zpět do obchodu“ / „Return to shop“) – text svisle i vodorovně na střed. */
.woocommerce-cart .mm-site a.button:not(.checkout-button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
	text-align: center;
}

.woocommerce-cart .mm-site .button:not(.checkout-button):hover,
.woocommerce-cart .mm-site .button:not(.checkout-button):focus-visible,
.woocommerce-checkout .mm-site .woocommerce-form-coupon .button:hover,
.woocommerce-checkout .mm-site .woocommerce-form-login .button:hover {
	background: rgba(44, 224, 192, 0.08);
	box-shadow: 0 0 12px rgba(44, 224, 192, 0.3);
	color: var(--mm-teal);
}

.woocommerce-cart .mm-site .button:disabled,
.woocommerce-cart .mm-site .button[disabled] {
	opacity: 0.45;
	box-shadow: none;
}

/* „Přejít k pokladně“ a „Objednávka zavazující k platbě“ – zlatá jako „Vložit do košíku“. */
.mm-site .wc-proceed-to-checkout .checkout-button.button,
.mm-site #payment #place_order.button {
	width: 100%;
	min-height: 52px;
	padding: 0 18px;
	border: 1px solid var(--mm-gold);
	border-radius: 4px;
	background: transparent;
	color: var(--mm-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mm-site .wc-proceed-to-checkout .checkout-button.button:hover,
.mm-site .wc-proceed-to-checkout .checkout-button.button:focus-visible,
.mm-site #payment #place_order.button:hover,
.mm-site #payment #place_order.button:focus-visible {
	background: rgba(242, 184, 75, 0.08);
	box-shadow: 0 0 12px rgba(242, 184, 75, 0.3);
	color: var(--mm-gold);
}

/* Neaktivní, dokud nejsou zaškrtnuté obchodní podmínky (assets/js/checkout.js). */
.mm-site #payment #place_order.button.mm-is-blocked,
.mm-site #payment #place_order.button.mm-is-blocked:hover {
	opacity: 0.4;
	background: transparent;
	box-shadow: none;
	cursor: not-allowed;
}

.mm-site .wc-proceed-to-checkout .checkout-button.button::after {
	content: none; /* šipka z ikonového fontu Storefrontu */
}

/* Nadpisy „Celkem k platbě“, „Fakturační údaje“, „Vaše objednávka“ – přechod jako dřív v blokovém košíku. */
.mm-site .cart_totals > h2,
.woocommerce-checkout .mm-site .woocommerce-billing-fields > h3,
.woocommerce-checkout .mm-site .woocommerce-additional-fields > h3,
.woocommerce-checkout .mm-site #order_review_heading {
	width: fit-content;
	font-family: var(--mm-font-display);
	font-size: 20px;
	font-weight: 400;
	text-transform: uppercase;
	background: linear-gradient(90deg, var(--mm-magenta), var(--mm-pink) 60%, #D88CFF);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* „Vaše objednávka“ – Storefront ji plovoucí šířkou drží nad pravým sloupcem; přechod podle délky textu. */
.woocommerce-checkout .mm-site #order_review_heading {
	width: 41.1764705882%;
	background-image: linear-gradient(90deg, var(--mm-magenta), var(--mm-pink) 6em, #D88CFF 10em, #D88CFF);
}

@media (max-width: 767px) {
	.woocommerce-checkout .mm-site #order_review_heading {
		width: 100%;
	}
}

.woocommerce-checkout .mm-site #ship-to-different-address label {
	color: var(--mm-pink);
	font-size: 16px;
}

/* Pokladna: popisky, pole a výběr země (select2). */
.woocommerce-checkout .mm-site form .form-row label {
	color: var(--mm-muted);
}

.woocommerce-checkout .mm-site form .form-row .required {
	color: var(--mm-magenta);
}

.woocommerce-checkout .mm-site form .form-row textarea,
.woocommerce-checkout .mm-site form .form-row select,
.mm-site .select2-container .select2-selection--single,
.mm-site .select2-container .select2-selection--multiple {
	min-height: 44px;
	background-color: #120922;
	border: 1px solid var(--mm-panel-border);
	border-radius: 4px;
	box-shadow: none;
	color: var(--mm-text);
}

.woocommerce-checkout .mm-site form .form-row textarea {
	min-height: 110px;
}

.mm-site .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 12px;
	color: var(--mm-text);
	line-height: 42px;
}

.mm-site .select2-container .select2-selection--single .select2-selection__arrow {
	height: 42px;
}

.mm-site .select2-container .select2-selection--single .select2-selection__arrow b {
	border-top-color: var(--mm-orchid);
}

.mm-site .select2-container--open .select2-selection--single,
.woocommerce-checkout .mm-site form .form-row textarea:focus {
	background-color: #160B2A;
	border-color: var(--mm-orchid);
	box-shadow: 0 0 10px rgba(216, 140, 255, 0.3);
	outline: none;
}

/* Rozbalený seznam select2 se vkládá na konec <body> – mimo .mm-site. */
body .select2-dropdown {
	background: #160B2A;
	border-color: var(--mm-orchid);
	color: var(--mm-text);
}

body .select2-search--dropdown .select2-search__field {
	background: #120922;
	border: 1px solid var(--mm-panel-border);
	color: var(--mm-text);
}

/* Všechny řádky tmavé (i vybraný – přebíjí šedé #ddd Storefrontu); po najetí jen fialový text. */
body .select2-container--default .select2-results__option,
body .select2-container--default .select2-results__option[aria-selected],
body .select2-container--default .select2-results__option[data-selected] {
	background: #160B2A;
	color: #FFFFFF;
	transition: color 0.15s ease;
}

body .select2-container--default .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: #160B2A;
	color: #A77BF0;
}

/* Kybernaut IČO DIČ: přepínač „Nakupuji na firmu“ – bez „(volitelný)“, text v barvě nadpisů. */
.woocommerce-checkout .mm-site #billing_iscomp_field .optional {
	display: none;
}

.woocommerce-checkout .mm-site #billing_iscomp_field label {
	color: var(--mm-pink);
	font-size: 16px;
}

/* Zaškrtávátka tyrkysově (firma, obchodní podmínky, účet…), přepínače platby v barvě webu. */
.woocommerce-checkout .mm-site input[type="checkbox"] {
	accent-color: var(--mm-teal);
}

.woocommerce-checkout .mm-site input[type="radio"] {
	accent-color: var(--mm-orchid);
}

/* Rekapitulace a platba – bez bílého a šedého podkladu Storefrontu; popis platby jako tmavé sklo. */
.mm-site #order_review,
.mm-site #payment .payment_methods > li:not(.woocommerce-notice),
.mm-site #payment .payment_methods > li:not(.woocommerce-notice):hover,
.mm-site #payment,
.mm-site #payment ul.payment_methods,
.mm-site #payment ul.payment_methods li,
.mm-site #payment .place-order {
	background: transparent;
	border-color: rgba(176, 90, 255, 0.2);
	color: var(--mm-text);
}

.mm-site #payment ul.payment_methods {
	padding: 0;
	margin: 16px 0;
}

.mm-site #payment ul.payment_methods li {
	padding: 12px 0;
}

.mm-site #payment ul.payment_methods li label {
	color: var(--mm-text);
	font-weight: 700;
}

.mm-site #payment .payment_methods > li .payment_box {
	margin-top: 10px;
	padding: 14px 16px;
	border: 1px solid var(--mm-panel-border);
	border-radius: 4px;
	background: rgba(18, 9, 34, 0.85);
	color: var(--mm-muted);
	font-size: 14px;
}

.mm-site #payment .payment_box::before {
	content: none;
}

.mm-site #payment .woocommerce-privacy-policy-text,
.mm-site #payment .woocommerce-terms-and-conditions-wrapper,
.mm-site #payment .mm-age-confirm {
	color: var(--mm-muted);
	font-size: 13px;
}

.mm-site #payment .woocommerce-privacy-policy-text a,
.mm-site #payment .woocommerce-terms-and-conditions-wrapper a {
	color: var(--mm-teal);
}

/* Zásilkovna (plugin Packeta): malé logo + tyrkysové tlačítko v řádku místo velkého červeného bloku. */
.mm-site .packeta-widget.after-rate {
	margin: 10px 0 0;
	padding: 0;
}

.mm-site .packeta-widget.after-rate .packeta-widget-button {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mm-site .packeta-widget.after-rate .packeta-widget-button img {
	flex: none;
	width: 34px;
	height: 34px;
	margin: 0;
	border-radius: 4px;
}

.mm-site .packeta-widget.after-rate .packeta-widget-button .button {
	width: auto;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--mm-teal);
	border-radius: 4px;
	background: transparent;
	color: var(--mm-teal);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mm-site .packeta-widget.after-rate .packeta-widget-button .button:hover,
.mm-site .packeta-widget.after-rate .packeta-widget-button .button:focus-visible {
	background: rgba(44, 224, 192, 0.08);
	box-shadow: 0 0 12px rgba(44, 224, 192, 0.3);
	color: var(--mm-teal);
}

/* Vybrané výdejní místo a hlášky widgetu. */
.mm-site .packetery-widget-button-wrapper p:not(:empty) {
	margin: 8px 0 0;
	color: var(--mm-text);
	font-size: 13px;
}

.mm-site .packetery-widget-button-wrapper .packeta-widget-info-error {
	color: #FF6B8B;
}

.mm-site .packetery-widget-button-wrapper .packeta-widget-info-success {
	color: var(--mm-teal);
}

/* Informace o ověření věku (inc/packeta.php). */
.mm-site .mm-packeta-note {
	margin: 10px 0 0;
	color: var(--mm-muted);
	font-size: 12px;
	line-height: 1.5;
}

/* Košík nad váhovým limitem Zásilkovny (inc/packeta.php) – místo ceny dopravy. */
.mm-site .mm-packeta-limit {
	margin: 0;
	color: #FF6B8B;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

/* Hlášky WooCommerce (info, chyba, úspěch) – tmavé sklo s barevnou linkou vlevo. */
.mm-site .woocommerce-info,
.mm-site .woocommerce-message,
.mm-site .woocommerce-error {
	background: rgba(18, 9, 34, 0.85);
	border-left: 3px solid var(--mm-teal);
	color: var(--mm-text);
}

.mm-site .woocommerce-error {
	border-left-color: var(--mm-out-of-stock);
}

.mm-site .woocommerce-info a,
.mm-site .woocommerce-message a:not(.button),
.mm-site .woocommerce-error a {
	color: var(--mm-teal);
}

/* Překryv při přepočtu košíku/pokladny (jQuery blockUI) – tmavý místo bílého; barvu nastavuje JS inline. */
.mm-site .blockUI.blockOverlay {
	background: rgba(10, 6, 20, 0.55) !important;
}

/* Mobil: Storefront skládá košík do bloků s popisky – bez šedých pruhů. */
@media (max-width: 767px) {
	.mm-site table.shop_table_responsive tbody tr td,
	.mm-site table.shop_table_responsive tbody tr:nth-child(2n) td {
		background: transparent;
	}

	.mm-site table.cart td.actions .coupon {
		flex-direction: column;
	}

	.mm-site table.cart td.actions .coupon .input-text {
		min-width: 0;
		width: 100%;
	}
}

/*
 * Stránka „Objednávka přijata“ – souhrn objednávky a bankovní spojení.
 * Storefront je kreslí jako bílou účtenku se zubatými okraji (::before/::after);
 * tady skleněný box se zkosenými rohy, ::before nese stejný rámeček jako ostatní boxy.
 */
.mm-site .woocommerce-thankyou-order-received {
	margin: 0 0 1.5em;
	font-size: 20px;
	font-weight: 700;
	color: var(--mm-teal);
}

.mm-site ul.order_details {
	--mm-cut: 18px;
	--mm-frame: linear-gradient(150deg, #C02CC0, #5B2A9C 45%, var(--mm-teal));
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1px;
	margin: 0 0 2em;
	padding: 0;
	background: linear-gradient(180deg, rgba(22, 11, 40, 0.9), rgba(22, 11, 40, 0.35));
	clip-path: polygon(0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)));
}

/* Bankovní spojení má 6 údajů – na širší obrazovce 3 × 2, ať nezůstane jeden osamocený. */
@media (min-width: 900px) {
	.mm-site ul.bacs_details {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mm-site ul.order_details::before,
.mm-site .woocommerce-customer-details address::before {
	content: "";
	display: block;
	position: absolute;
	inset: 0;
	top: 0;
	width: auto;
	height: auto;
	z-index: 2;
	pointer-events: none;
	transform: none;
	background: var(--mm-frame);
	clip-path: polygon(evenodd,
		0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)), 0 0,
		1px 1px, calc(100% - var(--mm-cut) - 0.414px) 1px, calc(100% - 1px) calc(var(--mm-cut) + 0.414px), calc(100% - 1px) calc(100% - 1px), calc(var(--mm-cut) + 0.414px) calc(100% - 1px), 1px calc(100% - var(--mm-cut) - 0.414px), 1px 1px);
}

.mm-site ul.order_details::after {
	display: none;
}

.mm-site ul.order_details li,
.mm-site ul.order_details li:first-child,
.mm-site ul.order_details li:last-child {
	margin: 0;
	padding: 18px 22px;
	border: 0;
	/* Jemné linky mezi buňkami mřížky. */
	box-shadow: 0 0 0 1px rgba(176, 90, 255, 0.18);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mm-muted);
}

.mm-site ul.order_details li strong {
	display: block;
	margin-top: 6px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mm-text);
	overflow-wrap: break-word;
}

/* Mobil: menší hodnoty, aby se IBAN vešel na jeden řádek. */
@media (max-width: 480px) {
	.mm-site ul.order_details li,
	.mm-site ul.order_details li:first-child,
	.mm-site ul.order_details li:last-child {
		padding: 14px 16px;
	}

	.mm-site ul.order_details li strong {
		font-size: 16px;
	}
}

/* Částka zlatě, číslo objednávky / VS tyrkysově – to, co zákazník opisuje do platby. */
.mm-site ul.order_details li.total strong,
.mm-site ul.order_details li.mm_amount strong {
	color: var(--mm-gold);
}

.mm-site ul.order_details li.order strong,
.mm-site ul.order_details li.mm_vs strong {
	color: var(--mm-teal);
}

.mm-site .woocommerce-bacs-bank-details,
.mm-site .woocommerce-order-details,
.mm-site .woocommerce-customer-details {
	margin-top: 2em;
}

/* Adresy zákazníka – zkosený rám jako souhrn objednávky (rám kreslí ::before výše) místo kurzívy Storefrontu. */
.mm-site .woocommerce-customer-details address {
	--mm-cut: 18px;
	--mm-frame: linear-gradient(150deg, #C02CC0, #5B2A9C 45%, var(--mm-teal));
	position: relative;
	padding: 16px 20px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(180deg, rgba(22, 11, 40, 0.9), rgba(22, 11, 40, 0.35));
	clip-path: polygon(0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)));
	font-style: normal;
	line-height: 1.7;
	color: var(--mm-text);
}

.mm-site .woocommerce-customer-details address p {
	margin: 0.4em 0 0;
	color: var(--mm-muted);
}

/* Výdejní místo / osobní odběr – způsob doručení nad adresou místa (woocommerce/order/order-details-customer.php). */
.mm-site .woocommerce-customer-details .mm-delivery__method {
	color: var(--mm-teal);
}

.mm-site .woocommerce-customer-details address p::before {
	color: var(--mm-orchid);
}

.mm-site .woocommerce-table--order-details tfoot td,
.mm-site .woocommerce-table--order-details tfoot tr:nth-last-child(2) td .amount {
	color: var(--mm-text);
}

.mm-site .woocommerce-table--order-details tfoot tr:nth-last-child(2) td > .amount {
	color: var(--mm-gold);
	font-weight: 700;
}
/* ==========================================================================
   13. Cookie lišta Complianz
   Barvy a texty jsou v nastavení lišty (Complianz → Cookie banner); tady písmo,
   zkosené rohy jako u ostatních rámečků a tlačítka v duchu webu.
   Lišta se vkládá na konec <body> – mimo .mm-site.
   ========================================================================== */
body .cmplz-cookiebanner {
	--mm-cut: 22px;
	/* Sklo jako karta produktu: shora dolů ze 100 % do 20 % krytí, rozmazané pozadí. */
	background: linear-gradient(180deg, rgba(22, 11, 40, 1), rgba(22, 11, 40, 0.2));
	border: 0;
	box-shadow: none;
	clip-path: polygon(0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)));
	font-family: var(--mm-font);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	backdrop-filter: blur(14px) saturate(150%);
}

/* Lišta vpravo dole (u záložky Cookies); na mobilu zůstává přes celou šířku. */
@media (min-width: 769px) {
	body .cmplz-cookiebanner.cmplz-bottom-left {
		left: auto;
		right: 10px;
	}
}

/* Rám přes zkosené rohy (box-shadow by ořízl clip-path). */
body .cmplz-cookiebanner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, #C02CC0, #5B2A9C 45%, var(--mm-teal));
	clip-path: polygon(evenodd,
		0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)), 0 0,
		1px 1px, calc(100% - var(--mm-cut) - 0.414px) 1px, calc(100% - 1px) calc(var(--mm-cut) + 0.414px), calc(100% - 1px) calc(100% - 1px), calc(var(--mm-cut) + 0.414px) calc(100% - 1px), 1px calc(100% - var(--mm-cut) - 0.414px), 1px 1px);
	pointer-events: none;
}

body .cmplz-cookiebanner .cmplz-title {
	font-family: var(--mm-font-display);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--mm-pink);
}

body .cmplz-cookiebanner .cmplz-message,
body .cmplz-cookiebanner .cmplz-description {
	color: var(--mm-muted);
	line-height: 1.55;
}

body .cmplz-cookiebanner .cmplz-close {
	color: var(--mm-muted);
}

body .cmplz-cookiebanner .cmplz-close:hover {
	color: var(--mm-orchid);
}

/* Lišta po otevření dostane fokus na křížek – místo zlatého obrysu šablony jemný fialový. */
body .cmplz-cookiebanner .cmplz-close:focus {
	outline: none;
}

body .cmplz-cookiebanner .cmplz-close:focus-visible {
	outline: 1px solid rgba(176, 90, 255, 0.6);
	outline-offset: 2px;
}

/* Kategorie v nastavení. */
body .cmplz-cookiebanner .cmplz-categories .cmplz-category {
	background: rgba(123, 63, 228, 0.12);
	border: 1px solid rgba(176, 90, 255, 0.25);
	border-radius: 0;
}

body .cmplz-cookiebanner .cmplz-category .cmplz-category-title {
	color: var(--mm-text);
	font-weight: 700;
}

body .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-always-active {
	color: var(--mm-teal);
}

/* Šipky pro rozbalení popisu kategorie – světlé jako text (SVG Complianz nemá barvu → byla černá). */
body .cmplz-cookiebanner .cmplz-category-toggle {
	color: var(--mm-text);
}

body .cmplz-cookiebanner .cmplz-category-toggle svg,
body .cmplz-cookiebanner .cmplz-category-toggle svg path {
	fill: currentColor;
}

body .cmplz-cookiebanner .cmplz-category-toggle:hover {
	color: var(--mm-orchid);
}

body .cmplz-cookiebanner .cmplz-category-toggle:focus {
	outline: none;
}

body .cmplz-cookiebanner .cmplz-category-toggle:focus-visible {
	outline: 1px solid rgba(176, 90, 255, 0.6);
	outline-offset: 2px;
}

/* Přepínač kategorie (Statistiky) – stejný jako přepínač věku (.mm-age-gate__track). */
body .cmplz-cookiebanner .cmplz-banner-checkbox input.cmplz-consent-checkbox {
	top: 0;
	left: 0;
	width: 44px;
	height: 24px;
	margin: 0;
}

body .cmplz-cookiebanner .cmplz-banner-checkbox .cmplz-label {
	display: block;
	width: 44px;
	height: 24px;
	padding: 0;
}

body .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox .cmplz-label::before {
	top: 0;
	left: 0;
	width: 44px;
	height: 24px;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid rgba(176, 90, 255, 0.45);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	transition: background 0.2s ease, border-color 0.2s ease;
}

body .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox .cmplz-label::after {
	top: 4px;
	left: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--mm-muted);
	transition: transform 0.2s ease, background 0.2s ease;
}

body .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox input.cmplz-consent-checkbox:checked + .cmplz-label::before {
	background: rgba(44, 224, 192, 0.25);
	border-color: var(--mm-teal);
}

body .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox input.cmplz-consent-checkbox:checked + .cmplz-label::after {
	left: 4px;
	transform: translateX(20px);
	background: var(--mm-teal);
}

body .cmplz-cookiebanner .cmplz-banner-checkbox input.cmplz-consent-checkbox:focus + .cmplz-label::before {
	box-shadow: none;
}

/* Popisky NE / ANO kolem přepínače (jako u věku); klik na ně přepíná také. Funkční je vždy aktivní – bez popisků. */
body .cmplz-cookiebanner .cmplz-category:not(.cmplz-functional) .cmplz-banner-checkbox {
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

body .cmplz-cookiebanner .cmplz-category:not(.cmplz-functional) .cmplz-banner-checkbox::before {
	content: "NE";
	color: var(--mm-text);
}

body .cmplz-cookiebanner .cmplz-category:not(.cmplz-functional) .cmplz-banner-checkbox::after {
	content: "ANO";
	order: 3;
	color: var(--mm-muted);
	opacity: 0.6;
}

html:lang(en) body .cmplz-cookiebanner .cmplz-category:not(.cmplz-functional) .cmplz-banner-checkbox::before {
	content: "NO";
}

html:lang(en) body .cmplz-cookiebanner .cmplz-category:not(.cmplz-functional) .cmplz-banner-checkbox::after {
	content: "YES";
}

body .cmplz-cookiebanner .cmplz-category:not(.cmplz-functional) .cmplz-banner-checkbox:has(input:checked)::before {
	color: var(--mm-muted);
	opacity: 0.6;
}

body .cmplz-cookiebanner .cmplz-category:not(.cmplz-functional) .cmplz-banner-checkbox:has(input:checked)::after {
	color: var(--mm-teal);
	opacity: 1;
}

body .cmplz-cookiebanner .cmplz-category:not(.cmplz-functional) .cmplz-banner-checkbox input.cmplz-consent-checkbox {
	width: 100%;
	height: 100%;
}

body .cmplz-cookiebanner .cmplz-banner-checkbox input.cmplz-consent-checkbox:focus-visible + .cmplz-label::before {
	outline: 1px solid rgba(176, 90, 255, 0.6);
	outline-offset: 2px;
}

/* Tlačítka – obrys a jemná záře jako tlačítka na kartách produktů. */
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	height: 42px;
	border-width: 1px;
	font-family: var(--mm-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
	background: rgba(123, 63, 228, 0.35);
	border-color: var(--mm-purple-2);
	color: #FFFFFF;
}

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
	background: rgba(123, 63, 228, 0.6);
	box-shadow: 0 0 14px rgba(155, 92, 255, 0.55);
}

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept) {
	background: transparent;
	border-color: rgba(176, 90, 255, 0.45);
	color: var(--mm-text);
}

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept):hover {
	background: rgba(176, 90, 255, 0.1);
	color: #A77BF0;
}

/* Odkazy na dokumenty pod tlačítky. */
body .cmplz-cookiebanner .cmplz-links .cmplz-link {
	color: var(--mm-link-soft);
}

body .cmplz-cookiebanner .cmplz-links .cmplz-link:hover {
	color: var(--mm-link-soft-hover);
}

/* Záložka „Cookies“ pro pozdější změnu souhlasu. */
/*
 * Zlatá jako „Vložit do košíku“ (obrys + text, při najetí zlatý nádech), zkosený pravý horní roh
 * jako ostatní rámečky. Obrys kreslí ::before (border by zkosení ořízlo), dole obrys není.
 */
body #cmplz-manage-consent .cmplz-manage-consent {
	--mm-cut: 12px;
	/* Vpravo dole (Complianz ji podle pozice lišty dává vlevo). */
	right: 40px;
	left: auto;
	background: #160B2A;
	border: 0;
	border-radius: 0;
	clip-path: polygon(0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, 0 100%);
	color: var(--mm-gold);
	font-family: var(--mm-font);
	font-weight: 600;
	transition: background 0.2s ease;
}

body #cmplz-manage-consent .cmplz-manage-consent::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--mm-gold);
	clip-path: polygon(evenodd,
		0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, 0 100%, 0 0,
		1px 1px, calc(100% - var(--mm-cut) - 0.414px) 1px, calc(100% - 1px) calc(var(--mm-cut) + 0.414px), calc(100% - 1px) 100%, 1px 100%, 1px 1px);
	pointer-events: none;
}

body #cmplz-manage-consent .cmplz-manage-consent:hover,
body #cmplz-manage-consent .cmplz-manage-consent:focus {
	background: linear-gradient(rgba(242, 184, 75, 0.12), rgba(242, 184, 75, 0.12)), #160B2A;
	color: var(--mm-gold);
}

/* Věková brána (inc/age-gate.php, assets/js/age-gate.js): řádek s přepínačem NE/ANO. */
body .mm-age-gate {
	margin-top: 12px;
	padding: 12px 14px;
	background: rgba(123, 63, 228, 0.12);
	border: 1px solid rgba(176, 90, 255, 0.25);
}

body .mm-age-gate__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

body .mm-age-gate__text {
	color: var(--mm-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

body .mm-age-gate__switch {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

body .mm-age-gate__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

body .mm-age-gate__track {
	position: relative;
	width: 44px;
	height: 24px;
	border: 1px solid rgba(176, 90, 255, 0.45);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	transition: background 0.2s ease, border-color 0.2s ease;
}

body .mm-age-gate__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--mm-muted);
	transition: transform 0.2s ease, background 0.2s ease;
}

body .mm-age-gate__state--no {
	color: var(--mm-text);
}

body .mm-age-gate__state--yes {
	color: var(--mm-muted);
	opacity: 0.6;
}

body .mm-age-gate__input:checked ~ .mm-age-gate__track {
	background: rgba(44, 224, 192, 0.25);
	border-color: var(--mm-teal);
}

body .mm-age-gate__input:checked ~ .mm-age-gate__track::after {
	transform: translateX(20px);
	background: var(--mm-teal);
}

body .mm-age-gate__switch:has(.mm-age-gate__input:checked) .mm-age-gate__state--no {
	color: var(--mm-muted);
	opacity: 0.6;
}

body .mm-age-gate__input:checked ~ .mm-age-gate__state--yes {
	color: var(--mm-teal);
	opacity: 1;
}

body .mm-age-gate__input:focus-visible ~ .mm-age-gate__track {
	outline: 1px solid rgba(176, 90, 255, 0.6);
	outline-offset: 2px;
}

body .mm-age-gate__hint {
	display: none;
	margin: 8px 0 0;
	color: #FF6A3D;
	font-size: 12px;
}

html.mm-age-locked body .mm-age-gate__hint {
	display: block;
}

/* Po potvrzení na téže stránce nápověda jen zneviditelní – místo zůstane, okno ani lišta neposkočí. */
html.mm-age-was-locked:not(.mm-age-locked) body .mm-age-gate__hint {
	display: block;
	visibility: hidden;
}

/* Bez potvrzení: tlačítka a křížek jsou zašedlé. */
html.mm-age-locked body .cmplz-cookiebanner .cmplz-accept,
html.mm-age-locked body .cmplz-cookiebanner .cmplz-deny,
html.mm-age-locked body .cmplz-cookiebanner .cmplz-save-preferences,
html.mm-age-locked body .cmplz-cookiebanner .cmplz-close {
	opacity: 0.4;
	cursor: not-allowed;
}

body .mm-age-gate--shake {
	animation: mm-age-shake 0.4s ease;
}

@keyframes mm-age-shake {
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

/* Vlastní okno s věkem – jen když lištu Complianz skryje blokovač (assets/js/age-gate.js). */
#mm-entry {
	display: none;
}

html.mm-age-locked #mm-entry,
#mm-entry.mm-entry--closing {
	--mm-cut: 22px;
	display: block;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: min(480px, calc(100vw - 32px));
	padding: 22px 22px 20px;
	transform: translate(-50%, -50%);
	/* Sklo jako karta produktu: shora dolů ze 100 % do 20 % krytí, rozmazané pozadí. */
	background: linear-gradient(180deg, rgba(22, 11, 40, 1), rgba(22, 11, 40, 0.2));
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	backdrop-filter: blur(14px) saturate(150%);
	clip-path: polygon(0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)));
	color: var(--mm-text);
	font-family: var(--mm-font);
}

/* Po ANO: tyrkysový přepínač ještě chvíli vidět, pak okno zmizí. */
#mm-entry.mm-entry--closing {
	animation: mm-entry-out 0.35s ease 1s forwards;
}

/* Přepínač v okně dojede do ANO pomaleji (0,5 s), aby byl vidět. */
#mm-entry .mm-age-gate__track,
#mm-entry .mm-age-gate__track::after {
	transition-duration: 0.5s;
}

@keyframes mm-entry-out {
	to { opacity: 0; }
}

html.mm-age-locked #mm-entry::before,
#mm-entry.mm-entry--closing::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, #C02CC0, #5B2A9C 45%, var(--mm-teal));
	clip-path: polygon(evenodd,
		0 0, calc(100% - var(--mm-cut)) 0, 100% var(--mm-cut), 100% 100%, var(--mm-cut) 100%, 0 calc(100% - var(--mm-cut)), 0 0,
		1px 1px, calc(100% - var(--mm-cut) - 0.414px) 1px, calc(100% - 1px) calc(var(--mm-cut) + 0.414px), calc(100% - 1px) calc(100% - 1px), calc(var(--mm-cut) + 0.414px) calc(100% - 1px), 1px calc(100% - var(--mm-cut) - 0.414px), 1px 1px);
	pointer-events: none;
}

#mm-entry .mm-entry__title {
	margin-bottom: 4px;
	text-align: center;
	font-family: var(--mm-font-display);
	font-size: 22px;
	color: var(--mm-pink);
}

/* Zakrytý web pod lištou. */
#mm-age-wall {
	display: none;
}

html.mm-age-locked #mm-age-wall {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(8, 4, 18, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* Posuvník stránky se při zamčení neskrývá – jinak by se po odemčení obsah posunul do strany. */

@media (max-width: 480px) {
	body .mm-age-gate__row {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* ==========================================================================
   15. Výpis článků (Návody) – náhled vlevo, perex a „Číst dál“ vpravo
   ========================================================================== */

/* Mřížka jen u článků s náhledovým obrázkem – bez něj text zabírá celou šířku. */
.mm-post-teaser--thumb {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: start;
}

/* Clearfix Storefrontu (::before/::after) by v mřížce zabral první buňku. */
.mm-post-teaser::before,
.mm-post-teaser::after {
	display: none;
}

.mm-post-teaser__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.mm-post-teaser__text > :last-child {
	margin-bottom: 0;
}

/* „Číst dál“ – stejně jako „Zobrazit detail“ na kartě produktu (sekce 7). */
.mm-post-teaser .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 22px;
	border: 1px solid var(--mm-teal);
	border-radius: 4px;
	background: transparent;
	color: var(--mm-teal);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mm-post-teaser .button:hover,
.mm-post-teaser .button:focus-visible {
	background: rgba(44, 224, 192, 0.08);
	box-shadow: 0 0 12px rgba(44, 224, 192, 0.3);
	color: var(--mm-teal);
}

@media (max-width: 600px) {
	.mm-post-teaser--thumb {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   16. Mobil – doladění (okraje, nadpisy, prázdná místa)
   ========================================================================== */

/* Prázdná cena (produkty „Pouze k nahlédnutí“) nesmí dělat mezeru v souhrnu. */
.mm-site div.product .summary p.price:empty {
	display: none;
}

/* Datum a autor u článků – čitelnější než šedá ze Storefrontu. */
.mm-site .hentry .entry-header .posted-on,
.mm-site .hentry .entry-header .post-author {
	color: var(--mm-muted);
}

.mm-site .hentry .entry-header .posted-on a,
.mm-site .hentry .entry-header .post-author a {
	color: var(--mm-link-soft);
}

.mm-site .hentry .entry-header .posted-on a:hover,
.mm-site .hentry .entry-header .post-author a:hover {
	color: var(--mm-link-soft-hover);
}

@media (max-width: 568px) {
	/* Boxy blíž k okraji displeje: 16 px místo 21 + 16 px. */
	.col-full {
		margin-left: 0;
		margin-right: 0;
		padding-left: 16px;
		padding-right: 16px;
	}

	/* Bez velké mezery pod hlavičkou (Storefront ji dává na úvodní stránce). */
	.site-header,
	.no-wc-breadcrumb .site-header,
	.home.blog .site-header,
	.home.page:not(.page-template-template-homepage) .site-header,
	.home.post-type-archive-product .site-header {
		margin-bottom: 0;
	}

	/* Prázdný kontejner hlášek WooCommerce by zdvojil mezeru mezi boxy. */
	.woocommerce-notices-wrapper:empty {
		display: none;
	}

	/* Cena v souhrnu produktu hned nahoře, bez prázdného místa. */
	.mm-site div.product .summary p.price {
		margin-top: 0;
	}

	/* Záhlaví stránky jen tak vysoké, jak potřebuje obsah. */
	.mm-cat-hero {
		min-height: 0;
		padding-bottom: 18px;
	}

	h1.mm-cat-hero__title {
		margin-bottom: 0;
		font-size: 26px;
	}

	.mm-cat-hero__desc {
		margin-top: 12px;
	}

	/* Nadpisy v obsahu – „MagicMushrooms.Space“ se vejde na řádek. */
	.mm-site .entry-content h1,
	.mm-site .entry-content h2:not(.woocommerce-loop-product__title) {
		font-size: 25px;
		line-height: 1.2;
	}
}
