/*
 * Shop- og kategorisider: top (brødkrumme, H1, intro, pills) og
 * værktøjslinje (filtre + sortering). Se inc/shop-archive.php.
 */

/* Brødkrumme. */
.bb-breadcrumb {
	margin-bottom: 3rem;
	font-size: 0.75rem;
	font-weight: 300;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bb-text-secondary);
}

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

.bb-breadcrumb a:hover {
	color: var(--theme-palette-color-2);
}

/* H1 + intro til venstre, pills til højre. */
.bb-archive-header {
	margin-bottom: 3.5rem;
}

.bb-archive-header__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
}

.bb-archive-header__text {
	max-width: 35rem;
}

.bb-archive-header__title {
	margin: 0 0 1.25rem;
}

.bb-archive-header__intro,
.bb-archive-header__intro p {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--theme-palette-color-3);
}

.bb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.bb-pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1.25rem;
	border: 1px solid var(--bb-border-pill);
	font-size: 0.8125rem;
	color: var(--theme-palette-color-4);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.bb-pill:hover {
	border-color: var(--theme-palette-color-4);
	color: var(--theme-palette-color-4);
}

.bb-pill.is-current {
	border-color: var(--theme-palette-color-4);
	background: var(--theme-palette-color-4);
	color: var(--theme-palette-color-7);
}

/* Værktøjslinje: streg over og under, sortering til højre. */
.woo-listing-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	min-height: 74px;
	margin-bottom: 3rem;
	padding: 0 1rem;
	border-top: 1px solid var(--theme-palette-color-5);
	border-bottom: 1px solid var(--theme-palette-color-5);
}

.bb-sort-label {
	font-size: 0.8125rem;
	font-weight: 300;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--theme-palette-color-4);
}

.woo-listing-top .woocommerce-ordering {
	margin: 0;
}

.woo-listing-top .woocommerce-ordering select {
	min-height: 44px;
	width: auto;
	padding: 0 1.75rem 0 0;
	border: 0;
	background-color: transparent;
	background-position: right center;
	font-family: var(--bb-font-sans);
	font-size: 0.8125rem;
	font-weight: 300;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--theme-palette-color-4);
	box-shadow: none;
	cursor: pointer;
}

/* Blocksys ekstra sorteringsikon på mobil: vi viser allerede feltet. */
.woo-listing-top .ct-sort-icon {
	display: none;
}

/* "Vis flere". */
.ct-pagination[data-pagination="load_more"] {
	margin-top: 5rem;
	text-align: center;
}

.ct-pagination .ct-load-more {
	min-height: 52px;
	padding: 0 3rem;
	border: 1px solid var(--theme-palette-color-4);
	border-radius: 0;
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--theme-palette-color-4);
}

.ct-pagination .ct-load-more:hover {
	background: var(--theme-palette-color-4);
	color: var(--theme-palette-color-7);
}

@media (max-width: 689.98px) {
	.bb-breadcrumb {
		margin-bottom: 2rem;
	}

	.bb-archive-header__title {
		font-size: 2.75rem;
	}

	.bb-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-right: calc(-1 * var(--theme-content-edge-spacing, 6vw));
		padding-right: var(--theme-content-edge-spacing, 6vw);
		scrollbar-width: none;
	}

	.bb-pill {
		flex: none;
	}

	.woo-listing-top {
		padding: 0;
	}
}
