/* ==========================================================================
   UPTLAC — konfigurátor (frontend) a WooCommerce prvky v štýle dema.
   Používa premenné definované v main.css (--brand, --ink, --line…).
   ========================================================================== */

/* ---------- Konfigurátor ---------- */
.cfg-section {
	margin: 3rem 0 1rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--line);
}
.cfg-section__head { max-width: 62ch; margin-bottom: 1.75rem; }
.cfg-section__head h2 {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.75rem; font-weight: 700; margin: .35rem 0 .5rem;
}
.cfg-section__head p { color: var(--muted); margin: 0; }
.cfg-jump { margin-top: 1rem; }
.cfg-loading { color: var(--muted); padding: 2rem 0; }

.cfg { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 2rem; align-items: start; }
.cfg__main { display: grid; gap: 1.25rem; min-width: 0; }

/* Skupina volieb */
.cfg-group {
	border: 1px solid var(--line); border-radius: 16px;
	padding: 1.1rem 1.25rem 1.25rem; background: var(--paper);
}
.cfg-group__head { margin-bottom: .9rem; }
.cfg-group__head h3 {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: -.01em;
}
.cfg-group__hint {
	color: var(--muted); font-size: .82rem; margin: .25rem 0 0;
	font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Karty možností */
.cfg-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .6rem; }
.cfg-opts--qty { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

.opt {
	position: relative; text-align: left; cursor: pointer; font: inherit;
	border: 1.5px solid var(--line-2); background: var(--paper);
	border-radius: 12px; padding: .7rem .85rem;
	display: flex; flex-direction: column; gap: .15rem;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt:hover:not(:disabled) { border-color: var(--brand); }
.opt.is-on {
	border-color: var(--brand); background: var(--brand-050);
	box-shadow: 0 0 0 3px var(--brand-100);
}
.opt.is-on::after {
	content: ""; position: absolute; top: .55rem; right: .55rem;
	width: 16px; height: 16px; border-radius: 50%; background: var(--brand);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
	background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.opt__name { font-weight: 600; font-size: .92rem; line-height: 1.3; padding-right: 1.2rem; }
.opt__sub {
	color: var(--muted); font-size: .76rem;
	font-family: "JetBrains Mono", ui-monospace, monospace;
}
.opt__delta {
	color: var(--brand-700); font-size: .76rem; font-weight: 600;
	font-family: "JetBrains Mono", ui-monospace, monospace; margin-top: .1rem;
}
.opt--qty { align-items: center; text-align: center; gap: .1rem; }
.opt--qty .opt__name { padding-right: 0; }
.opt--qty.is-on::after { top: .35rem; right: .35rem; width: 14px; height: 14px; background-size: 9px; }
/* Cena za kus pri stupni nákladu — kvôli nej zákazník vidí, že vyšší
   náklad vychádza výhodnejšie. */
.opt__unit {
	color: var(--muted); font-size: .72rem;
	font-family: "JetBrains Mono", ui-monospace, monospace;
}
.opt--qty.is-on .opt__unit { color: var(--brand-700); }
.cfg-qty__note {
	margin: .5rem 0 0; color: var(--muted); font-size: .76rem;
	font-family: "JetBrains Mono", ui-monospace, monospace;
}

.opt--off, .opt:disabled {
	opacity: .4; cursor: not-allowed; background: var(--paper-3); border-color: var(--line);
}
.opt--off::before {
	content: ""; position: absolute; left: 8%; right: 8%; top: 50%;
	border-top: 1.5px solid var(--muted); transform: rotate(-7deg);
}

/* Číselné polia a náklad */
.cfg-fields { display: flex; flex-wrap: wrap; gap: 1rem; }
.cfg-field, .cfg-qty { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; }
.cfg-qty { margin-top: .75rem; max-width: 220px; }
.cfg-qty span { color: var(--muted); }
.cfg-field input, .cfg-qty input {
	border: 1.5px solid var(--line-2); border-radius: 10px;
	padding: .55rem .7rem; font: inherit; max-width: 200px;
}
.cfg-field input:focus, .cfg-qty input:focus { outline: none; border-color: var(--brand); }

/* Pravý panel */
.cfg__summary { position: sticky; top: 100px; }
.cfg-card {
	border: 1px solid var(--line); border-radius: 18px;
	background: var(--paper-2); padding: 1.25rem;
}
.cfg-card__title {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.05rem; font-weight: 700; margin: 0 0 .9rem;
}
.cfg-recap { margin: 0 0 1rem; display: grid; gap: .35rem; }
.cfg-recap__row {
	display: flex; justify-content: space-between; gap: .75rem;
	font-size: .84rem; padding-bottom: .35rem;
	border-bottom: 1px dashed var(--line);
}
.cfg-recap dt { color: var(--muted); margin: 0; flex: none; }
.cfg-recap dd { margin: 0; text-align: right; font-weight: 600; }

.cfg-totals { display: grid; gap: .4rem; margin-bottom: .9rem; }
.cfg-row { display: flex; justify-content: space-between; font-size: .88rem; }
.cfg-row--unit {
	color: var(--muted); font-size: .78rem;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .2rem;
}
.cfg-row .is-free { color: #1a7f4b; font-weight: 600; }
.cfg-total {
	display: flex; justify-content: space-between; align-items: baseline;
	border-top: 2px solid var(--ink); margin-top: .5rem; padding-top: .6rem;
}
.cfg-total b {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.5rem; font-weight: 700; color: var(--ink);
}
.cfg-total--ask b { font-size: 1.15rem; color: var(--brand-700); }

.cfg-freeship {
	font-size: .8rem; color: var(--ink-3);
	background: var(--brand-050); border-radius: 8px;
	padding: .5rem .65rem; margin-bottom: .75rem;
}
.cfg-freeship--done { color: #1a7f4b; background: #eaf7f0; font-weight: 600; }
.cfg-demand {
	font-size: .84rem; color: #8a4b00; background: #fff6e8;
	border: 1px solid #f3ddbb; border-radius: 8px;
	padding: .55rem .7rem; margin-bottom: .75rem;
}
.cfg-add { margin-bottom: .5rem; }
.cfg-add:disabled { opacity: .55; cursor: not-allowed; }
.cfg-note { color: var(--muted); font-size: .75rem; margin: .75rem 0 0; }

@media (max-width: 980px) {
	.cfg { grid-template-columns: 1fr; }
	.cfg__summary { position: static; }
}

.price-from { color: var(--muted); font-size: .85em; }
.price-config { color: var(--brand-700); font-weight: 600; }

/* ---------- Katalóg — mriežka a karty (pcard) ---------- */
.shop-head { margin: 1rem 0 1.5rem; }
.shop-head__title {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.9rem; font-weight: 700; margin: 0 0 .35rem;
}
.shop-head__desc { color: var(--muted); max-width: 60ch; }

.catalog-toolbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.catalog-toolbar__count { color: var(--muted); font-size: .9rem; }

ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
}

.pcard {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: box-shadow .18s, transform .18s, border-color .18s;
}
.pcard:hover { box-shadow: 0 12px 30px rgba(11,27,38,.09); border-color: var(--line-2); transform: translateY(-2px); }
.pcard__media { display: block; aspect-ratio: 1; background: var(--paper-3); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }

.pcard__badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; }
.badge { font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; background: var(--ink); color: #fff; }
.badge--sale { background: #C8007D; }
.badge--top { background: var(--brand); }

.pcard__tools { position: absolute; top: .6rem; right: .6rem; display: flex; flex-direction: column; gap: .4rem; opacity: 0; transition: opacity .15s; }
.pcard:hover .pcard__tools { opacity: 1; }
.pcard__tool {
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255,255,255,.95); border: 1px solid var(--line);
	display: grid; place-items: center; cursor: pointer;
}
.pcard__tool svg { width: 18px; height: 18px; }
.pcard__tool[aria-pressed="true"] { color: #C8007D; border-color: #C8007D; }

.pcard__body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pcard__cat { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.pcard__title { font-size: .98rem; font-weight: 600; margin: 0; line-height: 1.3; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a:hover { color: var(--brand); }
.pcard__spec { display: flex; flex-wrap: wrap; gap: .35rem; }
.pcard__spec span { font-size: .72rem; color: var(--ink-3); background: var(--paper-3); border-radius: 5px; padding: .12rem .4rem; }

.pcard__foot { display: flex; align-items: end; justify-content: space-between; gap: .5rem; margin-top: auto; }
.pcard__price .val { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.pcard__price .vat { display: block; color: var(--muted); font-size: .7rem; }
.pcard__price .ondemand { font-weight: 600; color: var(--brand-700); }
.pcard__stock { font-size: .72rem; color: #1a7f4b; }
.pcard__stock--order { color: var(--muted); }
.pcard__cta { margin-top: .25rem; }

/* ---------- Doprava zdarma bar ---------- */
.freeship-bar { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1.25rem; background: var(--paper-2); }
.freeship-bar p { margin: 0 0 .5rem; font-size: .9rem; }
.freeship-bar__track { height: 8px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.freeship-bar__track span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.freeship-bar--done { color: var(--brand-700); font-weight: 600; }

/* ---------- Jemné zladenie natívnych WooCommerce prvkov ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: 10px; border-left: 4px solid var(--brand);
}
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
	background: var(--brand); color: #fff; border-radius: 10px;
	font-weight: 600; padding: .7rem 1.1rem;
}
.woocommerce .button:hover { background: var(--brand-600); }
.woocommerce div.product .product_title {
	font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700;
}
.woocommerce .price { color: var(--ink); }

/* Chybová 404 a stránky */
.page-wrap { padding: 1.5rem 0 3rem; }
.page-head { margin-bottom: 1.5rem; }
.page-title { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 2rem; margin: 0; }
.error404__box { max-width: 520px; margin: 3rem auto; text-align: center; }
.error404__actions { display: flex; gap: .75rem; justify-content: center; margin: 1.25rem 0; }

/* ---------- Našepkávanie vyhľadávania ---------- */
.suggest { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); }
.suggest:not(.is-open) { display: none; }
.suggest.is-open {
	background: var(--paper); border: 1px solid var(--line);
	border-radius: 12px; box-shadow: 0 18px 40px rgba(11,27,38,.14);
	overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.suggest__item { display: flex; gap: .7rem; padding: .6rem .8rem; text-decoration: none; color: var(--ink); align-items: center; }
.suggest__item:hover { background: var(--paper-2); }
.suggest__thumb img { border-radius: 8px; object-fit: cover; }
.suggest__body b { display: block; font-size: .9rem; }
.suggest__price { color: var(--muted); font-size: .8rem; }
.suggest__empty { padding: .8rem; color: var(--muted); font-size: .9rem; }

/* ---------- Obľúbené ---------- */
.fav-empty { color: var(--muted); padding: 2rem 0; }

/* Nedostupné voľby konfigurátora a cena na dopyt */
.opt--off {
	opacity: .38; cursor: not-allowed; position: relative;
	background: var(--paper-3); border-color: var(--line);
}
.opt--off:hover { border-color: var(--line); }
.opt--off::after {
	content: ""; position: absolute; left: 8%; right: 8%; top: 50%;
	border-top: 1.5px solid var(--muted); transform: rotate(-8deg);
}
.cfg-demand {
	font-size: .84rem; color: #8a4b00; background: #fff6e8;
	border: 1px solid #f3ddbb; border-radius: 8px;
	padding: .55rem .7rem; margin-bottom: .75rem;
}
.price-from { color: var(--muted); font-size: .85em; }
.price-config { color: var(--brand-700); font-weight: 600; }

/* Poznámka k množstvu pri produkte */
.qty-hint {
	font-size: .8rem; color: var(--muted); margin: .4rem 0 .75rem;
	font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Množstevné ceny ---------- */
.tier-table-wrap { margin: 1.5rem 0; }
.tier-table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	font-size: .95rem;
	border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
	background: var(--paper);
}
.tier-table caption {
	text-align: left; font-weight: 600; font-size: .95rem;
	color: var(--ink); padding-bottom: .6rem;
	font-family: "Space Grotesk", Inter, sans-serif;
}
.tier-table th {
	background: var(--paper-2); text-align: left; font-weight: 600;
	font-size: .72rem; color: var(--muted); text-transform: uppercase;
	letter-spacing: .06em; padding: .8rem 1.1rem;
	border-bottom: 1px solid var(--line);
}
.tier-table td { padding: .85rem 1.1rem; border-top: 1px solid var(--line); }
.tier-table tbody tr:first-child td { border-top: 0; }
.tier-table td:nth-child(2) { font-weight: 600; font-variant-numeric: tabular-nums; }
.tier-table tbody tr:hover { background: var(--paper-2); }
.tier-table tbody tr.is-active { background: var(--brand-050); }
.tier-table tbody tr.is-active td { font-weight: 700; color: var(--ink); }
.tier-table tbody tr.is-active td:first-child { box-shadow: inset 4px 0 0 var(--brand); }
.tier-save {
	color: #1a7f4b; font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.tier-hint { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.tier-applied {
	display: block; color: #1a7f4b; font-size: .72rem;
	font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Detail produktu ---------- */
.pd__top { gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.pd__title { margin: .4rem 0 .5rem; }
.pd__sku { font-size: var(--t-xs); }
.pd__short { font-size: var(--t-base); margin-top: 1rem; }
.pd__short p:last-child { margin-bottom: 0; }

.pd__pricebox {
	margin: 1.5rem 0; padding: 1.25rem;
	border: 1px solid var(--line); border-radius: var(--r-lg, 14px);
	background: var(--paper-2);
}
.pd__price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pd__price-unit {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 2.2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
}
.pd__price-unit .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.pd__price-sum { font-size: var(--t-sm); margin-top: .2rem; }
.pd__price-sum b { color: var(--ink); }
.pd__price-ship { margin-top: .5rem; }
.pd__price-config {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.6rem; font-weight: 600; color: var(--brand-700); letter-spacing: -.02em;
}
.pd__price-note { font-size: var(--t-sm); margin-top: .35rem; }

/* Formulár do košíka */
.pd .cart { margin-top: 1.25rem; }
.pd .variations { width: 100%; border: 0; margin-bottom: 1rem; }
.pd .variations th,
.pd .variations td { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.pd .variations th.label label {
	display: block; font-size: var(--t-sm); font-weight: 600;
	color: var(--ink-3); margin: .85rem 0 .3rem;
}
.pd .variations td.value select {
	width: 100%; padding: .7rem .85rem; font: inherit;
	border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper);
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365788A' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
	padding-right: 2.4rem;
}
.pd .variations td.value select:focus { outline: none; border-color: var(--brand); }
.pd .reset_variations {
	display: inline-block; margin-top: .5rem;
	font-size: var(--t-xs); color: var(--muted);
}
.pd .woocommerce-variation-price { margin: .75rem 0; }
.pd .woocommerce-variation-availability { font-size: var(--t-sm); }

/* Množstvo + tlačidlo */
.pd form.cart {
	display: flex; flex-wrap: wrap; gap: .85rem;
	align-items: center;          /* nie stretch — inak sa krokovanie roztiahne */
	margin-top: 1.5rem;
}
.pd form.cart .quantity { display: flex; align-items: center; }

/* Prvky, ktoré patria cez celý riadok formulára */
.pd form.cart .tier-table-wrap,
.pd form.cart .qty-hint,
.pd form.cart .woocommerce-variation-description,
.pd form.cart .woocommerce-variation-availability {
	flex: 0 0 100%; width: 100%; max-width: 100%;
}
.pd form.cart .tier-table-wrap { order: -1; margin: .25rem 0 1rem; }

/* Krokovanie množstva */
.pd .qtybox {
	display: inline-flex; align-items: stretch;
	height: 56px; flex: 0 0 auto; align-self: center;
	border: 1.5px solid var(--line-2); border-radius: 12px;
	background: var(--paper); overflow: hidden;
}
.pd .qtybox button {
	width: 52px; height: 100%; border: 0; background: var(--paper-2);
	cursor: pointer; display: grid; place-items: center; color: var(--ink-3);
	transition: background .15s, color .15s;
}
.pd .qtybox button:hover { background: var(--brand-050); color: var(--brand); }
.pd .qtybox button:active { background: var(--brand-100); }
.pd .qtybox button svg { width: 18px; height: 18px; }
.pd .qtybox input,
.pd form.cart input.qty {
	width: 82px; height: 100%; border: 0; text-align: center;
	font: inherit; font-size: 1.15rem; font-weight: 700; color: var(--ink);
	-moz-appearance: textfield; background: transparent;
}
.pd .qtybox input:focus { outline: none; }
.pd .qtybox input::-webkit-outer-spin-button,
.pd .qtybox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Tlačidlo do košíka — vyššia špecificita než predvolené štýly WooCommerce */
.woocommerce div.product .pd form.cart button.single_add_to_cart_button,
.pd form.cart button.single_add_to_cart_button,
.pd form.cart .single_add_to_cart_button {
	flex: 1 1 200px; min-width: 200px; height: 56px; align-self: center;
	background: var(--brand); color: #fff; border: 0; border-radius: 12px;
	font-family: "Space Grotesk", Inter, sans-serif;
	font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em;
	cursor: pointer; padding: 0 1.6rem;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	transition: background .15s, transform .1s, box-shadow .15s;
	box-shadow: 0 2px 0 var(--brand-700);
}
.woocommerce div.product .pd form.cart button.single_add_to_cart_button:hover,
.pd form.cart .single_add_to_cart_button:hover { background: var(--brand-600); }
.pd form.cart .single_add_to_cart_button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--brand-700); }
.pd form.cart .single_add_to_cart_button:disabled,
.pd form.cart .single_add_to_cart_button.disabled {
	opacity: .45; cursor: not-allowed; box-shadow: none;
}

/* Poznámka o množstve pod tlačidlom */
.pd .qty-hint { width: 100%; margin: 0; }

/* Dôveryhodnostné body */
.pd__trust {
	display: flex; flex-direction: column; gap: .55rem;
	margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
	list-style: none;
}
.pd__trust li {
	display: flex; gap: .6rem; align-items: center;
	font-size: var(--t-sm); color: var(--ink-3);
}
.pd__trust svg { width: 18px; height: 18px; flex: none; color: var(--brand); }

/* Taby */
.pd__tabs-section { padding-top: 1rem; }
.tab-grid { gap: 2rem; }
.tab-grid__title { font-size: var(--t-lg); margin-bottom: .75rem; }
.ticklist { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.ticklist li { display: flex; gap: .6rem; font-size: var(--t-sm); }
.ticklist svg { width: 18px; height: 18px; flex: none; color: #1a7f4b; }

@media (max-width: 860px) {
	.pd__top { grid-template-columns: 1fr; }
	.pd__price-unit { font-size: 1.8rem; }
}

/* Duplicitná cena varianty — hlavný cenový box ju už zobrazuje */
.pd .woocommerce-variation-price { display: none; }
.pd .woocommerce-variation-description { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: .5rem; }
.pd .woocommerce-variation-availability { font-size: var(--t-sm); margin-bottom: .5rem; }
.pd .single_variation_wrap { width: 100%; }
.pd .woocommerce-variation-add-to-cart {
	display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; width: 100%;
}
.pd .woocommerce-variation-add-to-cart .tier-table-wrap,
.pd .woocommerce-variation-add-to-cart .qty-hint {
	flex: 0 0 100%; width: 100%;
}
.pd .reset_variations {
	display: inline-block; margin-top: .35rem;
	font-size: var(--t-xs); color: var(--muted); text-decoration: underline;
}
.pd .reset_variations:hover { color: var(--brand); }

/* Vybraná kombinácia (súhrn nad cenou) */
.pd .woocommerce-variation { width: 100%; }

/* Galéria s jediným obrázkom — hlavný obrázok cez celú šírku */
.gallery--single { grid-template-columns: minmax(0, 1fr); }
.gallery--single .gallery__thumbs { display: none; }

/* Tlačidlo do košíka v neaktívnom stave (kým nie je zvolená varianta) */
.woocommerce div.product .pd form.cart button.single_add_to_cart_button:disabled,
.woocommerce div.product .pd form.cart button.single_add_to_cart_button.disabled,
.pd form.cart .single_add_to_cart_button:disabled,
.pd form.cart .single_add_to_cart_button.disabled {
	background: var(--line-2); color: var(--paper);
	box-shadow: none; opacity: 1; cursor: not-allowed;
}

/* ---------- Košík ---------- */
.cart-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 380px;
	gap: 2.5rem; align-items: start; margin-top: 1.5rem;
}
.cart-layout__side { position: sticky; top: 100px; }

.cart-items { border-top: 1px solid var(--line); }
.cartrow {
	display: grid; grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 1.25rem; padding: 1.25rem 0;
	border-bottom: 1px solid var(--line); align-items: start;
}
.cartrow__media { width: 96px; height: 96px; }
.cartrow__media img { width: 100%; height: 100%; object-fit: contain; }
.cartrow__name {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-weight: 600; font-size: 1.05rem; margin-bottom: .25rem;
}
.cartrow__name a { color: var(--ink); text-decoration: none; }
.cartrow__name a:hover { color: var(--brand); }
.cartrow__meta { font-size: .78rem; line-height: 1.6; margin-bottom: .5rem; }
.cartrow__meta p { margin: 0; }
.cartrow__actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.cartrow__remove {
	font-size: .8rem; color: var(--muted); text-decoration: underline;
}
.cartrow__remove:hover { color: #b32d2e; }
.cartrow__fixedqty {
	padding: .45rem .8rem; border: 1.5px solid var(--line);
	border-radius: 10px; font-size: .85rem; background: var(--paper-2);
}
.cartrow__price { text-align: right; display: grid; gap: .1rem; }
.cartrow__price b {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.15rem; font-weight: 700;
}
.cartrow__price .mono { font-size: .74rem; }

.cart-items .quantity { display: inline-flex; }
.cart-items .quantity input.qty {
	width: 78px; height: 44px; text-align: center; font-weight: 600;
	border: 1.5px solid var(--line-2); border-radius: 10px;
}

.cart-actions {
	display: flex; gap: .75rem; align-items: center;
	flex-wrap: wrap; padding: 1.25rem 0;
}
.cart-actions__coupon { display: flex; gap: .5rem; flex: 1; min-width: 260px; }
.cart-actions__coupon .input { flex: 1; }

.tag {
	display: inline-block; font-size: .68rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em;
	padding: .2rem .5rem; border-radius: 5px;
	background: var(--paper-3); color: var(--ink-3);
}
.tag--info { background: var(--brand-050); color: var(--brand-700); }

.recap__line.is-free span,
.recap .is-free { color: #1a7f4b; font-weight: 600; }

/* ---------- Mini košík (vysúvací panel) ---------- */
#minicart .offcanvas__body { display: flex; flex-direction: column; padding: 0; }
#minicart .shipbar { margin: 1rem 1.25rem; }
.mini__list { list-style: none; margin: 0; padding: 0 1.25rem; flex: 1; overflow-y: auto; }
.mini__item {
	display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line);
	align-items: start;
}
.mini__thumb {
	width: 56px; height: 56px; border: 1px solid var(--line);
	border-radius: 10px; overflow: hidden; background: var(--paper-2);
	display: grid; place-items: center;
}
.mini__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.mini__name { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.mini__name a { color: var(--ink); text-decoration: none; }
.mini__meta { font-size: .72rem; line-height: 1.5; margin-top: .15rem; }
.mini__meta p { margin: 0; }
.mini__price { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.mini__right { text-align: right; display: grid; gap: .3rem; justify-items: end; }
.mini__right b { font-size: .95rem; }
.mini__remove {
	width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	color: var(--muted); font-size: 1.1rem; line-height: 1; text-decoration: none;
}
.mini__remove:hover { background: var(--paper-3); color: #b32d2e; }
.mini__remove.is-busy { opacity: .4; pointer-events: none; }

.mini__foot {
	padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line);
	background: var(--paper-2);
}
.mini__totals { margin-bottom: 1rem; display: grid; gap: .35rem; }
.mini__line { display: flex; justify-content: space-between; font-size: .88rem; }
.mini__line--total {
	border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .25rem;
	font-size: 1.05rem;
}
.mini__line--total b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.25rem; }

/* ---------- Pokladňa ---------- */
.checkout-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 400px;
	gap: 2.5rem; align-items: start; margin-top: 1.5rem;
}
.checkout-layout__side { position: sticky; top: 100px; }
.checkout-block {
	border: 1px solid var(--line); border-radius: 16px;
	padding: 1.5rem; margin-bottom: 1.5rem; background: var(--paper);
}
.checkout-block__title {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.2rem; font-weight: 700; margin: 0 0 1.15rem;
}
.woocommerce-checkout .form-row { margin-bottom: 1rem; }
.woocommerce-checkout label { font-size: .85rem; font-weight: 600; color: var(--ink-3); display: block; margin-bottom: .3rem; }
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	width: 100%; padding: .7rem .85rem; font: inherit;
	border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper);
}
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus { outline: none; border-color: var(--brand); }
.woocommerce-checkout .select2-container--default .select2-selection--single {
	height: 46px; border: 1.5px solid var(--line-2); border-radius: 10px;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px; padding-left: .85rem;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }

#payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; }
#payment ul.payment_methods li {
	border: 1.5px solid var(--line); border-radius: 12px;
	padding: .85rem 1rem; margin-bottom: .6rem;
}
#payment ul.payment_methods li label { display: inline; font-weight: 600; color: var(--ink); }
#payment .payment_box { font-size: .85rem; color: var(--ink-3); margin-top: .5rem; }
#payment .place-order { padding: 0; }
.woocommerce-checkout #place_order {
	width: 100%; min-height: 56px; background: var(--brand); color: #fff;
	border: 0; border-radius: 12px; font-weight: 600; font-size: 1.05rem;
	font-family: "Space Grotesk", Inter, sans-serif; cursor: pointer;
	box-shadow: 0 2px 0 var(--brand-700);
}
.woocommerce-checkout #place_order:hover { background: var(--brand-600); }

.recap--checkout table.shop_table { width: 100%; border: 0; font-size: .88rem; }
.recap--checkout table.shop_table th,
.recap--checkout table.shop_table td { padding: .5rem 0; border: 0; }
.recap--checkout table.shop_table tfoot th { font-weight: 600; }
.recap--checkout table.shop_table tfoot .order-total th,
.recap--checkout table.shop_table tfoot .order-total td {
	border-top: 2px solid var(--ink); padding-top: .7rem; font-size: 1.05rem;
}
.recap--checkout .product-name { color: var(--ink); }
.recap--checkout .product-quantity { color: var(--muted); }

@media (max-width: 1000px) {
	.cart-layout, .checkout-layout { grid-template-columns: 1fr; }
	.cart-layout__side, .checkout-layout__side { position: static; }
}
@media (max-width: 640px) {
	.cartrow { grid-template-columns: 72px minmax(0, 1fr); }
	.cartrow__media { width: 72px; height: 72px; }
	.cartrow__price { grid-column: 2; text-align: left; }
}

/* ---------- Vysúvací košík: záloha pre predvolené značkovanie WooCommerce ----
   Ak sa z akéhokoľvek dôvodu použije pôvodná šablóna WooCommerce namiesto
   šablóny témy, panel má aj tak vyzerať usporiadane.                        */
#minicart ul.woocommerce-mini-cart,
#minicart ul.cart_list {
	list-style: none; margin: 0; padding: 1rem 1.25rem;
	flex: 1; overflow-y: auto;
}
#minicart ul.woocommerce-mini-cart li,
#minicart ul.cart_list li {
	position: relative;
	display: grid; grid-template-columns: 56px minmax(0, 1fr);
	gap: .75rem; align-items: start;
	padding: .85rem 2rem .85rem 0;
	border-bottom: 1px solid var(--line);
	font-size: .9rem; line-height: 1.4;
}
#minicart ul.woocommerce-mini-cart li img,
#minicart ul.cart_list li img {
	grid-row: span 3; width: 56px !important; height: 56px !important;
	object-fit: contain; margin: 0 !important; float: none !important;
	border: 1px solid var(--line); border-radius: 10px;
	background: var(--paper-2); padding: 4px;
}
#minicart ul.woocommerce-mini-cart li a,
#minicart ul.cart_list li a {
	display: block; color: var(--ink); text-decoration: none; font-weight: 600;
}
#minicart ul.woocommerce-mini-cart li a:hover { color: var(--brand); }
#minicart ul.woocommerce-mini-cart li .quantity,
#minicart ul.cart_list li .quantity {
	display: block; color: var(--muted); font-size: .82rem;
	font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 400;
}
#minicart ul.woocommerce-mini-cart li .variation,
#minicart ul.cart_list li .variation {
	margin: .15rem 0 0; font-size: .74rem; color: var(--muted);
	display: grid; grid-template-columns: auto 1fr; gap: 0 .35rem;
}
#minicart ul.woocommerce-mini-cart li .variation dt,
#minicart ul.woocommerce-mini-cart li .variation dd { margin: 0; }
#minicart ul.woocommerce-mini-cart li .variation p { margin: 0; }
#minicart ul.woocommerce-mini-cart li a.remove,
#minicart ul.cart_list li a.remove {
	position: absolute; top: .8rem; right: 0;
	width: 24px; height: 24px; border-radius: 50%;
	display: grid !important; place-items: center;
	color: var(--muted); font-size: 1.1rem; line-height: 1;
	background: transparent; text-decoration: none;
}
#minicart ul.woocommerce-mini-cart li a.remove:hover {
	background: var(--paper-3); color: #b32d2e;
}
#minicart .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; align-items: baseline;
	margin: 0; padding: 1rem 1.25rem;
	border-top: 1px solid var(--line); background: var(--paper-2);
	font-size: 1.05rem;
}
#minicart .woocommerce-mini-cart__total strong { font-weight: 600; }
#minicart .woocommerce-mini-cart__total .amount {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.25rem; font-weight: 700;
}
#minicart .woocommerce-mini-cart__buttons {
	display: grid; gap: .5rem; margin: 0;
	padding: 0 1.25rem 1.25rem; background: var(--paper-2);
}
#minicart .woocommerce-mini-cart__buttons a {
	display: block; text-align: center; padding: .8rem 1rem;
	border-radius: 12px; font-weight: 600; text-decoration: none;
	background: var(--paper); border: 1.5px solid var(--line-2); color: var(--ink);
}
#minicart .woocommerce-mini-cart__buttons a.checkout {
	background: var(--brand); border-color: var(--brand); color: #fff;
}
#minicart .woocommerce-mini-cart__empty-message {
	padding: 3rem 1.25rem; text-align: center; color: var(--muted);
}

/* Rozpis konfigurácie v košíku po riadkoch */
.cartrow__meta dl,
.cartrow__meta .variation { display: grid; grid-template-columns: auto 1fr; gap: .1rem .4rem; margin: 0; }
.cartrow__meta dt { margin: 0; font-weight: 600; color: var(--ink-3); }
.cartrow__meta dd { margin: 0; }
.cartrow__meta dd p { margin: 0; }
.cart-actions .btn[disabled],
.cart-actions button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Katalóg ---------- */
.cat-head__title { margin: .3rem 0 0; }
.cat-head__desc { max-width: 62ch; }
.cat-head__desc p:last-child { margin-bottom: 0; }

.catlayout {
	display: grid; grid-template-columns: 260px minmax(0, 1fr);
	gap: 2.5rem; align-items: start;
}
.catlayout__main { min-width: 0; }

/* Podkategórie */
.subcats { margin-bottom: 1rem; }
.subcats__item { display: flex; flex-direction: column; gap: .15rem; }
.subcats__item .opt__sub { font-size: .74rem; }

/* Filtre */
.filters { position: sticky; top: 100px; }
.filters__title {
	font-family: "Space Grotesk", Inter, sans-serif;
	font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem;
}
.filters__group { border-top: 1px solid var(--line); padding: .35rem 0; }
.filters__head {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	gap: .5rem; padding: .7rem 0; background: none; border: 0; cursor: pointer;
	font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .07em;
	text-transform: uppercase; color: var(--ink-3);
}
.filters__head svg { width: 16px; height: 16px; transition: transform .2s; }
.filters__head[aria-expanded="false"] svg { transform: rotate(-90deg); }
.filters__body { display: grid; gap: .1rem; padding-bottom: .6rem; }
.filters__opt {
	display: flex; align-items: center; gap: .55rem;
	padding: .35rem 0; text-decoration: none; color: var(--ink-3);
	font-size: .88rem;
}
.filters__opt:hover { color: var(--brand); }
.filters__box {
	width: 18px; height: 18px; flex: none;
	border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--paper);
	transition: background .15s, border-color .15s;
}
.filters__opt.is-on { color: var(--ink); font-weight: 600; }
.filters__opt.is-on .filters__box {
	background: var(--brand) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center/12px no-repeat;
	border-color: var(--brand);
}
.filters__label { flex: 1; min-width: 0; }
.filters__count {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: .72rem; color: var(--muted);
}

/* Lišta nástrojov */
.toolbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
	padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.toolbar__count { color: var(--muted); font-size: .9rem; }
.toolbar__count .woocommerce-result-count { margin: 0; }
.toolbar__right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.toolbar .woocommerce-ordering { margin: 0; }
.toolbar .woocommerce-ordering select {
	padding: .5rem .8rem; border: 1.5px solid var(--line-2); border-radius: 10px;
	font: inherit; font-size: .88rem; background: var(--paper); min-width: 190px;
}
.filter-open { display: none; }

.viewtoggle {
	display: inline-flex; border: 1.5px solid var(--line-2);
	border-radius: 10px; overflow: hidden;
}
.viewtoggle button {
	width: 38px; height: 38px; border: 0; background: var(--paper);
	cursor: pointer; display: grid; place-items: center; color: var(--muted);
}
.viewtoggle button svg { width: 17px; height: 17px; }
.viewtoggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* Odznaky aktívnych filtrov */
.catalog-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.chip {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .35rem .7rem; border-radius: 99px; font-size: .82rem;
	border: 1.5px solid var(--line-2); color: var(--ink-3);
	text-decoration: none; background: var(--paper);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip--active { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-700); }

/* Zoznamové zobrazenie */
ul.products.products--list { grid-template-columns: 1fr; }
ul.products.products--list .pcard {
	display: grid; grid-template-columns: 160px minmax(0, 1fr) auto;
	gap: 1.25rem; align-items: center;
}
ul.products.products--list .pcard__media { aspect-ratio: auto; height: 160px; }
ul.products.products--list .pcard__body { padding: 1rem 0; }
ul.products.products--list .pcard__foot { flex-direction: column; align-items: flex-start; }
ul.products.products--list .pcard__cta { margin-top: .5rem; }
ul.products.products--list .pcard__tools { opacity: 1; }

@media (max-width: 1000px) {
	.catlayout { grid-template-columns: 1fr; }
	.filters { position: static; display: none; }
	.filter-open { display: inline-flex; }
	ul.products.products--list .pcard { grid-template-columns: 110px minmax(0, 1fr); }
}

/* Mriežka katalógu — prázdne uzly (napr. obaly upozornení) nesmú
   zaberať bunku, inak sa prvý produkt posunie o stĺpec. */
ul.products > :empty { display: none; }
ul.products > .woocommerce-notices-wrapper,
ul.products > .clear { display: none; }
ul.products { list-style: none; }

/* ---------- Prebitie predvolenej mriežky WooCommerce ----------
   WooCommerce dáva položkám float a šírku v percentách, čo v našej
   mriežke spôsobí, že karty zaberú len tretinu bunky. Zároveň pridáva
   clearfix cez ::before/::after, ktoré by v gride tvorili prázdne bunky. */
.woocommerce ul.products,
ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
	margin: 0; padding: 0; list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after { content: none !important; display: none !important; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
	width: auto !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
	padding: 0;
}
.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after { content: none !important; }

/* Karta si riadi vnútro sama */
.woocommerce ul.products li.product .pcard__media,
ul.products li.product .pcard__media { margin: 0; }
.woocommerce ul.products li.product a img,
ul.products li.product a img { margin: 0; box-shadow: none; }
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .button {
	margin: 0; padding: 0; font-size: inherit; color: inherit;
}
/* Pozor na display: pravidlo prebíja .btn (vyššia špecificita), takže musí
   samo zabezpečiť flex a zvislé zarovnanie — inak ikonka sadne na účiaru
   textu a je oproti nemu posunutá. */
.woocommerce ul.products li.product .pcard__cta,
ul.products li.product .pcard__cta {
	display: flex; align-items: center; justify-content: center;
	gap: .45rem; line-height: 1;
	width: 100%; text-align: center;
	padding: .6rem 1rem; margin-top: .5rem !important;
	background: var(--paper); border: 1.5px solid var(--line-2);
	border-radius: 10px; color: var(--ink); font-weight: 600;
	font-size: .88rem; text-decoration: none;
}
.woocommerce ul.products li.product .pcard__cta:hover,
ul.products li.product .pcard__cta:hover {
	border-color: var(--brand); color: var(--brand); background: var(--brand-050);
}

/* Zoznamové zobrazenie musí prebiť aj mriežku vyššie */
.woocommerce ul.products.products--list,
ul.products.products--list { grid-template-columns: 1fr !important; }

/* Dlaždice podkategórií — rovnomerná mriežka */
.subcats {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: .6rem;
}
.subcats__item {
	border: 1.5px solid var(--line-2); border-radius: 12px;
	padding: .7rem .85rem; text-decoration: none; color: var(--ink);
	background: var(--paper); transition: border-color .15s, background .15s;
}
.subcats__item:hover { border-color: var(--brand); background: var(--brand-050); }
.subcats__item .opt__name { font-weight: 600; font-size: .9rem; line-height: 1.3; }

/* ---------- Stránkovanie katalógu ---------- */
.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination {
	margin: 2.5rem 0 0; padding-top: 1.75rem;
	border-top: 1px solid var(--line); text-align: left;
}
.woocommerce nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul {
	display: flex; flex-wrap: wrap; gap: .4rem;
	border: 0; margin: 0; padding: 0; list-style: none;
}
.woocommerce nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul li {
	border: 0; margin: 0; padding: 0; overflow: visible; float: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 .7rem;
	border: 1.5px solid var(--line-2); border-radius: 10px;
	background: var(--paper); color: var(--ink-3);
	font-weight: 600; font-size: .9rem; text-decoration: none;
	transition: border-color .15s, color .15s, background .15s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul li a:hover {
	border-color: var(--brand); color: var(--brand); background: var(--brand-050);
}
.woocommerce nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul li span.current {
	background: var(--brand); border-color: var(--brand); color: #fff;
}
.woocommerce nav.woocommerce-pagination ul li .next,
.woocommerce nav.woocommerce-pagination ul li .prev,
nav.woocommerce-pagination ul li .next,
nav.woocommerce-pagination ul li .prev { font-family: "JetBrains Mono", ui-monospace, monospace; }
.woocommerce nav.woocommerce-pagination ul li span.dots,
nav.woocommerce-pagination ul li span.dots {
	border-color: transparent; background: transparent; color: var(--muted);
}

/* ---------- Vyhľadávanie: ikona v hlavičke ---------- */
/* Spúšťač je bežné ikonové tlačidlo medzi akciami, aby hlavička nepretekala. */
.header__actions [data-search-open] { border: 0; background: none; cursor: pointer; }

/* ---------- Vyhľadávanie: modal ---------- */
.searchmodal {
	position: fixed; inset: 0; z-index: 1200;
	display: grid; justify-items: center; align-items: start;
	padding: clamp(1rem, 8vh, 6rem) 1rem 1rem;
	opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.searchmodal.is-open { opacity: 1; visibility: visible; }
.searchmodal__backdrop {
	position: absolute; inset: 0;
	background: rgba(11, 27, 38, .55); backdrop-filter: blur(3px);
}
.searchmodal__box {
	position: relative; width: min(720px, 100%);
	background: var(--paper); border-radius: 18px;
	box-shadow: 0 24px 60px rgba(11, 27, 38, .25);
	overflow: hidden; display: flex; flex-direction: column;
	max-height: min(70vh, 640px);
	transform: translateY(-8px); transition: transform .2s;
}
.searchmodal.is-open .searchmodal__box { transform: none; }

.searchmodal__form {
	display: flex; align-items: center; gap: .75rem;
	padding: 1rem 1.15rem; border-bottom: 1px solid var(--line);
}
.searchmodal__icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchmodal__input {
	flex: 1; min-width: 0; border: 0; background: none;
	font: inherit; font-size: 1.05rem; color: var(--ink);
}
.searchmodal__input:focus { outline: none; }
.searchmodal__close {
	width: 34px; height: 34px; border: 0; border-radius: 50%;
	background: var(--paper-2); cursor: pointer; flex: none;
	display: grid; place-items: center; color: var(--ink-3);
}
.searchmodal__close:hover { background: var(--paper-3); }
.searchmodal__close svg { width: 16px; height: 16px; }

.searchmodal__body { flex: 1; overflow-y: auto; }
.searchmodal__hint { padding: 1.15rem; }
.searchmodal__hint .eyebrow { display: block; margin-bottom: .6rem; }
.searchmodal__hint .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.searchmodal__hint .chip { cursor: pointer; font: inherit; }

.sres__item {
	display: flex; align-items: center; gap: .85rem;
	padding: .7rem 1.15rem; text-decoration: none; color: var(--ink);
	border-bottom: 1px solid var(--paper-3);
}
.sres__item:hover, .sres__item.is-active { background: var(--brand-050); }
.sres__thumb {
	width: 48px; height: 48px; flex: none; border-radius: 10px;
	border: 1px solid var(--line); background: var(--paper-2);
	display: grid; place-items: center; overflow: hidden;
}
.sres__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.sres__body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.sres__name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.sres__price { font-size: .82rem; color: var(--muted); }
.sres__price .amount { color: var(--ink); font-weight: 600; }
.sres__loading, .sres__empty { padding: 1.5rem 1.15rem; color: var(--muted); }
.sres__empty p { margin: 0 0 .35rem; }

.searchmodal__foot { padding: .85rem 1.15rem; border-top: 1px solid var(--line); background: var(--paper-2); }

html.has-modal { overflow: hidden; }

/* ---------- Ochrana rozloženia na výsledkoch vyhľadávania ---------- */
body.search main#main,
body.search .wrap,
body.woocommerce-page main#main { width: 100%; max-width: none; }
.catlayout, .cart-layout, .checkout-layout { width: 100%; }
.catlayout > * { min-width: 0; }
.cat-head { min-width: 0; }

/* ---------- Oprava kolízie triedy .search ----------
   WordPress pridáva na <body> triedu „search" na stránke výsledkov
   vyhľadávania. Dizajnové pravidlo pre pole vyhľadávania v hlavičke
   (.search { flex:1; max-width:600px }) sa tak aplikovalo na celý web
   a stlačilo obsah do 600 px. Na <body> ho preto rušíme. */
body.search {
	max-width: none;
	flex: none;
	position: static;
	width: auto;
}

/* Kategória bez filtrov — hlavný obsah zaberie celú šírku.
   Inak by zostal v úzkom stĺpci vyhradenom pre bočný panel a produkty
   by sa poskladali pod seba namiesto do mriežky. */
.catlayout__main:only-child { grid-column: 1 / -1; }

/* ---------- Individuálne ceny ---------- */
.cprice-badge {
	display: inline-block; vertical-align: middle;
	font-size: .68rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: .05em; padding: .18rem .45rem; border-radius: 5px;
	background: #e7f5ec; color: #1a7f4b; border: 1px solid #c9e9d6;
	margin-left: .4rem;
}
.pd__price-row .cprice-badge { font-size: .72rem; }

/* Poznámka o trvalom košíku */
.cart-persist {
	display: flex; align-items: center; gap: .6rem;
	margin-top: 1rem; padding: .8rem 1rem;
	background: var(--paper-2); border: 1px solid var(--line);
	border-radius: 12px; font-size: .86rem; color: var(--ink-3);
}
.cart-persist svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.cart-persist a { color: var(--brand); font-weight: 600; }

/* ---------- Mega menu ---------- */
.mega__inner {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px;
	gap: 2.5rem; padding: 2rem 0 2.25rem; align-items: start;
}
.mega__col h5 {
	font-size: .7rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: .09em; color: var(--muted); margin: 0 0 .85rem;
	padding-bottom: .6rem; border-bottom: 1px solid var(--line);
	font-family: "JetBrains Mono", ui-monospace, monospace;
}
.mega__col h5 a { color: inherit; text-decoration: none; }
.mega__col h5 a:hover { color: var(--brand); }
.mega__head--empty { border-color: transparent !important; min-height: 1.9rem; }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mega__link {
	display: flex; align-items: center; justify-content: space-between;
	gap: .75rem; padding: .4rem 0; text-decoration: none;
	color: var(--ink-3); font-size: .92rem; line-height: 1.35;
}
.mega__link:hover { color: var(--brand); }
.mega__link .count {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: .74rem; color: var(--muted); flex: none;
}

.mega__promo {
	background: var(--ink); color: #fff; border-radius: 14px;
	padding: 1.4rem 1.4rem 0; display: flex; flex-direction: column;
	gap: .9rem; overflow: hidden; position: relative;
}
.mega__promo h4 {
	color: #fff; font-size: 1.15rem; margin: 0 0 .4rem;
	font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em;
}
.mega__promo p { color: rgba(255,255,255,.72); font-size: .86rem; margin: 0; line-height: 1.5; }
.mega__promo .btn--light {
	background: #fff; color: var(--ink); border: 0;
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.mega__promo .btn--light:hover { background: var(--paper-2); }
.mega__promo .btn--light svg { width: 16px; height: 16px; }
.mega__promo .controlstrip {
	display: flex; margin: 1.25rem -1.4rem 0; height: 5px;
}
.mega__promo .controlstrip span { flex: 1; }
.mega__promo .controlstrip span:nth-child(1) { background: #00A0DF; }
.mega__promo .controlstrip span:nth-child(2) { background: #E5007D; }
.mega__promo .controlstrip span:nth-child(3) { background: #FFDD00; }
.mega__promo .controlstrip span:nth-child(4) { background: #1A1A1A; }

@media (max-width: 1200px) {
	.mega__inner { grid-template-columns: repeat(2, minmax(0, 1fr)) 260px; }
}
@media (max-width: 980px) {
	.mega__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mega__promo { grid-column: 1 / -1; }
}

/* Tlačidlo pri produktoch s konfigurátorom — plné, aby sa odlíšilo
   od bežného „Do košíka".
   .btn si farby berie z premenných, takže sa nastavujú tie, nie priamo
   background a color — inak by sa zmena neprejavila. */
.pcard__cta--config {
	--btn-bg: var(--brand);
	--btn-fg: #fff;
	--btn-bd: var(--brand);
	gap: .4rem; white-space: nowrap;
}
.pcard__cta--config:hover {
	--btn-bg: var(--brand-600);
	--btn-bd: var(--brand-600);
	--btn-fg: #fff;
}
.pcard__cta--config svg { width: 15px; height: 15px; flex: none; display: block; }

/* Predvolené štýly WooCommerce sa nesmú dostať na karty katalógu */
.woocommerce ul.products li.product a.button,
ul.products li.product a.button {
	display: block; width: 100%; box-sizing: border-box;
	padding: .6rem 1rem; margin: .5rem 0 0; border-radius: 10px;
	font-size: .88rem; font-weight: 600; line-height: 1.3;
	text-align: center; background: var(--paper); color: var(--ink);
	border: 1.5px solid var(--line-2);
}

/* „Cena podľa konfigurácie" v katalógu — na dva riadky, nie cez tlačidlo */
.price-config {
	display: block; font-family: "Space Grotesk", Inter, sans-serif;
	font-size: .92rem; font-weight: 600; color: var(--brand-700);
	line-height: 1.25; max-width: 100%;
}
.pcard__foot { flex-wrap: wrap; row-gap: .35rem; }
.pcard__price { min-width: 0; }

/* ============================================ POKLADŇA — KROKY */
/* Kroky používajú .conf__steps a .drop z návrhu; tu je len to, čo návrh
   pre pokladňu nepokrýval. */

.co-step__title { font-size: 1.35rem; margin-bottom: .5rem; }
.co-step__lead { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--sp-5); }
.conf__stepbtn:disabled { opacity: .5; cursor: default; }

/* Dlaždice dopravy a platby */
.co-options { display: grid; gap: .6rem; }
.co-option {
	display: flex; gap: .75rem; align-items: flex-start; cursor: pointer;
	padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--r);
	transition: border-color .18s var(--ease), background .18s var(--ease);
}
.co-option:hover { border-color: var(--brand); }
.co-option.is-on { border-color: var(--brand); background: var(--brand-050); }
.co-option input { margin-top: .2rem; accent-color: var(--brand); flex: none; }
.co-option__body { flex: 1; min-width: 0; }
.co-option__head { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: baseline; }
.co-option__price { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--brand-700); white-space: nowrap; }
.co-option__price .is-free { color: var(--ok, #1a7f37); }
.co-option__vat { color: var(--muted); font-size: var(--t-xs); }
.co-option__desc { display: block; margin-top: .3rem; font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.co-empty { font-size: var(--t-sm); color: var(--muted); }

.co-later { margin: var(--sp-5) 0; }

/* Rekapitulácia */
.co-recap {
	margin: 0 0 var(--sp-5); border: 1px solid var(--line);
	border-radius: var(--r-lg); padding: 1rem 1.25rem;
}
.co-recap__row {
	display: flex; justify-content: space-between; gap: var(--sp-4);
	padding: .45rem 0; font-size: var(--t-sm); border-bottom: 1px dashed var(--paper-3);
}
.co-recap__row:last-child { border-bottom: 0; }
.co-recap__row dt { color: var(--muted); flex: none; }
.co-recap__row dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink); }

/* Navigácia medzi krokmi */
.co-nav { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-5); }
.co-nav #coNext { flex: 1; }

/* Chyby pri poliach */
.co-err { display: block; margin-top: .3rem; font-size: var(--t-xs); color: #C8007D; }
.has-error .input, .has-error input, .has-error select, .has-error textarea { border-color: #C8007D; }

/* Tlačidlo objednávky presunuté do posledného kroku */
.co-placeorder .form-row.place-order { margin: 0; padding: 0; }
.co-placeorder #place_order { width: 100%; }

@media (max-width: 720px) {
	.co-option__head { flex-direction: column; gap: .2rem; }
}

/* ---- Pokladňa: opravy po prvom nasadení ---- */

/* Atribút hidden prehráva .btn s display:inline-flex, preto potrebuje váhu.
   Bez toho zostávalo tlačidlo Späť viditeľné v prvom kroku a Pokračovať
   v poslednom. */
.co [hidden] { display: none !important; }

/* Platobné metódy majú vyzerať ako dlaždice dopravy, nie ako
   predvolený šedý zoznam WooCommerce. */
.co #payment { background: none; border: 0; padding: 0; border-radius: 0; }
.co #payment ul.wc_payment_methods,
.co #payment ul.payment_methods { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.co #payment ul.payment_methods li {
	border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper);
	padding: 1rem; margin: 0; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.co #payment ul.payment_methods li:hover { border-color: var(--brand); }
.co #payment ul.payment_methods li.is-on { border-color: var(--brand); background: var(--brand-050); }
.co #payment ul.payment_methods li > input[type="radio"] { margin-right: .6rem; accent-color: var(--brand); }
.co #payment ul.payment_methods li label {
	display: inline; font-weight: 600; color: var(--ink); cursor: pointer;
}
.co #payment ul.payment_methods li img { max-height: 22px; vertical-align: middle; margin-left: .5rem; }
.co #payment .payment_box {
	background: transparent; margin: .6rem 0 0; padding: .75rem 0 0;
	border-top: 1px dashed var(--paper-3); font-size: var(--t-sm); color: var(--ink-3);
}
.co #payment .payment_box::before { display: none; }
.co #payment .woocommerce-privacy-policy-text { margin-top: var(--sp-4); font-size: var(--t-xs); color: var(--muted); }

/* Doplnky dopravcov (napr. výber odberného miesta Packety) sa vypisujú
   priamo v položke zoznamu, aby ich ich vlastný skript našiel. */
.co ul#shipping_method li.co-option .button {
	font-size: var(--t-sm); padding: .5rem .9rem; border-radius: var(--r);
	border: 1.5px solid var(--brand); background: #fff; color: var(--brand-700); cursor: pointer;
}
.co ul#shipping_method li.co-option .button:hover { background: var(--brand-050); }

/* Bočný súhrn — vzhľad drží CSS z návrhu (.recap__*), tu je len to,
   čo návrh riešil vloženým štýlom. */
.recap__items { margin: 0; }
.recap__row dt { flex: 1; min-width: 0; text-align: left; color: var(--ink); }
.recap__meta {
	display: block; margin-top: .15rem; font-family: var(--f-mono);
	font-size: .68rem; color: var(--muted); line-height: 1.5;
}
.recap__row dd { white-space: nowrap; }
.recap__line--coupon { color: var(--ok, #1a7f37); }
.recap__line--ship > span:last-child { text-align: right; }
.recap__line .is-free, .recap__ship { color: var(--ok, #1a7f37); font-weight: 600; }
.recap__muted { color: var(--muted); font-size: var(--t-xs); }

/* ---- Mobil ---- */
@media (max-width: 900px) {
	/* Súhrn patrí pod formulár, nie vedľa neho. */
	.checkout-layout { grid-template-columns: 1fr; gap: var(--sp-5); }
	.checkout-layout__side { position: static; order: 2; }

	/* Kroky sa nezalamujú, ale posúvajú — inak zaberú pol obrazovky. */
	.co-steps {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
		margin-inline: calc(var(--sp-4) * -1); padding-inline: var(--sp-4);
		scroll-snap-type: x proximity;
	}
	.co-steps::-webkit-scrollbar { display: none; }
	.co-steps .conf__stepbtn { flex: none; scroll-snap-align: start; }

	.co-step__title { font-size: 1.15rem; }

	/* Dvojstĺpcové polia WooCommerce sa na mobile skladajú pod seba. */
	.co .form-row-first, .co .form-row-last { width: 100%; float: none; margin-right: 0; }

	.co-option { padding: .85rem; }
	

	/* Navigácia sa lepí na spodok, aby bola stále po ruke. */
	.co-nav {
		position: sticky; bottom: 0; z-index: 5;
		background: var(--paper); padding: var(--sp-3) 0;
		box-shadow: 0 -8px 16px -12px rgba(11, 27, 38, .5);
	}
	.co-recap__row { flex-direction: column; gap: .1rem; }
	.co-recap__row dd { text-align: left; }
}

@media (max-width: 480px) {
	.co-nav { flex-direction: column-reverse; }
	.co-nav .btn { width: 100%; }
	.recap__row { flex-direction: column; gap: .2rem; }
	.recap__row dd { text-align: left; }
}

/* ---- Pokladňa: polia podľa návrhu ----
   WooCommerce skladá dvojstĺpcové riadky plávaním (.form-row-first/last so
   šírkou 47 %). Na úzkom displeji to pretečie a nedá sa to spoľahlivo zlomiť,
   preto sa plávanie ruší a používa sa mriežka. */
.co .woocommerce-billing-fields__field-wrapper,
.co .woocommerce-shipping-fields__field-wrapper,
.co .woocommerce-additional-fields__field-wrapper {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--sp-4);
}
.co .form-row { float: none !important; width: auto !important; margin: 0 0 var(--sp-4) !important; padding: 0; min-width: 0; }
.co .form-row-first, .co .form-row-last { grid-column: span 1; }
.co .form-row-wide, .co .create-account, .co .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }

.co .form-row label {
	display: block; font-size: var(--t-sm); font-weight: 600;
	color: var(--ink); margin-bottom: .4rem;
}
.co .form-row .required { color: #C8007D; text-decoration: none; border: 0; }
.co .form-row .optional { color: var(--muted); font-weight: 400; }

.co .form-row .input-text,
.co .form-row select,
.co .form-row textarea {
	width: 100%; padding: .75rem .875rem; font: inherit; color: var(--ink);
	border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.co .form-row .input-text::placeholder,
.co .form-row textarea::placeholder { color: #9AAAB7; }
.co .form-row .input-text:focus,
.co .form-row select:focus,
.co .form-row textarea:focus {
	outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050);
}
.co .form-row textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

/* Nápoveda pod poľom (WooCommerce ju vypisuje ako .description) */
.co .form-row .description {
	display: block; margin-top: .35rem; font-size: var(--t-xs); color: var(--muted);
}

/* Chybové zvýraznenie zo servera aj z nášho sprievodcu */
.co .woocommerce-invalid .input-text,
.co .woocommerce-invalid select,
.co .has-error .input-text,
.co .has-error select,
.co .has-error textarea { border-color: #C8007D; }
.co .woocommerce-validated .input-text { border-color: var(--ok, #1a7f37); }

/* Zaškrtávacie polia */
.co .form-row.create-account label,
.co label.checkbox {
	display: flex; align-items: flex-start; gap: .65rem;
	font-weight: 400; color: var(--ink-3); cursor: pointer;
}
.co .input-checkbox { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--brand); flex: none; }

/* Zoznam dopravy má tvar zoznamu WooCommerce — odrážky preč. */
.co ul#shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.co ul#shipping_method li.co-option { display: block; padding: 1rem; cursor: pointer; }
.co #payment ul.payment_methods li { cursor: pointer; }
.co ul#shipping_method li.co-option > input[type="radio"] { margin-right: .6rem; accent-color: var(--brand); }
.co ul#shipping_method li.co-option > label { display: inline; cursor: pointer; font-weight: 400; margin: 0; }
.co ul#shipping_method li.co-option .co-option__head { display: block; margin-top: .35rem; }
.co ul#shipping_method li.co-option .packeta-widget,
.co ul#shipping_method li.co-option .packetery-widget-button-wrapper { margin-top: .75rem; }

@media (max-width: 700px) {
	.co .woocommerce-billing-fields__field-wrapper,
	.co .woocommerce-shipping-fields__field-wrapper,
	.co .woocommerce-additional-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.co .form-row-first, .co .form-row-last { grid-column: 1 / -1; }
}

/* Poistka proti vodorovnému posunu celej stránky na mobile */
@media (max-width: 900px) {
	.woocommerce-checkout .checkout-layout,
	.woocommerce-checkout .checkout-layout > * { min-width: 0; max-width: 100%; }
	.woocommerce-checkout .recap--checkout { max-width: 100%; }
}

/* ============================================ STRÁNKY TECHNOLÓGIÍ */
.svc-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.svc h1 { margin-bottom: 0; }
.svc .lead { font-size: var(--t-lg, 1.125rem); color: var(--ink-3); line-height: 1.6; max-width: 62ch; }
.svc .flow { max-width: 72ch; }
.svc .flow h2 { font-size: 1.25rem; margin: var(--sp-6) 0 var(--sp-3); }
.svc .flow p { margin-bottom: var(--sp-4); line-height: 1.7; }
.svc .flow ul { margin: 0 0 var(--sp-4); padding-left: 1.1rem; }
.svc .flow li { list-style: disc; margin-bottom: .4rem; line-height: 1.6; }

.svc-aside { position: sticky; top: calc(var(--header-h, 72px) + 16px); }
.svc-box {
	padding: 1.5rem; border: 1px solid var(--line);
	border-radius: var(--r-lg); background: var(--paper-2);
}
.svc-box h3 { font-size: var(--t-md); margin-bottom: .5rem; }
.svc-box .muted { font-size: var(--t-sm); margin-bottom: 1rem; }
.svc-box .controlstrip { margin-top: var(--sp-6); border-radius: 2px; }
.svc-perks { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.svc-perks li {
	display: flex; gap: .5rem; align-items: flex-start;
	font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5;
}
.svc-perks svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; color: var(--brand); }

@media (max-width: 900px) {
	.svc-layout { grid-template-columns: minmax(0, 1fr); }
	.svc-aside { position: static; }
}

/* ---- Nákup na firmu ---- */
/* Firemné polia sú skryté, kým sa nezaškrtne nákup na firmu. Atribút hidden
   potrebuje váhu, lebo .form-row má nastavené zobrazenie. */
.co .uptlac-company-field[hidden] { display: none !important; }
.co .form-row-third { grid-column: span 1; }
.co .uptlac-company-toggle { margin-top: -.5rem !important; }
.uptlac-company-line { margin: .2rem 0; }

@media (max-width: 700px) {
	.co .form-row-third { grid-column: 1 / -1; }
}
