/**
 * Million Dollar Facial – design v2 product catalogue.
 *
 * Styles for the Bricks "Shop v2" template: shop page (Vörur), product
 * category archives and product search. Tokens, buttons and the product card
 * come from mdf-v2.css.
 */

/* Bricks pads the archive wrapper; sections handle their own gutters. */
body.woocommerce-shop #brx-content,
body.tax-product_cat #brx-content,
body.tax-product_brand #brx-content,
body.tax-product_tag #brx-content {
	padding: 0;
}

/* ------------------------------------------------------------------ */
/* 1. Intro band                                                       */
/* ------------------------------------------------------------------ */

.mdf-shop-hero {
	background-color: var(--mdf-sand);
}

.mdf-shop-hero__inner {
	padding-top: 32px;
	padding-bottom: 48px;
}

.mdf-shop-hero .woocommerce-breadcrumb,
.mdf-shop-hero .navigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--mdf-muted);
}

.mdf-shop-hero .navigation a {
	font-weight: 400;
	color: var(--mdf-fg);
	text-decoration: none;
}

.mdf-shop-hero .navigation a:hover {
	text-decoration: underline;
}

.mdf-shop-hero .navigation .separator {
	color: color-mix(in oklab, var(--mdf-fg) 25%, transparent);
}

.mdf-shop-hero .mdf-eyebrow {
	margin-top: 40px;
}

.mdf-shop-hero__title {
	margin-top: 12px;
	font-size: 38px;
	font-weight: 300;
	line-height: 1.05;
}

.mdf-shop-hero__text {
	max-width: 576px;
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

.mdf-shop-hero__text p {
	margin: 0;
}

@media (min-width: 768px) {
	.mdf-shop-hero__inner {
		padding-top: 40px;
		padding-bottom: 72px;
	}

	.mdf-shop-hero .mdf-eyebrow {
		margin-top: 56px;
	}

	.mdf-shop-hero__title {
		font-size: 60px;
	}
}

/* ------------------------------------------------------------------ */
/* 2. Category chips                                                   */
/* ------------------------------------------------------------------ */

.mdf-shop__inner {
	padding-top: 32px;
	padding-bottom: 64px;
}

.mdf-shop__filters,
.mdf-shop__toolbar {
	width: 100%;
}

/* One swipeable row on phones, wrapping rows from tablet up */
.mdf-chips {
	margin-left: calc(var(--mdf-gutter) * -1);
	margin-right: calc(var(--mdf-gutter) * -1);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.mdf-chips::-webkit-scrollbar {
	display: none;
}

.mdf-chips ul {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	width: max-content;
	margin: 0;
	padding: 0 var(--mdf-gutter);
	list-style: none;
}

.mdf-chips li {
	margin: 0;
	list-style: none;
}

.mdf-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--mdf-border);
	background-color: var(--mdf-bg);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--mdf-fg);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.mdf-chip:hover {
	border-color: var(--mdf-fg);
}

.mdf-chip.is-active {
	border-color: var(--mdf-fg);
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
}

.mdf-chip__count {
	font-size: 11px;
	line-height: 16px;
	color: var(--mdf-muted);
}

.mdf-chip.is-active .mdf-chip__count {
	color: color-mix(in oklab, var(--mdf-bg) 60%, transparent);
}

@media (min-width: 768px) {
	.mdf-shop__inner {
		padding-top: 48px;
		padding-bottom: 96px;
	}

	.mdf-chips {
		margin-left: 0;
		margin-right: 0;
		overflow: visible;
	}

	.mdf-chips ul {
		flex-wrap: wrap;
		width: auto;
		padding: 0;
	}
}

/* ------------------------------------------------------------------ */
/* 3. Toolbar: result count + sorting                                  */
/* ------------------------------------------------------------------ */

.mdf-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 32px;
	padding: 16px 0;
	border-top: 1px solid var(--mdf-border);
	border-bottom: 1px solid var(--mdf-border);
}

.mdf-toolbar .woocommerce-result-count {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--mdf-muted);
}

.mdf-toolbar .woocommerce-ordering {
	margin: 0;
}

.mdf-toolbar .woocommerce-ordering select {
	width: auto;
	height: 40px;
	padding: 0 36px 0 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right center;
	background-size: 16px 16px;
	background-repeat: no-repeat;
	font-family: var(--mdf-font);
	font-size: 14px;
	line-height: 20px;
	color: var(--mdf-fg);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.mdf-toolbar .woocommerce-ordering select:focus-visible {
	outline: 2px solid var(--mdf-fg);
	outline-offset: 4px;
}

/* ------------------------------------------------------------------ */
/* 4. Product grid                                                     */
/* ------------------------------------------------------------------ */

.mdf-shop__grid {
	margin-top: 40px;
}

/* Three columns on tablets, four on desktop (two on phones via mdf-v2.css) */
@media (min-width: 768px) {
	.mdf-shop__grid.mdf-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 56px;
	}
}

@media (min-width: 1024px) {
	.mdf-shop__grid.mdf-products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Sale badge */
.mdf-card__sale {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 4px 8px;
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
	pointer-events: none;
}

/* Message when a category or search has no products */
.mdf-shop__empty,
.mdf-shop__grid .bricks-posts-nothing-found {
	grid-column: 1 / -1;
	padding: 48px 0;
	font-size: 16px;
	color: var(--mdf-muted);
	text-align: center;
}

/* Page links */
.mdf-pagination {
	width: 100%;
	margin-top: 56px;
}

.mdf-pagination ul,
.mdf-pagination .page-numbers:is(ul) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.mdf-pagination a.page-numbers,
.mdf-pagination span.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--mdf-border);
	background-color: var(--mdf-bg);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--mdf-fg);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.mdf-pagination a.page-numbers:hover {
	border-color: var(--mdf-fg);
}

.mdf-pagination span.page-numbers.current {
	border-color: var(--mdf-fg);
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
}

.mdf-pagination span.page-numbers.dots {
	border-color: transparent;
}

/* ------------------------------------------------------------------ */
/* 5. Advice band                                                      */
/* ------------------------------------------------------------------ */

.mdf-shop-advice {
	padding-bottom: 0;
}

/* The .mdf-advice band itself is styled in mdf-v2.css (also used on product pages). */
