/**
 * Shop / category archive — Figma 153:547
 */

.shop-main {
	padding-top: 24px;
	padding-bottom: 64px;
}

.shop-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.shop-breadcrumb {
	font-size: 13px;
	line-height: 20px;
	color: var(--color-ink-500);
}

.shop-breadcrumb a:hover {
	text-decoration: underline;
	color: var(--color-neutral-900);
}

.shop-header {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.shop-header__kicker {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 34px;
	color: var(--color-ink-900);
}

.shop-header__title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 34px;
}

.shop-header--brand .shop-header__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 26px;
}

.shop-seo__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 1098px;
}

.shop-seo__sub {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 24px;
	color: var(--color-ink-900);
}

.shop-intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 1098px;
}

.shop-intro__heading {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 26px;
}

.shop-intro__clip,
.shop-seo__clip {
	position: relative;
	max-height: 104px;
	overflow: hidden;
}

.shop-intro.is-expanded .shop-intro__clip,
.shop-seo.is-expanded .shop-seo__clip {
	max-height: none;
	overflow: visible;
}

.shop-seo__clip {
	max-height: 472px;
}

.shop-intro__clip::after,
.shop-seo__clip::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 64px;
	background: linear-gradient(to bottom, rgba(250, 250, 255, 0), var(--surface-page, #fafaff));
	pointer-events: none;
}

.shop-intro.is-expanded .shop-intro__clip::after,
.shop-seo.is-expanded .shop-seo__clip::after {
	display: none;
}

.shop-intro__text {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	color: var(--color-ink-700);
}

.shop-intro__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--color-neutral-900);
	cursor: pointer;
	width: fit-content;
}

.shop-intro__more:hover {
	text-decoration: underline;
}

.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--color-border-subtle);
}

.shop-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.shop-toolbar__filters {
	display: none;
}

.shop-filters__sheet-head,
.shop-filters__sheet-actions {
	display: none;
}

.shop-toolbar__count {
	margin: 0;
	font-size: 13px;
	line-height: 20px;
	color: var(--color-ink-500);
}

.shop-toolbar__select {
	width: 240px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--color-ink-300);
	border-radius: 8px;
	background: var(--color-neutral-0);
	font-family: inherit;
	font-size: 15px;
	line-height: 24px;
	color: var(--color-neutral-900);
	appearance: none;
	background-image: url("../images/icon-chevron-down.svg");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 7px;
}

.shop-layout {
	display: grid;
	grid-template-columns: 288px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.shop-layout--search {
	grid-template-columns: 1fr;
}

.shop-header--search .shop-toolbar {
	border-top: none;
	padding: 0;
}

.shop-search-hint {
	margin: 24px 0 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	text-align: center;
}

.shop-search-hint a {
	display: block;
	color: var(--brand-rose);
}

.shop-search-hint a:hover {
	color: var(--brand-rose-dark);
	text-decoration: underline;
}

.shop-results .products {
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 24px;
}

.shop-empty {
	margin: 0;
	font-size: 16px;
	line-height: 26px;
	color: var(--color-ink-700);
}

/* Filters */
.shop-filters {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.shop-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
}

.shop-filters__title {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: 0.04em;
}

.shop-filters__reset {
	display: inline-flex;
	align-items: center;
	height: 40px;
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.shop-filters__reset:hover {
	text-decoration: underline;
}

.shop-filters__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 0;
	border: none;
	border-bottom: 1px solid var(--color-border-subtle);
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	text-align: left;
	color: var(--color-neutral-900);
	cursor: pointer;
}

.shop-filters__chevron {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.shop-filters__chevron--up {
	display: none;
}

.shop-filters__group.is-open .shop-filters__chevron--up {
	display: block;
}

.shop-filters__group.is-open .shop-filters__chevron--down {
	display: none;
}

.shop-filters__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0 20px;
}

.shop-filters__check {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.shop-filters__check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.shop-filters__box {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 1px solid var(--color-ink-300);
	border-radius: 4px;
	background: var(--color-neutral-0);
}

.shop-filters__check input:checked + .shop-filters__box {
	background: var(--color-neutral-900);
	border-color: var(--color-neutral-900);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2 6l3 3 5-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px;
}

.shop-filters__label {
	font-size: 15px;
	line-height: 24px;
	color: var(--color-ink-700);
}

.shop-filters__price {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
}

.shop-filters__price-title {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
}

.shop-filters__range {
	position: relative;
	height: 16px;
}

.shop-filters__range input[type="range"] {
	position: absolute;
	left: 0;
	width: 100%;
	margin: 0;
	pointer-events: none;
	appearance: none;
	background: transparent;
	height: 16px;
}

.shop-filters__range input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: var(--color-border-subtle);
	border-radius: 2px;
}

.shop-filters__range input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	margin-top: -6px;
	border-radius: 50%;
	background: var(--color-neutral-900);
	border: 2px solid var(--color-neutral-0);
	box-shadow: 0 0 0 1px var(--color-neutral-900);
	cursor: pointer;
}

.shop-filters__price-values {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
}

.shop-pagination {
	margin-top: 40px;
}

.shop-pagination .woocommerce-pagination,
.shop-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: flex-end;
}

.shop-pagination li {
	margin: 0;
	list-style: none;
}

.shop-pagination a,
.shop-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--color-border-subtle);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

.shop-pagination .current {
	background: var(--color-neutral-900);
	border-color: var(--color-neutral-900);
	color: var(--color-neutral-0);
}

.shop-seo {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border-subtle);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media (max-width: 1023px) {
	.shop-layout {
		grid-template-columns: 1fr;
	}

	.shop-breadcrumb {
		display: none;
	}

	.shop-header__kicker {
		display: none;
	}

	.shop-header__title,
	.shop-header--brand .shop-header__title {
		font-size: 21px;
		font-weight: 600;
		line-height: 28px;
	}

	.shop-header--brand .shop-intro__text {
		color: var(--color-ink-500);
	}

	.shop-intro__heading,
	.shop-intro__more {
		display: none;
	}

	.shop-intro__clip {
		max-height: 40px;
	}

	.shop-intro__text {
		font-size: 13px;
		line-height: 20px;
	}

	.shop-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		border-top: none;
		padding: 0;
	}

	.shop-toolbar__actions {
		order: -1;
		width: 100%;
	}

	.shop-toolbar__filters {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 120px;
		width: 120px;
		height: 40px;
		padding: 0;
		border: 1px solid var(--border-muted);
		border-radius: 8px;
		background: var(--surface-white);
		font-family: inherit;
		font-size: 11px;
		font-weight: 700;
		line-height: 14px;
		letter-spacing: 0.8px;
		text-transform: uppercase;
		color: var(--ink-700);
		cursor: pointer;
	}

	.shop-toolbar__sort {
		flex: 1 1 auto;
		min-width: 0;
	}

	.shop-toolbar__select {
		width: 100%;
	}

	.shop-sidebar {
		position: fixed;
		inset: 0;
		z-index: 10040;
		display: none;
		background: rgba(28, 28, 31, 0.5);
	}

	html.is-shop-filters-open {
		overflow: hidden;
	}

	html.is-shop-filters-open .shop-sidebar {
		display: block;
	}

	.shop-filters {
		position: absolute;
		top: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		width: 340px;
		max-width: calc(100% - 25px);
		height: 100%;
		background: var(--surface-white);
	}

	.shop-filters__sheet-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-shrink: 0;
		padding: 16px 20px;
		border-bottom: 1px solid var(--border-subtle);
	}

	.shop-filters__sheet-title {
		margin: 0;
		font-size: 16px;
		font-weight: 600;
		line-height: 24px;
		color: var(--ink-900);
	}

	.shop-filters__sheet-close {
		margin: 0;
		padding: 0;
		border: none;
		background: none;
		font-size: 16px;
		font-weight: 500;
		line-height: 24px;
		color: var(--ink-900);
		cursor: pointer;
	}

	.shop-filters__head {
		display: none;
	}

	.shop-filters__scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		padding: 8px 20px 0;
	}

	.shop-filters__sheet-actions {
		display: flex;
		flex-direction: column;
		gap: 8px;
		flex-shrink: 0;
		padding: 12px 20px 16px;
		border-top: 1px solid var(--border-subtle);
		background: var(--surface-white);
	}

	.shop-filters__apply {
		width: 100%;
		height: 52px;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 0.8px;
	}

	.shop-filters__clear {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 52px;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 600;
		line-height: 20px;
		letter-spacing: 0.8px;
		text-transform: uppercase;
		color: var(--ink-900);
	}

	.shop-results .products {
		gap: 12px;
	}

	.shop-pagination {
		margin-top: 24px;
	}

	.shop-pagination ul {
		flex-wrap: nowrap;
		justify-content: center;
		gap: 6px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.shop-pagination ul::-webkit-scrollbar {
		display: none;
	}

	.shop-pagination a,
	.shop-pagination span {
		box-sizing: border-box;
		width: 40px;
		min-width: 40px;
		max-width: 40px;
		padding: 0;
		font-size: 16px;
		font-weight: 500;
		line-height: 24px;
	}
}
