/**
 * Obchod — Frontend CSS.
 * Loaded on /produkty/ (archive) and /produkt/{slug}/ (detail) pages.
 */

/* ----------------------------------------------------------
 * Archive page — Products grid
 * -------------------------------------------------------- */
.wv3-products-archive {
	position: relative;
	padding: 48px 0 var(--wv3-space-section, 96px);
	margin-top: -32px;
	padding-top: 64px;
	background-size: cover;
	background-position: center;
	background-color: var(--wv3-primary-lighter, #eef5f3);
}

.wv3-products-archive__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
	pointer-events: none;
	opacity: 0;
}

.wv3-products-archive[style*="background-image"] .wv3-products-archive__overlay {
	opacity: 1;
}

.wv3-products-archive .wv3-container {
	position: relative;
	z-index: 1;
}

.wv3-products-archive__header {
	text-align: center;
	margin-bottom: var(--wv3-space-lg, 24px);
}

.wv3-products-archive__title {
	font-family: var(--wv3-font-heading, "Inter", system-ui, sans-serif);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: var(--wv3-font-weight-heading, 700);
	margin: 0 0 var(--wv3-space-md, 16px);
}

.wv3-products-archive[style*="background-image"] .wv3-products-archive__title {
	color: #fff;
}

.wv3-products-archive__description {
	max-width: 720px;
	margin: 0 auto var(--wv3-space-md, 16px);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wv3-text-secondary, #6b7280);
}

.wv3-products-archive__description p {
	margin: 0 0 0.75em;
}

.wv3-products-archive__description p:last-child {
	margin-bottom: 0;
}

.wv3-products-archive[style*="background-image"] .wv3-products-archive__description {
	color: rgba(255, 255, 255, 0.92);
}

.wv3-products-archive__categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wv3-space-sm, 8px);
	justify-content: center;
	margin-bottom: var(--wv3-space-xl, 32px);
}

.wv3-products-archive__cat-link {
	display: inline-block;
	padding: 6px 16px;
	border-radius: var(--wv3-radius-md, 8px);
	background: var(--wv3-primary-light, #eef5f3);
	color: var(--wv3-primary, #4F7F74);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.wv3-products-archive__cat-link:hover,
.wv3-products-archive__cat-link--active {
	background: var(--wv3-primary, #4F7F74);
	color: #fff;
}

.wv3-products-archive[style*="background-image"] .wv3-products-archive__cat-link {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.wv3-products-archive[style*="background-image"] .wv3-products-archive__cat-link:hover,
.wv3-products-archive[style*="background-image"] .wv3-products-archive__cat-link--active {
	background: rgba(255, 255, 255, 0.9);
	color: var(--wv3-primary, #4F7F74);
}

.wv3-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--wv3-space-xl, 32px);
}

/* ----------------------------------------------------------
 * Product card
 * -------------------------------------------------------- */
.wv3-product-card {
	background: var(--wv3-bg, #fff);
	border-radius: var(--wv3-radius-md, 8px);
	border: 1px solid var(--wv3-border, #e5e7eb);
	box-shadow: var(--wv3-shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
	overflow: hidden;
	transition: box-shadow 0.25s, transform 0.25s;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.wv3-product-card:hover {
	box-shadow: var(--wv3-shadow-md, 0 8px 24px rgba(0,0,0,0.1));
	transform: translateY(-2px);
}

.wv3-product-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.wv3-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wv3-product-card__body {
	padding: var(--wv3-space-lg, 24px);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.wv3-product-card__category {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wv3-primary, #4F7F74);
	margin-bottom: var(--wv3-space-xs, 4px);
}

.wv3-product-card__name {
	font-family: var(--wv3-font-heading, "Inter", system-ui, sans-serif);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 var(--wv3-space-sm, 8px);
	line-height: 1.3;
}

.wv3-product-card__desc {
	color: var(--wv3-text-secondary, #6b7280);
	font-size: 0.875rem;
	line-height: 1.5;
	margin-bottom: var(--wv3-space-md, 16px);
	flex: 1;
}

.wv3-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.wv3-product-card__price {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wv3-primary, #4F7F74);
}

.wv3-product-card__cta {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wv3-primary, #4F7F74);
	text-decoration: none;
}

/* ----------------------------------------------------------
 * Pagination
 * -------------------------------------------------------- */
.wv3-products-pagination {
	display: flex;
	gap: var(--wv3-space-sm, 8px);
	justify-content: center;
	margin-top: var(--wv3-space-xl, 32px);
}

.wv3-products-pagination a,
.wv3-products-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--wv3-radius-md, 8px);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.wv3-products-pagination a {
	background: var(--wv3-primary-light, #eef5f3);
	color: var(--wv3-primary, #4F7F74);
}

.wv3-products-pagination a:hover {
	background: var(--wv3-primary, #4F7F74);
	color: #fff;
}

.wv3-products-pagination .current {
	background: var(--wv3-primary, #4F7F74);
	color: #fff;
}

/* ----------------------------------------------------------
 * Product detail page
 * -------------------------------------------------------- */
.wv3-product-detail {
	padding: 16px 0 var(--wv3-space-section, 96px);
}

.wv3-product-detail__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wv3-space-xl, 32px);
	align-items: start;
}

.wv3-product-detail__gallery {
	display: flex;
	flex-direction: column;
	gap: var(--wv3-space-sm, 8px);
}

.wv3-product-detail__main {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: var(--wv3-radius-md, 8px);
	overflow: hidden;
	background: var(--wv3-bg-light, #f5f5f5);
	cursor: zoom-in;
}

.wv3-product-detail__main-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

/* Klientský ořez — img má pixelové šířky/marginy v %, žádný object-fit. */
.wv3-product-detail__main-img--cropped {
	object-fit: initial;
	object-position: initial;
}

.wv3-product-detail__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
	gap: var(--wv3-space-sm, 8px);
}

.wv3-product-detail__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	margin: 0;
	border: 2px solid transparent;
	border-radius: var(--wv3-radius-sm, 6px);
	overflow: hidden;
	background: var(--wv3-bg-light, #f5f5f5);
	cursor: pointer;
	transition: border-color 0.15s, opacity 0.15s;
	opacity: 0.7;
}

.wv3-product-detail__thumb:hover,
.wv3-product-detail__thumb:focus-visible {
	opacity: 1;
	outline: none;
}

.wv3-product-detail__thumb.is-active {
	border-color: var(--wv3-primary, #4F7F74);
	opacity: 1;
}

.wv3-product-detail__thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.wv3-product-detail__breadcrumb {
	font-size: 0.8125rem;
	color: var(--wv3-text-secondary, #6b7280);
	margin-top: var(--wv3-space-sm, 10px);
	margin-bottom: var(--wv3-space-md, 16px);
}

/* Nadpis sekce na detailu produktu (Popis) — stejný font jako „Informace k události". */
.wv3-product-section-title {
	font-family: var(--wv3-font-heading, inherit);
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: var(--wv3-font-weight-heading, 700);
	margin: clamp(32px, 5vw, 56px) 0 12px;
	color: var(--wv3-text, #333);
}

.wv3-product-detail__breadcrumb a {
	color: var(--wv3-primary, #4F7F74);
	text-decoration: none;
}

.wv3-product-detail__breadcrumb a:hover {
	text-decoration: underline;
}

.wv3-product-detail__category {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wv3-primary, #4F7F74);
	margin-bottom: var(--wv3-space-xs, 4px);
}

/* Kategorie jako proklikávací štítek pod nadpisem. */
.wv3-product-detail__cat-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 var(--wv3-space-md, 16px);
	padding: 5px 12px;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	color: color-mix(in srgb, var(--wv3-primary, #97A75C) 82%, #000);
	background: color-mix(in srgb, var(--wv3-primary, #97A75C) 11%, #fff);
	border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 24%, #fff);
	border-radius: 999px;
	transition: background .15s, border-color .15s;
}
.wv3-product-detail__cat-badge:hover {
	background: color-mix(in srgb, var(--wv3-primary, #97A75C) 20%, #fff);
	border-color: var(--wv3-primary, #97A75C);
}

/* Cena události nad tlačítkem — blíž k CTA. */
.wv3-product-detail__price--event { margin: 0 0 10px; }
.wv3-product-detail__price-unit { font-size: 0.66em; font-weight: 400; opacity: 0.75; }

/* Teaser „Doprava od XX Kč" — jemný primary wrapper nad cenou, klikací → popup. */
.wv3-delivery-teaser { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 24%, #fff); background: color-mix(in srgb, var(--wv3-primary, #97A75C) 8%, var(--wv3-bg, #fff)); border-radius: var(--wv3-radius, 10px); color: color-mix(in srgb, var(--wv3-primary, #97A75C) 82%, #000); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.wv3-delivery-teaser:hover { background: color-mix(in srgb, var(--wv3-primary, #97A75C) 15%, var(--wv3-bg, #fff)); }
.wv3-delivery-teaser .dashicons { font-size: 16px; width: 16px; height: 16px; color: var(--wv3-primary, #97A75C); }
.wv3-delivery-teaser .dashicons-info-outline { font-size: 17px; width: 17px; height: 17px; }

/* Pickup info modal se otevírá NAD objednávkovým popupem → vyšší z-index. */
#wv3-pickup-info-modal { z-index: 100001; }
#wv3-delivery-modal { z-index: 100000; }

/* Info ikonka osobního odběru + mapa/instrukce. */
.wv3-pickup-info-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; padding: 0; border: none; background: none; color: var(--wv3-primary, #97A75C); cursor: pointer; }
.wv3-pickup-info-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.wv3-pickup-info-btn:hover { color: color-mix(in srgb, var(--wv3-primary, #97A75C) 70%, #000); }
.wv3-pickup-map { width: 100%; height: 280px; border-radius: var(--wv3-radius, 8px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 20%, #ddd); margin: 0 0 10px; background: #eef1f4; z-index: 0; }
.wv3-pickup-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.wv3-pickup-map .leaflet-control-attribution { font-size: 10px; }
.wv3-pickup-map__addr { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; color: var(--wv3-text, #333); margin: 0 0 8px; }
.wv3-pickup-map__addr .dashicons { color: var(--wv3-primary, #97A75C); flex: none; }
.wv3-pickup-instructions { font-size: 0.92rem; line-height: 1.6; color: var(--wv3-text-secondary, #777); }

/* Přehled dopravy v popupu. */
.wv3-delivery-list { display: flex; flex-direction: column; gap: 2px; }
.wv3-delivery-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 12%, #eee); }
.wv3-delivery-list__item:last-child { border-bottom: none; }
.wv3-delivery-list__label { color: var(--wv3-text, #333); }
.wv3-delivery-list__price { font-weight: 700; color: var(--wv3-primary, #97A75C); white-space: nowrap; }

/* Štítek „Doprava zdarma" NAD cenou (sloupec, zarovnané vlevo). */
.wv3-product-detail__price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 10px; }
.wv3-product-detail__price-row .wv3-product-detail__price--event { margin: 0; }
.wv3-product-detail__free-ship { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; background: var(--wv3-primary, #97A75C); white-space: nowrap; }
.wv3-product-detail__free-ship .dashicons { font-size: 15px; width: 15px; height: 15px; }

.wv3-product-detail__title {
	font-family: var(--wv3-font-heading, "Inter", system-ui, sans-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: var(--wv3-font-weight-heading, 700);
	margin: 0 0 var(--wv3-space-md, 16px);
	line-height: 1.2;
}

.wv3-product-detail__price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wv3-primary, #4F7F74);
	margin-bottom: var(--wv3-space-lg, 24px);
}

.wv3-product-detail__stock {
	font-size: 0.875rem;
	margin-bottom: var(--wv3-space-lg, 24px);
}

.wv3-product-detail__stock--available {
	color: #0a6e2e;
}

.wv3-product-detail__stock--low {
	color: #b45309;
}

.wv3-product-detail__description {
	line-height: 1.7;
	margin-bottom: var(--wv3-space-xl, 32px);
}

.wv3-product-detail__description p {
	margin-bottom: var(--wv3-space-md, 16px);
}

/* ----------------------------------------------------------
 * Inquiry form
 * -------------------------------------------------------- */
.wv3-inquiry-form {
	background: var(--wv3-bg-light, #f5f5f5);
	border-radius: var(--wv3-radius-lg, 16px);
	padding: var(--wv3-space-xl, 32px);
	margin-top: var(--wv3-space-xl, 32px);
}

.wv3-inquiry-form__title {
	font-family: var(--wv3-font-heading, "Inter", system-ui, sans-serif);
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 var(--wv3-space-lg, 24px);
}

.wv3-inquiry-form__row {
	margin-bottom: var(--wv3-space-md, 16px);
}

.wv3-inquiry-form__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: var(--wv3-space-xs, 4px);
	color: var(--wv3-text, #1f2937);
}

.wv3-inquiry-form__input,
.wv3-inquiry-form__textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--wv3-border, #e5e7eb);
	border-radius: var(--wv3-radius-md, 8px);
	font-size: 0.9375rem;
	font-family: inherit;
	background: var(--wv3-bg, #fff);
	color: var(--wv3-text, #1f2937);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wv3-inquiry-form__input:focus,
.wv3-inquiry-form__textarea:focus {
	outline: none;
	border-color: var(--wv3-primary, #4F7F74);
	box-shadow: 0 0 0 3px var(--wv3-primary-light, rgba(79, 127, 116, 0.1));
}

.wv3-inquiry-form__textarea {
	min-height: 100px;
	resize: vertical;
}

.wv3-inquiry-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	background: var(--wv3-primary, #4F7F74);
	color: var(--wv3-on-primary, #fff);
	border: none;
	border-radius: var(--wv3-radius-md, 8px);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	margin-top: var(--wv3-space-sm, 8px);
}

.wv3-inquiry-form__submit:hover {
	background: var(--wv3-primary-dark, #3d6b62);
}

.wv3-inquiry-form__submit:active {
	transform: scale(0.98);
}

.wv3-inquiry-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wv3-inquiry-form__message {
	margin-top: var(--wv3-space-md, 16px);
	padding: 12px 16px;
	border-radius: var(--wv3-radius-md, 8px);
	font-size: 0.875rem;
	display: none;
}

.wv3-inquiry-form__message--success {
	display: block;
	background: #d4edda;
	color: #0a6e2e;
}

.wv3-inquiry-form__message--error {
	display: block;
	background: #fde8e8;
	color: #9b1c1c;
}

/* Honeypot — visually hidden */
.wv3-hp-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* ----------------------------------------------------------
 * Short description + full content + specs
 * -------------------------------------------------------- */
.wv3-product-detail__short-desc {
	/* Sladěno s hlavním popisem (.wv3-content) — stejná velikost, barva i řádkování,
	   napříč všemi šablonami WV3. Malá mezera nad (blíž ke štítku kategorie). */
	color: var(--wv3-text, #2D3436);
	font-size: 1rem;
	line-height: 1.8;
	margin-top: 10px;
	margin-bottom: var(--wv3-space-lg, 24px);
}

.wv3-product-detail__content {
	position: relative;
	margin-top: 0;
	padding-top: 0;
	line-height: 1.8;
	max-width: 66.666%;
}

@media (max-width: 767px) {
	.wv3-product-detail__content {
		max-width: 100%;
	}
}

.wv3-product-detail__content h2 {
	font-family: var(--wv3-font-heading, "Inter", system-ui, sans-serif);
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: var(--wv3-font-weight-heading, 700);
	margin: var(--wv3-space-xl, 32px) 0 var(--wv3-space-md, 16px);
}

.wv3-product-detail__content h3 {
	font-family: var(--wv3-font-heading, "Inter", system-ui, sans-serif);
	font-size: clamp(1.1rem, 2vw, 1.375rem);
	font-weight: 600;
	margin: var(--wv3-space-lg, 24px) 0 var(--wv3-space-sm, 8px);
}

.wv3-product-detail__content p {
	margin-bottom: var(--wv3-space-md, 16px);
}

.wv3-product-detail__content > *:last-child {
	margin-bottom: 0;
}

.wv3-product-detail__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wv3-radius-md, 8px);
	margin: var(--wv3-space-lg, 24px) 0;
}

.wv3-product-detail__specs {
	margin-top: var(--wv3-space-xl, 32px);
	padding-top: var(--wv3-space-xl, 32px);
	border-top: 1px solid var(--wv3-border, #e5e7eb);
	/* Stejná šířka jako popis a instrukce (ne přes celou šířku). */
	max-width: 66.666%;
}
@media (max-width: 767px) { .wv3-product-detail__specs { max-width: 100%; } }

.wv3-product-detail__specs-title {
	font-family: var(--wv3-font-heading, "Inter", system-ui, sans-serif);
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 var(--wv3-space-md, 16px);
}

.wv3-product-detail__specs-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.wv3-product-detail__specs-table th,
.wv3-product-detail__specs-table td {
	padding: 12px 16px;
	text-align: left;
	font-size: 0.9375rem;
}

.wv3-product-detail__specs-table th {
	color: var(--wv3-text-secondary, #6b7280);
	font-weight: 500;
	width: 40%;
}

.wv3-product-detail__specs-table td {
	font-weight: 600;
	color: var(--wv3-text, #1f2937);
}

.wv3-product-detail__specs-table tbody tr:nth-child(odd) th,
.wv3-product-detail__specs-table tbody tr:nth-child(odd) td {
	background: var(--wv3-bg-light, #f5f5f5);
}

.wv3-product-detail__specs-table tbody tr:first-child th {
	border-top-left-radius: var(--wv3-radius-sm, 6px);
}

.wv3-product-detail__specs-table tbody tr:first-child td {
	border-top-right-radius: var(--wv3-radius-sm, 6px);
}

.wv3-product-detail__specs-table tbody tr:last-child th {
	border-bottom-left-radius: var(--wv3-radius-sm, 6px);
}

.wv3-product-detail__specs-table tbody tr:last-child td {
	border-bottom-right-radius: var(--wv3-radius-sm, 6px);
}

/* ----------------------------------------------------------
 * Related products on product detail
 * -------------------------------------------------------- */
.wv3-related-products {
	padding: var(--wv3-space-section, 96px) 0;
	background: var(--wv3-bg-light, #f5f5f5);
}

.wv3-related-products .wv3-section__title {
	text-align: center;
	margin-bottom: var(--wv3-space-xl, 32px);
}

/* ----------------------------------------------------------
 * CTA button on product detail
 * -------------------------------------------------------- */
.wv3-product-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 36px;
	background: var(--wv3-primary, #4F7F74);
	color: var(--wv3-on-primary, #fff);
	border: none;
	border-radius: var(--wv3-radius-md, 8px);
	font-size: 1.0625rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wv3-product-cta:hover {
	background: var(--wv3-primary-dark, #3d6b62);
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
	transform: translateY(-1px);
}

.wv3-product-cta:active {
	transform: scale(0.98);
}

/* ----------------------------------------------------------
 * Inquiry modal popup
 * -------------------------------------------------------- */
.wv3-inquiry-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.wv3-inquiry-modal--open {
	opacity: 1;
	visibility: visible;
}

.wv3-inquiry-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
}

.wv3-inquiry-modal__dialog {
	position: relative;
	background: var(--wv3-bg, #fff);
	border-radius: var(--wv3-radius-lg, 16px);
	padding: var(--wv3-space-xl, 32px);
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 24px 64px rgba(0,0,0,0.2);
	transform: translateY(20px);
	transition: transform 0.25s;
}

.wv3-inquiry-modal--open .wv3-inquiry-modal__dialog {
	transform: translateY(0);
}

.wv3-inquiry-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--wv3-text-secondary, #6b7280);
	cursor: pointer;
	padding: 4px 8px;
	transition: color 0.2s;
}

.wv3-inquiry-modal__close:hover {
	color: var(--wv3-text, #1f2937);
}

.wv3-inquiry-modal__title {
	font-family: var(--wv3-font-heading, "Inter", system-ui, sans-serif);
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 var(--wv3-space-xs, 4px);
}

.wv3-inquiry-modal__product {
	color: var(--wv3-text-secondary, #6b7280);
	font-size: 0.875rem;
	margin: 0 0 var(--wv3-space-lg, 24px);
}

/* ----------------------------------------------------------
 * Responsive
 * -------------------------------------------------------- */
@media (max-width: 768px) {
	.wv3-product-detail__layout {
		grid-template-columns: 1fr;
	}

	.wv3-products-grid {
		grid-template-columns: 1fr;
	}

	.wv3-products-archive {
		padding: 16px 0 48px;
		margin-top: -16px;
		padding-top: 32px;
	}

	.wv3-product-detail {
		padding: 8px 0 48px;
	}

	.wv3-inquiry-modal__dialog {
		padding: var(--wv3-space-lg, 24px);
		max-height: 85vh;
	}

	.wv3-product-detail__content {
		max-width: 100%;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.wv3-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ----------------------------------------------------------
 * Gallery lightbox
 * -------------------------------------------------------- */
.wv3-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.wv3-gallery-lightbox.is-open {
	display: flex;
}

.wv3-gallery-lightbox__stage {
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wv3-gallery-lightbox__stage img {
	max-width: 100%;
	max-height: calc(100vh - 80px);
	object-fit: contain;
	display: block;
}

.wv3-gallery-lightbox__close,
.wv3-gallery-lightbox__nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 0;
	cursor: pointer;
	transition: background 0.15s;
	font-family: inherit;
}

.wv3-gallery-lightbox__close:hover,
.wv3-gallery-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.2);
}

.wv3-gallery-lightbox__close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
}

.wv3-gallery-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	font-size: 36px;
	line-height: 1;
}

.wv3-gallery-lightbox__nav--prev { left: 16px; }
.wv3-gallery-lightbox__nav--next { right: 16px; }

.wv3-gallery-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.875rem;
	background: rgba(0, 0, 0, 0.5);
	padding: 6px 14px;
	border-radius: 999px;
}

.wv3-gallery-lightbox--single .wv3-gallery-lightbox__nav,
.wv3-gallery-lightbox--single .wv3-gallery-lightbox__counter {
	display: none;
}

@media (max-width: 600px) {
	.wv3-gallery-lightbox {
		padding: 16px;
	}

	.wv3-gallery-lightbox__nav {
		width: 44px;
		height: 44px;
		font-size: 28px;
	}
}

/* ---------- Události (event režim) — frontend ---------- */
/* Souhrn objednávky — jemný šedý wrapper. */
.wv3-order-total { margin: 10px 0; padding: 10px 14px; background: #f4f5f6; border-radius: var(--wv3-radius, 8px); text-align: left; font-size: 1.05rem; color: var(--wv3-text, #333); }
.wv3-order-total:empty { display: none; padding: 0; margin: 0; }
.wv3-order-total strong { color: var(--wv3-primary, #97A75C); }
.wv3-order-note { font-size: 0.82rem; color: var(--wv3-text-secondary, #777); margin: 10px 0 0; line-height: 1.5; }
/* Souhlas s podmínkami — nad poznámkou o platbě, mírně oddělený. */
.wv3-order-consent { font-size: 0.82rem; color: var(--wv3-text-secondary, #777); margin: 12px 0 0; line-height: 1.5; }
.wv3-order-consent a { color: var(--wv3-primary, #97A75C); text-decoration: underline; }
.wv3-order-consent + .wv3-order-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 15%, #eee); }

/* Řádkový přehled ceny (produkt: doprava + poukaz + celkem) */
.wv3-order-total__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.95rem; padding: 3px 0; color: var(--wv3-text-secondary, #777); }
.wv3-order-total__row--voucher { color: color-mix(in srgb, var(--wv3-primary, #97A75C) 82%, #000); font-weight: 600; }
.wv3-order-total__row--sum { margin-top: 4px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 22%, #fff); font-size: 1.05rem; color: var(--wv3-text, #333); }
/* Jediný / první řádek = žádný oddělovač nahoře (separátor jen mezi víc řádky). */
.wv3-order-total__row--sum:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ---------- Produkt s platbou — doprava + poukaz v pop-upu ---------- */
.wv3-delivery-choices { display: flex; flex-direction: column; gap: 8px; }
.wv3-delivery-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 24%, #fff); border-radius: var(--wv3-radius, 10px); cursor: pointer; transition: border-color .15s, background .15s; }
.wv3-delivery-choice:hover { border-color: var(--wv3-primary, #97A75C); }
.wv3-delivery-choice:has(input:checked) { border-color: var(--wv3-primary, #97A75C); background: color-mix(in srgb, var(--wv3-primary, #97A75C) 8%, var(--wv3-bg, #fff)); }
.wv3-delivery-choice input { flex: none; accent-color: var(--wv3-primary, #97A75C); }
.wv3-delivery-choice__label { flex: 1 1 auto; font-size: 0.95rem; color: var(--wv3-text, #333); }
.wv3-delivery-choice__price { flex: none; font-size: 0.9rem; font-weight: 600; color: var(--wv3-text-secondary, #777); }
.wv3-delivery-address { }
.wv3-delivery-address__row { display: flex; gap: 8px; margin-top: 8px; }
.wv3-delivery-address__zip { flex: 0 0 90px; }
.wv3-delivery-address__city { flex: 1 1 auto; }

/* Výběr výdejního místa / Z-BOXu (Packeta widget). */
.wv3-pickup-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--wv3-primary, #97A75C); border-radius: var(--wv3-radius, 8px); background: none; color: var(--wv3-primary, #97A75C); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: background .15s, color .15s; }
.wv3-pickup-btn:hover { background: var(--wv3-primary, #97A75C); color: #fff; }
.wv3-pickup-btn .dashicons { font-size: 17px; width: 17px; height: 17px; }
.wv3-pickup-selected { margin-top: 10px; border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 22%, #fff); border-radius: var(--wv3-radius, 8px); overflow: hidden; font-size: 0.92rem; line-height: 1.4; color: var(--wv3-text, #333); }
.wv3-pickup-selected__head { background: var(--wv3-primary, #97A75C); color: #fff; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .03em; padding: 7px 12px; }
.wv3-pickup-selected__body { padding: 10px 12px; background: color-mix(in srgb, var(--wv3-primary, #97A75C) 8%, var(--wv3-bg, #fff)); }
.wv3-pickup-selected__addr { display: block; color: var(--wv3-text-secondary, #777); font-size: 0.85rem; }
/* Tlačítko „Změnit výdejní místo" VŽDY na samostatném řádku pod adresou (i u krátké adresy). */
.wv3-pickup-change { display: inline-flex; clear: both; align-items: center; gap: 5px; margin-top: 10px; padding: 6px 12px; border: 1px solid var(--wv3-primary, #97A75C); border-radius: var(--wv3-radius, 8px); background: none; color: var(--wv3-primary, #97A75C); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: background .15s, color .15s; }
.wv3-pickup-change:hover { background: var(--wv3-primary, #97A75C); color: #fff; }
.wv3-pickup-change .dashicons { font-size: 15px; width: 15px; height: 15px; }
.wv3-pickup-msg { margin-top: 6px; font-size: 0.85rem; line-height: 1.4; }
.wv3-pickup-msg--error { color: #c0392b; font-weight: 600; }
/* Chyba — nevybrané výdejní místo: červené zvýraznění boxu. */
.wv3-delivery-pickup--error { border: 1px solid #c0392b; background: color-mix(in srgb, #c0392b 6%, #fff); border-radius: var(--wv3-radius, 8px); padding: 10px 12px; }
.wv3-delivery-pickup--error .wv3-pickup-btn { border-color: #c0392b; color: #c0392b; }

/* Poznámka k objednávce — rozbalovací nepovinné pole (kompaktní řádek jako poukaz). */
.wv3-note-field { margin-top: 18px; }
.wv3-note-toggle { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: none; padding: 0; font-size: 0.92rem; font-weight: 600; color: var(--wv3-primary, #97A75C); cursor: pointer; line-height: 1.2; text-align: left; }
.wv3-note-toggle .dashicons { font-size: 16px; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.wv3-note-toggle.is-open .dashicons { transform: rotate(45deg); }
.wv3-note-body { margin-top: 8px; }

/* Poukaz = jemný wrapper v primary barvě šablony, rohy dle nastavení šablony WV 3.0. */
.wv3-voucher-field { background: color-mix(in srgb, var(--wv3-primary, #97A75C) 7%, var(--wv3-bg, #fff)); border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 22%, #fff); border-radius: var(--wv3-radius, 10px); padding: 12px 14px; }
.wv3-voucher-field__toggle { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: none; padding: 0; font-size: 0.92rem; font-weight: 600; color: var(--wv3-primary, #97A75C); cursor: pointer; line-height: 1.2; text-align: left; }
.wv3-voucher-field__toggle .dashicons { font-size: 17px; width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.wv3-voucher-field__body { margin-top: 8px; }
.wv3-voucher-field__hint { font-size: 0.8rem; color: var(--wv3-text-secondary, #777); line-height: 1.45; margin: 0 0 14px; }

/* Našeptávač adres v pop-upu (doručovací adresa). */
.wv3-addr-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 30%, #ddd); border-radius: var(--wv3-radius, 8px); box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 220px; overflow-y: auto; margin-top: 2px; }
.wv3-addr-suggest__item { padding: 8px 12px; font-size: 0.9rem; cursor: pointer; color: var(--wv3-text, #333); }
.wv3-addr-suggest__item:hover { background: color-mix(in srgb, var(--wv3-primary, #97A75C) 12%, #fff); }
.wv3-voucher-field__input-wrap { display: flex; gap: 8px; }
.wv3-voucher-field__input-wrap .wv3-inquiry-form__input { flex: 1 1 auto; }
.wv3-voucher-field__check { flex: none; white-space: nowrap; padding: 0 16px; border: 1px solid var(--wv3-primary, #97A75C); border-radius: var(--wv3-radius, 10px); background: none; color: var(--wv3-primary, #97A75C); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background .15s, color .15s; }
.wv3-voucher-field__check:hover { background: var(--wv3-primary, #97A75C); color: #fff; }
.wv3-voucher-field__check:disabled { opacity: .55; cursor: default; }
.wv3-voucher-field__msg { margin-top: 12px; font-size: 0.88rem; line-height: 1.5; min-height: 1px; color: var(--wv3-text-secondary, #777); }
.wv3-voucher-field__msg:empty { margin-top: 0; }
.wv3-voucher-field__msg--ok { color: color-mix(in srgb, var(--wv3-primary, #97A75C) 82%, #000); font-weight: 600; }
.wv3-voucher-field__msg--error { color: #c0392b; }
/* Platnost poukazu — zelený / červený jen na větě „Poukaz je platný/neplatný.", zbytek běžný font. */
.wv3-voucher-valid { color: #1a7d3c; font-weight: 700; }
.wv3-voucher-invalid { color: #c0392b; font-weight: 700; }

/* Platební instrukce po objednání */
.wv3-order-payment { margin-top: 4px; }
.wv3-order-pay__title { font-family: var(--wv3-font-heading); font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--wv3-text, #333); }
.wv3-order-pay__lead { color: var(--wv3-text-secondary, #777); margin: 0 0 1rem; line-height: 1.5; }
.wv3-order-pay__details { border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 30%, #fff); border-radius: var(--wv3-radius, 10px); overflow: hidden; }
.wv3-order-pay__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 14%, #fff); }
.wv3-order-pay__row:last-child { border-bottom: none; }
.wv3-order-pay__k { color: var(--wv3-text-secondary, #777); }
.wv3-order-pay__v { font-weight: 700; color: var(--wv3-text, #333); text-align: right; word-break: break-all; }
.wv3-order-pay__qr { text-align: center; margin: 1rem 0 0; }
.wv3-order-pay__qr img { background: #fff; padding: 10px; border-radius: 12px; }
.wv3-order-pay__link { font-size: 0.85rem; color: var(--wv3-text-secondary, #777); margin: 1rem 0 0; line-height: 1.5; word-break: break-all; }

/* ---------- Video embed v popisu produktu (YouTube / Vimeo) ---------- */
.wv3-video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 1.5rem 0; border-radius: var(--wv3-radius, 12px); overflow: hidden; background: #000; }
.wv3-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Fallback pro prohlížeče bez aspect-ratio */
@supports not (aspect-ratio: 16 / 9) { .wv3-video-embed { height: 0; padding-bottom: 56.25%; } }

/* ---------- Událost — barevné info boxy (datum / místo / místa) ---------- */
.wv3-event-meta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 0 0 1.2rem; }
/* Kompaktní box: label + hodnota na jednom řádku, výška dle obsahu (žádný flex-basis do výšky). */
.wv3-event-box { flex: 1 1 auto; min-width: 0; align-self: flex-start; padding: 11px 16px; border-radius: var(--wv3-radius, 12px); background: color-mix(in srgb, var(--wv3-primary, #97A75C) 10%, #fff); border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 20%, #fff); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* Vedoucí ikona PŘED labelem (kalendář / pin / vstupenka). */
.wv3-event-box__icon { flex: 0 0 auto; color: var(--wv3-primary, #97A75C); width: 18px; height: 18px; font-size: 18px; line-height: 1; }
/* Pevná šířka labelu → hodnoty ve všech boxech začínají na stejné pozici (svisle zarovnané). */
.wv3-event-box__label { flex: 0 0 auto; min-width: 118px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: color-mix(in srgb, var(--wv3-primary, #97A75C) 78%, #000); margin: 0; white-space: nowrap; }
@media (max-width: 480px) { .wv3-event-box__label { min-width: 0; } }
/* Hodnota = vlastní sloupec vedle labelu: dlouhý text (adresa) se zalamuje POD sebe
   v jedné rovině za labelem, nikdy pod „MÍSTO KONÁNÍ:". flex:1+min-width:0 = zalamování.
   Ikona i label jsou vůči (i víceřádkové) hodnotě svisle vycentrované (align-items:center). */
.wv3-event-box__value { display: block; flex: 1 1 0; min-width: 0; font-size: 0.98rem; font-weight: 600; color: var(--wv3-text, #333); margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.wv3-event-box--seats { flex: 1 1 auto; background: color-mix(in srgb, var(--wv3-primary, #97A75C) 10%, #fff); }
.wv3-event-box--seats.is-soldout { background: color-mix(in srgb, #c0392b 10%, #fff); border-color: color-mix(in srgb, #c0392b 25%, #fff); }
.wv3-event-box--seats.is-soldout .wv3-event-box__value { color: #a93226; }

/* ---------- Instrukce k události (frontend) ---------- */
.wv3-event-instructions { margin: 1.75rem 0 0; max-width: 66.666%; }
@media (max-width: 767px) { .wv3-event-instructions { max-width: 100%; } }
.wv3-event-instructions__title { font-family: var(--wv3-font-heading, inherit); font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: var(--wv3-font-weight-heading, 700); margin: 0 0 12px; color: var(--wv3-text, #333); }
/* Jen text (jako dlouhý popis) — bez wrapperu/pozadí. */
.wv3-event-instructions__body { color: var(--wv3-text, #333); line-height: 1.8; }

/* ---------- Karta katalogu: událost s termínem (datum + volná místa) ---------- */
.wv3-card-event { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0 0 10px; }
.wv3-card-event__item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; line-height: 1.3; color: var(--wv3-text, #333); background: color-mix(in srgb, var(--wv3-primary, #97A75C) 9%, var(--wv3-bg, #fff)); border-radius: 8px; padding: 5px 10px; }
.wv3-card-event__item .dashicons { font-size: 16px; width: 16px; height: 16px; color: var(--wv3-primary, #97A75C); flex: none; }
.wv3-card-event__item--seats { color: color-mix(in srgb, var(--wv3-primary, #97A75C) 82%, #000); }
.wv3-card-event__item--seats.is-soldout { background: color-mix(in srgb, #c0392b 10%, #fff); color: #a93226; }
.wv3-card-event__item--seats.is-soldout .dashicons { color: #c0392b; }
.wv3-card-event__item--free { color: color-mix(in srgb, var(--wv3-primary, #97A75C) 82%, #000); }

/* Overlay štítků v levém horním rohu náhledové fotky (mírné vnitřní odsazení). */
.wv3-card__image { position: relative; }
.wv3-card-event--overlay { position: absolute; top: 10px; left: 10px; margin: 0; z-index: 2; pointer-events: none; }
.wv3-card-event--overlay .wv3-card-event__item { background: color-mix(in srgb, #fff 92%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.wv3-card-event--overlay .wv3-card-event__item--seats.is-soldout { background: color-mix(in srgb, #fff 88%, #c0392b); }

/* Prázdný katalog / kategorie — full-width karta ve stylu produktů. */
.wv3-catalog-empty { display: flex; align-items: center; gap: 16px; width: 100%; padding: 28px 26px; background: var(--wv3-bg, #fff); border: 1px solid color-mix(in srgb, var(--wv3-primary, #97A75C) 18%, #fff); border-radius: var(--wv3-radius, 12px); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.wv3-catalog-empty__icon { font-size: 34px; width: 34px; height: 34px; flex: none; color: var(--wv3-primary, #97A75C); background: color-mix(in srgb, var(--wv3-primary, #97A75C) 10%, var(--wv3-bg, #fff)); border-radius: 50%; padding: 14px; box-sizing: content-box; display: flex; align-items: center; justify-content: center; }
.wv3-catalog-empty__text { display: flex; flex-direction: column; gap: 4px; }
.wv3-catalog-empty__title { font-family: var(--wv3-font-heading, inherit); font-size: 1.15rem; color: var(--wv3-text, #333); }
.wv3-catalog-empty__sub { font-size: 0.92rem; color: var(--wv3-text-secondary, #777); line-height: 1.5; }
