/**
 * Shop / category archive layout + filters.
 */

.rr-shop {
	width: 100%;
	padding: 0 0 5rem;
}

.rr-shop__inner {
	width: min(100%, var(--container-width, 1320px));
	margin-inline: auto;
	padding-inline: var(--page-gutter, 1.5rem);
}

.rr-shop__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 0;
	font-family: var(--font-family-mono, "Roboto Mono", ui-monospace, monospace);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--color-text-faint, #8a847c);
}

.rr-shop__breadcrumbs a {
	color: var(--color-text-faint, #8a847c);
	text-decoration: none;
}

.rr-shop__breadcrumbs a:hover {
	color: var(--color-ink, #141414);
}

.rr-shop__crumb-sep {
	color: var(--color-text-faint, #8a847c);
}

.rr-shop__header {
	margin: 0.375rem 0 1.75rem;
}

.rr-shop__title {
	margin: 0 0 0.5rem;
	font-family: var(--font-family-heading, "Inter Tight", system-ui, sans-serif);
	font-weight: 800;
	font-size: clamp(2rem, 1.5vw + 1.5rem, 2.5rem);
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--color-ink, #141414);
}

.rr-shop__description {
	max-width: 40rem;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--color-text-muted, #6b655e);
}

.rr-shop__description p {
	margin: 0;
}

.rr-shop__layout {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 2.25rem;
	align-items: start;
}

.rr-shop__filters-bar {
	display: none;
}

.rr-shop__filters {
	position: sticky;
	top: 5.5rem;
}

.rr-shop__filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.rr-shop__filters-title {
	font-family: var(--font-family-heading, "Inter Tight", system-ui, sans-serif);
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--color-ink, #141414);
}

.rr-shop__filters-reset {
	font-size: 0.78125rem;
	font-weight: 600;
	color: var(--color-brand, #e11827);
	text-decoration: none;
}

.rr-shop__filters-reset:hover {
	text-decoration: underline;
}

.rr-shop__filter-section {
	padding: 1.25rem 0;
	border-top: 1px solid var(--color-border, #eceae7);
}

.rr-shop__filter-section:last-of-type {
	border-bottom: 0;
}

.rr-shop__filter-label {
	margin-bottom: 0.875rem;
	font-family: var(--font-family-mono, "Roboto Mono", ui-monospace, monospace);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-text-faint, #8a847c);
}

.rr-shop__filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.rr-shop__filter-list[data-rr-category-filters] {
	margin-left: -1.15rem;
	padding-left: 1.15rem;
	overflow: visible;
}

.rr-shop__filter-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.rr-shop__filter-row {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

.rr-shop__filter-toggle {
	position: absolute;
	left: -1.15rem;
	top: 50%;
	z-index: 1;
	width: 1.15rem;
	height: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: -0.75rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--color-ink, #141414);
	cursor: pointer;
}

.rr-shop__filter-toggle:hover,
.rr-shop__filter-toggle:focus-visible {
	background: transparent;
	outline: none;
	opacity: 0.7;
}

.rr-shop__filter-toggle span {
	display: block;
	width: 0.45rem;
	height: 0.45rem;
	margin-top: -0.1rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}

.rr-shop__filter-item[aria-expanded="true"] > .rr-shop__filter-row .rr-shop__filter-toggle span {
	margin-top: 0.1rem;
	transform: rotate(45deg);
}

.rr-shop__filter-children {
	display: none;
	margin: 0 0 0 1.125rem;
	padding: 0.15rem 0 0.15rem 0.75rem;
	border-left: 1px solid #ebe7e2;
	gap: 0.55rem;
}

.rr-shop__filter-item[aria-expanded="true"] > .rr-shop__filter-children {
	display: flex;
	flex-direction: column;
}

.rr-shop__filter-children .rr-shop__check {
	font-size: 0.84375rem;
}

.rr-shop__check {
	display: flex;
	align-items: center;
	gap: 0.6875rem;
	flex: 1;
	min-width: 0;
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--color-text, #3a352f);
	user-select: none;
}

.rr-shop__filter-section > .rr-shop__check + .rr-shop__check {
	margin-top: 0.75rem;
}

.rr-shop__check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.rr-shop__check-box {
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #d5d0ca;
	border-radius: 5px;
	background: #fff;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1;
}

.rr-shop__check input:checked + .rr-shop__check-box {
	border-color: var(--color-brand, #e11827);
	background: var(--color-brand, #e11827);
}

.rr-shop__check input:checked + .rr-shop__check-box::before {
	content: "✓";
	font-weight: 700;
}

.rr-shop__check input:focus-visible + .rr-shop__check-box {
	outline: 2px solid var(--color-brand, #e11827);
	outline-offset: 2px;
}

.rr-shop__check-text {
	flex: 1;
	min-width: 0;
}

.rr-shop__check-count {
	color: #b0aaa2;
	font-size: 0.78125rem;
}

.rr-shop__price-slider {
	position: relative;
	height: 28px;
	margin: 0.75rem 0.35rem 0.85rem;
	touch-action: none;
	user-select: none;
}

.rr-shop__price-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 4px;
	transform: translateY(-50%);
	border-radius: 2px;
	background: var(--color-border, #eceae7);
	cursor: pointer;
}

.rr-shop__price-range {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	border-radius: 2px;
	background: var(--color-brand, #e11827);
	pointer-events: none;
}

.rr-shop__price-handle {
	position: absolute;
	top: 50%;
	left: 0;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--color-ink, #141414);
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
	cursor: grab;
	appearance: none;
	box-shadow: 0 1px 2px rgb(20 20 20 / 0.12);
	z-index: 2;
}

.rr-shop__price-handle:hover,
.rr-shop__price-handle:focus-visible {
	border-color: var(--color-brand, #e11827);
	outline: none;
}

.rr-shop__price-handle.is-dragging {
	cursor: grabbing;
	z-index: 3;
	border-color: var(--color-brand, #e11827);
}

.rr-shop__price-labels {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: var(--color-text-muted, #6b655e);
	font-variant-numeric: tabular-nums;
}

.rr-shop__filters-apply {
	display: none !important;
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: 9px;
	background: var(--color-ink, #141414);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.rr-shop__filters-apply:hover {
	background: var(--color-brand, #e11827);
}

.rr-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.375rem;
}

.rr-shop__count {
	margin: 0;
	font-size: 0.875rem;
	color: var(--color-text-muted, #6b655e);
}

.rr-shop__count strong {
	color: var(--color-ink, #141414);
	font-weight: 700;
}

.rr-shop__sort {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.rr-shop__sort-label {
	font-size: 0.84375rem;
	color: var(--color-text-muted, #6b655e);
}

.rr-shop__sort-select {
	border: 1px solid var(--color-border, #eceae7);
	border-radius: 8px;
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
	background: #fff;
	color: var(--color-ink, #141414);
	cursor: pointer;
}

.rr-shop .products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.125rem;
	list-style: none;
	margin: 0;
	padding: 0;
	clear: none;
}

.rr-shop .products::before,
.rr-shop .products::after {
	display: none !important;
	content: none !important;
}

.rr-shop .products .rr-shop__item.product,
.rr-shop .products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	text-align: left !important;
}

.rr-shop .products .rr-product-card {
	height: 100%;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

/* Kill leftover Woo loop chrome if a plugin re-injects it. */
.rr-shop .products .rr-shop__item > .woocommerce-LoopProduct-link,
.rr-shop .products .rr-shop__item > .onsale,
.rr-shop .products .rr-shop__item > .button,
.rr-shop .products .rr-shop__item > .price,
.rr-shop .products .rr-shop__item > .woocommerce-loop-product__title {
	display: none !important;
}

.rr-shop .rr-product-card__price,
.rr-shop .rr-product-card__price .amount,
.woocommerce .rr-shop .rr-product-card__price,
.woocommerce .rr-shop .rr-product-card__price .amount {
	color: var(--color-ink, #141414) !important;
}

.rr-shop .rr-product-card__price.is-sale,
.rr-shop .rr-product-card__price.is-sale .amount,
.rr-shop .rr-product-card__price:has(ins),
.rr-shop .rr-product-card__price:has(ins) .amount,
.woocommerce .rr-shop .rr-product-card__price.is-sale .amount {
	color: var(--color-brand, #e11827) !important;
}

.rr-shop .rr-product-card__add,
.woocommerce .rr-shop a.button.rr-product-card__add,
.woocommerce .rr-shop a.add_to_cart_button.rr-product-card__add {
	background: var(--color-ink, #141414) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
}

.rr-shop .woocommerce-pagination {
	margin-top: 3rem;
}

.rr-shop .woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.rr-shop .woocommerce-pagination ul li {
	margin: 0;
	border: 0;
	overflow: visible;
}

.rr-shop .woocommerce-pagination ul li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--color-border, #eceae7);
	border-radius: 8px;
	background: #fff;
	color: var(--color-ink, #141414);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
}

.rr-shop .woocommerce-pagination ul li .page-numbers:hover {
	border-color: #d5d0ca;
}

.rr-shop .woocommerce-pagination ul li .page-numbers.current {
	border-color: var(--color-ink, #141414);
	background: var(--color-ink, #141414);
	color: #fff;
}

.rr-shop .woocommerce-pagination ul li .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: #b0aaa2;
}

.rr-shop .woocommerce-pagination ul li a.next,
.rr-shop .woocommerce-pagination ul li a.prev {
	font-size: 1rem;
}

.rr-shop__empty {
	text-align: center;
	padding: 4rem 1.25rem;
	background: var(--color-sand, #f7f5f2);
	border-radius: 14px;
}

.rr-shop__empty-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-family-heading, "Inter Tight", system-ui, sans-serif);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--color-ink, #141414);
}

.rr-shop__empty-text {
	margin: 0 0 1.25rem;
	color: var(--color-text-muted, #6b655e);
}

.rr-shop__empty-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 9px;
	background: var(--color-ink, #141414);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.rr-shop__empty-reset:hover {
	background: var(--color-brand, #e11827);
	color: #fff;
}

@media (max-width: 1024px) {
	.rr-shop .products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.rr-shop__layout {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}

	.rr-shop__filters-bar {
		display: block;
	}

	.rr-shop__filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.7rem 1rem;
		border: 1px solid var(--color-border-strong, #e4e0db);
		border-radius: 9px;
		background: #fff;
		color: var(--color-ink, #141414);
		font-size: 0.875rem;
		font-weight: 600;
		cursor: pointer;
	}

	.rr-shop__filters-toggle[aria-expanded="true"] {
		border-color: var(--color-ink, #141414);
	}

	.rr-shop__filters-badge {
		min-width: 1.25rem;
		height: 1.25rem;
		padding: 0 0.35rem;
		border-radius: 999px;
		background: var(--color-brand, #e11827);
		color: #fff;
		font-size: 0.6875rem;
		font-weight: 700;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.rr-shop__filters {
		display: none;
		position: static;
		width: 100%;
		padding: 1rem 1.1rem 1.15rem;
		border: 1px solid var(--color-border, #eceae7);
		border-radius: 12px;
		background: #fff;
	}

	.rr-shop__filters.is-open {
		display: block;
	}

	.rr-shop__filters-apply {
		display: block !important;
	}

	.rr-shop__sort-label {
		display: none;
	}
}

@media (max-width: 480px) {
	.rr-shop .products {
		gap: 0.85rem;
	}
}
