/*
Theme Name: Crea Ti Vita
Theme URI: https://www.crea-ti-vita.com
Author: Meliora
Description: Eshop Crea Ti Vita (knihy, výpravy, obrazy). Čierny minimalistický dizajn zladený s tvorsi.com, WooCommerce.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crea-ti-vita
*/

/* ==========================================================================
   1. Dizajnové tokeny (redizajn v2, farby z tvorsi.com)
   ========================================================================== */

:root {
	--black: #000;
	--white: #fff;
	--navy: #0e092b;
	--cyan: #00c9ff;
	--magenta: #ff00ec;
	--yellow: #ffe600;
	--tile: #121214;
	--rainbow: linear-gradient(90deg, #ff00ec, #ff4a4a, #ff9a1f, #f6ec00, #00c9ff);

	/* Tmavé plochy (úvod, hlavička, pätička) */
	--on-bg: #fff;
	--on-bg-soft: rgba(255, 255, 255, .78);
	--on-bg-line: rgba(255, 255, 255, .16);

	/* Biele plochy podstránok (košík, pokladňa, účet, texty) */
	--ink: #000;
	--body-text: #333;
	--muted: #6b6b6b;
	--line: #d6d6d6;
	--cream: #fff;
	--cream-2: #f3f3f3;
	--red: #d400c4;
	--tomato: #d400c4;
	--tomato-dark: #a50099;
	--terra: #0e092b;
	--basil: #008a5c;
	--quote-left: #00c9ff;
	--quote-right: #ff00ec;

	--red: #fa3c0a;
	--plate: #ececec;

	/* Biely režim celého webu (18. 11. 2026): pôvodná téma bola tmavá, preto sú --black a --white
	   prehodené. Skutočná čierna a biela sú --k a --w (päta, tlačidlá, hlavička). */
	--k: #000;
	--w: #fff;
	--black: #fff;
	--white: #000;
	--on-bg: #000;
	--on-bg-soft: rgba(0, 0, 0, .72);
	--on-bg-line: rgba(0, 0, 0, .16);
	--tile: #f3f3f3;
	--cyan: #fa3c0a;
	--quote-left: #fa3c0a;
	--quote-right: #fa3c0a;
	--magenta: #fa3c0a;
	--tomato: #fa3c0a;
	--tomato-dark: #c92f06;
	--font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-quote: var(--font);
	--tight: -.055em;
	--hh: 88px;
	--pad: clamp(18px, 4.5vw, 72px);
	--maxw: 1280px;
	--gutter: 44px;
	--gutter-sm: 22px;
	--radius: 0;
	--radius-lg: 0;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
   2. Reset a základ
   ========================================================================== */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--hh) + 12px);
}

body {
	font-family: var(--font);
	color: var(--on-bg);
	background: var(--black);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 3px;
}

.woo-page :focus-visible {
	outline-color: var(--tomato);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 14px 24px;
	background: var(--white);
	color: var(--black);
}

.skip-link:focus {
	left: 0;
	top: 0;
}

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.kicker {
	font-size: 18px;
	font-weight: 300;
	color: var(--red);
	line-height: 1;
}

/* Slovo v rámčeku ako „Kreativita“ na tvorsi.com */
.tag {
	background: var(--black);
	color: var(--white);
	padding: 0 .18em .04em;
}

.tag--white {
	background: var(--white);
	color: var(--black);
	font-weight: 700;
}

/* Podstránky začínajú pod pevnou hlavičkou, úvod má hero pod ňou. */
body:not(.home) #content {
	padding-top: var(--hh);
}

/* ==========================================================================
   3. Tlačidlá
   ========================================================================== */

.btn,
.ctv-btn,
.card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--white);
	color: var(--black);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: background-color .25s, color .25s, box-shadow .25s;
}

.btn::after,
.card__btn::after {
	content: "→";
	transition: transform .25s var(--ease);
}

.btn:hover,
.card__btn:hover {
	background: var(--cyan);
	color: var(--black);
}

.btn:hover::after,
.card__btn:hover::after {
	transform: translateX(4px);
}

/* Woo pri AJAX pridaní do košíka */
.btn.loading {
	opacity: .6;
	pointer-events: none;
}

.btn.added::after {
	content: "✓";
}

.btn--black,
.btn-solid,
.btn-dark {
	background: var(--black);
	color: var(--white);
}

.btn--black:hover {
	background: var(--white);
	color: var(--black);
}

.btn-solid:hover,
.btn-dark:hover {
	background: var(--cyan);
	color: var(--black);
}

.btn--ghost,
.btn-ink {
	background: none;
	color: var(--black);
	box-shadow: inset 0 0 0 2px var(--black);
}

.btn--ghost:hover,
.btn-ink:hover {
	background: var(--black);
	color: var(--white);
}

/* ==========================================================================
   4. Hlavička
   ========================================================================== */

.site-header {
	position: fixed;
	z-index: 50;
	top: 0;
	left: 0;
	right: 0;
	color: var(--on-bg);
	transition: background-color .35s, transform .45s var(--ease);
}

.site-header.is-scrolled,
body:not(.home) .site-header {
	background: rgba(0, 0, 0, .84);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 18px var(--pad);
	transition: padding .35s var(--ease);
}

.site-header.is-scrolled .site-nav {
	padding-top: 11px;
	padding-bottom: 11px;
}

.nav-left {
	display: flex;
	align-items: center;
}

/* Logo je v hlavičke biele (zdroj je červený obrázok) */
.site-logo {
	width: auto;
	height: 52px;
	filter: brightness(0) invert(1);
	transition: height .35s var(--ease);
}

.site-header.is-scrolled .site-logo {
	height: 42px;
}

.navlinks {
	display: flex;
	gap: clamp(22px, 3.4vw, 48px);
	list-style: none;
	font-size: 16px;
	font-weight: 700;
}

.navlinks a {
	position: relative;
	display: block;
	padding: 8px 0;
}

.navlinks a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	background: var(--cyan);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--ease);
}

.navlinks a:hover::after,
.navlinks .current-menu-item a::after {
	transform: scaleX(1);
}

.nav-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.nav-icon,
.navcart,
.burger {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: inherit;
	transition: background-color .25s, color .25s;
}

.nav-icon svg,
.navcart svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nav-icon:hover,
.navcart:hover,
.navcart[aria-expanded="true"] {
	background: var(--white);
	color: var(--black);
}

.ctv-cart-count {
	position: absolute;
	right: 1px;
	top: 1px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	background: var(--cyan);
	color: var(--black);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.ctv-cart-count[data-count="0"] {
	display: none;
}

.cart-dropdown {
	position: relative;
}

.cart-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	width: min(380px, 92vw);
	max-height: 70vh;
	overflow: auto;
	padding: 20px;
	background: var(--w);
	color: var(--ink);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.cart-panel[hidden] {
	display: none;
}

/* Hamburger (tri čiarky) vľavo hore, v otvorenom menu sa zloží do krížika */
.nav-left {
	gap: clamp(8px, 1.4vw, 20px);
}

.burger i {
	position: absolute;
	left: 9px;
	right: 9px;
	height: 2.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .4s var(--ease), opacity .2s;
}

.burger i:nth-child(1) {
	transform: translateY(-7px);
}

.burger i:nth-child(3) {
	transform: translateY(7px);
}

.burger:hover {
	background: var(--white);
	color: var(--black);
}

.menu-open .burger i:nth-child(1) {
	transform: rotate(45deg);
}

.menu-open .burger i:nth-child(2) {
	opacity: 0;
}

.menu-open .burger i:nth-child(3) {
	transform: rotate(-45deg);
}

/* Menu cez celú obrazovku */
.mobile-menu {
	position: fixed;
	z-index: 49;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	padding: 120px var(--pad) 34px;
	overflow-y: auto;
	background: var(--black);
	border-bottom: 6px solid;
	border-image: var(--rainbow) 1;
	visibility: hidden;
	opacity: 0;
	transition: opacity .35s, visibility 0s .35s;
}

.mobile-menu.open {
	visibility: visible;
	opacity: 1;
	transition: opacity .35s;
}

body.menu-open {
	overflow: hidden;
}

.menu-open .site-header {
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	transform: none;
}

.mobile-menu ul {
	list-style: none;
}

.mobile-links {
	display: grid;
	gap: 6px;
}

.mobile-links a {
	display: inline-block;
	/* Osem položiek sa má zmestiť na výšku obrazovky */
	font-size: clamp(1.9rem, 6.4vh, 3.8rem);
	font-weight: 700;
	letter-spacing: var(--tight);
	line-height: 1.02;
	transition: color .2s;
}

.mobile-links a:hover {
	color: var(--cyan);
}

.mobile-more {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 1.05rem;
	font-weight: 300;
	color: var(--on-bg-soft);
}

.mobile-more a:hover {
	color: var(--white);
}

.mobile-menu .search-form {
	display: flex;
	max-width: 520px;
	border-bottom: 2px solid var(--white);
}

.mobile-menu .search-form label {
	flex: 1;
}

.mobile-menu .search-field {
	width: 100%;
	padding: 12px 0;
	border: 0;
	background: transparent;
	font-size: 18px;
	color: var(--white);
}

.mobile-menu .search-field::placeholder {
	color: var(--on-bg-soft);
}

.mobile-menu .search-field:focus {
	outline: none;
}

.mobile-menu .search-submit {
	padding: 0 6px;
	border: 0;
	background: none;
	font-weight: 700;
	font-size: 16px;
	color: var(--white);
}

.mobile-menu .search-submit:hover {
	color: var(--cyan);
}

/* ==========================================================================
   5. Úvodná stránka
   ========================================================================== */

.hero {
	position: relative;
	height: 100svh;
	min-height: 620px;
	max-height: 1100px;
	overflow: hidden;
	background: var(--black);
}

.hero__img {
	position: absolute;
	inset: 0;
	background: url(assets/img/hero.webp) center top / cover no-repeat;
	will-change: transform;
	/* backwards: po dobehnutí už transform riadi paralaxa zo skriptu */
	animation: ctvHeroIn 1.6s var(--ease) backwards;
}

/* Jemné stmavenie hore, aby sa menu čítalo aj cez kvety */
.hero::before {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	top: 0;
	height: 24%;
	background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 22%;
	background: linear-gradient(rgba(0, 201, 255, 0), var(--cyan));
	pointer-events: none;
}

@keyframes ctvHeroIn {
	from { transform: scale(1.12); filter: brightness(.4) saturate(1.6); }
	to { transform: scale(1); filter: none; }
}

.hero__award {
	position: absolute;
	left: var(--pad);
	top: 44%;
	width: clamp(110px, 15vw, 210px);
	animation: ctvFadeUp 1s .9s var(--ease) both;
}

.hero__book {
	position: absolute;
	z-index: 3;
	right: clamp(12px, 9vw, 150px);
	top: 30%;
	width: clamp(140px, 19vw, 290px);
	transform-style: preserve-3d;
	animation: ctvBookIn 1.2s .7s var(--ease) both;
}

.hero__book img {
	transform: rotate(7deg);
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
	animation: ctvFloat 6s ease-in-out infinite;
}

/* Nálepka cez roh knihy: žltý kruh, hlavná správa veľkým písmom, doplnok malým */
.hero__sticker {
	position: absolute;
	z-index: 2;
	left: -20%;
	top: -13%;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: .28em;
	width: clamp(92px, 10.5vw, 164px);
	aspect-ratio: 1;
	padding: 9%;
	background: var(--yellow);
	color: var(--black);
	border-radius: 50%;
	box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
	text-align: center;
	line-height: 1;
	transform: rotate(-12deg);
	animation: ctvSticker 4.5s ease-in-out infinite;
}

.hero__sticker b:first-child {
	font-size: clamp(17px, 2vw, 31px);
	font-weight: 700;
	letter-spacing: -.05em;
	line-height: .92;
}

.hero__sticker b:last-child {
	font-size: clamp(9px, .95vw, 14px);
	font-weight: 400;
	letter-spacing: -.01em;
	line-height: 1.1;
}

@keyframes ctvSticker {
	0%, 100% { transform: rotate(-12deg) scale(1); }
	50% { transform: rotate(-7deg) scale(1.07); }
}

@keyframes ctvBookIn {
	from { opacity: 0; transform: translateY(80px) rotate(-18deg) scale(.7); }
	to { opacity: 1; transform: none; }
}

@keyframes ctvFloat {
	0%, 100% { transform: rotate(7deg) translateY(0); }
	50% { transform: rotate(5deg) translateY(-14px); }
}

@keyframes ctvFadeUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: none; }
}

.hero__title {
	--d: 350ms;
	position: absolute;
	z-index: 2;
	left: var(--pad);
	right: var(--pad);
	bottom: clamp(10px, 3vh, 34px);
	font-size: clamp(2.9rem, 11.6vw, 12.4rem);
	font-weight: 700;
	letter-spacing: var(--tight);
	line-height: .88;
	text-shadow: 0 6px 40px rgba(0, 60, 90, .25);
}

/* Slová, ktoré vyskočia spoza hrany */
.w {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
	padding: .18em .2em .14em 0;
	margin: -.18em -.2em -.14em 0;
}

.w > span {
	display: inline-block;
}

.js .w > span {
	transform: translateY(112%) rotate(6deg);
	transition: transform 1s var(--ease);
	transition-delay: calc(var(--i) * 110ms + var(--d, 0ms));
}

.js .is-in .w > span {
	transform: none;
}

/* Úvodný text na tyrkysovej */
.lead {
	background: var(--cyan);
	color: var(--black);
	padding: clamp(28px, 5vw, 70px) var(--pad) clamp(50px, 7vw, 100px);
}

.lead__text {
	max-width: 22em;
	font-size: clamp(1.55rem, 3.7vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.08;
}

.lead__sub {
	max-width: 30em;
	margin-top: 22px;
	font-size: clamp(1.15rem, 2vw, 1.8rem);
	letter-spacing: -.02em;
	line-height: 1.25;
}

/* Nízke boxy pod hero: malý náhľad vľavo, názov sekcie vpravo */
.picks {
	display: grid;
	grid-template-columns: repeat(var(--picks, 3), minmax(0, 1fr));
	gap: clamp(6px, 1.2vw, 16px);
	max-width: calc(var(--picks, 3) * 327px);
	margin-top: clamp(26px, 4vw, 48px);
}

.pick {
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.4vw, 18px);
	padding-right: clamp(8px, 1.6vw, 22px);
	background: var(--black);
	color: var(--white);
	overflow: hidden;
	transition: background-color .3s, color .3s;
}

.pick__img {
	flex: none;
	display: block;
	width: clamp(40px, 6.4vw, 84px);
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--tile);
}

.pick__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--ease);
}

.pick--knihy .pick__img img {
	object-fit: contain;
	padding: 10% 0;
}

.pick__label {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: clamp(.95rem, 1.9vw, 1.6rem);
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1;
}

.pick__label i {
	font-style: normal;
	font-weight: 300;
	transition: transform .3s var(--ease);
}

.pick:hover {
	background: var(--white);
	color: var(--black);
}

.pick:hover .pick__img img {
	transform: scale(1.08);
}

.pick:hover .pick__label i {
	transform: translateX(5px);
}

/* Nadpisy sekcií: slovo v bielom rámčeku, zvyšok ľahkým písmom */
.sec-title {
	font-size: clamp(1.9rem, 4.4vw, 3.8rem);
	font-weight: 300;
	letter-spacing: -.045em;
	line-height: 1.15;
	margin-bottom: clamp(26px, 4vw, 54px);
}

/* Polica: všetky produkty majú rovnakú kartu */
.shelf {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: clamp(70px, 10vw, 150px) var(--pad) 0;
}

/* Za poslednou sekciou nasleduje rovno pätička s kontaktmi */
.shelf:last-of-type {
	padding-bottom: clamp(70px, 10vw, 150px);
}

.shelf__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(44px, 6vw, 96px) clamp(24px, 5vw, 80px);
}

/* Riadky karty (recenzia, obrázok, názov, podtitul, cena) sa zarovnajú s vedľajšou kartou */
.card {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 5;
	row-gap: 0;
	min-width: 0;
}

.card > .card__media { grid-row: 2; }
.card > .card__title { grid-row: 3; }
.card > .card__sub { grid-row: 4; }
.card > .card__buy { grid-row: 5; }

.card:nth-child(even) {
	transition-delay: .12s;
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--tile);
}

.card__media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .9s var(--ease);
}

.card--knihy .card__media > img {
	object-fit: contain;
	padding: 11%;
	filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5));
}

.card:hover .card__media > img {
	transform: scale(1.04);
}

/* Obraz sa po chvíli prepne na pohľad v interiéri, šípka ho vráti */
.art__solo,
.art__solo img {
	display: block;
	width: 100%;
	height: 100%;
}

.art__solo img {
	object-fit: cover;
	transition: transform 1.1s var(--ease), opacity .9s;
}

.art__room {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.08);
	transition: opacity .9s, transform 1.3s var(--ease);
	pointer-events: none;
}

.art.is-room .art__room {
	opacity: 1;
	transform: none;
}

.art.is-room .art__solo img {
	opacity: 0;
	transform: scale(.5);
}

.art__toggle {
	position: absolute;
	left: 14px;
	top: 14px;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	color: var(--white);
	background: rgba(0, 0, 0, .28);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1.5px solid rgba(255, 255, 255, .8);
	border-radius: 50%;
	transition: background-color .25s;
}

.art__toggle svg {
	transition: transform .4s var(--ease);
}

/* Pri samotnom obraze šípka ukazuje dopredu (do interiéru), v interiéri späť */
.art:not(.is-room) .art__toggle svg {
	transform: rotate(180deg);
}

.art__toggle:hover {
	background: rgba(0, 0, 0, .6);
}

.card__title {
	font-size: clamp(1.7rem, 3.2vw, 2.8rem);
	font-weight: 700;
	letter-spacing: -.045em;
	line-height: 1;
	margin-top: clamp(20px, 2.6vw, 32px);
}

.card__title a:hover {
	color: var(--cyan);
}

.card__sub {
	margin-top: 10px;
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
	font-weight: 300;
	line-height: 1.35;
	color: var(--on-bg-soft);
}

.card__buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--on-bg-line);
}

.card__price {
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1;
}

.card__price small {
	font-size: .45em;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--on-bg-soft);
}

.card .added_to_cart {
	display: none;
}

.card__quote {
	grid-row: 1;
	align-self: end;
	margin: 0 0 clamp(16px, 2vw, 24px);
}

.card__quote p {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.18;
	color: var(--cyan);
	text-wrap: balance;
}

.card__quote footer {
	margin-top: 12px;
	font-size: .95rem;
	line-height: 1.35;
	color: var(--on-bg-soft);
}

.card__quote b,
.card__quote span {
	display: block;
}

.card__quote b {
	color: var(--white);
	font-weight: 700;
}

/* Rozbaľovací blok „8 dôvodov“ */
.reasons__list {
	max-width: 980px;
	border-bottom: 1px solid var(--on-bg-line);
}

.reasons__item {
	border-top: 1px solid var(--on-bg-line);
}

.reasons__item summary {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.4vw, 30px);
	padding: clamp(16px, 2.2vw, 24px) 0;
	font-size: clamp(1.4rem, 3.2vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -.045em;
	line-height: 1.05;
	cursor: pointer;
	list-style: none;
	transition: color .2s;
}

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

.reasons__item summary span {
	flex: none;
	min-width: 2.2em;
	font-weight: 300;
	color: var(--on-bg-soft);
	transition: color .2s;
}

.reasons__item summary::after {
	content: "+";
	flex: none;
	width: 40px;
	height: 40px;
	margin-left: auto;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--on-bg-line);
	border-radius: 50%;
	font-size: 1.5rem;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1;
	transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}

.reasons__item summary:hover,
.reasons__item summary:hover span {
	color: var(--cyan);
}

.reasons__item[open] summary::after {
	transform: rotate(45deg);
	background: var(--cyan);
	border-color: var(--cyan);
	color: var(--black);
}

.reasons__item p {
	max-width: 40em;
	padding: 0 56px clamp(22px, 3vw, 34px) calc(2.2em + clamp(14px, 2.4vw, 30px));
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.6;
	color: var(--on-bg-soft);
}

/* Odkrývanie pri scrollovaní */
.js .reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .8s var(--ease), transform .9s var(--ease);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   6. Pätička: čierna s tenkou dúhou z tvorsi.com
   ========================================================================== */

.site-footer {
	--black: #000;
	--white: #fff;
	--on-bg: #fff;
	--on-bg-soft: rgba(255, 255, 255, .78);
	--on-bg-line: rgba(255, 255, 255, .16);
	--cyan: #fa3c0a;
	position: relative;
	padding: clamp(40px, 6vw, 70px) var(--pad) 28px;
	border-top: 6px solid;
	border-image: var(--rainbow) 1;
	background: var(--black);
	color: var(--on-bg-soft);
	font-size: 16px;
}

.foot__inner {
	max-width: var(--maxw);
	margin: 0 auto;
}

.foot__cols {
	display: grid;
	grid-template-columns: minmax(150px, 1.5fr) repeat(3, minmax(0, 1.2fr)) minmax(150px, 1fr);
	gap: 30px clamp(24px, 4vw, 60px);
	align-items: start;
}

.foot__logo {
	width: clamp(120px, 12vw, 180px);
	height: auto;
}

/* Logo autora: biele na čiernej, splýva s pätičkou */
.foot__noma {
	justify-self: end;
	width: clamp(150px, 15vw, 210px);
	height: auto;
}

@media (max-width: 900px) {
	.foot__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.foot__noma {
		justify-self: start;
	}
}

.site-footer h4 {
	font-size: 1.3rem;
	font-weight: 300;
	letter-spacing: -.03em;
	color: var(--white);
	margin-bottom: 10px;
}

.site-footer ul {
	list-style: none;
}

.site-footer a {
	transition: color .2s;
}

.site-footer a:hover {
	color: var(--cyan);
}

.foot__copy {
	margin-top: 44px;
	font-size: 13px;
}

/* Tablet a mobil */
@media (max-width: 760px) {
	:root {
		--hh: 74px;
		--gutter: 22px;
	}

	.site-nav {
		grid-template-columns: 1fr auto;
		padding: 14px var(--pad);
	}

	.site-header.is-scrolled .site-nav {
		padding-top: 9px;
		padding-bottom: 9px;
	}

	.site-logo {
		height: 46px;
	}

	.site-header.is-scrolled .site-logo {
		height: 38px;
	}

	.navlinks,
	.nav-icon--wide {
		display: none;
	}

	.hero {
		height: 92svh;
		min-height: 560px;
		background: linear-gradient(var(--black) 45%, var(--cyan) 45%);
	}

	/* Na výšku sa obrázok zmenší, aby bolo vidno kvety, zvyšok dopĺňa tyrkysová. */
	.hero__img {
		background-size: auto 66%;
		-webkit-mask-image: linear-gradient(#000 60%, transparent 66%);
		mask-image: linear-gradient(#000 60%, transparent 66%);
	}

	.hero__award {
		top: 46%;
		left: 14px;
		width: 96px;
	}

	.hero__book {
		top: auto;
		bottom: 25%;
		right: 14px;
		width: 30vw;
	}

	.hero__title {
		font-size: 12.4vw;
	}

	/* na mobile je kniha malá, nálepka ju nesmie zakryť */
	.hero__sticker {
		left: -46%;
		top: -22%;
		width: 76px;
	}

	.hero__sticker b:first-child {
		font-size: 15px;
	}

	.hero__sticker b:last-child {
		font-size: 8px;
	}

	.shelf__grid,
	.foot__cols {
		grid-template-columns: 1fr;
	}

	.pick__label i {
		display: none;
	}

	.reasons__item p {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ==========================================================================
   7. Textový obsah stránok
   ========================================================================== */

.entry-media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 44px;
}

.entry-content {
	max-width: 760px;
	margin: 0 auto;
	font-size: 18px;
	color: var(--body-text);
}

.entry-content > * + * {
	margin-top: 22px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	letter-spacing: -.03em;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.15;
	margin-top: 46px;
}

.entry-content h2 {
	font-size: 34px;
}

.entry-content h3 {
	font-size: 26px;
}

.entry-content h4 {
	font-size: 21px;
}

.entry-content a {
	color: var(--tomato);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 22px;
}

.entry-content li + li {
	margin-top: 8px;
}

.entry-content blockquote {
	border-left: 3px solid var(--terra);
	padding-left: 26px;
	letter-spacing: -.03em;
	font-size: 24px;
	color: var(--ink);
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	text-align: left;
	vertical-align: top;
	padding: 12px 18px 12px 0;
	border-bottom: 1px solid var(--line);
}

/* Široké tabuľky (právne dokumenty) sa na mobile posúvajú vo vnútri, nie celá stránka. */
@media (max-width: 639px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
		font-size: 15px;
	}

	.entry-content th,
	.entry-content td {
		min-width: 130px;
	}
}

.entry-empty {
	text-align: center;
	color: var(--muted);
	padding: 60px 0;
}

.page-links {
	margin-top: 34px;
	display: flex;
	gap: 10px;
}


/* ==========================================================================
   8. Formuláre (odstúpenie od zmluvy a pod.)
   ========================================================================== */

.ctv-withdrawal-form {
	max-width: 560px;
	margin-top: 26px;
}

.ctv-withdrawal-form p {
	margin-bottom: 16px;
}

.ctv-withdrawal-form label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--body-text);
}

.ctv-withdrawal-form input[type="text"],
.ctv-withdrawal-form input[type="email"],
.ctv-withdrawal-form textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1.5px solid var(--line);
	border-radius: 0;
	font-size: 15px;
	background: #fff;
	color: var(--ink);
	font-family: inherit;
}

.ctv-withdrawal-form input:focus,
.ctv-withdrawal-form textarea:focus {
	outline: none;
	border-color: var(--tomato);
}

.ctv-withdrawal-form .ctv-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.ctv-form-notice {
	border-radius: 0;
	padding: 18px 22px;
	margin: 20px 0;
	border: 1.5px solid var(--basil);
	background: rgba(0, 138, 92, .08);
}

.ctv-form-notice--err {
	border-color: var(--tomato);
	background: rgba(212, 0, 196, .07);
}


/* ==========================================================================
   9. Výpravy a obrazy
   ========================================================================== */

.ctv-painting-note {
	margin: 18px 0;
	padding: 14px 18px;
	border-left: 3px solid var(--red);
	background: var(--cream-2);
	font-size: 15px;
	line-height: 1.45;
}

.ctv-pay-details {
	margin: 28px 0;
	padding: 22px 24px;
	border: 1px solid var(--ink);
}

.ctv-pay-details h2 {
	margin-bottom: 12px;
	font-size: 20px;
}

.ctv-pay-details dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 18px;
}

.ctv-pay-details dt {
	color: var(--muted);
}

.ctv-pay-details dd {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.ctv-expedition {
	max-width: 720px;
	margin: 48px 0;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.ctv-expedition h2 {
	letter-spacing: -.03em;
	font-weight: 700;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	color: var(--red);
}

.ctv-expedition__terms {
	margin: 14px 0 8px;
	list-style: none;
}

.ctv-expedition__terms li {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-weight: 700;
}

.ctv-expedition__form h3 {
	margin: 28px 0 14px;
	font-size: 20px;
}

.ctv-expedition__form select {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	background: #fff;
}

.ctv-consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
}

.ctv-consent input {
	margin-top: 3px;
}

.product-summary .card__btn {
	display: inline-block;
	min-width: 220px;
}

/* Bez pohybu pre ľudí, ktorí ho majú v systéme vypnutý */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.js .reveal,
	.js .w > span {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Biela hlavička na celom webe (návrh klienta, Podklady FINAL)
   ========================================================================== */

.site-header,
.site-header.is-scrolled,
body:not(.home) .site-header {
	background: var(--w);
	color: var(--k);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Hlavička je stále čisto biela, bez linky aj pri posunutej stránke (požiadavka klienta) */
.site-header,
.site-header.is-scrolled {
	box-shadow: none;
	border-bottom: 0;
}

/* Logo ostáva červené ako zdrojový obrázok */
.site-logo {
	filter: none;
}

.navlinks {
	text-transform: uppercase;
	letter-spacing: 0;
	font-weight: 400;
}

.navlinks a {
	color: var(--k);
}

.navlinks a::after {
	background: var(--k);
}

.nav-icon:hover,
.navcart:hover,
.navcart[aria-expanded="true"],
.burger:hover {
	background: var(--plate);
	color: var(--k);
}

/* Košík: červená taška s počtom vnútri */
/* Prázdny košík je len čierny obrys, červený je až vtedy, keď v ňom niečo je */
.navcart:has(.ctv-cart-count:not([data-count="0"])) svg {
	fill: var(--red);
}

.ctv-cart-count {
	right: 50%;
	top: 56%;
	min-width: 0;
	height: auto;
	padding: 0;
	background: none;
	color: var(--w);
	transform: translate(50%, -50%);
}

/* Otvorené menu je biele cez celú obrazovku, hlavička nad ním stráca tieň */
.menu-open .site-header,
.menu-open .site-header.is-scrolled,
body.menu-open:not(.home) .site-header {
	box-shadow: none;
}

.menu-open .navlinks,
.menu-open .nav-right {
	visibility: hidden;
}
