:root {
	/* Primus 2026 tokens */
	--color-primary: #7A1F2B;
	--color-primary-2: #A33A4B;
	--color-bg: #F5EFE8;
	--color-surface: #FFFFFF;
	--color-border: #E4DDD5;
	--color-text: #1E1B19;
	--color-muted: #6C6763;
	--color-success: #2E7D32;
	--color-warn: #C77700;
	--color-error: #B3261E;
	--color-shadow: rgba(0, 0, 0, 0.06);
	--font-heading: "Playfair Display", "Spectral", "Georgia", ui-serif, serif;
	--font-body: "Inter", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--wp--preset--font-family--serif: var(--font-heading);
	--wp--preset--font-family--roboto: var(--font-body);
	--wp--preset--font-family--system-font: var(--font-body);
	--radius-xs: 6px;
	--radius-s: 10px;
	--radius-m: 14px;
	--radius-l: 18px;
	--radius-pill: 999px;
	--shadow-soft: 0 12px 40px var(--color-shadow);
	--space-1: 8px;
	--space-2: 16px;
	--space-3: 24px;
	--space-4: 32px;
	--measure-text: 70ch;

	/* Legacy aliases for existing theme selectors */
	--ink: var(--color-text);
	--ink-mid: var(--color-muted);
	--ink-light: #8C847D;
	--bg: var(--color-bg);
	--surface: var(--color-surface);
	--img-bg: #EFE8E0;
	--accent: var(--color-primary);
	--accent-dim: var(--color-primary-2);
	--fill: var(--color-text);
	--fill-done: var(--color-primary);
	--border: var(--color-border);
	--radius: var(--radius-m);
	--t-fast: 0.18s ease;
	--t-med: 0.28s ease;
}

/* =============================================
   HEADER
   Struktura: logo + název | navigace + [účet + košík]
   Ikony účtu a košíku jsou zabaleny v .header-cart-icons (gap: 0).
   Celá pravá skupina (.header-icons) má gap: 1rem od navigace.
   Košík má padding-right aby odznak s počtem nebyl oříznutý.
   ============================================= */

/* Spodní border headeru */
header.wp-block-template-part {
	background: #fff;
	border-bottom: 1px solid #eee;
}

/* Tagline — skrytá, nepřináší hodnotu */
header .wp-block-site-tagline {
	display: none !important;
}

/* Vertikální padding headeru — kompaktní, 10px mezera od levého okraje */
header .wp-block-group.alignfull {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	padding-left: 10px !important;
}

/* Logo — max výška 26px */
header .wp-block-site-logo img {
	height: 26px !important;
	width: auto !important;
}

/* Mezera mezi logem a názvem — menší pro kompaktnější levou část */
header .wp-block-site-logo {
	margin-right: -4px !important;
}

/* Název webu — kompaktní, lehce zesvětlený pro vizuální balanc */
header .wp-block-site-title a {
	font-family: var(--font-body) !important;
	font-size: 0.95rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--color-primary) !important;
	text-decoration: none !important;
}

/* Navigace — čitelná, ale ne dominantní */
header .wp-block-navigation__container .wp-block-navigation-item__content {
	font-weight: 500 !important;
	color: #333 !important;
	font-size: 0.9rem !important;
	position: relative !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

header .wp-block-navigation__container .wp-block-navigation-item__content:hover {
	color: #111 !important;
}

/* Podtržení při hoveru — roste zleva doprava */
header .wp-block-navigation__container .wp-block-navigation-item__content::after {
	content: '' !important;
	position: absolute !important;
	left: 0 !important;
	bottom: -4px !important;
	width: 0% !important;
	height: 2px !important;
	background: #111 !important;
	transition: width 0.2s ease !important;
}

header .wp-block-navigation__container .wp-block-navigation-item__content:hover::after {
	width: 100% !important;
}

/* Aktivní stránka — podtržení viditelné */
header .wp-block-navigation__container .current-menu-item .wp-block-navigation-item__content::after {
	width: 100% !important;
}

header .wp-block-navigation__container .current-menu-item .wp-block-navigation-item__content {
	color: #111 !important;
	background: rgba(139, 26, 46, 0.08);
	border-radius: 999px;
	padding: 0.42rem 0.72rem;
}

header .wp-block-navigation__container .bookstore-nav-current .wp-block-navigation-item__content,
header .wp-block-navigation__container .current-menu-ancestor .wp-block-navigation-item__content {
	color: #6B1222 !important;
	background: rgba(139, 26, 46, 0.1);
	border-radius: 999px;
	padding: 0.42rem 0.72rem;
}

header .wp-block-navigation__container .current-menu-item .wp-block-navigation-item__content::after {
	display: none !important;
}

.bookstore-header-context-shell {
	position: relative;
	border-top: 1px solid rgba(17, 17, 16, 0.06);
	border-bottom: 1px solid rgba(17, 17, 16, 0.06);
	background: linear-gradient(180deg, #fffdfa 0%, #f7f3ed 100%);
}

body.post-type-archive-product .bookstore-header-context-shell,
body.tax-product_cat .bookstore-header-context-shell,
body.tax-product_tag .bookstore-header-context-shell {
	display: none;
}

.bookstore-header-context-nav {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: min(1600px, calc(100vw - 1rem));
	margin: 0 auto;
	padding: 0.8rem 0.75rem;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	box-sizing: border-box;
}

.bookstore-header-context-nav::-webkit-scrollbar {
	display: none;
}

.bookstore-header-context-nav__links {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 0.55rem;
	max-width: 100%;
	min-width: max-content;
	padding-inline: 0.4rem;
	margin: 0 auto;
}

.bookstore-header-context-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.9rem;
	border: 1px solid rgba(17, 17, 16, 0.08);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--ink);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	flex: 0 0 auto;
	transition:
		border-color var(--t-fast),
		background var(--t-fast),
		transform var(--t-fast),
		color var(--t-fast);
}

.bookstore-header-context-nav__link:hover {
	border-color: rgba(139, 26, 46, 0.22);
	background: #fff;
	color: #6B1222;
	transform: translateY(-1px);
}

.bookstore-header-context-nav__link.is-primary {
	background: #8B1A2E;
	border-color: #8B1A2E;
	color: #fff;
	box-shadow: 0 10px 18px rgba(107, 18, 34, 0.16);
}

.bookstore-header-context-nav__link.is-primary:hover {
	background: #6B1222;
	border-color: #6B1222;
	color: #fff;
}

.bookstore-header-context-nav__link.is-current {
	background: rgba(139, 26, 46, 0.1);
	border-color: rgba(139, 26, 46, 0.18);
	color: #6B1222;
	box-shadow: none;
	pointer-events: none;
}

.bookstore-header-context-nav__link:focus-visible,
header .wp-block-navigation-item__content:focus-visible,
.shop-sidebar .wp-block-woocommerce-product-categories a:focus-visible,
.shop-sidebar .bookstore-category-toggle:focus-visible {
	outline: 2px solid rgba(139, 26, 46, 0.34);
	outline-offset: 2px;
}

/* Ikony účtu a košíku — sjednocená barva, hover pohyb */
header .wc-block-customer-account__account-icon,
header .wc-block-mini-cart__button {
	color: #222 !important;
	font-size: 17px !important;
	transition: color 0.15s ease !important;
}

header .wc-block-mini-cart__button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

header .wc-block-mini-cart__button svg {
	display: none !important;
}

header .wc-block-mini-cart__button::before {
	content: '🛒';
	font-size: 17px;
	line-height: 1;
	filter: grayscale(1) brightness(0.2);
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	transition: transform 0.15s ease !important;
}

header .wc-block-customer-account__account-icon:hover,
header .wc-block-mini-cart__button:hover {
	color: #000 !important;
}

header .wc-block-customer-account__account-icon:hover {
	transform: translateY(-1px) !important;
}

header .wc-block-mini-cart__button:hover::before {
	transform: translateY(-1px) !important;
}

/* Vyhledávání v headeru — 440px, bílý, border, lupa uvnitř vpravo */
header .wp-block-search {
	flex: 0 0 440px !important;
	width: 440px !important;
}

/* Label "Hledat" — skrytý, zbytečný */
header .wp-block-search__label {
	display: none !important;
}

header .wp-block-search__inside-wrapper {
	position: relative !important;
	display: block !important;
	border: 1px solid #ddd !important;
	border-radius: 10px !important;
	background: #fff !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

header .wp-block-search__inside-wrapper:focus-within {
	border-color: #111 !important;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05) !important;
}

header .wp-block-search__input {
	width: 100% !important;
	border: none !important;
	background: transparent !important;
	padding: 12px 40px 12px 16px !important;
	font-size: 0.875rem !important;
	color: #111 !important;
	outline: none !important;
	box-shadow: none !important;
}

header .wp-block-search__input::placeholder {
	color: #aaa !important;
}

/* Tlačítko — absolutně vpravo uvnitř inputu, ikona lupy */
header .wp-block-search__button {
	position: absolute !important;
	right: 10px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	cursor: pointer !important;
	font-size: 0 !important;
	display: flex !important;
	align-items: center !important;
}

header .wp-block-search__button::before {
	content: '' !important;
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	background-image: 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='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
}

.header-icons {
	gap: 1rem !important;
}

/* Účet a košík těsně vedle sebe bez mezery */
.header-cart-icons {
	gap: 0 !important;
}

/* Pravý okraj košíku — prostor pro číselný odznak */
.wp-block-woocommerce-mini-cart {
	padding-right: 0.75rem !important;
}

/* Badge u košíku — menší, přesně zarovnaný */
.wc-block-mini-cart__badge {
	font-size: 10px !important;
	padding: 2px 5px !important;
	top: -7px !important;
	right: -6px !important;
}

/* =============================================
   MINI KOŠÍK
   Obrázek produktu — portrait poměr.
   Thumbnail byl přegenerován na 200×300 (bez crop) přes
   woocommerce_get_image_size_thumbnail filter v functions.php.
   Výška fixní 90px, šířka automatická = portrait tvar zachován.
   ============================================= */

.wc-block-mini-cart__products-table .wc-block-cart-item__image,
.wc-block-cart-item__image {
	flex-shrink: 0;
	width: auto !important;
	height: auto !important;
}

.wc-block-mini-cart__products-table .wc-block-cart-item__image img,
.wc-block-cart-item__image img {
	width: auto !important;
	height: 90px !important;
	object-fit: contain !important;
}

/* Mini-cart — tlačítko Přejít k pokladně černé */
.wc-block-mini-cart__footer-checkout {
	background-color: #111 !important;
}

.wc-block-mini-cart__footer-checkout:hover {
	background-color: #333 !important;
}

.wc-block-mini-cart__footer-cart .wc-block-components-button__text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wc-block-mini-cart__footer-cart .wc-block-components-button__text::before {
	content: '🛒';
	font-size: 16px;
	line-height: 1;
	opacity: 0.8;
	flex-shrink: 0;
}

/* Rezervovat místo pro scrollbar — zabraňuje posunu stránky při přechodu mezi stránkami */
html {
	scrollbar-gutter: stable;
}

/* Základní typografie a rytmus */
body {
	font-family: var(--font-body);
	color: var(--color-text);
	background-color: var(--color-bg);
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--color-text);
	line-height: 1.18;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.15rem, 4vw, 3.5rem);
}

h2 {
	font-size: clamp(1.85rem, 3vw, 2.75rem);
}

h3 {
	font-size: clamp(1.45rem, 2.2vw, 2rem);
}

h4 {
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

p,
li,
dd,
dt {
	max-width: var(--measure-text);
}

.bookstore-home-hero__eyebrow,
.bookstore-home-section-head__eyebrow,
.bookstore-home-value-card__label,
.bookstore-home-category-card__eyebrow,
.microcopy {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.wp-block-button__link,
.wc-block-components-product-button__button,
.wc-block-cart__submit-button,
.wc-block-mini-cart__footer-checkout,
.wc-block-mini-cart__footer-cart {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.625rem !important;
	min-height: 46px !important;
	padding: 0.78rem 1.15rem !important;
	border-radius: var(--radius-pill) !important;
	font-family: var(--font-body) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

.wp-block-button__link:focus-visible,
.wc-block-components-product-button__button:focus-visible,
.wc-block-cart__submit-button:focus-visible,
.wc-block-mini-cart__footer-checkout:focus-visible,
.wc-block-mini-cart__footer-cart:focus-visible {
	outline: 3px solid rgba(122, 31, 43, 0.25) !important;
	outline-offset: 2px !important;
}

.wp-block-button__link:active,
.wc-block-components-product-button__button:active,
.wc-block-cart__submit-button:active,
.wc-block-mini-cart__footer-checkout:active,
.wc-block-mini-cart__footer-cart:active {
	transform: translateY(1px) !important;
}

.is-style-outline .wp-block-button__link,
.wc-block-mini-cart__footer-cart {
	background: transparent !important;
	border: 1px solid var(--color-primary) !important;
	color: var(--color-primary) !important;
	box-shadow: none !important;
}

.is-style-outline .wp-block-button__link:hover,
.wc-block-mini-cart__footer-cart:hover {
	background: rgba(122, 31, 43, 0.08) !important;
	border-color: var(--color-primary) !important;
	color: var(--color-primary) !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wc-block-cart__submit-button,
.wc-block-mini-cart__footer-checkout {
	background: var(--color-primary) !important;
	color: #fff !important;
	border: 1px solid var(--color-primary) !important;
	box-shadow: var(--shadow-soft) !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wc-block-cart__submit-button:hover,
.wc-block-mini-cart__footer-checkout:hover {
	background: var(--color-primary-2) !important;
	border-color: var(--color-primary-2) !important;
	color: #fff !important;
}

/* =============================================
   KARTA PRODUKTU (homepage — sekce Doporučované tituly)
   Struktura karty:
   1. Obrázek (.wc-block-components-product-image)
   2. Název (.wp-block-post-title)
   3. Autor (figure.product-variation — wp:woocommerce/product-specifications)
   4. Cena (.wc-block-components-product-price)
   5. Tlačítko (.wc-block-components-product-button)
   ============================================= */

/* Karta — padding 16px uvnitř, obrázek je inset s vlastním border-radius.
   shadow: jemná hloubka 0 6px 16px.
   transition: 0.2s ease pro všechny animované vlastnosti. */
.wc-block-product {
	background-color: var(--surface);
	border-radius: 12px;
	border: 1px solid var(--border);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 16px;
}

/* Hover — translateY(-4px), stín 0 12px 24px */
.wc-block-product:hover {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	border-color: #C8C7C3;
	transform: translateY(-4px);
}

/* --- OBRÁZEK ---
   Karta má padding: 16px → obrázek je inset.
   Šedé pozadí odstraněno — obálka je dominantní, bílá karta prosvítá.
   border-radius: 8px + overflow: hidden na kontejneru = zaoblené rohy.
   margin-bottom: 16px = vertikální rytmus obrázek → text. */
.wc-block-components-product-image {
	flex-shrink: 0;
	margin-bottom: 16px;
	/* border-radius a overflow: hidden jsou na <a> tagu, ne zde */
}

.wc-block-components-product-image a {
	display: block;
	aspect-ratio: 2 / 3;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	padding: 0;
}

/* object-fit: cover = obrázek vyplní celý kontejner.
   Po přegenerování miniatur na poměr 2:3 nebude žádný ořez. */
.wc-block-components-product-image img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
	transition: transform 0.2s ease;
}

/* Hover zoom obrázku — scale(1.03) s transition 0.2s ease */
.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.03);
}

/* --- MEZERY UVNITŘ KARTY ---
   Karta má padding: 16px → vnitřní group bloky nesmí mít boční padding (bylo 1rem).
   WordPress blockGap vynulován přes row-gap.
   Obrázek má margin-bottom: 16px → první group nepotřebuje padding-top. */
.wc-block-product .wp-block-group {
	flex-grow: 1;
}

.wc-block-product .wp-block-group,
.wc-block-product .wp-block-group > * {
	row-gap: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Boční padding skupin vynulován — karta samotná má padding: 16px */
.wc-block-product .wp-block-group {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.wc-block-product > * + * {
	margin-top: 0 !important;
}

/* Obrázek má margin-bottom: 16px → mezera před textem je zajištěna */
.wc-block-product .wp-block-group:first-of-type {
	padding-top: 0 !important;
}

.bookstore-home-featured-products .wc-block-product figure.product-variation,
body.bookstore-cart-empty .wc-block-product figure.product-variation,
.cart-empty-recommendations .wc-block-product figure.product-variation,
.cart-empty-recommendations .wc-block-grid__product figure.product-variation {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

.bookstore-home-featured-products .wc-block-product .product-variation table,
body.bookstore-cart-empty .wc-block-product .product-variation table,
.cart-empty-recommendations .wc-block-product .product-variation table,
.cart-empty-recommendations .wc-block-grid__product .product-variation table {
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bookstore-home-featured-products .wc-block-product .product-variation th,
body.bookstore-cart-empty .wc-block-product .product-variation th,
.cart-empty-recommendations .wc-block-product .product-variation th,
.cart-empty-recommendations .wc-block-grid__product .product-variation th {
	display: none !important;
}

.bookstore-home-featured-products .wc-block-product .product-variation tr + tr,
body.bookstore-cart-empty .wc-block-product .product-variation tr + tr,
.cart-empty-recommendations .wc-block-product .product-variation tr + tr,
.cart-empty-recommendations .wc-block-grid__product .product-variation tr + tr {
	display: none !important;
}

.bookstore-home-featured-products .wc-block-product .product-variation table,
.bookstore-home-featured-products .wc-block-product .product-variation tbody,
.bookstore-home-featured-products .wc-block-product .product-variation tr,
body.bookstore-cart-empty .wc-block-product .product-variation table,
body.bookstore-cart-empty .wc-block-product .product-variation tbody,
body.bookstore-cart-empty .wc-block-product .product-variation tr,
.cart-empty-recommendations .wc-block-product .product-variation table,
.cart-empty-recommendations .wc-block-product .product-variation tbody,
.cart-empty-recommendations .wc-block-product .product-variation tr,
.cart-empty-recommendations .wc-block-grid__product .product-variation table,
.cart-empty-recommendations .wc-block-grid__product .product-variation tbody,
.cart-empty-recommendations .wc-block-grid__product .product-variation tr {
	display: block;
}

.bookstore-home-featured-products .wc-block-product .product-variation td,
body.bookstore-cart-empty .wc-block-product .product-variation td,
.cart-empty-recommendations .wc-block-product .product-variation td,
.cart-empty-recommendations .wc-block-grid__product .product-variation td {
	display: block;
	padding: 0 !important;
	border: none !important;
	text-align: center;
}

.wc-block-product .bookstore-loop-product-author {
	margin: 0 0 0.85rem !important;
	font-size: 0.86rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.01em;
	color: var(--color-muted);
	text-align: center;
}

/* --- NÁZEV ---
   Sans-serif pro jednotu s autorem, ale větší a výraznější.
   line-clamp: 2 řádky s ellipsis — zabraňuje rozlití dlouhých názvů.
   color: #111 — tmavý, ne červený (isLink=true dědí červenou, přebíjíme níže). */
.wc-block-product .wp-block-post-title {
	font-family: var(--font-body) !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	color: var(--ink) !important;
	letter-spacing: -0.01em;
	margin-top: 0 !important;
	margin-bottom: 0.4rem !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

/* Přebít červenou barvu odkazu z globálních téma stylů */
.wc-block-product .wp-block-post-title a,
.wc-block-product .wp-block-post-title a:link,
.wc-block-product .wp-block-post-title a:visited {
	color: var(--ink) !important;
	text-decoration: none !important;
}

.wc-block-product .wp-block-post-title a:hover {
	color: var(--ink-mid) !important;
}

/* --- CENA ---
   font-size: 1.3125rem = 21px — mírně zvýrazněna, vede oko k akci.
   margin-bottom: 18px — více prostoru před CTA (bylo 16px), prvky se "nedusí".
   Celá čísla bez desetinných míst — viz functions.php (wc_get_price_decimals). */
.wc-block-product .wc-block-components-product-price {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: var(--color-primary) !important;
	letter-spacing: -0.02em;
	margin-top: 0 !important;
	margin-bottom: 1.15rem !important;
	text-align: center !important;
}

.wc-block-product .wc-block-components-product-price .woocommerce-Price-amount {
	color: var(--color-primary) !important;
}

/* --- TLAČÍTKO "PŘIDAT DO KOŠÍKU" ---
   Text tlačítka řídí WordPress Interactivity API (data-wp-text) — mění se na "1 v košíku".
   Řešení: span s data-wp-text skryt, text zobrazen přes ::after pseudo-element.
   "Zobrazit košík" link (added_to_cart) taky skryt.
   Tmavé tlačítko — moderní, čisté.
   border-radius: var(--radius) přebíjí WooCommerce výchozích 45px. */

/* Skrýt "Zobrazit košík" link po přidání */
.wc-block-components-product-button .added_to_cart,
.wc-block-components-product-button .wc-forward {
	display: none !important;
}

/* Skrýt dynamický text (API mění na "1 v košíku") */
.wc-block-components-product-button__button span[data-wp-text] {
	display: none !important;
}

/* Ikona košíku vlevo — 16px, opacity 0.8, gap zajišťuje flex na tlačítku (gap: 8px).
   margin-right: 0 — gap na flex kontejneru je přesnější.
   V just-added stavu ::before přepíše na fill animaci — ikona zmizí. */
.wc-block-components-product-button__button::before {
	content: '';
	display: none;
	position: relative;
	z-index: 1;
	line-height: 1;
	flex-shrink: 0;
}

/* Pevný text přes pseudo-element */
.wc-block-components-product-button__button::after {
	content: 'Přidat do košíku';
	text-transform: none;
	font-size: 0.96rem;
	letter-spacing: 0.01em;
}



/* Mezery okolo tlačítka — karta má padding: 16px → jen margin-top pro oddělení od ceny */
.wc-block-product .wc-block-components-product-button {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Styl tlačítka — tmavé #222, height 46px, border-radius 8px, font 14px/600.
   gap: 8px odděluje ikonu 🛒 od textu.
   transition: background + transform 0.15s ease (rychlejší než karta — UX spec). */
.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
	background: var(--color-primary) !important;
	color: #ffffff !important;
	padding: 0 1.15rem !important;
	min-height: 50px !important;
	border-radius: var(--radius-pill) !important;
	font-weight: 700 !important;
	font-family: var(--wp--preset--font-family--roboto) !important;
	text-transform: none !important;
	font-size: 0.96rem !important;
	letter-spacing: 0.01em !important;
	border: 1px solid var(--color-primary) !important;
	position: relative !important;
	overflow: hidden !important;
	transition: background 0.15s ease, transform 0.15s ease !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	box-shadow: var(--shadow-soft) !important;
}

.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:hover {
	background: var(--color-primary-2) !important;
	border-color: var(--color-primary-2) !important;
	transform: scale(1.02) !important;
}

/* Stisknutí — krátký "propadnutý" efekt */
.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:active {
	transform: scale(0.96) !important;
	background: var(--color-primary) !important;
	box-shadow: 0 8px 16px rgba(122, 31, 43, 0.16) !important;
	transition: transform 0.08s ease, background 0.08s ease !important;
}



/* =============================================
   Stránka obchodu — archiv produktů
   ============================================= */

/* Dvousloupcový layout: sidebar vlevo + produkty vpravo */
.wp-block-group.shop-layout {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 2.5rem !important;
}

.bookstore-shop-shell {
	max-width: none;
}

.bookstore-shop-header {
	max-width: 820px;
}

.bookstore-shop-header h2.wp-block-heading {
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8B1A2E;
}

.wp-block-group.shop-sidebar {
	flex: 0 0 240px !important;
	width: 240px !important;
	min-width: 240px !important;
	max-width: 240px !important;
	position: sticky;
	top: 1.5rem;
	align-self: flex-start !important;
}

.wp-block-group.shop-products {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: auto !important;
}

.bookstore-category-context {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	max-width: 1180px;
	margin: 0 auto 1.5rem;
	padding: 1.35rem 1.4rem;
	border: 1px solid rgba(17, 17, 16, 0.08);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 247, 240, 0.98) 100%);
	box-shadow: var(--shadow-soft);
}

.bookstore-category-context__copy {
	max-width: 68rem;
}

.bookstore-category-context__title {
	margin: 0;
	font-size: clamp(1.8rem, 2.6vw, 2.45rem);
	line-height: 1.1;
	color: var(--color-text);
}

.bookstore-category-context__lead {
	max-width: none;
	margin: 0.85rem 0 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-muted);
	white-space: nowrap;
}

.shop-sidebar-card {
	padding: 1.15rem 1rem;
	border: 1px solid rgba(17, 17, 16, 0.08);
	border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #fcfaf6 100%);
	box-shadow: 0 12px 28px rgba(17, 17, 16, 0.05);
}

.shop-products .wp-block-woocommerce-product-collection {
	row-gap: 1.5rem;
}

.shop-products .wp-block-woocommerce-product-template {
	row-gap: 1.6rem !important;
}

.shop-products .wc-block-grid__product-author {
	margin: 0.2rem 0 0 !important;
	font-size: 0.82rem;
	font-style: normal;
	font-weight: 500;
	color: var(--ink-mid);
	text-align: center;
}

.bookstore-shop-pagination {
	margin-top: 0.5rem;
}

.bookstore-shop-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bookstore-shop-pagination .page-numbers a,
.bookstore-shop-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.3rem;
	height: 2.3rem;
	padding: 0 0.75rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 1;
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.bookstore-shop-pagination .page-numbers a:hover {
	background: #f3efe8;
	border-color: var(--ink);
	color: var(--ink);
}

.bookstore-shop-pagination .page-numbers .current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.bookstore-shop-pagination .page-numbers .next:hover,
.bookstore-shop-pagination .page-numbers .prev:hover,
.bookstore-shop-pagination .page-numbers .next:focus-visible,
.bookstore-shop-pagination .page-numbers .prev:focus-visible {
	background: #f3efe8;
	border-color: var(--ink);
	color: var(--ink);
}

.bookstore-shop-pagination .page-numbers a:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.bookstore-shop-pagination .page-numbers .dots {
	min-width: 0;
	padding: 0 0.25rem;
	border: 0;
	background: transparent;
	color: var(--ink-light);
}

.search .bookstore-search-shell {
	max-width: none;
}

.bookstore-search-header {
	max-width: 760px;
}

.bookstore-search-summary {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--ink-mid);
}

.bookstore-search-summary strong {
	color: var(--ink);
}

.bookstore-search-filters {
	margin-top: 1.5rem;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.bookstore-search-filters::-webkit-scrollbar {
	display: none;
}

.bookstore-search-filters-all,
.bookstore-search-category-parent > a,
.bookstore-search-category-child > a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.38rem 0.62rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
	flex: 0 0 auto;
	transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.bookstore-search-filters-all a,
.bookstore-search-category-tree a {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.bookstore-search-category-tree a {
	font-size: 0.82rem;
	line-height: 1.2;
	white-space: nowrap;
}

.bookstore-search-category-tree {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bookstore-search-category-tree.is-top-level {
	margin-top: 0.2rem;
	flex-wrap: nowrap;
	width: max-content;
	min-width: 100%;
}

.bookstore-search-category-parent > a {
	font-weight: 600;
}

.bookstore-search-category-child > a {
	padding: 0.34rem 0.56rem;
	font-size: 0.78rem;
}

.bookstore-search-subfilters {
	margin-top: 0.55rem;
}

.bookstore-search-category-tree.is-children {
	gap: 0.4rem;
}

.bookstore-search-filters-all:hover,
.bookstore-search-category-parent > a:hover,
.bookstore-search-category-child > a:hover {
	background: #f3efe8;
	border-color: var(--ink);
	color: var(--ink);
}

.bookstore-search-filters-all.is-active,
.bookstore-search-category-parent.is-active > a,
.bookstore-search-category-child.is-active > a {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.bookstore-search-filters-all a:focus-visible,
.bookstore-search-category-tree a:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.bookstore-search-query .wp-block-post-template.bookstore-search-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.bookstore-search-card {
	position: relative;
	height: 100%;
	padding: 1.25rem 1.25rem 1.4rem;
	border: 1px solid #d9d5ce;
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, #fcfbf8 100%);
	box-shadow: 0 14px 34px rgba(17, 17, 16, 0.08);
	transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.bookstore-search-card:hover {
	transform: translateY(-2px);
	border-color: #c7c1b8;
	box-shadow: 0 18px 38px rgba(17, 17, 16, 0.12);
}

.bookstore-search-card::before {
	content: "Výsledek";
	position: absolute;
	top: 0.95rem;
	left: 0.95rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.58rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(17, 17, 16, 0.08);
	color: var(--ink-mid);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bookstore-search-cover {
	margin: 0 0 1rem !important;
	padding: 1rem;
	border-radius: 14px;
	background: linear-gradient(180deg, #f5f2ec 0%, #efebe4 100%);
}

.bookstore-search-cover a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
}

.bookstore-search-cover img {
	width: auto !important;
	height: 240px !important;
	max-width: 100% !important;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.14));
}

.bookstore-search-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.bookstore-search-title {
	margin: 0 !important;
	font-size: 1.08rem !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	text-wrap: balance;
}

.bookstore-search-title a {
	color: var(--ink) !important;
	text-decoration: none !important;
}

.bookstore-search-title a:hover {
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.12em !important;
}

.bookstore-search-card-body > .wp-block-shortcode:has(.single-product-author),
.bookstore-search-card-body > .wp-block-shortcode:has(.bookstore-search-price) {
	margin: 0 !important;
}

.bookstore-search-card .single-product-author {
	margin: 0 !important;
	font-size: 0.92rem;
	font-style: normal;
	color: var(--ink-mid);
}

.bookstore-search-price,
.bookstore-search-price .woocommerce-Price-amount {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0.35rem 0 0 !important;
	padding: 0.38rem 0.72rem;
	border-radius: 999px;
	background: #f4ece2;
	font-size: 1.06rem;
	font-weight: 700;
	color: #6B1222;
	letter-spacing: -0.01em;
}

.bookstore-search-card-actions {
	margin-top: 0.8rem !important;
	padding-top: 0 !important;
}

.bookstore-search-card-actions > .wp-block-shortcode {
	margin: 0 !important;
}

.bookstore-search-card-actions p {
	margin: 0 !important;
}

.bookstore-search-product-button {
	width: 100%;
}

.bookstore-search-product-button .wc-block-components-product-button__button {
	width: 100% !important;
}

.bookstore-search-product-button .wc-block-components-product-button__button span[aria-hidden="true"] {
	display: none !important;
}

.bookstore-search-product-button .added_to_cart,
.bookstore-search-product-button .wc-forward {
	display: none !important;
}

.bookstore-search-add-to-cart.is-loading {
	pointer-events: none;
	opacity: 0.7;
}

.search .wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
}

.search .wp-block-query-pagination a,
.search .wp-block-query-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.3rem;
	height: 2.3rem;
	padding: 0 0.75rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 1;
}

.search .wp-block-query-pagination a:hover {
	background: #f3efe8;
	border-color: var(--ink);
	color: var(--ink);
}

.search .wp-block-query-pagination .current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.search .wp-block-query-pagination a:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.bookstore-search-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: #fcfbf8;
}

.bookstore-footer-shell {
	margin-top: 3rem;
	background:
		radial-gradient(circle at top center, rgba(139, 26, 46, 0.08), transparent 28%),
		linear-gradient(180deg, #f8f3ec 0%, #f1ebe2 100%);
	border-top: 1px solid rgba(17, 17, 16, 0.06);
}

.bookstore-footer-inner {
	max-width: 820px;
	margin: 0 auto;
}

.bookstore-footer__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2rem, 4vw, 3rem) !important;
	font-weight: 500 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.bookstore-footer__text {
	max-width: 42rem;
	margin: 0.9rem auto 0;
	color: var(--ink-mid);
	line-height: 1.75;
}

.bookstore-footer__actions {
	margin-top: 1.5rem;
	gap: 0.8rem !important;
}

.bookstore-footer__actions .is-style-outline .wp-block-button__link {
	border-color: rgba(17, 17, 16, 0.16);
	background: rgba(255, 255, 255, 0.7);
	color: var(--ink);
}

.bookstore-footer__actions .is-style-outline .wp-block-button__link:hover {
	border-color: var(--ink);
	background: #fff;
	color: var(--ink);
}

.bookstore-footer__meta {
	margin: 1.7rem 0 0;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-light);
}

/* =============================================
   PRAVNÍ STRÁNKY
   privacy-policy + reklamace
   ============================================= */

body.page:not(.home):not(.front-page) {
	background:
		radial-gradient(circle at top right, rgba(139, 26, 46, 0.06), transparent 28%),
		var(--bg);
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-post-title {
	max-width: 860px;
	margin: 1.25rem auto 1rem;
	padding: 0.1rem 0 0.55rem;
	font-family: var(--font-heading);
	font-size: clamp(2.45rem, 4.2vw, 3.85rem);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: var(--ink);
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 1.5rem 1.65rem 1.8rem;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid rgba(17, 17, 16, 0.08);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-soft);
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-post-title + .wp-block-post-content,
body.page:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-post-title + .entry-content {
	margin-top: 0.2rem;
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content > *,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content > * {
	max-width: var(--measure-text);
	margin-left: auto;
	margin-right: auto;
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content > * + *,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content > * + * {
	margin-top: 1rem;
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content :is(h2, h3, h4),
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content :is(h2, h3, h4) {
	margin: 2rem auto 0.75rem;
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--ink);
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content p,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content p {
	line-height: 1.75;
	color: var(--ink);
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content ul,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content ol,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content ul,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content ol {
	padding-left: 1.2rem;
	line-height: 1.75;
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content li + li,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content li + li {
	margin-top: 0.45rem;
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content a,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content a {
	color: var(--color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content table,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content table {
	width: 100%;
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
	margin: 1.5rem 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	background: #fff;
	box-shadow: var(--shadow-soft);
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content th,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .wp-block-post-content td,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content th,
body.page:not(.home):not(.front-page) .wp-site-blocks > main .entry-content td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

body.page:not(.home):not(.front-page) .wp-site-blocks > main blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.2rem;
	border-left: 3px solid rgba(122, 31, 43, 0.3);
	background: rgba(255, 255, 255, 0.72);
	border-radius: 0 var(--radius-l) var(--radius-l) 0;
	color: var(--ink);
}

body.bookstore-legal-page {
	background:
		radial-gradient(circle at top left, rgba(139, 26, 46, 0.06), transparent 24%),
		linear-gradient(180deg, #fcf7f1 0%, #f4ece4 100%);
}

body.bookstore-legal-page .wp-site-blocks > main {
	padding-top: 3rem;
}

body.bookstore-legal-page .wp-block-post-title.bookstore-legal-hero__title,
body.bookstore-legal-page .wp-block-post-title.bookstore-legal-title-inline {
	max-width: 18ch;
	margin: 1.55rem auto 1.15rem;
	padding: 0;
	font-family: var(--font-body);
	font-size: clamp(0.98rem, 1.6vw, 1.28rem) !important;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	text-wrap: balance;
	color: var(--color-primary) !important;
}

body.bookstore-legal-page .wp-block-post-title.bookstore-legal-hero__title a,
body.bookstore-legal-page .wp-block-post-title.bookstore-legal-title-inline a {
	color: inherit !important;
	text-decoration: none !important;
}

body.bookstore-legal-page .wp-site-blocks > main .wp-block-post-content,
body.bookstore-legal-page .wp-site-blocks > main .entry-content {
	margin-top: 0.15rem;
}

/* =============================================
   COOKIE BANNERS
   Opatrny override pro bezne pluginy: mensi vyska, kompaktnejsi text, citelne CTA.
   ============================================= */

#cmplz-cookiebanner-container .cmplz-cookiebanner,
.cmplz-cookiebanner,
#cookie-law-info-bar,
.cli-bar-container,
.cky-consent-container .cky-consent-bar,
.cky-consent-container .cky-modal,
#moove_gdpr_cookie_info_bar,
.cc-window.cc-banner,
.cookie-notice-container,
#cn-notice-text {
	font-size: 0.92rem !important;
	line-height: 1.5 !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner,
.cmplz-cookiebanner,
#cookie-law-info-bar,
.cli-bar-container,
.cky-consent-container .cky-consent-bar,
#moove_gdpr_cookie_info_bar,
.cc-window.cc-banner,
.cookie-notice-container {
	padding: 0.9rem 1rem !important;
	border-radius: 18px !important;
	box-shadow: 0 18px 36px rgba(17, 17, 16, 0.16) !important;
	max-width: min(960px, calc(100vw - 1.5rem)) !important;
}

.cmplz-cookiebanner .cmplz-message,
.cli-bar-message,
.cky-notice-des,
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content,
.cc-message,
.cookie-notice-container,
#cn-notice-text {
	font-size: 0.9rem !important;
	line-height: 1.55 !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn,
.cli-bar-btn_container .cli_settings_button,
.cli-bar-btn_container .cli-plugin-button,
.cky-btn,
#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-allow-all,
#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-settings-btn,
.cc-btn,
.cookie-notice-container .cn-button {
	min-height: 40px !important;
	padding: 0.7rem 1rem !important;
	border-radius: 999px !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
}

/* =============================================
   HOMEPAGE
   Hero, kategorie a strukturovane sekce pro rychlejsi orientaci.
   ============================================= */

.bookstore-home-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at top right, rgba(139, 26, 46, 0.12), transparent 30%),
		linear-gradient(180deg, #f8f2eb 0%, #faf7f2 62%, #f7f7f5 100%);
}

.bookstore-home-hero::before {
	content: "";
	position: absolute;
	inset: auto auto 2rem 8%;
	width: 180px;
	height: 180px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	filter: blur(6px);
	pointer-events: none;
}

.bookstore-home-hero__columns {
	position: relative;
	z-index: 1;
	gap: 2rem;
}

.bookstore-home-hero__content {
	gap: 1.25rem;
}

.bookstore-home-hero__eyebrow,
.bookstore-home-section-head__eyebrow,
.bookstore-home-value-card__label,
.bookstore-home-category-card__eyebrow {
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8B1A2E;
}

.bookstore-home-hero__title {
	max-width: 10ch;
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.4rem, 4.8vw, 4.15rem) !important;
	font-weight: 500 !important;
	line-height: 1.02 !important;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.bookstore-home-hero__lead {
	max-width: 40rem;
	margin: 0;
	color: var(--ink-mid);
	font-size: 1.05rem !important;
	line-height: 1.7;
}

.bookstore-home-hero__actions {
	gap: 0.85rem !important;
	margin-top: 0.6rem;
}

.bookstore-home-hero__actions .wp-block-button__link {
	min-width: 15rem;
	text-align: center;
}

.bookstore-home-hero__actions .is-style-outline .wp-block-button__link {
	border-color: rgba(17, 17, 16, 0.18);
	background: rgba(255, 255, 255, 0.75);
	color: var(--ink);
}

.bookstore-home-hero__actions .is-style-outline .wp-block-button__link:hover {
	border-color: var(--ink);
	background: #fff;
	color: var(--ink);
}

.bookstore-home-value-card {
	padding: 2rem;
	border: 1px solid rgba(107, 18, 34, 0.12);
	border-radius: var(--radius-l);
	background: rgba(255, 255, 255, 0.84);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(10px);
}

.bookstore-home-value-list {
	margin: 0;
	padding-left: 1.2rem;
	color: var(--ink);
}

.bookstore-home-value-list li + li {
	margin-top: 0.85rem;
}

.bookstore-home-section-head {
	max-width: 760px;
	margin: 0 auto 1.5rem;
	gap: 0.6rem !important;
}

.bookstore-home-section-head h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2rem, 3.8vw, 3rem) !important;
	font-weight: 500 !important;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.bookstore-home-section-head__lead {
	max-width: 42rem;
	margin: 0 auto;
	color: var(--ink-mid);
}

.bookstore-home-categories-stack {
	display: grid;
	gap: 1.35rem;
	width: min(1200px, calc(100vw - 3rem));
	max-width: 1200px;
	margin: 0 auto;
}

.bookstore-home-categories-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.bookstore-home-categories-grid--special {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
}

.bookstore-home-category-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-height: 152px;
	padding: 1rem 1.1rem 1.05rem;
	border: 1px solid rgba(17, 17, 16, 0.08);
	border-radius: var(--radius-l);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 244, 238, 0.92));
	box-shadow: var(--shadow-soft);
	color: var(--ink);
	text-decoration: none;
	transition:
		transform var(--t-med),
		box-shadow var(--t-med),
		border-color var(--t-fast);
}

.bookstore-home-category-card:hover {
	transform: translateY(-4px);
	border-color: rgba(139, 26, 46, 0.25);
	box-shadow: 0 22px 38px rgba(41, 24, 14, 0.09);
}

.bookstore-home-category-card__title {
	font-family: var(--font-body);
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.bookstore-home-category-card__desc {
	color: var(--ink-mid);
	line-height: 1.42;
}

.bookstore-home-category-card__meta {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid rgba(17, 17, 16, 0.08);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink);
}

.bookstore-home-categories-fallback {
	max-width: 560px;
	margin: 0 auto;
	padding: 2rem;
	border: 1px solid var(--border);
	border-radius: 24px;
	background: #fff;
	text-align: center;
}

.bookstore-home-featured-products .wc-block-product-template,
.bookstore-home-featured-products .wc-block-grid__products {
	row-gap: 1.5rem;
}

.bookstore-home-about {
	background:
		radial-gradient(circle at top left, rgba(139, 26, 46, 0.08), transparent 26%),
		linear-gradient(180deg, #fffdf9 0%, #f7f3ed 100%);
}

.bookstore-home-about__columns {
	gap: 2rem;
}

.bookstore-home-about__content {
	gap: 1rem;
}

.bookstore-home-about__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
	font-weight: 500 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.bookstore-home-about__lead,
.bookstore-home-about__text {
	max-width: 40rem;
	margin: 0;
	color: var(--ink-mid);
	line-height: 1.8;
}

.bookstore-home-about__lead {
	font-size: 1.02rem;
	line-height: 1.85;
	color: var(--ink);
}

.bookstore-home-about-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	max-width: 42rem;
	margin: 0.2rem 0 0.2rem;
}

.bookstore-home-about-fact {
	margin: 0;
	padding: 0.8rem 0.9rem;
	border: 1px solid rgba(17, 17, 16, 0.08);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.8);
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--ink-mid);
}

.bookstore-home-about-fact strong {
	display: block;
	margin-bottom: 0.22rem;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.bookstore-home-about__text {
	max-width: 41rem;
	font-size: 0.95rem;
	line-height: 1.75;
	color: #5f5751;
}

.bookstore-home-trust-panel {
	display: grid;
	gap: 0;
	padding: 1.2rem 1.25rem;
	border: 1px solid rgba(17, 17, 16, 0.08);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 12px 28px rgba(24, 18, 14, 0.05);
	text-align: left;
	justify-items: stretch;
}

.bookstore-home-trust-item {
	padding: 0.9rem 0;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
}

.bookstore-home-trust-item + .bookstore-home-trust-item {
	border-top: 1px solid rgba(17, 17, 16, 0.08);
}

.bookstore-home-trust-item__label {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-primary);
	text-align: left;
}

.bookstore-home-trust-item__text {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ink-mid);
	line-height: 1.6;
	text-align: left;
}

/* Styl kategorií v sidebaru */
.shop-sidebar h4.wp-block-heading {
	font-size: 0.7rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	color: var(--ink-light) !important;
	margin-bottom: 0.75rem !important;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shop-sidebar .wp-block-woocommerce-product-categories li {
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.shop-sidebar .wp-block-woocommerce-product-categories > ul > li {
	display: block;
	margin-bottom: 0.45rem;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.shop-sidebar .wp-block-woocommerce-product-categories > ul > li > a {
	display: inline;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.01em;
	color: var(--ink);
	white-space: normal;
	overflow: visible;
	text-overflow: initial;
	min-width: 0;
}

.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.bookstore-category-parent > a {
	max-width: none;
}

.shop-sidebar .wp-block-woocommerce-product-categories .bookstore-category-toggle {
	display: none !important;
}

.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.current-cat,
.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.current-cat-parent,
.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.current-cat-ancestor,
.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.current-product-cat,
.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.bookstore-category-current-item {
	border: none;
	background: transparent;
	box-shadow: none;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul ul {
	margin-top: 0.3rem;
	margin-left: 0;
	padding-left: 1rem;
	border-left: 1px solid var(--border);
}

.shop-sidebar .wp-block-woocommerce-product-categories > ul > li > ul {
	width: 100%;
	display: block;
}

.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.bookstore-category-expanded > ul,
.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.current-cat-parent > ul,
.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.current-cat > ul,
.shop-sidebar .wp-block-woocommerce-product-categories > ul > li.current-product-cat > ul {
	display: block;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul ul li {
	margin-bottom: 0.28rem;
	font-size: 0.84rem;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul ul a {
	position: relative;
	display: inline;
	padding-left: 0.7rem;
	font-size: 0.84rem;
	font-weight: 400;
	color: var(--ink-mid);
	white-space: normal;
	overflow: visible;
	text-overflow: initial;
	max-width: none;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul ul .current-cat > a,
.shop-sidebar .wp-block-woocommerce-product-categories ul ul .current-product-cat > a,
.shop-sidebar .wp-block-woocommerce-product-categories ul ul a.bookstore-category-current-link {
	font-weight: 600;
	color: #6B1222;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul ul li.bookstore-category-current-item > a {
	padding-left: 0.7rem;
	margin-left: 0;
	border-radius: 0;
	background: transparent;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul ul a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 0.38rem;
	height: 1px;
	background: currentColor;
	opacity: 0.65;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul ul li.bookstore-category-current-item > a::before {
	width: 0.38rem;
	height: 1px;
	border-radius: 0;
	background: currentColor;
	opacity: 0.65;
	top: 0.72em;
	transform: none;
}

.shop-sidebar .wp-block-woocommerce-product-categories ul ul li.bookstore-category-current-item > a::after,
.shop-sidebar .wp-block-woocommerce-product-categories ul ul a.bookstore-category-current-link::after {
	content: "";
	display: inline-block;
	width: 0.38rem;
	height: 0.38rem;
	margin-left: 0.38rem;
	margin-right: 0.32rem;
	border-radius: 999px;
	background: #8B1A2E;
	vertical-align: middle;
	box-shadow: 0 0 0 3px rgba(139, 26, 46, 0.1);
}

.shop-sidebar .wp-block-woocommerce-product-categories a {
	color: var(--ink-mid);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color var(--t-fast);
}

.shop-sidebar .wp-block-woocommerce-product-categories a:hover {
	color: var(--ink);
}

.shop-sidebar .wp-block-woocommerce-product-categories .current-cat > a,
.shop-sidebar .wp-block-woocommerce-product-categories .current-cat-parent > a,
.shop-sidebar .wp-block-woocommerce-product-categories .current-product-cat > a,
.shop-sidebar .wp-block-woocommerce-product-categories .current-cat-ancestor > a,
.shop-sidebar .wp-block-woocommerce-product-categories > ul > li > a.bookstore-category-current-link {
	color: #6B1222;
}

.shop-sidebar .wp-block-woocommerce-product-categories > ul > li > a.bookstore-category-current-link {
	position: relative;
	font-weight: 700;
}

.shop-sidebar .wp-block-woocommerce-product-categories > ul > li > a.bookstore-category-current-link::after {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-left: 0.45rem;
	border-radius: 999px;
	background: #8B1A2E;
	vertical-align: middle;
	box-shadow: 0 0 0 4px rgba(139, 26, 46, 0.12);
}

.shop-sidebar .wp-block-woocommerce-product-categories .wc-block-product-categories-list-item-count,
.shop-sidebar .wp-block-woocommerce-product-categories li > a + span:not(.bookstore-category-toggle) {
	display: inline-block;
	margin-left: 0.3rem;
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink-light);
	vertical-align: baseline;
	transform: translateY(-0.02em);
	white-space: nowrap;
}

/* Mobilní layout — sidebar nad produkty */
@media (max-width: 640px) {
	.wp-block-group.shop-layout {
		flex-direction: column !important;
		gap: 1.5rem !important;
	}

	.wp-block-group.shop-sidebar {
		flex: none !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		position: static !important;
		top: auto !important;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories ul {
		display: block;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories li {
		margin-bottom: 0.3rem;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories > ul > li {
		display: block;
		margin-bottom: 0.4rem;
		padding: 0;
		border: none;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories a {
		display: inline;
		padding: 0;
		border: none;
		border-radius: 0;
		font-size: 0.85rem;
		background: transparent;
		white-space: normal;
		max-width: none;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories a:hover {
		background: transparent;
		color: var(--ink);
		border-color: transparent;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories ul ul {
		display: block;
		gap: 0;
		margin-top: 0.25rem;
		margin-left: 0;
		padding-left: 0.75rem;
		border-left: 1px solid var(--border);
	}

	.shop-sidebar .wp-block-woocommerce-product-categories ul ul a {
		padding: 0 0 0 0.7rem;
		font-size: 0.8rem;
		background: transparent;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories ul ul a::before {
		left: 0;
		top: 0.72em;
		transform: none;
		width: 4px;
		height: 4px;
		border-radius: 999px;
		background: currentColor;
		opacity: 0.55;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories .bookstore-category-toggle {
		display: none;
	}

	.shop-sidebar .wp-block-woocommerce-product-categories > ul > li > ul {
		display: block;
	}
}
