/*
 * Blocksy perrašymai. Kintamieji (--theme-*) perrašomi čia, kad Customizer ir tokenai nesiskirtų.
 * Patikrinta su Blocksy 2.1.50. Po didelio atnaujinimo – bandomasis puslapis (README).
 */

:root {
	--theme-font-family: var(--pr-font-body);
	--theme-font-size: var(--pr-fs-base);
	--theme-line-height: var(--pr-lh-text);
	--theme-font-weight: 400;
	--theme-text-color: var(--pr-text);
	--theme-headings-color: var(--pr-heading);
	--theme-heading-color: var(--pr-heading);
	--theme-link-initial-color: var(--pr-petrol);
	--theme-link-hover-color: var(--pr-petrol-dark);
	--theme-border-color: var(--pr-line);
	--theme-selection-text-color: var(--pr-heading);
	--theme-selection-background-color: var(--pr-accent);

	--theme-button-min-height: var(--pr-tap);
	--theme-button-padding: 0.75rem 1.5rem;
	--theme-button-border-radius: var(--pr-radius-md);
	--theme-button-font-family: var(--pr-font-body);
	--theme-button-font-size: 1rem;
	--theme-button-font-weight: 500;
	--theme-button-line-height: 1.2;
	--theme-button-text-transform: none;
	--theme-button-letter-spacing: 0;
	--theme-button-text-initial-color: var(--pr-on-primary);
	--theme-button-text-hover-color: var(--pr-on-primary);
	--theme-button-background-initial-color: var(--pr-primary);
	--theme-button-background-hover-color: var(--pr-primary-hover);
	--theme-button-shadow: none;
	--theme-button-transform: none;

	--theme-form-font-size: 1rem;
	--theme-form-field-height: 48px;
	--theme-form-field-padding: 0 0.875rem;
	--theme-form-field-border-radius: var(--pr-radius-md);
	--theme-form-field-border-width: var(--pr-stroke);
	--theme-form-field-border-initial-color: var(--pr-input-border);
	--theme-form-field-border-focus-color: var(--pr-primary);
	--theme-form-field-background-initial-color: var(--pr-base);
	--theme-form-field-background-focus-color: var(--pr-base);
	--theme-form-text-initial-color: var(--pr-heading);
	--theme-form-text-focus-color: var(--pr-heading);
	--theme-form-selection-field-initial-color: var(--pr-input-border);
	--theme-form-selection-field-active-color: var(--pr-primary);

	--theme-content-spacing: var(--pr-space-40);
}

h1, .h1 {
	--theme-font-family: var(--pr-font-heading);
	--theme-font-size: var(--pr-fs-4xl);
	--theme-font-weight: 700;
	--theme-line-height: var(--pr-lh-display);
	--theme-letter-spacing: -0.02em;
}

h2, .h2 {
	--theme-font-family: var(--pr-font-heading);
	--theme-font-size: var(--pr-fs-2xl);
	--theme-font-weight: 700;
	--theme-line-height: 1.1;
	--theme-letter-spacing: -0.02em;
}

h3, .h3 {
	--theme-font-family: var(--pr-font-heading);
	--theme-font-size: var(--pr-fs-xl);
	--theme-font-weight: 600;
	--theme-line-height: var(--pr-lh-heading);
	--theme-letter-spacing: -0.01em;
}

h4, .h4 {
	--theme-font-family: var(--pr-font-heading);
	--theme-font-size: var(--pr-fs-lg);
	--theme-font-weight: 600;
	--theme-line-height: 1.2;
	--theme-letter-spacing: 0;
}

h5, .h5 {
	--theme-font-family: var(--pr-font-heading);
	--theme-font-size: var(--pr-fs-md);
	--theme-font-weight: 600;
	--theme-line-height: 1.25;
	--theme-letter-spacing: 0;
}

h6, .h6 {
	--theme-font-family: var(--pr-font-heading);
	--theme-font-size: var(--pr-fs-base);
	--theme-font-weight: 600;
	--theme-line-height: 1.3;
	--theme-letter-spacing: 0;
}

/* Antraštė: lipni, langelio logika – aktyvus punktas pažymėtas kaip skaičiuoklės langelis. */

#main-container {
	overflow: visible;
}

body {
	overflow-x: clip;
}

#header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--pr-base);
}

.admin-bar #header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

#header [data-row="middle"] {
	border-bottom: 1px solid var(--pr-line);
	transition: border-color var(--pr-base-motion) var(--pr-ease), box-shadow var(--pr-base-motion) var(--pr-ease);
}

#header.pr-scrolled [data-row="middle"] {
	border-bottom-color: var(--pr-heading);
	box-shadow: 0 0.5px 0 var(--pr-heading);
}

#header .site-title,
#header .site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--pr-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--pr-heading);
}

#header .site-title a::after {
	content: "";
	width: 0.75rem;
	height: 0.75rem;
	border: 2px solid var(--pr-heading);
	background: var(--pr-accent);
	box-shadow: 3px 3px 0 -1px var(--pr-base), 4px 4px 0 0 var(--pr-heading);
}

#header [data-id="menu"] > ul > li {
	align-items: center;
}

#header [data-id="menu"] > ul > li > .ct-menu-link {
	height: auto;
}

#header .ct-menu-link {
	min-height: 2.5rem;
	padding-inline: 0.75rem;
	font-family: var(--pr-font-body);
	font-size: 1rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--pr-heading);
	transition: background-color var(--pr-fast) var(--pr-ease), box-shadow var(--pr-fast) var(--pr-ease);
}

#header .ct-menu-link:hover {
	background: var(--pr-surface);
	box-shadow: inset 0 0 0 1px var(--pr-line-strong);
}

#header :is(.current-menu-item, .current-menu-ancestor, .current-page-ancestor) > .ct-menu-link {
	background: var(--pr-accent-soft);
	box-shadow: inset 0 0 0 1.5px var(--pr-heading);
}

#header [data-id="menu"] > ul {
	gap: 0.25rem;
}

#header .ct-header-cart .ct-label {
	display: none;
}

#header .ct-header-cart .ct-icon-container {
	display: inline-flex;
	align-items: flex-start;
	gap: 2px;
}

#header .ct-header-cart .ct-icon-container svg {
	order: 1;
}

#header .ct-header-cart .ct-dynamic-count-cart {
	position: static;
	order: 2;
	display: inline-grid;
	place-items: center;
	min-width: 1.125rem;
	height: 1.125rem;
	margin-top: -0.375rem;
	padding: 0 0.1875rem;
	border: 1px solid var(--pr-heading);
	border-radius: 0;
	background: var(--pr-accent);
	color: var(--pr-heading);
	font-family: var(--pr-font-mono);
	font-size: 0.625rem;
	font-weight: 500;
	line-height: 1;
	transform: none;
}

#header [data-id="button"] .ct-button,
#header .ct-header-cta .ct-button {
	min-height: 2.75rem;
	padding-inline: 1.25rem;
	border-radius: var(--pr-radius-md);
	font-size: 0.9375rem;
	--theme-button-background-initial-color: var(--pr-heading);
	--theme-button-background-hover-color: var(--pr-text);
}

#header :is(.ct-header-trigger, .ct-header-cart, .ct-header-search, .ct-header-account) {
	min-width: var(--pr-tap);
	min-height: var(--pr-tap);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 600px) {
	.admin-bar #wpadminbar {
		position: fixed;
	}
}

/* Offcanvas (mobile meniu): tas pats turinys kaip desktop, taikiniai ≥ 44 px. */

#offcanvas .ct-panel-content {
	padding-inline: var(--pr-margin);
}

#offcanvas .mobile-menu a {
	min-height: var(--pr-tap);
	display: flex;
	align-items: center;
	font-size: var(--pr-fs-md);
	font-weight: 500;
}

#offcanvas .ct-toggle-close {
	min-width: var(--pr-tap);
	min-height: var(--pr-tap);
}

/* Poraštė: turinys ateina iš patterno pr/footer-columns valdiklio srityje. */

.ct-footer [data-row="middle"] {
	--container-spacing: 0;
}

.ct-footer [data-row="middle"] > .ct-container,
.ct-footer [data-row="middle"] > .ct-container-fluid {
	padding: 0;
	max-width: none;
	width: 100%;
	display: block;
}

.ct-footer .ct-widget:has(.pr-footer-columns),
.ct-footer .ct-widget:has(.pr-footer-simple) {
	width: 100%;
}

/* Puslapiai iš patternų: Blocksy turinio tarpai nuimami, sekcijos per visą plotį. */

.pr-site .entry-content > .alignfull.pr-section:first-child {
	margin-top: 0;
}

.pr-site [data-vertical-spacing=""] .entry-content > .pr-section:last-child {
	margin-bottom: 0;
}

.pr-site .hero-section[data-type="type-1"] {
	--container-width: var(--pr-wide);
}

/* Formų laukai Blocksy kontekste. */

.ct-search-form input[type="search"] {
	font-size: 1rem;
}

.ct-search-form .wp-element-button,
.ct-search-form button {
	min-width: var(--pr-tap);
	min-height: var(--pr-tap);
}

/* Paieškos forma (404, be rezultatų). */

.pr-search-form {
	display: grid;
	gap: 0.375rem;
	width: 100%;
	max-width: 36rem;
}

.pr-search-form label {
	font-size: var(--pr-fs-small);
	font-weight: 500;
	color: var(--pr-heading);
}

.pr-search-form__row {
	display: flex;
	gap: var(--pr-space-20);
}

.pr-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--pr-input-border);
	border-radius: var(--pr-radius-md);
	background: var(--pr-base);
	font-size: 1rem;
	color: var(--pr-heading);
}

.pr-search-form input[type="search"]:focus-visible {
	outline: var(--pr-focus-width) solid var(--pr-primary);
	outline-offset: 1px;
}

/* 404 ir paieška be rezultatų (t-404, t-search). */

.pr-system {
	padding-block: var(--pr-space-80);
}

.pr-system__inner {
	width: min(100% - 2 * var(--pr-margin), 44rem);
	margin-inline: auto;
	display: grid;
	gap: var(--pr-space-40);
	justify-items: start;
}

.pr-system__code {
	font-size: var(--pr-fs-4xl);
	font-weight: 600;
	line-height: 1;
	color: var(--pr-line);
	letter-spacing: -0.02em;
}

.pr-system__title {
	margin: 0;
}

.pr-system__lead {
	margin: 0;
	font-size: var(--pr-fs-md);
	max-width: var(--pr-measure);
}

.pr-system__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pr-space-30);
}

.pr-system__actions .wp-element-button:not(:first-child) {
	background: transparent;
	color: var(--pr-primary);
	border-color: var(--pr-primary);
}

.pr-system__actions .wp-element-button:not(:first-child):hover {
	background: color-mix(in srgb, var(--pr-primary) 8%, transparent);
}

.pr-system__box {
	width: 100%;
	display: grid;
	gap: var(--pr-space-30);
	padding: var(--pr-space-40);
	background: var(--pr-base);
	border: 1px solid var(--pr-line);
	border-radius: var(--pr-radius-lg);
}

.pr-system__box h2 {
	font-size: var(--pr-fs-lg);
	margin: 0;
}

@media (max-width: 689px) {
	.pr-system__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}
}

.pr-search-empty {
	display: grid;
	gap: var(--pr-space-40);
	justify-items: start;
	width: 100%;
}

.pr-search-empty__title {
	font-size: var(--pr-fs-xl);
	margin: 0;
}

.pr-search-empty > p {
	margin: 0;
}

.wp-element-button.pr-btn-secondary {
	background-color: transparent;
	border: 1px solid var(--pr-primary);
	color: var(--pr-primary);
}

.wp-element-button.pr-btn-secondary:hover {
	background-color: color-mix(in srgb, var(--pr-primary) 8%, transparent);
	color: var(--pr-primary-hover);
}

/* Poraštė: tas pats plotis kaip antraštėje (1290), logotipas tekstu. */

.pr-footer-columns .pr-inner {
	width: var(--theme-container-width, min(100% - 2 * var(--pr-margin), 1290px));
	max-width: var(--theme-normal-container-max-width, 1290px);
}

.pr-footer-columns__logo,
.pr-footer-columns__logo a {
	font-family: var(--pr-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: inherit;
	text-decoration: none;
}

/* Mobile: meniu mygtukas – tamsus langelis (Figma Header 2048:16). */

#header .ct-header-trigger {
	--toggle-button-background: var(--pr-heading);
	--toggle-button-background-hover: var(--pr-text);
	background-color: var(--pr-heading);
	color: var(--pr-base);
	--theme-icon-color: var(--pr-base);
	--theme-icon-hover-color: var(--pr-base);
}

#header .ct-header-account .ct-label {
	display: none;
}

.pr-temos-nuorodos {
	margin: 2rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--pr-line);
	font-family: var(--pr-font-mono);
	font-size: 0.875rem;
}

/* Šoninis krepšelis (Blocksy Pro off-canvas): šviesus fonas, 1 px rėmeliai, mono etiketės. */

#woo-cart-panel {
	--panel-padding: 1.5rem;
	--mini-cart-items-spacing: 1rem;
	--mini-cart-divider-color: var(--pr-line);
	--theme-text-color: var(--pr-text);
	--theme-border-radius: 0;
}

#woo-cart-panel .ct-panel-inner {
	border-left: 1px solid var(--pr-heading);
}

#woo-cart-panel .ct-panel-actions {
	align-items: center;
	padding: 1rem 1rem 1rem var(--panel-padding);
	border-bottom: 1px solid var(--pr-heading);
}

#woo-cart-panel .ct-panel-heading {
	font-family: var(--pr-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--pr-heading);
}

#woo-cart-panel .ct-panel-actions .ct-toggle-close {
	--theme-icon-color: var(--pr-heading);
	--theme-icon-hover-color: var(--pr-heading);
	--theme-icon-size: 12px;
	--toggle-button-size: var(--pr-tap);
	--toggle-button-padding: 0;
	--toggle-button-margin-block: 0;
	--toggle-button-margin-end: 0;
	--toggle-button-radius: 0;
	--toggle-button-border-width: 1px;
	--toggle-button-border-color: var(--pr-heading);
	--toggle-button-background: var(--pr-base);
	transition: background-color var(--pr-fast) var(--pr-ease), transform 100ms var(--pr-ease);
}

#woo-cart-panel .ct-panel-actions .ct-toggle-close:hover {
	--theme-icon-color: var(--pr-heading);
	--toggle-button-background: var(--pr-surface);
}

#woo-cart-panel .ct-panel-actions .ct-toggle-close:active {
	transform: scale(0.97);
}

#woo-cart-panel .ct-panel-content {
	padding-top: 0;
}

#woo-cart-panel .ct-panel-content-inner {
	display: flex;
	flex-direction: column;
	padding-bottom: var(--panel-padding);
}

#woo-cart-panel .woocommerce-mini-cart {
	padding-bottom: 0;
}

#woo-cart-panel .woocommerce-mini-cart-item {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) var(--pr-tap);
	gap: 1rem;
	align-items: center;
	margin: 0;
	padding: 1rem 0;
	border-bottom: 1px solid var(--pr-line);
}

#woo-cart-panel .woocommerce-mini-cart-item .ct-media-container {
	grid-column: 1;
	grid-row: 1;
	width: 4.5rem;
	margin: 0;
	border: 1px solid var(--pr-heading);
	border-radius: 0;
}

#woo-cart-panel .woocommerce-mini-cart-item .ct-media-container img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

#woo-cart-panel .woocommerce-mini-cart-item .product-data {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	gap: 0.25rem;
	min-width: 0;
	margin: 0;
	padding: 0;
}

#woo-cart-panel .product-title {
	font-family: var(--pr-font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--pr-heading);
	text-decoration: none;
}

#woo-cart-panel .product-title:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

#woo-cart-panel .woocommerce-mini-cart-item .quantity {
	font-size: 0.9375rem;
	color: var(--pr-text);
}

#woo-cart-panel .woocommerce-mini-cart-item .remove {
	position: static;
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--pr-tap);
	height: var(--pr-tap);
	padding: 0;
	--theme-icon-size: 14px;
	color: var(--pr-muted);
	transition: color var(--pr-fast) var(--pr-ease);
}

#woo-cart-panel .woocommerce-mini-cart-item .remove:hover {
	color: var(--pr-error);
}

#woo-cart-panel .woocommerce-mini-cart__total {
	align-items: baseline;
	margin: auto 0 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--pr-heading);
	font-family: var(--pr-font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--pr-muted);
}

#woo-cart-panel .woocommerce-mini-cart__total strong {
	font-weight: 500;
}

#woo-cart-panel .woocommerce-mini-cart__total .amount {
	font-family: var(--pr-font-heading);
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--pr-heading);
}

#woo-cart-panel .woocommerce-mini-cart__buttons {
	grid-template-columns: 1fr;
	gap: 0.5rem;
	padding: 0;
	border: 0;
}

#woo-cart-panel .woocommerce-mini-cart__buttons .button {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 0;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--pr-heading);
	border-radius: var(--pr-radius-md);
	background-color: var(--pr-heading);
	color: var(--pr-base);
	font-family: var(--pr-font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition: background-color var(--pr-fast) var(--pr-ease), color var(--pr-fast) var(--pr-ease), transform 100ms var(--pr-ease);
}

#woo-cart-panel .woocommerce-mini-cart__buttons .button:hover {
	background-color: var(--pr-primary-hover);
	color: var(--pr-base);
}

#woo-cart-panel .woocommerce-mini-cart__buttons .button.pr-button-outline {
	background-color: transparent;
	color: var(--pr-heading);
}

#woo-cart-panel .woocommerce-mini-cart__buttons .button.pr-button-outline:hover {
	background-color: color-mix(in srgb, var(--pr-primary) 8%, transparent);
	color: var(--pr-heading);
}

#woo-cart-panel .woocommerce-mini-cart__buttons .button:active {
	transform: scale(0.97);
}

#woo-cart-panel :is(a, button):focus-visible {
	outline: var(--pr-focus-width) solid var(--pr-heading);
	outline-offset: var(--pr-focus-offset);
}

#woo-cart-panel .pr-mini-empty {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
	padding-top: 1.5rem;
}

#woo-cart-panel .pr-mini-empty .woocommerce-mini-cart__empty-message {
	margin: 0;
	font-size: 1rem;
	text-align: left;
	color: var(--pr-text);
}

#woo-cart-panel .pr-mini-empty .button {
	min-height: 52px;
	border-radius: var(--pr-radius-md);
	text-transform: none;
}
