/*
--------------------------------------
Containers
--------------------------------------
*/

.woocommerce-page .woocommerce,
.woocommerce-page .ast-woocommerce-container {
	width: calc(100% - 3rem);
	max-width: 1400px;
	margin: auto;
	padding: 5em 0;
}

.woocommerce-shop .bwa-product-archive-layout {
	font-family: var(--font-primary);
	margin-top: 145px;
}

.woocommerce-page .bwa-product-archive-main {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
	max-width: 72%;
	padding-bottom: 6em;
	margin: 0 auto;
}

.bwa-product-filters {
	position: sticky;
	top: 7rem;
	padding: 1.5rem;
	background: var(--color-tertiary, #f9f8f6);
	border: 1px solid rgb(42 44 47 / 14%);
	border-radius: 4px;
}

.bwa-product-filters__title {
	margin: 0 0 1.5rem;
	color: var(--color-primary, #2a2c2f);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.bwa-product-filters__mobile-toggle,
.bwa-product-filters__panel-header,
.bwa-product-filters__overlay {
	display: none;
}

.bwa-product-filters__group + .bwa-product-filters__group {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(42 44 47 / 12%);
}

.bwa-product-filters__summary {
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	list-style: none;
}

.bwa-product-filters__summary::-webkit-details-marker {
	display: none;
}

.bwa-product-filters__summary:focus-visible {
	outline: 2px solid var(--color-secondary, #9b583b);
	outline-offset: 3px;
}

.bwa-product-filters__list {
	max-height: 180px;
	overflow-y: auto;
	padding-right: 0.5rem;
}

.bwa-product-filters__heading {
	margin: 0;
	color: var(--color-primary, #2a2c2f);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
}

.bwa-product-filters__toggle {
	position: relative;
	flex: 0 0 auto;
	width: 0.8rem;
	height: 0.8rem;
}

.bwa-product-filters__toggle::before,
.bwa-product-filters__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.75rem;
	height: 1px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.bwa-product-filters__toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: transform 0.2s ease;
}

.bwa-product-filters__group[open] .bwa-product-filters__toggle::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.bwa-product-filters ul {
	margin: 0.875rem 0 0;
	padding: 0;
	list-style: none;
}

.bwa-product-filters li {
	margin: 0;
	margin-right: 10px;
}

.bwa-product-filters li + li {
	margin-top: 0.5rem;
}

.bwa-product-filters__option {
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	align-items: center;
	color: var(--color-text, #6c727f);
	font-size: 0.95rem;
	line-height: 1.35;
	cursor: pointer;
}

.bwa-product-filters__option:hover,
.bwa-product-filters__option:focus-within {
	color: var(--color-secondary, #9b583b);
}

.bwa-product-filters__option input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--color-secondary, #9b583b);
	cursor: pointer;
}

.bwa-product-filters__label {
	flex: 1 1 auto;
	min-width: 0;
}

.bwa-product-filters__count {
	flex: 0 0 auto;
	margin-left: auto;
	color: rgb(42 44 47 / 55%);
	font-size: 0.85rem;
	white-space: nowrap;
}

.bwa-product-filters__option--swatch {
	gap: 0.65rem;
}

.bwa-product-filters__swatch {
	position: relative;
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 3px;
	border: 1px solid rgb(42 44 47 / 15%);
	box-shadow: 0 0 0 2px transparent;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.bwa-product-filters__swatch--multicolore {
	background: conic-gradient(
		#d0342c, #f2994a, #f2c94c, #3c8c4a, #2e6db4, #e85a9e, #d0342c
	);
}

.bwa-product-filters__option--swatch:hover .bwa-product-filters__swatch,
.bwa-product-filters__option--swatch:focus-within .bwa-product-filters__swatch {
	border-color: var(--color-secondary, #9b583b);
}

.bwa-product-filters__option--swatch input[type="checkbox"]:checked ~ .bwa-product-filters__swatch {
	border-color: var(--color-secondary, #9b583b);
	box-shadow: 0 0 0 2px var(--color-secondary, #9b583b);
}

.bwa-product-filters__price {
	margin-top: 1rem;
}

.bwa-product-filters__price-label {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--color-text, #6c727f);
	font-size: 0.9rem;
	line-height: 1.35;
}

.bwa-product-filters__price-slider {
	--min-percent: 0%;
	--max-percent: 100%;
	position: relative;
	height: 2rem;
}

.bwa-product-filters__price-slider::before,
.bwa-product-filters__price-slider::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 999px;
	transform: translateY(-50%);
}

.bwa-product-filters__price-slider::before {
	background: rgb(42 44 47 / 18%);
}

.bwa-product-filters__price-slider::after {
	left: var(--min-percent);
	right: calc(100% - var(--max-percent));
	background: var(--color-secondary, #9b583b);
}

.bwa-product-filters__range {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 2rem;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	appearance: none;
	cursor: pointer;
	pointer-events: none;
}

.bwa-product-filters__range--max {
	z-index: 3;
}

.bwa-product-filters__range:focus {
	outline: none;
}

.bwa-product-filters__range:focus-visible {
	z-index: 4;
}

.bwa-product-filters__range::-webkit-slider-runnable-track {
	height: 3px;
	background: transparent;
	border: 0;
}

.bwa-product-filters__range::-webkit-slider-thumb {
	width: 1rem;
	height: 1rem;
	margin-top: -0.4rem;
	background: #fff;
	border: 2px solid var(--color-secondary, #9b583b);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgb(42 44 47 / 20%);
	appearance: none;
	pointer-events: auto;
}

.bwa-product-filters__range::-moz-range-track {
	height: 3px;
	background: transparent;
	border: 0;
}

.bwa-product-filters__range::-moz-range-thumb {
	width: 1rem;
	height: 1rem;
	background: #fff;
	border: 2px solid var(--color-secondary, #9b583b);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgb(42 44 47 / 20%);
	pointer-events: auto;
}

.bwa-product-filters__price-values {
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.75rem;
	color: rgb(42 44 47 / 65%);
	font-size: 0.85rem;
	line-height: 1.3;
}

.bwa-product-filters__price-output {
	color: var(--color-primary, #2a2c2f);
	font-weight: 700;
}

.bwa-product-filters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(42 44 47 / 12%);
}

.bwa-product-filters__submit {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.625rem 1rem;
	color: #fff;
	background: var(--color-primary, #2a2c2f);
	border: 1px solid var(--color-primary, #2a2c2f);
	border-radius: 2px;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.bwa-product-filters__submit:hover,
.bwa-product-filters__submit:focus-visible {
	color: var(--color-primary, #2a2c2f);
	background: transparent;
}

.bwa-product-filters__reset {
	color: var(--color-secondary, #9b583b);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.bwa-product-filters__reset:hover,
.bwa-product-filters__reset:focus-visible {
	text-decoration: underline;
}

.bwa-product-filters__reset.is-hidden {
	display: none;
}

.bwa-product-filters__empty {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
}

.bwa-product-archive-content {
	min-width: 0;
}

.bwa-product-category-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 580px;
	margin-bottom: 2rem;
	padding: 4rem 15rem;
	overflow: hidden;
	color: #fff;
	background-color: var(--color-primary, #2a2c2f);
	background-position: center;
	background-size: cover;
	border-radius: 4px;
}

.bwa-product-category-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(42 44 47 / 82%) 0%, rgb(42 44 47 / 54%) 48%, rgb(42 44 47 / 20%) 100%);
}

.bwa-product-category-banner__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.bwa-product-category-banner__inner .bwa-product-category-banner__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	color: rgb(255 255 255 / 78%);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
}

.bwa-product-category-banner__inner .bwa-product-category-banner__breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.bwa-product-category-banner__breadcrumb a:hover,
.bwa-product-category-banner__breadcrumb a:focus-visible {
	color: #fff;
}

.bwa-product-category-banner__breadcrumb-separator {
	color: rgb(255 255 255 / 48%);
}

.bwa-product-category-banner__title {
	margin: 0;
	color: #fff;
	font-size: 4rem;
	font-weight: 700;
	line-height: 0.95;
}

.bwa-product-category-banner__description {
	max-width: 620px;
	margin-top: 1rem;
	color: rgb(255 255 255 / 84%);
	font-size: 1rem;
	line-height: 1.6;
}

.bwa-product-category-banner__description p {
	margin: 0;
}

.bwa-product-category-banner__description p + p {
	margin-top: 0.75rem;
}

.bwa-product-archive-results {
	transition: opacity 0.2s ease;
	scroll-margin-top: calc(var(--header-height, 119px) + 16px);
}

.bwa-product-archive-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.bwa-product-archive-content .woocommerce-result-count {
	float: none;
	display: inline-block;
	margin: 0 1.5rem 2rem 0;
}

.bwa-product-archive-content .woocommerce-ordering {
	float: right;
	margin: 0 0 2rem;
}

.bwa-product-archive-content ul.products {
	clear: both;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 0;
	margin-bottom: 2em;
}

.bwa-product-archive-content ul.products::before,
.bwa-product-archive-content ul.products::after {
	display: none;
}

.bwa-product-archive-content ul.products li.product {
	float: none;
	width: auto !important;
	margin: 0 !important;
}

/*
--------------------------------------
Buttons
--------------------------------------
*/

a.button.wc-backward {
	background-color: var(--e-global-color-primary);
	color: #fff;
	border: 1px solid var(--e-global-color-primary);
}
