/* =========================================================
   LIVO COMPONENTS.CSS

   Bendri temos komponentai:
   1. Sekcijų antraštės
   2. Komercinių puslapių antraštės
   3. Drawer ir filtrų backdrop
   4. Mini krepšelio drawer
   5. Mini krepšelio headeris
   6. Mini krepšelio turinio zona
   7. Kategorijos apatinis turinys
   8. Responsive

   ========================================================= */


/* =========================================================
   1. SEKCIJŲ ANTRAŠTĖS
   PRADŽIA
   ========================================================= */

.livo-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;

	margin: 0 0 22px;
}

.livo-section-heading h2 {
	margin: 2px 0 0;
}

.livo-section-heading__content {
	min-width: 0;
}

.livo-section-heading__eyebrow,
.livo-commerce-page-heading__eyebrow {
	display: block;

	margin: 0;

	color: var(--livo-orange);
	font-family: "Rubik", sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.livo-section-heading > a,
.livo-section-heading__link {
	flex: 0 0 auto;

	display: inline-flex;
	align-items: center;
	gap: 4px;

	color: var(--livo-orange);
	font-family: "Rubik", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;

	transition:
		color 160ms ease,
		transform 160ms ease;
}

.livo-section-heading > a:hover,
.livo-section-heading__link:hover {
	color: var(--livo-orange-hover);
}

.livo-section-heading > a:active,
.livo-section-heading__link:active {
	transform: translateY(1px);
}

.livo-section-heading > a .livo-icon,
.livo-section-heading__link .livo-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

/* =========================================================
   1. SEKCIJŲ ANTRAŠTĖS
   PABAIGA
   ========================================================= */


/* =========================================================
   2. KOMERCINIŲ PUSLAPIŲ ANTRAŠTĖS
   PRADŽIA
   ========================================================= */

.livo-commerce-page-heading {
	max-width: 760px;
	margin: 0 0 30px;
}

.livo-commerce-page-heading h1 {
	margin: 5px 0 7px;

	color: var(--livo-ink);
	font-family: "Rubik", sans-serif;
	line-height: 1.15;
}

.livo-commerce-page-heading p {
	margin: 0;

	color: var(--livo-muted);
	font-family: "Rubik", sans-serif;
	line-height: 1.6;
}

/* =========================================================
   2. KOMERCINIŲ PUSLAPIŲ ANTRAŠTĖS
   PABAIGA
   ========================================================= */


/* =========================================================
   3. DRAWER IR FILTRŲ BACKDROP
   PRADŽIA
   ========================================================= */

.livo-drawer-backdrop,
.livo-filter-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2000;

	width: 100%;
	height: 100%;

	margin: 0;
	padding: 0;

	border: 0;
	background: rgb(5 18 33 / 48%);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);

	cursor: pointer;
	opacity: 1;
	visibility: visible;

	transition:
		opacity 200ms ease,
		visibility 200ms ease;
}

.livo-drawer-backdrop[hidden],
.livo-filter-backdrop[hidden] {
	display: none !important;
}

.livo-drawer-backdrop.is-hidden,
.livo-filter-backdrop.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* =========================================================
   3. DRAWER IR FILTRŲ BACKDROP
   PABAIGA
   ========================================================= */


/* =========================================================
   4. MINI KREPŠELIO DRAWER KONTEINERIS
   PRADŽIA
   ========================================================= */

.livo-mini-cart {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 2010;

	width: min(92vw, 430px);
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;

	display: flex;
	flex-direction: column;

	overflow: hidden;

	background: #fff;
	box-shadow: var(
		--livo-shadow-drawer,
		-14px 0 40px rgb(10 25 45 / 16%)
	);

	transform: translateX(102%);
	visibility: hidden;
	pointer-events: none;

	transition:
		transform 260ms cubic-bezier(0.22, 0.72, 0.24, 1),
		visibility 260ms ease;
}

.livo-mini-cart.is-open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

/*
 * Svarbu:
 * pats drawer negali scroll'intis.
 * Scroll'as paliekamas tik produktų zonai commerce.css faile.
 */
.livo-mini-cart,
.livo-mini-cart__contents {
	overscroll-behavior: contain;
}

/* =========================================================
   4. MINI KREPŠELIO DRAWER KONTEINERIS
   PABAIGA
   ========================================================= */


/* =========================================================
   5. MINI KREPŠELIO HEADERIS
   PRADŽIA
   ========================================================= */

.livo-mini-cart > header {
	flex: 0 0 auto;

	min-height: 74px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	padding: 16px 22px;

	border-bottom: 1px solid var(--livo-border);
	background: #fff;
}

.livo-mini-cart > header > div {
	min-width: 0;
	display: grid;
	gap: 3px;

	line-height: 1.1;
}

.livo-mini-cart > header small {
	display: block;

	color: var(--livo-muted);
	font-family: "Rubik", sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
}

.livo-mini-cart > header strong {
	display: block;

	overflow: hidden;

	color: var(--livo-ink);
	font-family: "Rubik", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.livo-mini-cart > header button {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;

	display: grid;
	place-items: center;

	margin: 0;
	padding: 0;

	border: 1px solid var(--livo-border);
	border-radius: 50%;

	background: #fff;
	color: var(--livo-ink);

	cursor: pointer;
	box-shadow: none;

	transition:
		border-color 160ms ease,
		background-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.livo-mini-cart > header button:hover {
	border-color: var(--livo-orange);
	background: var(--livo-orange-soft);
	color: var(--livo-orange);
}

.livo-mini-cart > header button:active {
	transform: scale(0.97);
}

.livo-mini-cart > header button:focus-visible {
	outline: 3px solid rgb(245 102 0 / 18%);
	outline-offset: 2px;
}

.livo-mini-cart > header button .livo-icon,
.livo-mini-cart > header button svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* =========================================================
   5. MINI KREPŠELIO HEADERIS
   PABAIGA
   ========================================================= */


/* =========================================================
   6. MINI KREPŠELIO TURINIO ZONA
   PRADŽIA
   ========================================================= */

/*
 * Ši zona pati nebesiscrollina.
 * Ji tik perduoda likusį aukštį widget turiniui.
 */
.livo-mini-cart__contents {
	min-height: 0;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;

	overflow: hidden;
	padding: 0;

	background: #fff;
}

.livo-mini-cart__contents .widget_shopping_cart_content {
	min-height: 0;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;

	overflow: hidden;
}

/*
 * Naujas mini-cart PHP generuoja šį konteinerį.
 * Jis taip pat turi užimti visą likusį aukštį.
 */
.livo-mini-cart__contents .livo-mini-cart-content {
	min-height: 0;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;

	overflow: hidden;
}

/*
 * Atsarginė taisyklė, jei widget turinys atsinaujina per AJAX
 * ir WooCommerce trumpam įterpia loading būseną.
 */
.livo-mini-cart__contents .widget_shopping_cart_content.is-loading {
	position: relative;
}

.livo-mini-cart__contents
	.widget_shopping_cart_content.is-loading::after {
	content: "";

	position: absolute;
	inset: 0;
	z-index: 20;

	background: rgb(255 255 255 / 70%);
	backdrop-filter: blur(1px);
}

/* =========================================================
   6. MINI KREPŠELIO TURINIO ZONA
   PABAIGA
   ========================================================= */


/* =========================================================
   7. BODY BŪSENA ATIDARIUS DRAWER
   PRADŽIA
   ========================================================= */

body.livo-drawer-open,
body.livo-cart-open {
	overflow: hidden;
	touch-action: none;
}

/* =========================================================
   7. BODY BŪSENA ATIDARIUS DRAWER
   PABAIGA
   ========================================================= */


/* =========================================================
   8. KATEGORIJOS APATINIS TURINYS
   PRADŽIA
   ========================================================= */

.livo-category-bottom-content {
	margin-top: 50px;
	padding: 34px;

	border: 1px solid var(--livo-border);
	border-radius: var(--livo-radius-lg);

	background: var(--livo-surface-soft);
	color: var(--livo-text);
}

.livo-category-bottom-content > :first-child {
	margin-top: 0;
}

.livo-category-bottom-content > :last-child {
	margin-bottom: 0;
}

.livo-category-bottom-content h2,
.livo-category-bottom-content h3,
.livo-category-bottom-content h4 {
	color: var(--livo-ink);
	font-family: "Rubik", sans-serif;
}

.livo-category-bottom-content p,
.livo-category-bottom-content li {
	color: var(--livo-muted);
	line-height: 1.65;
}

.livo-category-bottom-content a {
	color: var(--livo-orange);
	font-weight: 600;
	text-underline-offset: 2px;
}

.livo-category-bottom-content a:hover {
	color: var(--livo-orange-hover);
}

/* =========================================================
   8. KATEGORIJOS APATINIS TURINYS
   PABAIGA
   ========================================================= */


/* =========================================================
   9. RESPONSIVE — PLANŠETĖS IR TELEFONAI
   PRADŽIA
   ========================================================= */

@media (max-width: 767px) {
	.livo-section-heading {
		align-items: flex-start;
		gap: 14px;
		margin-bottom: 18px;
	}

	.livo-commerce-page-heading {
		margin-bottom: 24px;
	}

	.livo-mini-cart {
		width: min(100vw, 430px);
	}

	.livo-mini-cart > header {
		min-height: 66px;
		padding: 12px 16px;
	}

	.livo-mini-cart > header strong {
		font-size: 19px;
	}

	.livo-mini-cart > header button {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}

	.livo-category-bottom-content {
		margin-top: 36px;
		padding: 24px 20px;
	}
}

@media (max-width: 480px) {
	.livo-section-heading {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.livo-section-heading > a,
	.livo-section-heading__link {
		font-size: 12px;
	}

	.livo-mini-cart {
		width: 100vw;
		max-width: 100vw;
	}

	.livo-mini-cart > header {
		padding-right: 14px;
		padding-left: 14px;
	}

	.livo-category-bottom-content {
		padding: 20px 16px;
		border-radius: var(--livo-radius-md);
	}
}

/* =========================================================
   9. RESPONSIVE — PLANŠETĖS IR TELEFONAI
   PABAIGA
   ========================================================= */


/* =========================================================
   10. REDUCED MOTION
   PRADŽIA
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.livo-mini-cart,
	.livo-drawer-backdrop,
	.livo-filter-backdrop,
	.livo-mini-cart > header button,
	.livo-section-heading > a,
	.livo-section-heading__link {
		transition: none;
	}
}

/* =========================================================
   10. REDUCED MOTION
   PABAIGA
   ========================================================= */


/* =========================================================
   LIVO COMPONENTS.CSS
   FAILO PABAIGA
   ========================================================= */