/**
 * Categorie- en merkknoppen boven het productoverzicht.
 *
 * Wordt geladen door modules/woocommerce_category_buttons.php,
 * alleen op de shoppagina en categorie-archieven.
 *
 * @package Goedkope acties
 */

/* -------------------------------------------------------------------------
 * Compacte titelzone: minder witruimte, geen scheidingslijn
 * ---------------------------------------------------------------------- */

#primary {
	margin-top: 16px;
}

.ast-archive-description {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.ast-archive-description h1 {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * Breadcrumb boven de titel
 * ---------------------------------------------------------------------- */

.ga-breadcrumb {
	margin: 0 0 6px;
	font-size: 13px;
	color: #5a6b7d;
}

.ga-breadcrumb a {
	color: #5a6b7d;
	text-decoration: none;
}

.ga-breadcrumb a:hover {
	color: #f28c20;
}

.ga-breadcrumb:empty {
	display: none;
}

/* -------------------------------------------------------------------------
 * Kopjes boven de rijen ("CATEGORIEËN" / "MERKEN")
 * ---------------------------------------------------------------------- */

.ga-cat-head,
.ga-brand-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ga-cat-head {
	margin: 8px 0 6px;
}

.ga-brand-head {
	margin: 10px 0 6px;
}

.ga-cat-label,
.ga-brand-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a6b7d;
}

/* -------------------------------------------------------------------------
 * Rij 1: categorie-knoppen (outline, oranje rand, blauwe tekst)
 * ---------------------------------------------------------------------- */

.ga-cat-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 4px;
}

.ga-cat-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid #f28c20;
	border-radius: 3px;
	background: #fff;
	color: #1f3a56;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ga-cat-btn:hover {
	background: #f28c20;
	color: #fff;
}

.ga-cat-btn__count {
	padding: 2px 6px;
	border-radius: 999px;
	background: #f0f5fa;
	color: #1f3a56;
	font-size: 0.78em;
	font-weight: 700;
	line-height: 1.2;
}

.ga-cat-btn:hover .ga-cat-btn__count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Rij 2: merk-chips
 * ---------------------------------------------------------------------- */

.ga-brand-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
}

.ga-brand-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 7px 14px;
	border: 1px solid #f28c20;
	border-radius: 3px;
	background: #fff;
	color: #1f3a56;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ga-brand-btn:hover {
	background: #f28c20;
	color: #fff;
}

.ga-brand-btn--active {
	border-color: #f28c20;
	background: #f28c20;
	color: #fff;
}

.ga-brand-btn__count {
	padding: 2px 6px;
	border-radius: 999px;
	background: #f0f5fa;
	color: #1f3a56;
	font-size: 0.78em;
	font-weight: 700;
	line-height: 1.2;
}

.ga-brand-btn:hover .ga-brand-btn__count,
.ga-brand-btn--active .ga-brand-btn__count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.ga-brand-btn--clear {
	padding: 5px 12px;
	border-color: #1f3a56;
	color: #1f3a56;
	font-size: 13px;
}

.ga-brand-btn--clear:hover {
	background: #1f3a56;
	color: #fff;
}

/* -------------------------------------------------------------------------
 * "Toon meer merken" — CSS-only uitklappen, geen JS nodig
 * ---------------------------------------------------------------------- */

.ga-brands-toggle {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
}

.ga-brand-rest {
	display: none;
}

.ga-brands-toggle:checked ~ .ga-brand-rest {
	display: contents;
}

.ga-brand-btn--more {
	border-style: dashed;
	border-color: #b9c4d0;
	color: #5a6b7d;
	font-weight: 600;
	cursor: pointer;
}

.ga-brand-btn--more:hover {
	border-color: #1f3a56;
	background: #f0f5fa;
	color: #1f3a56;
}

.ga-brands-toggle:focus-visible ~ .ga-brand-btn--more {
	outline: 2px solid #f28c20;
	outline-offset: 2px;
}

.ga-more-close {
	display: none;
}

.ga-brands-toggle:checked ~ .ga-brand-btn--more .ga-more-open {
	display: none;
}

.ga-brands-toggle:checked ~ .ga-brand-btn--more .ga-more-close {
	display: inline;
}

/* -------------------------------------------------------------------------
 * Mobiel: beide rijen als swipebare slider (dm.de-stijl)
 * ---------------------------------------------------------------------- */

@media (max-width: 768px) {

	.ga-cat-buttons,
	.ga-brand-buttons {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 2px;
	}

	.ga-cat-buttons::-webkit-scrollbar,
	.ga-brand-buttons::-webkit-scrollbar {
		display: none;
	}

	.ga-cat-btn {
		flex: 0 0 auto;
	}
}
