/* =========================================================================
   Vonsué — shop styles. Loaded only on WooCommerce pages.
   ========================================================================= */

.shop {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
	padding-block: var(--sp-8) var(--sp-24);
}

.woocommerce-products-header {
	margin-bottom: var(--sp-8);
}

.woocommerce-products-header__title {
	font-size: var(--step-4);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* --- Grid ------------------------------------------------------------- */

ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-6) var(--sp-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	ul.products {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--sp-12) var(--sp-6);
	}
}

@media (min-width: 72em) {
	ul.products {
		grid-template-columns: repeat(4, 1fr);
	}
}

ul.products li.product {
	margin: 0;
	padding: 0;
}

/* --- Card ------------------------------------------------------------- 
   Three-line body below the image so every card in a row is the same height,
   which is what makes the reference grids look calm.
   -------------------------------------------------------------------- */

ul.products li.product .card__frame {
	position: relative;
	overflow: hidden;
	background: var(--surface);
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.card__media:hover {
	text-decoration: none;
}

.card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__img--hover {
	opacity: 0;
	transition: opacity 400ms var(--ease);
}

/* Only where hovering exists. On touch the second image would flash on tap. */
@media (hover: hover) {
	.card__media:hover .card__img--hover,
	.card__media:focus-visible .card__img--hover {
		opacity: 1;
	}
}

/* --- Badges ----------------------------------------------------------- */

.card__badges {
	position: absolute;
	inset-block-start: var(--sp-3);
	inset-inline-start: var(--sp-3);
	z-index: 2;
	display: grid;
	gap: var(--sp-1);
	justify-items: start;
	pointer-events: none;
}

.card__badge {
	padding: 0.3rem 0.5rem;
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	background: var(--paper);
	color: var(--ink);
}

.card__badge--sale {
	background: var(--mark);
	color: var(--paper);
}

.card__badge--sold {
	background: var(--ink);
	color: var(--paper);
}

/* --- Quick add --------------------------------------------------------
   Nothing sits on the photograph until there is intent. On a pointer device
   the size row slides up on hover, alongside the image swap. On touch, where
   there is no hover, a small plus in the corner reveals the same row.
   -------------------------------------------------------------------- */

.quick-add {
	position: absolute;
	inset-inline: var(--sp-2);
	inset-block-end: var(--sp-2);
	z-index: 3;
}

.quick-add__sizes {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	background: var(--paper);
	box-shadow: 0 4px 18px rgb(0 0 0 / 0.12);
}

.quick-add__size {
	min-height: 2.6rem;
	padding: 0 0.25rem;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--ink);
	transition: background 160ms var(--ease), color 160ms var(--ease);
}

.quick-add__size:hover:not(:disabled) {
	background: var(--ink);
	color: var(--paper);
}

.quick-add__size.is-out {
	color: var(--rule);
	cursor: not-allowed;
	text-decoration: line-through;
}

.quick-add.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

.quick-add--simple .quick-add__sizes {
	min-height: 2.6rem;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Pointer devices: hidden until the card is hovered, no toggle at all. */
@media (hover: hover) {
	.quick-add__toggle {
		display: none;
	}

	.quick-add__sizes {
		opacity: 0;
		transform: translateY(0.6rem);
		transition: opacity 240ms var(--ease), transform 240ms var(--ease);
		pointer-events: none;
	}

	li.product:hover .quick-add__sizes,
	li.product:focus-within .quick-add__sizes {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
}

/* Touch: a small plus, and the row only after tapping it. */
@media (hover: none) {
	.quick-add {
		inset-inline: auto var(--sp-2);
	}

	.quick-add__toggle {
		display: grid;
		place-items: center;
		width: 2.25rem;
		height: 2.25rem;
		border-radius: 50%;
		background: var(--paper);
		color: var(--ink);
		font-size: 1.1rem;
		line-height: 1;
		box-shadow: 0 2px 10px rgb(0 0 0 / 0.18);
	}

	.quick-add__sizes {
		display: none;
	}

	.quick-add.is-open {
		inset-inline: var(--sp-2);
	}

	.quick-add.is-open .quick-add__toggle {
		display: none;
	}

	.quick-add.is-open .quick-add__sizes {
		display: grid;
	}

	.quick-add--simple .quick-add__toggle {
		display: none;
	}

	.quick-add--simple .quick-add__sizes {
		display: grid;
	}
}

/* --- Card body --------------------------------------------------------- */

.card__body {
	display: grid;
	gap: 0.2rem;
	padding-top: var(--sp-3);
	text-align: center;
}

.card__eyebrow {
	min-height: 1em;
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

/*
 * Matched to the loop template used by the homepage carousels: small, light,
 * uppercase and letterspaced, so a product reads the same wherever it appears.
 */
.card__title {
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.card__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: var(--sp-2);
	font-size: 0.7rem;
	font-weight: 300;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}

.card__price del {
	color: var(--muted);
	text-decoration-thickness: 1px;
}

.card__price ins {
	color: var(--mark);
	text-decoration: none;
	font-weight: 400;
}

/* --- Sorting and counts ----------------------------------------------- */

.woocommerce-ordering select {
	appearance: none;
	padding: var(--sp-2) var(--sp-8) var(--sp-2) var(--sp-3);
	border: 1px solid var(--rule);
	background: var(--paper);
	font-size: var(--step--1);
	letter-spacing: 0.06em;
}

.woocommerce-ordering {
	margin-bottom: var(--sp-8);
	display: flex;
	justify-content: flex-end;
}

/* --- Notices ---------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 var(--sp-6);
	padding: var(--sp-4);
	border: 1px solid var(--rule);
	background: var(--surface);
	font-size: var(--step--1);
	list-style: none;
}

.woocommerce-error {
	border-color: var(--mark);
	color: var(--mark);
}

/* Defensive: if anything re-adds WooCommerce's own loop title, it should at
   least match the card rather than fall back to the global h2 size. */
.woocommerce-loop-product__title {
	margin: var(--sp-3) 0 var(--sp-1);
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

/* Sorting and breadcrumb */
.woocommerce-breadcrumb {
	margin-bottom: var(--sp-4);
	font-size: var(--step--1);
	color: var(--muted);
	letter-spacing: 0.04em;
}

.woocommerce-breadcrumb a {
	color: var(--ink);
}

/* --- Collections overview ---------------------------------------------
   Full-bleed image tiles with the name laid over them, the way the
   reference stores present a collection index.
   -------------------------------------------------------------------- */

.collections {
	padding-block: 0 var(--sp-24);
}

.collections__intro {
	margin-bottom: var(--sp-12);
}

/*
 * Masonry by columns rather than grid. A grid forces every tile to the same
 * height, which meant a portrait shot and a landscape shot both got cropped
 * to one ratio and left the gaps you were seeing. Columns let each tile keep
 * the proportions of its own photograph.
 */
.collections__grid {
	columns: 1;
	column-gap: var(--sp-2);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
	list-style: none;
	padding-block: 0;
}

@media (min-width: 40em) {
	.collections__grid {
		columns: 2;
		column-gap: var(--sp-4);
	}
}

@media (min-width: 64em) {
	.collections__grid {
		columns: 3;
	}
}

.collection {
	margin: 0 0 var(--sp-2);
	break-inside: avoid;
	/* Safari still needs the older hint to keep a tile whole. */
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	display: inline-block;
	width: 100%;
}

@media (min-width: 40em) {
	.collection {
		margin-bottom: var(--sp-4);
	}
}

.collection__link {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--surface);
}

.collection__link:hover {
	text-decoration: none;
}

/* No forced ratio: the image defines the height of its tile. */
.collection__media {
	display: block;
}

.collection__img {
	display: block;
	width: 100%;
	height: auto;
}

/* A category with no image still needs a shape to sit in. */
.collection__media:empty {
	aspect-ratio: 4 / 5;
}

.collection__img {
	transition: transform 700ms var(--ease);
}

@media (hover: hover) {
	.collection__link:hover .collection__img {
		transform: scale(1.04);
	}
}

/* Gradient only behind the text, so the photograph stays readable. */
.collection__label {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	display: grid;
	gap: 0.15rem;
	padding: var(--sp-12) var(--sp-6) var(--sp-6);
	color: var(--paper);
	background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent);
}

.collection__brand {
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.85;
}

.collection__name {
	font-size: var(--step-2);
	line-height: 1.1;
	letter-spacing: 0.02em;
}

.collection__count {
	font-size: var(--step--1);
	opacity: 0.8;
}

/* --- Archive hero ------------------------------------------------------ */

.shop-hero {
	position: relative;
	margin-bottom: var(--sp-8);
}

.shop-hero__inner {
	max-width: var(--container);
	margin-inline: auto;
}

.shop-hero__title {
	margin: 0;
	font-size: var(--step-4);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.shop-hero__text {
	margin-top: var(--sp-3);
	max-width: 52ch;
	font-size: var(--step--1);
	color: var(--muted);
}

/* With an image the hero becomes a full-bleed band.
   ----------------------------------------------------------------------
   Full width is measured against the viewport, not the container. The old
   version only stretched to the container plus its gutters, which left white
   bars on a wide screen.

   The text is positioned absolutely rather than placed with align-self. In a
   grid cell the text block could grow taller than a short banner and get
   clipped, which is why the heading disappeared entirely at the Small size.
   -------------------------------------------------------------------- */

.shop-hero--image {
	position: relative;
	width: auto;
	max-width: none;
	margin-inline: calc(50% - 50vw);
	margin-bottom: var(--sp-12);
	height: var(--hero-h, clamp(16rem, 32vw, 26rem));
	overflow: hidden;
	background: var(--surface);
	display: block;
}

.shop-hero--small  { --hero-h: clamp(9rem, 18vw, 14rem); }
.shop-hero--medium { --hero-h: clamp(16rem, 32vw, 26rem); }
.shop-hero--large  { --hero-h: clamp(22rem, 46vw, 38rem); }
.shop-hero--full   { --hero-h: calc(100svh - var(--header-h)); }

.shop-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center var(--hero-focus, center);
}

.shop-hero--image .shop-hero__inner {
	position: absolute;
	inset-inline: 0;
	z-index: 2;
	max-width: var(--container);
	margin-inline: auto;
	padding: var(--sp-6) var(--gutter);
	color: var(--paper);
}

/* Where the text sits inside the band. */
.shop-hero--align-start .shop-hero__inner { inset-block-start: 0; }
.shop-hero--align-end .shop-hero__inner { inset-block-end: 0; }
.shop-hero--align-center .shop-hero__inner {
	inset-block-start: 50%;
	transform: translateY(-50%);
	text-align: center;
}

/* The wash sits behind the text only, as a separate layer, so it can follow
   the text to the top or the middle without repainting the whole image. */
.shop-hero--image::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 60%;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgb(0 0 0 / var(--hero-overlay, 0.45)),
		transparent
	);
	pointer-events: none;
}

.shop-hero--align-start::after {
	inset-block: 0 auto;
	background: linear-gradient(
		to bottom,
		rgb(0 0 0 / var(--hero-overlay, 0.45)),
		transparent
	);
}

.shop-hero--align-center::after {
	inset-block: 0;
	height: 100%;
	background: rgb(0 0 0 / calc(var(--hero-overlay, 0.45) * 0.8));
}

.shop-hero--image .shop-hero__title {
	margin: 0;
	color: var(--paper);
}

.shop-hero--image .crumbs,
.shop-hero--image .shop-hero__text {
	color: rgb(255 255 255 / 0.85);
}

.shop-hero--image .crumbs a {
	color: var(--paper);
}

/* A short banner cannot carry a breadcrumb, a heading and a paragraph. */
.shop-hero--small .crumbs,
.shop-hero--small .shop-hero__text {
	display: none;
}

.shop-hero--small .shop-hero__title {
	font-size: var(--step-3);
}

.shop-hero--full .shop-hero__title {
	font-size: var(--step-5);
}

.shop-hero--full .shop-hero__inner {
	padding-block: var(--sp-12);
}

/* --- Toolbar ----------------------------------------------------------- */

.shop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-8);
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid var(--rule);
}

.shop-bar__count {
	margin: 0;
	font-size: var(--step--1);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.shop-bar .woocommerce-ordering {
	margin: 0;
}

/* The browser's own select control looks nothing like the rest of the shop,
   so the arrow is redrawn and the chrome removed. */
.shop-bar select,
.woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	margin: 0;
	padding: 0 1.6rem 0 0;
	min-height: 0;
	font-family: var(--font-body);
	font-size: var(--step--1);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 0.7rem auto;
	cursor: pointer;
	text-align: right;
	direction: ltr;
}

.shop-bar select:focus-visible,
.woocommerce-ordering select:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
}

.woocommerce-ordering {
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

/* --- Pagination -------------------------------------------------------- */

.woocommerce-pagination {
	margin-top: var(--sp-16);
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.woocommerce-pagination ul.page-numbers li {
	border: 0;
	margin: 0;
}

.woocommerce-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: var(--sp-2);
	border: 1px solid var(--rule);
	font-size: var(--step--1);
	font-variant-numeric: tabular-nums;
	color: var(--ink);
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.woocommerce-pagination a.page-numbers:hover {
	border-color: var(--ink);
	text-decoration: none;
}

.woocommerce-pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

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

/* --- Quick add, sizing ------------------------------------------------- 
   Was noticeably too tall on a phone, where the card itself is small.
   -------------------------------------------------------------------- */

@media (max-width: 47.99em) {
	.quick-add {
		inset-inline: var(--sp-1);
		inset-block-end: var(--sp-1);
	}

	.quick-add__size {
		min-height: 2.2rem;
		font-size: 0.7rem;
	}

	.card__body {
		padding-top: var(--sp-2);
	}

	.card__eyebrow {
		font-size: 0.62rem;
	}
}

/* Column counts for the collections shortcode, so it can be dropped into an
   Elementor page at any width. */
.collections__grid--2,
.collections__grid--3,
.collections__grid--4,
.collections__grid--5,
.collections__grid--6 { columns: 1; }

@media (min-width: 40em) {
	.collections__grid--2,
	.collections__grid--3,
	.collections__grid--4,
	.collections__grid--5,
	.collections__grid--6 { columns: 2; }
}

@media (min-width: 64em) {
	.collections__grid--3 { columns: 3; }
	.collections__grid--4 { columns: 4; }
	.collections__grid--5 { columns: 5; }
	.collections__grid--6 { columns: 6; }
}

/* --- Equal tiles ------------------------------------------------------
   The ratio attribute swaps masonry for a plain grid where every tile is
   cropped to the same shape. With only five or six collections, columns of
   different lengths can read as a mistake rather than a choice.
   -------------------------------------------------------------------- */

.collections__grid--fixed {
	columns: auto;
	display: grid;
	gap: var(--sp-2);
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 40em) {
	.collections__grid--fixed {
		gap: var(--sp-4);
	}
}

@media (min-width: 64em) {
	.collections__grid--fixed.collections__grid--2 { grid-template-columns: repeat(2, 1fr); }
	.collections__grid--fixed.collections__grid--3 { grid-template-columns: repeat(3, 1fr); }
	.collections__grid--fixed.collections__grid--4 { grid-template-columns: repeat(4, 1fr); }
	.collections__grid--fixed.collections__grid--5 { grid-template-columns: repeat(5, 1fr); }
	.collections__grid--fixed.collections__grid--6 { grid-template-columns: repeat(6, 1fr); }
}

.collections__grid--fixed .collection {
	display: block;
	margin: 0;
}

.collections__grid--fixed .collection__link {
	height: 100%;
	aspect-ratio: var(--tile-ratio, 4 / 5);
}

.collections__grid--fixed .collection__media {
	position: absolute;
	inset: 0;
}

.collections__grid--fixed .collection__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* --- Socials grid ------------------------------------------------------ */

.socials {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.socials__title {
	margin-bottom: var(--sp-6);
	font-size: var(--step-2);
	letter-spacing: 0.06em;
	text-align: center;
}

.socials__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-2);
	margin: 0 0 var(--sp-8);
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.socials__grid--3 { grid-template-columns: repeat(3, 1fr); }
	.socials__grid--4 { grid-template-columns: repeat(4, 1fr); }
	.socials__grid--5 { grid-template-columns: repeat(5, 1fr); }
	.socials__grid--6 { grid-template-columns: repeat(6, 1fr); }

	.socials__grid {
		gap: var(--sp-3);
	}
}

.socials__item {
	margin: 0;
}

.socials__link {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--surface);
}

.socials__link:hover {
	text-decoration: none;
}

.socials__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--ease), opacity 300ms var(--ease);
}

@media (hover: hover) {
	.socials__link:hover .socials__img {
		transform: scale(1.05);
		opacity: 0.85;
	}
}

/* A small mark so the tile reads as a link to a post, not decoration. */
.socials__badge {
	position: absolute;
	inset-block-start: var(--sp-2);
	inset-inline-end: var(--sp-2);
	width: 1rem;
	height: 1rem;
	border: 1.5px solid var(--paper);
	border-radius: 4px;
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}

.socials__badge::after {
	content: "";
	position: absolute;
	inset: 3px;
	border: 1.5px solid var(--paper);
	border-radius: 50%;
}

@media (hover: hover) {
	.socials__link:hover .socials__badge {
		opacity: 1;
	}
}

.socials__cta {
	text-align: center;
	margin: 0;
}

/* --- Colour dots on the card ------------------------------------------- */

.card__colors {
	display: flex;
	justify-content: center;
	gap: 0.3rem;
	margin-top: 0.35rem;
}

.card__dot {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--dot, var(--surface));
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
}

/* --- Touch: the card becomes a two image swipe -------------------------
   There is no hover on a phone, so the second photograph would never be
   seen. Instead the two images become a scroll-snap pair the thumb can
   swipe, which is how the reference stores handle it.
   -------------------------------------------------------------------- */

@media (hover: none) {
	.card__media {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}

	.card__media::-webkit-scrollbar {
		display: none;
	}

	.card__img {
		position: static;
		flex: 0 0 100%;
		width: 100%;
		height: 100%;
		scroll-snap-align: start;
		opacity: 1;
	}

	.card__img--hover {
		transition: none;
	}
}

/* --- Filter button and chips ------------------------------------------- */

.filter-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 2.5rem;
	padding: 0 var(--sp-4) !important;
	background: var(--paper) !important;
	color: var(--ink) !important;
	border: 1px solid var(--rule) !important;
	border-radius: 0 !important;
	font-family: var(--font-body);
	font-size: var(--step--1) !important;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: border-color var(--dur) var(--ease);
}

.filter-btn:hover {
	border-color: var(--ink) !important;
}

.filter-btn__icon {
	flex: 0 0 auto;
}

.filter-btn__count {
	display: grid;
	place-items: center;
	min-width: 1.1rem;
	height: 1.1rem;
	padding-inline: 0.2rem;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-size: 0.65rem;
	line-height: 1;
}

/* The toolbar now holds three things, so the count goes left and the two
   controls sit together on the right. */
.shop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3) var(--sp-4);
}

.shop-bar__count {
	margin-right: auto;
}

@media (max-width: 30em) {
	.shop-bar__count {
		flex: 1 0 100%;
		margin-right: 0;
	}

	.shop-bar .woocommerce-ordering {
		margin-left: auto;
	}
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin: 0 0 var(--sp-6);
	padding: 0;
	list-style: none;
}

.chips__item a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--rule);
	font-size: var(--step--1);
	color: var(--ink);
	transition: border-color var(--dur) var(--ease);
}

.chips__item a:hover {
	border-color: var(--ink);
	text-decoration: none;
}

.chips__item--clear a {
	border-color: transparent;
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* --- Filter drawer ------------------------------------------------------ */

.drawer--filter .filters {
	display: grid;
	gap: var(--sp-8);
	align-content: start;
}

.filters__group {
	margin: 0;
	padding: 0;
	border: 0;
}

.filters__legend {
	margin-bottom: var(--sp-3);
	padding: 0;
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.filters__options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.filters__option {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0 var(--sp-3);
	border: 1px solid var(--rule);
	font-size: var(--step--1);
	cursor: pointer;
	transition: border-color var(--dur) var(--ease);
}

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

.filters__option:hover {
	border-color: var(--ink);
}

.filters__option:has(input:checked) {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}

.filters__option:has(input:focus-visible) {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* Colour options show the colour and keep the name for anyone who needs it. */
.filters__option--chip {
	padding-left: 2.1rem;
}

.filters__option--chip::before {
	content: "";
	position: absolute;
	inset-inline-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--swatch-color, var(--surface));
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
}

.filters__price {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.filters__price input {
	width: 100%;
	min-height: 2.75rem;
	padding: 0 var(--sp-3);
	border: 1px solid var(--rule);
	font-size: var(--step--1);
}

.filters__dash {
	color: var(--muted);
}

.filters__actions {
	display: grid;
	gap: var(--sp-3);
	justify-items: center;
	position: sticky;
	bottom: 0;
	padding-top: var(--sp-4);
	background: linear-gradient(to top, var(--paper) 70%, transparent);
}

.filters__clear {
	font-size: var(--step--1);
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* This drawer is useful on desktop too, unlike the mobile navigation. */
@media (min-width: 60em) {
	.drawer--filter {
		display: flex;
	}
}

/* A small play mark, so a reel is not mistaken for a still. */
.socials__item--video .socials__badge {
	opacity: 1;
	width: 1.25rem;
	height: 1.25rem;
	border: 0;
	border-radius: 0;
	background: none;
}

.socials__item--video .socials__badge::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 0;
	border-radius: 0;
	background: var(--paper);
	clip-path: polygon(20% 8%, 20% 92%, 88% 50%);
	opacity: 0.9;
}
