/* =========================================================
   LIVO PRODUKTŲ ARCHYVAS / SHOP

   Šis failas valdo shop ir product category puslapių išdėstymą:
   - sidebar filtrus;
   - archyvo toolbar;
   - list/grid vaizdą;
   - mobile filtrų drawer.

   Produktų kortelių dizainas yra components/product-card.css faile.

   1. Archyvo dviejų stulpelių išdėstymas
   2. Filtrų panelė
   3. Archyvo antraštė ir toolbar
   4. Sąrašo vaizdas
   5. Mobile drawer ir spacing

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


/* =========================================================
   1. ARCHYVO IŠDĖSTYMAS
   PRADŽIA
   ========================================================= */

.livo-shop-layout {
	position: relative;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	align-items: start;
	gap: 32px;
	padding-block: 26px 80px;
}

.livo-shop-content {
	min-width: 0;
}

.livo-shop-sidebar {
	align-self: start;
	overflow: hidden;
	border: 1px solid var(--livo-border);
	border-radius: var(--livo-radius-md);
	background: #fff;
	box-shadow: var(--livo-shadow-xs);
}

/* =========================================================
   1. ARCHYVO IŠDĖSTYMAS
   PABAIGA
   ========================================================= */


/* =========================================================
   2. FILTRŲ PANELĖ
   PRADŽIA
   ========================================================= */

.livo-filter-panel__head {
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 17px;
	border-bottom: 1px solid var(--livo-border);
}

.livo-filter-panel__head strong {
	color: var(--livo-ink);
	font-size: 16px;
}

.livo-filter-close {
	width: 38px;
	height: 38px;
	display: none;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--livo-ink);
}

.livo-filter-section {
	border-bottom: 1px solid var(--livo-border);
}

.livo-filter-section:last-child {
	border-bottom: 0;
}

.livo-filter-section__toggle {
	width: 100%;
	min-height: 57px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 17px;
	border: 0;
	background: #fff;
	color: var(--livo-ink);
	font-weight: 750;
	text-align: left;
	cursor: pointer;
}

.livo-filter-section__toggle:hover {
	color: var(--livo-orange);
}

.livo-filter-section__toggle span:last-child {
	color: var(--livo-orange);
	font-size: 20px;
	font-weight: 450;
}

.livo-filter-section__body {
	padding: 0 17px 17px;
}

.livo-filter-section__body[hidden] {
	display: none;
}

.livo-category-filter,
.livo-attribute-filter {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.livo-category-filter a,
.livo-attribute-filter a {
	color: #45494f;
	font-size: 14px;
	text-decoration: none;
}

.livo-category-filter a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
}

.livo-category-filter a span:last-child {
	color: var(--livo-subtle);
	font-size: 12px;
}

.livo-category-filter .is-current a,
.livo-category-filter a:hover,
.livo-attribute-filter a:hover {
	color: var(--livo-orange);
	font-weight: 700;
}

.livo-price-filter__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
}

.livo-price-filter label {
	position: relative;
	display: grid;
	gap: 4px;
	color: var(--livo-subtle);
	font-size: 12px;
}

.livo-price-filter input {
	height: 46px;
	min-height: 46px;
	padding: 0 27px 0 10px;
}

.livo-price-filter b {
	position: absolute;
	right: 10px;
	bottom: 12px;
	color: var(--livo-ink);
}

.livo-price-filter__submit {
	width: 100%;
	min-height: 42px !important;
	margin-top: 10px;
	padding: 8px !important;
	font-size: 13px;
}

.livo-attribute-filter a {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
}

.livo-filter-check {
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	border: 1px solid #cfd5dc;
	border-radius: 4px;
}

.is-selected .livo-filter-check {
	border-color: var(--livo-orange);
	background: var(--livo-orange);
	color: #fff;
}

.livo-filter-check .livo-icon {
	width: 13px;
	height: 13px;
}

.livo-attribute-filter small {
	color: var(--livo-subtle);
}

.livo-clear-filters {
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--livo-text);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

.livo-clear-filters:hover {
	color: var(--livo-orange);
}

.livo-clear-filters .livo-icon {
	width: 16px;
	height: 16px;
}

.livo-filter-mobile-toggle {
	display: none;
}

/* =========================================================
   2. FILTRŲ PANELĖ
   PABAIGA
   ========================================================= */


/* =========================================================
   3. ARCHYVO ANTRAŠTĖ IR TOOLBAR
   PRADŽIA
   ========================================================= */

.livo-shop-content .woocommerce-products-header {
	margin-bottom: 22px;
}

.livo-shop-content .woocommerce-products-header__title {
	margin-bottom: 8px;
}

.livo-shop-content .term-description {
	max-width: 820px;
	color: var(--livo-muted);
}

.livo-archive-toolbar {
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.livo-archive-toolbar .woocommerce-result-count,
.livo-archive-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
}

.livo-archive-toolbar .woocommerce-result-count {
	color: var(--livo-muted);
	font-size: 13px;
}

.livo-archive-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.livo-archive-toolbar .orderby {
	min-width: 220px;
	min-height: 44px;
	padding: 8px 36px 8px 12px;
	border-color: var(--livo-border);
	background: #fff;
	font-size: 13px;
}

.livo-view-switcher {
	display: flex;
	overflow: hidden;
	border: 1px solid var(--livo-border);
	border-radius: var(--livo-radius-sm);
}

.livo-view-switcher button {
	width: 44px;
	height: 42px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-right: 1px solid var(--livo-border);
	background: #fff;
	color: var(--livo-muted);
	cursor: pointer;
}

.livo-view-switcher button:last-child {
	border-right: 0;
}

.livo-view-switcher button.is-active,
.livo-view-switcher button:hover {
	color: var(--livo-orange);
	background: var(--livo-orange-soft);
}

.livo-view-switcher .livo-icon {
	width: 18px;
	height: 18px;
}

/* =========================================================
   3. ARCHYVO ANTRAŠTĖ IR TOOLBAR
   PABAIGA
   ========================================================= */


/* =========================================================
   4. SĄRAŠO VAIZDAS
   PRADŽIA
   ========================================================= */

.livo-shop-content.is-list-view ul.products {
	grid-template-columns: 1fr;
}

.livo-shop-content.is-list-view .livo-product-card__inner {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
}

.livo-shop-content.is-list-view .livo-product-card__media {
	height: auto;
	min-height: 220px;
	flex-basis: auto;
}

.livo-shop-content.is-list-view .livo-product-card__body {
	padding: 24px;
}

.livo-shop-content.is-list-view .woocommerce-loop-product__title {
	min-height: 0;
	font-size: 19px;
	-webkit-line-clamp: 2;
}

/* =========================================================
   4. SĄRAŠO VAIZDAS
   PABAIGA
   ========================================================= */


/* =========================================================
   5. MOBILE DRAWER IR SPACING
   PRADŽIA
   ========================================================= */

@media (max-width: 1023px) {
	.livo-shop-layout {
		width: 100%;
		max-width: none;
		min-width: 0;
		display: block;
		margin: 0;
		padding: 18px 14px 70px;
		box-sizing: border-box;
	}

	.livo-shop-main,
	.livo-shop-content {
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		float: none !important;
		clear: both;
		margin: 0 !important;
		padding: 0;
		box-sizing: border-box;
	}

	.livo-filter-mobile-toggle {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin: 0 0 16px;
		padding: 9px 14px;
		border: 1px solid var(--livo-border);
		border-radius: var(--livo-radius-sm);
		background: #fff;
		color: var(--livo-ink);
		font-weight: 700;
	}

	.livo-filter-mobile-toggle .livo-icon {
		width: 18px;
		height: 18px;
	}

	.livo-filter-close {
		display: grid;
	}

	.livo-shop-sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 2100;
		width: min(88vw, 360px);
		max-width: 360px;
		height: 100vh;
		height: 100dvh;
		overflow-x: hidden;
		overflow-y: auto;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: #fff;
		box-shadow: var(--livo-shadow-drawer);
		transform: translateX(-102%);
		transition: transform 250ms ease;
	}

	.livo-shop-sidebar.is-open {
		transform: translateX(0);
	}

	.livo-filter-backdrop {
		z-index: 2090;
	}

	.livo-archive-toolbar {
		width: 100%;
		min-width: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-bottom: 20px;
	}

	.livo-archive-toolbar__actions {
		width: 100%;
		min-width: 0;
		justify-content: space-between;
	}

	.livo-archive-toolbar .woocommerce-result-count,
	.livo-archive-toolbar .woocommerce-ordering {
		width: 100%;
		float: none;
		margin: 0;
	}

	.livo-archive-toolbar .orderby,
	.woocommerce-ordering select {
		width: 100%;
		max-width: none;
	}
}

@media (max-width: 767px) {
	.livo-shop-layout {
		padding-right: 11px;
		padding-left: 11px;
	}

	.woocommerce-products-header,
	.livo-commerce-page-heading {
		margin-bottom: 22px;
	}

	.woocommerce-products-header__title,
	.woocommerce-products-header h1,
	.livo-commerce-page-heading h1 {
		margin: 0;
		font-size: clamp(28px, 8vw, 36px);
		line-height: 1.08;
		letter-spacing: -0.035em;
	}

	.livo-view-switcher {
		display: none !important;
	}

	.livo-shop-content.is-list-view ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.livo-shop-content.is-list-view .livo-product-card__inner {
		display: flex;
		grid-template-columns: none;
	}

	.livo-shop-content.is-list-view .livo-product-card__media {
		height: 150px;
		min-height: 0;
		flex-basis: 150px;
	}

	.livo-shop-content.is-list-view .livo-product-card__body {
		padding: 11px;
	}

	.livo-shop-content.is-list-view .woocommerce-loop-product__title {
		min-height: 57px;
		font-size: 13px;
		-webkit-line-clamp: 3;
	}
}

/* =========================================================
   5. MOBILE DRAWER IR SPACING
   PABAIGA
   ========================================================= */


/* =========================================================
   LIVO PRODUKTŲ ARCHYVAS / SHOP
   FAILO PABAIGA
   ========================================================= */

/* =========================================================
   1.3.2 SHOP POLISH
   PRADŽIA
   ========================================================= */

.livo-shop-layout {
	grid-template-columns: 248px minmax(0, 1fr);
	gap: 28px;
}

.livo-filter-section__body {
	padding: 4px 20px 18px;
}

.livo-filter-section__toggle {
	padding-inline: 20px;
}

.livo-category-filter a,
.livo-attribute-filter a {
	font-size: 13px;
}

.livo-archive-toolbar {
	margin-bottom: 20px;
}

@media (max-width: 1023px) {
	.woocommerce-shop .livo-shop-layout,
	.post-type-archive-product .livo-shop-layout,
	.tax-product_cat .livo-shop-layout,
	.tax-product_tag .livo-shop-layout {
		padding-right: 12px;
		padding-left: 12px;
		box-sizing: border-box;
	}
}

/* =========================================================
   1.3.2 SHOP POLISH
   PABAIGA
   ========================================================= */
