.products-page {
	background: #ffffff;
}

.products-page__header {
	margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

.products-page__title {
	margin: 0;
	max-width: 9ch;
	color: #111111;
	font-size: clamp(2.45rem, 4.8vw, 4.2rem);
	font-style: italic;
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.06em;
	text-transform: uppercase;
}

.product-shop {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: clamp(1.5rem, 2.4vw, 2.6rem);
	align-items: start;
}

.category-sidebar {
	position: sticky;
	top: 124px;
	align-self: start;
	background: #ffffff;
}

.product-filter-form {
	display: grid;
	gap: 0;
}

.products-filter-group {
	margin: 0;
	border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.products-filter-group:last-child {
	border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.products-filter-group__summary {
	padding: 1.05rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	list-style: none;
	cursor: pointer;
}

.products-filter-group__summary::-webkit-details-marker {
	display: none;
}

.products-filter-group__summary i {
	color: #6f6f6f;
	font-size: 0.85rem;
	transition: transform 0.2s ease;
}

.products-filter-group[open] .products-filter-group__summary i {
	transform: rotate(180deg);
}

.products-filter-group__title {
	color: #1a1a1a;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.products-filter-group__body {
	padding: 0 0 1.2rem;
}

.products-filter-links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}

.products-filter-links a {
	color: #222222;
	font-size: 0.98rem;
	line-height: 1.35;
}

.products-filter-links a:hover {
	color: hsl(var(--base));
}

.filter-overflow {
	max-height: 320px;
	overflow-y: auto;
	padding-right: 0.2rem;
}

.filter-overflow::-webkit-scrollbar {
	width: 4px;
	height: 4px;
}

.filter-overflow::-webkit-scrollbar-thumb {
	background-color: #dedede;
	border-radius: 999px;
}

.filter-overflow::-webkit-scrollbar-track {
	background: transparent;
}

.widget-check-group {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	margin-bottom: 0.82rem;
}

.widget-check-group:last-child {
	margin-bottom: 0;
}

.widget-check-group input {
	width: 14px;
	height: 14px;
	position: relative;
	border: none;
	flex: 0 0 14px;
}

.widget-check-group input::after {
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	content: "\f00c";
	position: absolute;
	background: #ffffff;
	color: #ffffff;
	font-weight: 600;
	z-index: 1;
	font-family: "Line Awesome Free";
	border: 1px solid #a2a2a2;
	font-size: 10px;
	line-height: 12px;
	text-align: center;
	border-radius: 3px;
}

.widget-check-group input:checked::after {
	background: #111111;
	border-color: #111111;
}

.widget-check-group .form-check-input {
	margin-top: 0 !important;
}

.widget-check-group label {
	margin: 0;
	flex: 1 1 auto;
	padding-left: 0.7rem;
	font-size: 0.98rem;
	color: #1f1f1f;
	font-weight: 400;
	line-height: 1.3;
}

.products-filter-option-count {
	flex: 0 0 auto;
	margin-left: auto;
	color: #8c8c8c;
	font-size: 0.94rem;
	line-height: 1.2;
}

.products-price-range {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem 1.1rem;
	align-items: start;
}

.products-price-range__values {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.products-price-range__label {
	color: #6c6c6c;
	font-size: 0.76rem;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
}

.products-price-range__amount {
	color: #121212;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.products-price-range__values:last-child {
	text-align: right;
	justify-items: end;
}

#slider-range {
	margin-top: 0.35rem;
	touch-action: none;
}

.products-filter-group .ui-widget.ui-widget-content {
	position: relative;
	height: 3px;
	border: 0;
	margin-right: 16px;
	margin-bottom: 0;
	background: transparent;
}

.products-filter-group .ui-widget.ui-widget-content::after {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	height: 3px;
	width: calc(100% + 16px);
	background: rgba(17, 17, 17, 0.12);
}

.products-filter-group .ui-slider-range {
	height: 3px;
	background: #111111;
	position: relative;
	z-index: 1;
}

.products-filter-group .ui-state-default {
	position: absolute;
	top: -8px;
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 999px;
	background: #111111;
	box-shadow: none;
	cursor: pointer;
	touch-action: none;
}

.products-filter-group .ui-state-default::after {
	display: none;
}

.product-size-filter {
	display: grid;
	gap: 0.2rem;
}

.select-color {
	flex-shrink: 0;
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	position: relative;
	isolation: isolate;
	background: hsl(var(--light-3));
	outline: 1px solid hsl(var(--border));
	outline-offset: 2px;
	cursor: pointer;
}

.select-color:has(.select-color__input:checked)::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 11px;
	background: white;
	width: 2px;
	height: 2px;
	box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
	transform: rotate(45deg);
}

.select-color__input {
	height: 0;
	visibility: hidden;
	opacity: 0;
}

.products-container {
	min-width: 0;
}

.products-toolbar {
	display: grid;
	gap: 0.85rem;
	margin-bottom: 1rem;
}

.products-toolbar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.products-toolbar__count {
	color: #8c8c8c;
	font-size: 0.84rem;
	line-height: 1.2;
}

.products-active-filters {
	margin-bottom: 1rem;
	padding-bottom: 0.2rem;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.products-active-filters__chips {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.products-active-filters__chip {
	padding: 0.45rem 0.72rem;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border: 1px solid rgba(17, 17, 17, 0.1);
	border-radius: 999px;
	background: #f7f7f7;
	color: #2b2b2b;
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1.2;
}

.products-active-filters__chip i {
	font-size: 0.78rem;
	color: #7d7d7d;
}

.products-active-filters__clear {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #7b7b7b;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: underline;
}

.products-toolbar__sort {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

.products-toolbar__sort label {
	margin: 0;
	color: #272727;
	font-size: 1rem;
	font-weight: 400;
}

.products-sort-dropdown {
	position: relative;
	min-width: 220px;
}

.products-sort-dropdown__toggle {
	min-width: 220px;
	justify-content: space-between;
}

.products-sort-dropdown__toggle i {
	font-size: 0.82rem;
	color: #5f5f5f;
	transition: transform 0.2s ease;
}

.products-sort-dropdown.is-open .products-sort-dropdown__toggle i {
	transform: rotate(180deg);
}

.products-sort-dropdown__menu {
	position: absolute;
	top: calc(100% + 0.55rem);
	left: 0;
	right: 0;
	padding: 0.45rem 0;
	border: 1px solid rgba(17, 17, 17, 0.14);
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 18px 34px rgba(17, 17, 17, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 20;
}

.products-sort-dropdown.is-open .products-sort-dropdown__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.products-sort-dropdown__option {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 0;
	background: #ffffff;
	color: #181818;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.products-sort-dropdown__option:hover,
.products-sort-dropdown__option.is-active {
	background: rgba(17, 17, 17, 0.04);
	color: #111111;
}

.products-toolbar__button {
	width: 100%;
	height: 48px;
	padding: 0.75rem 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	border: 1px solid rgba(17, 17, 17, 0.14);
	border-radius: 8px;
	background: #ffffff;
	color: #181818;
	font-size: 0.98rem;
	font-weight: 500;
}

.products-toolbar__button:hover {
	color: #181818;
}

.page-main-content {
	min-width: 0;
}

.products-page__showcase-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.products-page__empty {
	grid-column: 1 / -1;
}

.list-view-active {
	flex: 0 0 100%;
	max-width: 100%;
}

.list-view-active .product-card {
	display: flex;
	flex-wrap: wrap;
	padding: 15px;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 5px;
}

.list-view-active .product-card .product-thumb {
	width: 240px;
	position: relative;
	display: flex;
	aspect-ratio: auto;
	background: transparent;
}

.list-view-active .product-card .product-thumb a {
	height: 100%;
}

.list-view-active .product-card .product-thumb img {
	height: 100%;
	object-fit: cover;
}

.list-view-active .product-card .product-thumb .product-card-buttons {
	opacity: 1;
	transform: translate(0);
}

.list-view-active .product-card .product-thumb .product-card-buttons li {
	transform: translate(0);
}

.list-view-active .product-card .product-content {
	width: calc(100% - 240px);
	padding-left: 24px;
	padding-top: 0;
}

.list-view-active .product-card:hover .product-before-content {
	transform: translateY(0);
}

.list-view-active .single_content {
	padding-top: 20px;
	padding-bottom: 0;
	display: block !important;
}

.list-view-active .product-card .ratings-area {
	display: block !important;
}

.list-view-active .product-card .product-content .product-after-content {
	position: relative;
	opacity: 1;
	transform: scale(1);
	text-align: left;
}

.list-view-active .product-card .product-content .product-after-content .price {
	display: none;
}

.list-view-active .single_content__info {
	flex-direction: column-reverse;
}

.list-view-active .add-to-cart-btn {
	width: unset;
}

@media (max-width: 1199px) {
	.product-shop {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}

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

	.category-sidebar {
		position: fixed;
		left: 0;
		top: 0 !important;
		width: 100%;
		max-width: 100%;
		height: 100dvh;
		padding: 56px 16px 24px;
		background: #ffffff;
		z-index: 99999;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.28s ease;
	}

	.category-sidebar.active {
		transform: translateX(0);
	}

	.product-filter-form {
		position: static;
	}

	.close-sidebar {
		position: absolute;
		top: 14px;
		right: 14px;
		padding: 0;
		border: 0;
		background: transparent;
		color: rgba(17, 17, 17, 0.7) !important;
		font-size: 1.4rem;
	}
}

@media (min-width: 1200px) {
	.products-toolbar__count--mobile {
		display: none;
	}
}

@media (max-width: 767px) {
	.products-page__title {
		max-width: 8ch;
		font-size: clamp(2.1rem, 10vw, 3.3rem);
	}

	.products-toolbar__row--mobile {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.products-toolbar__sort {
		width: 100%;
	}

	.products-toolbar__sort label {
		display: none;
	}

	.products-sort-dropdown {
		width: 100%;
		min-width: 0;
	}

	.products-sort-dropdown__toggle {
		min-width: 0;
	}

	.products-toolbar__count--mobile {
		display: block;
		margin-bottom: 0.7rem;
		padding-bottom: 0.25rem;
	}

	.products-active-filters {
		margin-bottom: 0.85rem;
		flex-direction: column;
		align-items: flex-start;
	}

	.products-active-filters__clear {
		align-self: flex-end;
		font-size: 0.88rem;
	}

	.list-view-active .product-card .product-thumb {
		width: 200px;
	}

	.list-view-active .product-card .product-content {
		width: calc(100% - 200px);
		padding-left: 12px;
	}
}

@media (max-width: 575px) {
	.products-page {
		padding-top: 1rem;
	}

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

	.products-page__header {
		margin-bottom: 1.35rem;
	}

	.products-toolbar {
		margin-bottom: 0.7rem;
	}

	.products-toolbar__row--mobile {
		gap: 0.75rem;
	}

	.products-toolbar__button,
	.products-sort-dropdown__toggle {
		height: 44px;
		font-size: 0.94rem;
	}

	.products-sort-dropdown__menu {
		top: calc(100% + 0.45rem);
	}

	.products-filter-group__summary {
		padding: 0.95rem 0;
	}

	.products-filter-group__title {
		font-size: 0.78rem;
	}

	.products-price-range {
		gap: 0.75rem;
	}

	.products-price-range__label {
		font-size: 0.82rem;
	}

	.products-price-range__amount {
		font-size: 0.94rem;
	}

	.list-view-active .product-card .product-thumb,
	.list-view-active .product-card .product-content {
		width: 100%;
		padding: 0;
	}
}
