/**
 * Inner-page chrome alignment (with parent Storefront CSS).
 */
:root {
	--lyg-teal: #0098ab;
	--lyg-teal-deep: #05798b;
	--lyg-navy: #031e32;
}

body:not(.lyg-home) .lyg-site .header {
	position: relative;
	z-index: 100;
}

body:not(.lyg-home) .woocommerce a.button,
body:not(.lyg-home) .woocommerce button.button,
body:not(.lyg-home) .woocommerce input.button,
body:not(.lyg-home) .button,
body:not(.lyg-home) .woocommerce #respond input#submit.alt,
body:not(.lyg-home) .woocommerce a.button.alt {
	background-color: var(--lyg-teal-deep);
	border-color: var(--lyg-teal-deep);
	color: #fff;
	border-radius: 11px;
	font-weight: 700;
}

body:not(.lyg-home) .woocommerce a.button:hover,
body:not(.lyg-home) .woocommerce a.button:focus,
body:not(.lyg-home) .woocommerce button.button:hover,
body:not(.lyg-home) .woocommerce button.button:focus,
body:not(.lyg-home) .woocommerce input.button:hover,
body:not(.lyg-home) .woocommerce input.button:focus,
body:not(.lyg-home) .button:hover,
body:not(.lyg-home) .button:focus,
body:not(.lyg-home) .woocommerce #respond input#submit.alt:hover,
body:not(.lyg-home) .woocommerce #respond input#submit.alt:focus,
body:not(.lyg-home) .woocommerce a.button.alt:hover,
body:not(.lyg-home) .woocommerce a.button.alt:focus {
	color: #fff;
}

body:not(.lyg-home) .woocommerce a.button:hover,
body:not(.lyg-home) .woocommerce button.button:hover,
body:not(.lyg-home) .woocommerce input.button:hover,
body:not(.lyg-home) .button:hover,
body:not(.lyg-home) .woocommerce #respond input#submit.alt:hover,
body:not(.lyg-home) .woocommerce a.button.alt:hover {
	background-color: var(--lyg-navy);
	border-color: var(--lyg-navy);
}

body:not(.lyg-home) .site-content a,
body:not(.lyg-home) .woocommerce-breadcrumb a {
	color: var(--lyg-teal-deep);
}

body:not(.lyg-home) .site-content a:hover,
body:not(.lyg-home) .woocommerce-breadcrumb a:hover {
	color: var(--lyg-navy);
}

body:not(.lyg-home) .header .nav a {
	color: var(--lyg-navy);
}

body:not(.lyg-home) .header .nav a:hover {
	color: var(--lyg-teal);
}

footer.lyg-footer .footer-links a {
	color: #adc4cf;
}

footer.lyg-footer .footer-links a:hover {
	color: #fff;
}

body:not(.lyg-home) .woocommerce ul.products li.product a.button,
body:not(.lyg-home) .woocommerce ul.products li.product a.button:hover,
body:not(.lyg-home) .woocommerce ul.products li.product a.button:focus,
body:not(.lyg-home) .woocommerce ul.products li.product a.button:visited,
body:not(.lyg-home) .woocommerce a.button,
body:not(.lyg-home) .woocommerce a.button:hover,
body:not(.lyg-home) .woocommerce a.button:focus,
body:not(.lyg-home) .woocommerce a.button:visited,
body:not(.lyg-home) .woocommerce button.button,
body:not(.lyg-home) .woocommerce button.button:hover,
body:not(.lyg-home) .woocommerce button.button:focus,
body:not(.lyg-home) .woocommerce input.button,
body:not(.lyg-home) .woocommerce input.button:hover,
body:not(.lyg-home) .woocommerce input.button:focus,
body:not(.lyg-home) .lyg-site a.head-cta,
body:not(.lyg-home) .lyg-site a.head-cta:hover,
body:not(.lyg-home) .lyg-site a.head-cta:focus,
body:not(.lyg-home) .lyg-site a.head-cta:visited,
body:not(.lyg-home) .lyg-site .utility a:hover,
body:not(.lyg-home) .lyg-site .utility a:focus {
	color: #fff;
}

body:not(.lyg-home) .lyg-site .utility a,
body:not(.lyg-home) .lyg-site .utility a:visited {
	color: #cce0e8;
}

body:not(.lyg-home) #page .site-content {
	padding-top: 1.618em;
}

/*
 * Storefront's desktop breadcrumb adds about 3.7em under the trail,
 * then the content area adds more padding. Keep a short gap instead.
 */
@media (min-width: 768px) {
	body:not(.lyg-home) .storefront-breadcrumb {
		padding: 0.7em 0 0;
		margin: 0 0 0.85em;
	}

	body:not(.lyg-home) #page .site-content {
		padding-top: 0;
	}
}

#secondary .widget .widget-title,
#secondary .widget .widgettitle {
	color: #000;
	font-weight: 700;
}

.shop-cats {
	margin: 0 0 28px;
}

.shop-cats-title {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: var(--lyg-navy);
}

.shop-cats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

body:not(.lyg-home) a.shop-cat,
body:not(.lyg-home) a.shop-cat:hover,
body:not(.lyg-home) a.shop-cat:focus,
body:not(.lyg-home) a.shop-cat:visited {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 78px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #d7e6ec;
	border-radius: 14px;
	color: var(--lyg-navy);
	text-decoration: none;
}

body:not(.lyg-home) a.shop-cat:hover,
body:not(.lyg-home) a.shop-cat:focus {
	border-color: var(--lyg-teal);
	background: #f3fafb;
}

.shop-cat-mark {
	flex: none;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: #e7f5f7;
	color: var(--lyg-teal-deep);
}

.shop-cat-mark svg {
	width: 42px;
	height: 32px;
}

.shop-cat-mark svg.is-icon {
	width: 26px;
	height: 26px;
}

.shop-cat-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.shop-cat-copy strong {
	font-size: 16px;
	line-height: 1.3;
}

.shop-cat-copy span {
	font-size: 14px;
	line-height: 1.3;
	color: var(--lyg-teal-deep);
}

.shop-cat-arrow {
	flex: none;
	margin-left: auto;
	color: var(--lyg-teal-deep);
}

/*
 * .site-content a (0,2,2) and a:hover (0,3,2) paint link text the same color as
 * these fills. Keep real buttons white. .shop-cat, breadcrumbs, header, and footer
 * are not buttons, so they stay on their own color rules.
 */
body:not(.lyg-home) .site-content a.button,
body:not(.lyg-home) .site-content a.button:visited,
body:not(.lyg-home) .site-content a.button:focus,
body:not(.lyg-home) .site-content a.add_to_cart_button,
body:not(.lyg-home) .site-content a.add_to_cart_button:visited,
body:not(.lyg-home) .site-content a.add_to_cart_button:focus,
body:not(.lyg-home) .site-content a.ajax_add_to_cart,
body:not(.lyg-home) .site-content a.ajax_add_to_cart:visited,
body:not(.lyg-home) .site-content a.ajax_add_to_cart:focus,
body:not(.lyg-home) .site-content a.button.alt,
body:not(.lyg-home) .site-content a.button.alt:visited,
body:not(.lyg-home) .site-content a.button.alt:focus,
body:not(.lyg-home) .site-content button.button,
body:not(.lyg-home) .site-content button.button:focus,
body:not(.lyg-home) .site-content button.button.alt,
body:not(.lyg-home) .site-content button.button.alt:focus,
body:not(.lyg-home) .site-content input.button,
body:not(.lyg-home) .site-content input.button:focus,
body:not(.lyg-home) .site-content .single_add_to_cart_button,
body:not(.lyg-home) .site-content .single_add_to_cart_button:focus,
body:not(.lyg-home) .site-content #respond input#submit,
body:not(.lyg-home) .site-content #respond input#submit:focus,
body:not(.lyg-home) .site-content #respond input#submit.alt,
body:not(.lyg-home) .site-content #respond input#submit.alt:focus {
	background-color: var(--lyg-teal-deep);
	border-color: var(--lyg-teal-deep);
	color: #fff;
}

body:not(.lyg-home) .site-content a.button:hover,
body:not(.lyg-home) .site-content a.button:visited:hover,
body:not(.lyg-home) .site-content a.add_to_cart_button:hover,
body:not(.lyg-home) .site-content a.add_to_cart_button:visited:hover,
body:not(.lyg-home) .site-content a.ajax_add_to_cart:hover,
body:not(.lyg-home) .site-content a.ajax_add_to_cart:visited:hover,
body:not(.lyg-home) .site-content a.button.alt:hover,
body:not(.lyg-home) .site-content a.button.alt:visited:hover,
body:not(.lyg-home) .site-content button.button:hover,
body:not(.lyg-home) .site-content button.button.alt:hover,
body:not(.lyg-home) .site-content input.button:hover,
body:not(.lyg-home) .site-content .single_add_to_cart_button:hover,
body:not(.lyg-home) .site-content #respond input#submit:hover,
body:not(.lyg-home) .site-content #respond input#submit.alt:hover {
	background-color: var(--lyg-navy);
	border-color: var(--lyg-navy);
	color: #fff;
}

/*
 * Sidebar widgets are registered but print nothing, so the empty column still
 * takes about 22% and squeezes the product. Drop it when it has no elements.
 */
body.right-sidebar:has(#secondary:not(:has(*))) .content-area,
body.left-sidebar:has(#secondary:not(:has(*))) .content-area {
	width: 100%;
	float: none;
	margin-left: 0;
	margin-right: 0;
}

body.right-sidebar #secondary:not(:has(*)),
body.left-sidebar #secondary:not(:has(*)) {
	display: none;
}

body.single-product table.shop_attributes p {
	margin: 0;
}

/*
 * Storefront floats the tab list at ~29% and the panel at ~65%, with a
 * right-pointing chevron. One tab then wraps in a narrow column. Stack them.
 * These selectors beat Storefront even though shop.css is printed first.
 */
@media (min-width: 768px) {
	body.single-product div.product .woocommerce-tabs ul.tabs,
	body.single-product.storefront-full-width-content div.product .woocommerce-tabs ul.tabs {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		float: none;
		margin: 0 0 1em;
		border-top: 0;
	}

	body.single-product div.product .woocommerce-tabs ul.tabs li {
		float: none;
		margin: 0 1.5em 0 0;
		border-bottom: 0;
	}

	body.single-product div.product .woocommerce-tabs ul.tabs li::after,
	body.single-product div.product .woocommerce-tabs ul.tabs li.active::after {
		content: none;
	}

	body.single-product div.product .woocommerce-tabs .panel,
	body.single-product.storefront-full-width-content div.product .woocommerce-tabs .panel {
		width: 100%;
		float: none;
		clear: both;
		margin: 0 0 1.5em;
	}
}

/*
 * WooCommerce hides the gallery until its script runs. The photo is the LCP
 * element, so show it immediately. Extra frames stay hidden until flexslider
 * builds .flex-viewport, which keeps a multi-photo gallery from stacking.
 */
body.single-product .woocommerce-product-gallery {
	opacity: 1 !important;
}

body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image ~ .woocommerce-product-gallery__image {
	display: none;
}

/*
 * Sale prices use opacity, so #6d6d6d paints as #b6b6b6 on white (2:1).
 * A solid muted color keeps the strikethrough and clears 4.5:1.
 */
/*
 * WooCommerce's .woocommerce class sits on the body, so a descendant
 * .woocommerce selector never matches. Storefront then keeps opacity .5.
 */
body.lyg-chrome-inner .price del {
	opacity: 1;
	color: #55707e;
	text-decoration: line-through;
}

/*
 * Ski length widget: range plus multi-select buttons. The original
 * link list is hidden once the enhanced control is in place.
 */
.widget_layered_nav:has(.lyg-length-filter) .woocommerce-widget-layered-nav-list {
	display: none;
}

.lyg-length-readout {
	display: flex;
	justify-content: space-between;
	margin: 0 0 4px;
	color: var(--lyg-navy, #031e32);
	font-size: 13px;
	font-weight: 800;
}

.lyg-length-range {
	position: relative;
	height: 28px;
	margin: 0 8px 14px;
}

.lyg-length-range-bar {
	position: absolute;
	top: 12px;
	right: 0;
	left: 0;
	height: 4px;
	border-radius: 999px;
	background: #d5e2e8;
}

.lyg-length-range-bar span {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: 999px;
	background: var(--lyg-teal-deep, #05798b);
}

.lyg-length-range input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.lyg-length-range input[type="range"]:focus {
	outline: none;
}

.lyg-length-range input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 3px solid var(--lyg-teal, #0098ab);
	outline-offset: 2px;
}

.lyg-length-range input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
	border: 0;
}

.lyg-length-range input[type="range"]::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: -7px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--lyg-navy, #031e32);
	box-shadow: 0 0 0 1px #d5e2e8;
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
}

.lyg-length-range input[type="range"]::-moz-range-track {
	height: 4px;
	background: transparent;
	border: 0;
}

.lyg-length-range input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--lyg-navy, #031e32);
	box-shadow: 0 0 0 1px #d5e2e8;
	cursor: pointer;
	pointer-events: auto;
}

.lyg-length-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	max-height: 320px;
	overflow: auto;
	padding: 2px;
}

#secondary .lyg-length-options button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 46px;
	margin: 0;
	padding: 6px 4px;
	border: 1px solid #d5e2e8;
	border-radius: 10px;
	background: #fff;
	color: var(--lyg-navy, #031e32);
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
}

#secondary .lyg-length-options button:hover,
#secondary .lyg-length-options button:focus {
	background: #eaf6f8;
	border-color: var(--lyg-teal, #0098ab);
	color: var(--lyg-navy, #031e32);
}

#secondary .lyg-length-options button[aria-pressed="true"],
#secondary .lyg-length-options button[aria-pressed="true"]:hover,
#secondary .lyg-length-options button[aria-pressed="true"]:focus {
	background: var(--lyg-navy, #031e32);
	border-color: var(--lyg-navy, #031e32);
	color: #fff;
}

.lyg-length-count {
	margin-top: 2px;
	color: #55707e;
	font-size: 11px;
	font-weight: 700;
}

#secondary .lyg-length-options button[aria-pressed="true"] .lyg-length-count {
	color: rgba(255, 255, 255, 0.75);
}

#secondary .lyg-binding-filter {
	margin-bottom: 1.4em;
}

#secondary .lyg-binding-filter-options {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

#secondary .lyg-binding-filter-options button {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #d5e2e8;
	border-radius: 12px;
	background: #fff;
	color: var(--lyg-navy, #031e32);
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
}

#secondary .lyg-binding-filter-options button:hover,
#secondary .lyg-binding-filter-options button:focus-visible {
	border-color: var(--lyg-teal, #0098ab);
	background: #fff;
	color: var(--lyg-navy, #031e32);
}

#secondary .lyg-binding-filter-options button[aria-pressed="true"],
#secondary .lyg-binding-filter-options button[aria-pressed="true"]:hover,
#secondary .lyg-binding-filter-options button[aria-pressed="true"]:focus,
#secondary .lyg-binding-filter-options button[aria-pressed="true"]:focus-visible {
	border-color: var(--lyg-navy, #031e32);
	background: var(--lyg-navy, #031e32);
	color: #fff;
}

.lyg-binding-badge {
	display: block;
	margin-bottom: 3px;
	color: var(--lyg-teal-deep, #05798b);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

#secondary .lyg-binding-filter-options button[aria-pressed="true"] .lyg-binding-badge {
	color: #9fd7e2;
}

.lyg-binding-filter-empty {
	margin: 12px 0 0;
	color: var(--lyg-navy, #031e32);
	font-weight: 700;
}

body.term-apkaustai ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 16px;
}

body.term-apkaustai ul.products::before,
body.term-apkaustai ul.products::after {
	content: none;
	display: none;
}

/*
 * Storefront sizes each card to ~29% of its container. Inside this grid
 * that container is the column, so the card collapses to a thin strip.
 */
body.term-apkaustai .site-main ul.products li.product,
body.term-apkaustai .site-main ul.products.columns-3 li.product {
	width: auto !important;
	max-width: none;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	position: relative;
}

body.term-apkaustai .site-main ul.products li.product .woocommerce-LoopProduct-link,
body.term-apkaustai .site-main ul.products li.product img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

body.term-apkaustai ul.products li.product.lyg-profilis-hidden {
	display: none;
}

.woocommerce ul.products li.product .lyg-recommended {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 6px 9px;
	border-radius: 7px;
	background: var(--lyg-teal-deep, #05798b);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.03em;
}

@media (max-width: 768px) {
	body.term-apkaustai ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.lyg-archive-help {
	clear: both;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 28px 0 8px;
	padding: 18px 20px;
	border-radius: 14px;
	background: #eaf6f8;
	color: var(--lyg-navy, #031e32);
}

.lyg-archive-help p {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.lyg-archive-help a.button {
	flex: none;
}

@media (max-width: 600px) {
	.lyg-archive-help {
		flex-direction: column;
		align-items: stretch;
	}
}
