/**
 * Shop / product archive — Rood Cycle Center
 */

/* ── Avada content chrome (geen top-margin op shop) ─────────── */

body.rcc-shop-page #main,
body.rcc-shop-page #content,
body.rcc-shop-page .post-content,
body.rcc-shop-page .woocommerce {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.rcc-shop-page .post-content > .fusion-fullwidth:first-child,
body.rcc-shop-page .fusion-builder-row .fusion-column-wrapper {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* ── Hero (full-bleed) ──────────────────────────────────────── */

.rcc-shop-page {
	overflow-x: clip;
}

.rcc-shop-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	background: color-mix(in srgb, var(--brand-soft) 60%, transparent);
	border-bottom: 1px solid var(--border);
}

.rcc-shop-hero__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 48px var(--container-px);
	box-sizing: border-box;
}

.rcc-breadcrumb {
	font-size: 12px;
	color: var(--muted-foreground);
	margin-bottom: 12px;
}

.rcc-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.rcc-breadcrumb a:hover {
	color: var(--primary);
}

.rcc-shop-hero h1 {
	margin: 0;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--foreground);
}

.rcc-shop-hero p,
.rcc-shop-hero .term-description {
	max-width: 640px;
	margin: 8px 0 0;
	color: var(--muted-foreground);
	font-size: 16px;
	line-height: 1.5;
}

/* ── Layout ─────────────────────────────────────────────────── */

.rcc-shop__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 40px var(--container-px);
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.rcc-shop__inner {
		grid-template-columns: 260px 1fr;
		align-items: start;
	}
}

.rcc-shop__main {
	min-width: 0;
}

.rcc-shop__results.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity var(--transition);
}

/* ── Drawer / filters shell ─────────────────────────────────── */

.rcc-drawer {
	display: block;
}

.rcc-drawer__overlay,
.rcc-drawer__top {
	display: none;
}

.rcc-drawer__panel {
	position: sticky;
	top: calc(var(--rc-top-height, 80px) + var(--rc-nav-height, 48px) + 16px);
}

@media (max-width: 1023px) {
	.rcc-drawer {
		position: fixed;
		inset: 0;
		z-index: 50;
		display: none;
	}

	.rcc-drawer[open],
	.rcc-drawer.is-open {
		display: block;
	}

	.rcc-drawer__overlay {
		display: block;
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		border: 0;
		padding: 0;
		cursor: pointer;
	}

	.rcc-drawer__panel {
		position: absolute;
		inset-block: 0;
		inset-inline-start: 0;
		width: 320px;
		max-width: 85%;
		background: var(--background);
		padding: 24px;
		overflow-y: auto;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
		display: flex;
		flex-direction: column;
		top: auto;
	}

	.rcc-drawer__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 16px;
	}

	.rcc-drawer__title {
		font-size: 13px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.08em;
	}

	.rcc-drawer__close {
		border: 0;
		background: none;
		padding: 8px;
		border-radius: var(--radius-pill);
		color: var(--foreground);
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.rcc-drawer__close:hover {
		background: var(--secondary);
	}

	.rcc-filters__header h2 {
		/* Title shown in drawer top on mobile */
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}
}

body.rcc-filters-open {
	overflow: hidden;
}

/* ── Filters ────────────────────────────────────────────────── */

.rcc-filters__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	gap: 12px;
}

.rcc-filters__header h2 {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--foreground);
}

.rcc-filters__clear {
	font-size: 12px;
	font-weight: 600;
	color: var(--primary);
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.rcc-filters__clear:hover {
	text-decoration: underline;
}

.rcc-filter-group {
	border: 0;
	padding: 0;
	margin: 0 0 32px;
	min-width: 0;
}

.rcc-filter-group legend {
	font-size: 14px;
	font-weight: 600;
	color: var(--foreground);
	margin-bottom: 12px;
	padding: 0;
	float: none;
	width: 100%;
}

.rcc-filter-group legend [data-price-max] {
	font-weight: 500;
	color: var(--muted-foreground);
	margin-left: 4px;
}

.rcc-filter-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--foreground-80);
	padding: 4px 0;
	cursor: pointer;
}

.rcc-filter-group label:hover {
	color: var(--foreground);
}

.rcc-filter-group input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--primary);
	border-radius: 4px;
	flex-shrink: 0;
}

.rcc-filter-group input[type="range"] {
	width: 100%;
	accent-color: var(--primary);
}

.rcc-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--muted-foreground);
	margin-top: 4px;
}

/* ── Toolbar ────────────────────────────────────────────────── */

.rcc-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
	width: 100%;
}

.rcc-toolbar__left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.rcc-toolbar__right {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
	flex-wrap: wrap;
}

/* ── Sale toggle ────────────────────────────────────────────── */

.rcc-sale-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.rcc-sale-toggle__label {
	font-size: 14px;
	font-weight: 500;
	color: var(--muted-foreground);
	white-space: nowrap;
}

.rcc-sale-toggle__track {
	position: relative;
	display: block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	border-radius: var(--radius-pill);
	background: var(--border);
	transition: background-color 200ms ease;
}

.rcc-sale-toggle__thumb {
	position: absolute;
	top: 2px;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: var(--radius-pill);
	background: var(--background);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	transform: translateX(2px);
	transition: transform 200ms ease;
}

.rcc-sale-toggle.is-on .rcc-sale-toggle__track,
.rcc-sale-toggle[aria-checked="true"] .rcc-sale-toggle__track {
	background: var(--primary);
}

.rcc-sale-toggle.is-on .rcc-sale-toggle__thumb,
.rcc-sale-toggle[aria-checked="true"] .rcc-sale-toggle__thumb {
	transform: translateX(20px);
}

.rcc-sale-toggle:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.rcc-sale-toggle__track,
	.rcc-sale-toggle__thumb {
		transition-duration: 0ms;
	}
}

.rcc-mobile-filter-btn {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--border);
	background: var(--card);
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 600;
	color: var(--foreground);
	cursor: pointer;
}

.rcc-mobile-filter-btn .rc-icon {
	width: 16px;
	height: 16px;
}

.rcc-mobile-filter-btn__count,
.rcc-badge.rcc-mobile-filter-btn__count {
	position: static;
	background: var(--primary);
	color: var(--primary-foreground);
	border-radius: var(--radius-pill);
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.rcc-result-count,
.woocommerce-result-count.rcc-result-count {
	margin: 0;
	font-size: 14px;
	color: var(--muted-foreground);
	float: none;
}

.rcc-shop .woocommerce-ordering.rcc-orderby,
.rcc-orderby {
	display: flex !important;
	align-items: center;
	margin: 0 !important;
	float: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.rcc-orderby__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

.rcc-orderby__text {
	font-size: 14px;
	font-weight: 500;
	color: var(--muted-foreground);
	white-space: nowrap;
}

@media (max-width: 639px) {
	.rcc-orderby__text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

.rcc-orderby select,
.rcc-orderby .orderby {
	border: 1px solid var(--border);
	background-color: var(--card);
	border-radius: var(--radius-pill);
	padding: 8px 36px 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--foreground);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	min-width: 160px;
}

.rcc-orderby select:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--primary);
}

@media (max-width: 1023px) {
	.rcc-mobile-filter-btn {
		display: inline-flex;
	}
}

/* ── Product grid & card ────────────────────────────────────── */

.rcc-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1024px) {
	.rcc-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.rcc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--card);
	border-radius: var(--radius-2xl);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
	margin: 0;
	padding: 0;
	width: auto;
	float: none;
}

.rcc-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card);
}

.rcc-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #ffffff;
	overflow: hidden;
}

.rcc-card__media-link {
	display: block;
	width: 100%;
	height: 100%;
}

.rcc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 16px;
	transition: transform 0.5s var(--ease);
}

.rcc-card:hover .rcc-card__media img {
	transform: scale(1.05);
}

.rcc-card .rcc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	border-radius: var(--radius-pill);
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rcc-badge--sale {
	background: var(--primary);
	color: var(--primary-foreground);
}

.rcc-badge--nieuw {
	background: var(--foreground);
	color: var(--background);
}

.rcc-badge--top,
.rcc-badge--bestseller {
	background: var(--gold);
	color: var(--foreground);
}

.rcc-card__wishlist {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--foreground-70, var(--foreground-75));
	cursor: pointer;
	text-decoration: none;
	transition: background var(--transition), color var(--transition);
}

.rcc-card__wishlist .rc-icon {
	width: 18px;
	height: 18px;
}

.rcc-card__wishlist:hover {
	background: #fff;
	color: var(--primary);
}

.rcc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}

.rcc-card__brand {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.rcc-card__title {
	margin: 4px 0 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.rcc-card__title a {
	color: var(--foreground);
	text-decoration: none;
}

.rcc-card__title a:hover {
	color: var(--primary);
}

.rcc-card__price {
	margin-top: 12px;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.rcc-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--foreground);
}

.rcc-price--old {
	font-size: 14px;
	color: var(--muted-foreground);
	text-decoration: line-through;
}

.rcc-price .woocommerce-Price-amount,
.rcc-price--old .woocommerce-Price-amount {
	font-weight: inherit;
}

.rcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	margin-top: 16px;
	border: 0;
	cursor: pointer;
	transition: background var(--transition);
}

.rcc-btn .rc-icon {
	width: 16px;
	height: 16px;
}

.rcc-btn--primary {
	background: var(--primary);
	color: var(--primary-foreground);
}

.rcc-btn--primary:hover {
	background: var(--primary-90);
	color: var(--primary-foreground);
}

/* ── Empty / pagination ─────────────────────────────────────── */

.rcc-empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--muted-foreground);
	border: 1px dashed var(--border);
	border-radius: var(--radius-2xl);
}

.rcc-empty p {
	margin: 0;
	font-size: 16px;
}

.rcc-pagination,
.rcc-shop .woocommerce-pagination {
	margin-top: 32px;
	text-align: center;
}

.rcc-shop .woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.rcc-shop .woocommerce-pagination ul.page-numbers li {
	margin: 0;
	border: 0;
	float: none;
}

.rcc-shop .woocommerce-pagination ul.page-numbers a,
.rcc-shop .woocommerce-pagination ul.page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--card);
	color: var(--foreground);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	line-height: 1;
}

.rcc-shop .woocommerce-pagination ul.page-numbers a:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.rcc-shop .woocommerce-pagination ul.page-numbers span.current {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-foreground);
}

/* ── Kill default WC product list chrome on this page ───────── */

.rcc-shop-page ul.products,
.rcc-shop-page .products {
	margin: 0;
	padding: 0;
}

.rcc-shop-page .rcc-card::before,
.rcc-shop-page .rcc-card::after {
	display: none;
}
