/* =========================================================
   Product archives
   ========================================================= */

.lg-archive {
	background: var(--lg-bg);
	padding: 0 0 56px;
}

.lg-archive__top {
	background: #fff;
	border-bottom: 1px solid var(--lg-border);
	padding: 18px 0 20px;
	margin-bottom: 26px;
}

.lg-archive__top .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--lg-gray);
	margin: 0 0 12px;
}

.lg-archive__top .woocommerce-breadcrumb a {
	color: var(--lg-gray);
}

.lg-archive__top .woocommerce-breadcrumb a:hover {
	color: var(--lg-orange);
}

.lg-archive__title {
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--lg-navy);
	margin: 0;
}

.lg-archive__layout {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	align-items: start;
	gap: 28px;
}

/* =========================================================
   Sidebar
   ========================================================= */

.lg-archive__sidebar {
	min-width: 0;
}

.lg-archive__filter-group {
	background: #fff;
	border: 1px solid var(--lg-border);
	border-radius: 4px;
	margin-bottom: 18px;
	padding: 16px;
}

.lg-archive__filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--lg-border);
	margin-bottom: 12px;
	padding-bottom: 10px;
}

.lg-archive__filter-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--lg-navy);
	margin: 0 0 12px;
}

.lg-archive__filter-head .lg-archive__filter-title {
	margin: 0;
}

.lg-archive__clear {
	font-size: 12px;
	color: var(--lg-orange);
	text-decoration: none;
	white-space: nowrap;
}

.lg-archive__clear:hover {
	text-decoration: underline;
}

.lg-archive__cat-tree,
.lg-archive__cat-children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lg-archive__cat-node {
	border-top: 1px solid var(--lg-border);
}

.lg-archive__cat-tree > .lg-archive__cat-node:first-child {
	border-top: 0;
}

.lg-archive__cat-node > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--lg-navy);
	text-decoration: none;
}

.lg-archive__cat-node > a:hover,
.lg-archive__cat-node.is-active > a,
.lg-archive__cat-node.is-ancestor > a {
	color: var(--lg-orange);
}

.lg-archive__cat-node small {
	color: var(--lg-gray);
	font-size: 12px;
	font-weight: 600;
}

.lg-archive__cat-children {
	padding: 0 0 8px 10px;
}

.lg-archive__cat-children .lg-archive__cat-node {
	border: 0;
}

.lg-archive__cat-children .lg-archive__cat-node > a {
	padding: 5px 0;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	color: var(--lg-gray);
}

.lg-archive__cat-children .lg-archive__cat-node.is-active > a {
	color: var(--lg-orange);
	font-weight: 700;
}

.lg-archive__filter-block {
	border-top: 1px solid var(--lg-border);
	padding-top: 12px;
	margin-top: 12px;
}

.lg-archive__filter-block:first-of-type {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

.lg-archive__filter-head + .lg-archive__filter-block {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

.lg-archive__filter-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 700;
	color: var(--lg-navy);
	margin: 0 0 10px;
}

.lg-archive__filter-label::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--lg-gray);
	border-bottom: 2px solid var(--lg-gray);
	transform: rotate(45deg) translateY(-2px);
}

.lg-archive__filter-group .price_slider_wrapper {
	padding: 6px 2px 0;
}

.lg-archive__filter-group .price_slider {
	position: relative;
	height: 4px;
	background: var(--lg-border);
	border-radius: 999px;
	margin: 16px 8px;
}

.lg-archive__filter-group .ui-slider-range {
	position: absolute;
	height: 100%;
	background: var(--lg-orange);
	border-radius: 999px;
}

.lg-archive__filter-group .ui-slider-handle {
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	background: #fff;
	border: 2px solid var(--lg-orange);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.lg-archive__filter-group .price_slider_amount {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	font-size: 12px;
	color: var(--lg-gray);
}

.lg-archive__filter-group .price_slider_amount .button {
	background: var(--lg-orange);
	color: #fff;
	border: 0;
	border-radius: 3px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	order: 2;
}

.lg-archive__filter-group .price_slider_amount .button:hover {
	background: var(--lg-orange-2);
}

.lg-archive__filter-group .price_label {
	flex: 1 1 100%;
	font-family: var(--lg-font-price);
	color: var(--lg-navy);
}

.lg-archive__filter-group .woocommerce-widget-layered-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lg-archive__filter-group .woocommerce-widget-layered-nav-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 5px 0;
	font-size: 13px;
	color: var(--lg-gray);
}

.lg-archive__filter-group .woocommerce-widget-layered-nav-list__item a {
	color: inherit;
	text-decoration: none;
}

.lg-archive__filter-group .woocommerce-widget-layered-nav-list__item a:hover,
.lg-archive__filter-group .woocommerce-widget-layered-nav-list__item.chosen a {
	color: var(--lg-orange);
}

.lg-archive__filter-group .count {
	color: var(--lg-gray);
	font-size: 12px;
}

/* =========================================================
   Main content
   ========================================================= */

.lg-archive__main {
	min-width: 0;
}

.lg-archive__intro {
	background: #fff;
	border: 1px solid var(--lg-border);
	border-radius: 4px;
	padding: 22px 24px;
	margin-bottom: 20px;
	color: var(--lg-navy);
	font-size: 15px;
	line-height: 1.65;
}

.lg-archive__intro h2,
.lg-archive__intro h3 {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 12px;
	color: var(--lg-navy);
}

.lg-archive__intro p {
	margin: 0 0 14px;
}

.lg-archive__intro p:last-child {
	margin-bottom: 0;
}

.lg-archive__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--lg-border);
	border-radius: 4px;
	padding: 10px 12px;
	margin-bottom: 14px;
}

.lg-archive__toolbar .woocommerce-result-count {
	font-size: 13px;
	color: var(--lg-gray);
	margin: 0;
}

.lg-archive__toolbar .woocommerce-ordering {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.lg-archive__toolbar .woocommerce-ordering::before {
	content: 'Sortare';
	font-size: 13px;
	color: var(--lg-gray);
}

.lg-archive__toolbar .orderby {
	height: 34px;
	border: 1px solid var(--lg-border);
	border-radius: 3px;
	background: #fff;
	color: var(--lg-navy);
	font-family: inherit;
	font-size: 13px;
	padding: 0 28px 0 10px;
	cursor: pointer;
}

.lg-archive__empty,
.lg-archive__main .woocommerce-info {
	background: #fff;
	border: 1px solid var(--lg-border);
	border-radius: 4px;
	color: var(--lg-gray);
	font-size: 15px;
	padding: 34px 20px;
	text-align: center;
}

/* =========================================================
   Product grid
   ========================================================= */

.lg-archive__main ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lg-archive-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: .1px solid var(--lg-border);
	border-radius: 0;
	padding: 14px;
	min-width: 0;
}

.lg-archive-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.lg-archive-card__image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 0.82;
	text-decoration: none;
}

.lg-archive-card__img {
	display: block;
	max-width: 100%;
	max-height: 175px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.lg-archive-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--lg-orange);
	color: #fff;
	border-radius: 3px;
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 700;
	z-index: 1;
}

.lg-archive-card__content {
	min-width: 0;
	min-height: 158px;
	padding: 10px 0 0;
}

.lg-archive-card__title {
	font-size: 13px;
	line-height: 1.35;
	font-weight: 700;
	margin: 0;
	text-transform: uppercase;
}

.lg-archive-card__title a {
	color: var(--lg-navy);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	min-height: 36px;
	overflow: hidden;
	text-decoration: none;
}

.lg-archive-card__title a:hover {
	color: var(--lg-orange);
}

.lg-archive-card__specs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.lg-archive-card__specs li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	border-top: 1px solid var(--lg-border);
	min-height: 22px;
	padding-top: 4px;
	font-size: 12px;
	line-height: 1.3;
}

.lg-archive-card__specs span {
	color: var(--lg-gray);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-archive-card__specs strong {
	color: var(--lg-navy);
	flex-shrink: 0;
	font-weight: 700;
	max-width: 48%;
	overflow: hidden;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lg-archive-card__buy {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex: 1;
	margin-top: 12px;
}

.lg-archive-card__stock {
	align-self: flex-start;
	background: #e9f7ef;
	border-radius: 3px;
	color: #16803c;
	display: inline-flex;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	margin: 0 0 10px;
	padding: 5px 7px;
	text-transform: uppercase;
}

.lg-archive-card__stock--outofstock {
	background: #fdecec;
	color: #b91c1c;
}

.lg-archive-card__stock--onbackorder {
	background: #fff2e6;
	color: var(--lg-orange);
}

.lg-archive-card__price {
	font-family: var(--lg-font-price);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--lg-navy);
	margin-bottom: 4px;
}

.lg-archive-card__price del {
	display: block;
	color: var(--lg-gray);
	font-size: 13px;
	font-weight: 400;
	margin-bottom: 3px;
}

.lg-archive-card__price ins {
	color: var(--lg-navy);
	text-decoration: none;
}

.lg-archive-card__cart {
	margin-top: auto;
}

.lg-archive-card__cart .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	background: var(--lg-orange);
	border: 0;
	border-radius: 3px;
	color: #fff !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	padding: 10px 14px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.lg-archive-card__cart .button:hover {
	background: var(--lg-orange-2);
	color: #fff !important;
}

.lg-archive-card__cart .added_to_cart {
	display: block;
	margin-top: 8px;
	color: var(--lg-orange);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.lg-archive-card__cart .added_to_cart:hover {
	text-decoration: underline;
}

/* Pagination */

.lg-archive__main .woocommerce-pagination {
	margin-top: 28px;
	text-align: center;
}

.lg-archive__main .woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 5px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lg-archive__main .woocommerce-pagination a,
.lg-archive__main .woocommerce-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	border: 1px solid var(--lg-border);
	border-radius: 3px;
	background: #fff;
	color: var(--lg-navy);
	font-size: 13px;
	text-decoration: none;
}

.lg-archive__main .woocommerce-pagination .current,
.lg-archive__main .woocommerce-pagination a:hover {
	background: var(--lg-orange);
	border-color: var(--lg-orange);
	color: #fff;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
	.lg-archive__layout {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 20px;
	}

	.lg-archive__main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.lg-archive__layout {
		grid-template-columns: 1fr;
	}

	.lg-archive__toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.lg-archive__toolbar .woocommerce-ordering {
		justify-content: space-between;
	}

	.lg-archive__toolbar .orderby {
		flex: 1;
		min-width: 0;
	}

	.lg-archive__main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.lg-archive__top {
		margin-bottom: 18px;
	}

	.lg-archive__title {
		font-size: 24px;
	}

	.lg-archive__filter-group,
	.lg-archive__intro,
	.lg-archive-card {
		border-radius: 0;
		margin-left: -5px;
		margin-right: -5px;
	}

	.lg-archive-card {
		padding: 16px;
	}

	.lg-archive-card__image-link {
		aspect-ratio: 1 / 0.72;
	}

	.lg-archive-card__img {
		max-height: 180px;
	}

	.lg-archive__main ul.products {
		grid-template-columns: 1fr;
	}
}
