.collection-filters {
	outline: none;
	margin-top: 8px;

	@media (min-width: 1024px) {
		margin: 0 0;
		display: flex;
		flex-wrap: wrap;
		list-style: none;
	}

	.collection-filters__title {
		margin-top: 0;
		margin-bottom: 20px;
	}
}

.filter-group {
	.collection-filter__toggle {
		transform: rotate(180deg);
	}

	&:not([open]) {
		.collection-filter__toggle {
			transform: rotate(0);
		}
	}

	&.filter-group--disabled {
		display: none;
	}
}

// -------------------------------------
// Sorting
// -------------------------------------
.collection-sort-container {
	width: 100%;
}

.collection-sort {
	display: flex;
	flex-direction: row;

	@media (min-width: 1024px) {
		max-width: 250px;
	}

	.product-count {
		margin-left: 20px;
	}

	&.collection-sort__mobile {
		flex-direction: column-reverse;

		.product-count {
			margin-bottom: 20px;
			margin-left: 0;
		}
	}
}

.collection-sort__selector-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;

	label,
	h2,
	h3 {
		font-size: 18px;
		line-height: 24px;
		flex: 1 0 100%;
		font-family: 'National';
		font-size: 14px;
		font-style: normal;
		font-weight: 700;
		line-height: 18px; /* 128.571% */
		letter-spacing: 2.9px;
		text-transform: uppercase;
		color: #484646;
	}

	.collection-sort__selector {
		font-size: 14px;
		line-height: 18px;
		font-weight: 400;
		background-color: transparent;
		color: black;
		border: 1px solid #252525;
		color: #252525;
		letter-spacing: 1px;
		cursor: pointer;
		z-index: 1;
		width: 100%;
		padding: 4px 8px;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		background-image: none;
		min-width: 200px;

		option {
			background: #ffffff;
			color: black;
		}

		&.js--opened {
			& ~ .collection-sort__toggle {
				transform: rotate(180deg);
			}
		}
	}

	.collection-sort__toggle {
		font-size: 17px;
		text-align: center;
		position: absolute;
		right: 8px;
	}

	.sorBy-wrapper {
		display: flex;
		align-items: center;
		align-content: center;
		width: 100%;
		justify-content: space-between;
		border: 1px solid #ffffff;
		margin-top: 15px;
		margin-bottom: 10px;

		@media (min-width: 1024px) {
			margin-top: 10px;
		}
	}
}

.filters-sort-trigger__wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #ffffff;
	border-radius: 4px;

	.filters-sort-trigger {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 10px;
		background-color: transparent;
		padding: 0;
		height: 50px;
		width: 100%;
		border: none;
		color: #484646;
		font-family: 'National';
		font-size: 14px;
		font-style: normal;
		font-weight: 700;
		line-height: 18px;
		letter-spacing: 2.9px;
		text-transform: uppercase;

		.icon__filters-sort {
			width: 20px;
		}
	}
}

.no-results-text {
	text-align: center;
	padding: 70px 30px;
	grid-column: 1/-1;
}

.modal {
	display: inline-block;
	opacity: 0;
	z-index: -100;
	background: transparent;
	position: relative;
	padding: 0;

	.modal__overlay {
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		opacity: 0;
		background: black;
	}

	&.modal--open {
		z-index: 5000;
		opacity: 1;

		.modal__overlay {
			position: fixed;
			z-index: 4999;
			opacity: 0.25;
		}
	}
}

.modal__content {
	display: flex;
	position: fixed;
	color: black;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	min-width: calc(100% - 20px);
	z-index: 5000;

	@media (min-width: 768px) {
		padding: 20px;
		min-width: initial;
	}
}

.modal__close-button {
	position: absolute;
	top: 20px;
	right: 15px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.modal__trigger {
	cursor: pointer;
}

.collection-filters-sort-modal {
	box-shadow: none;
	background: transparent;

	button svg,
	a svg {
		fill: black; /* or a specific color */
		stroke: none; /* if you're using strokes */
		color: inherit;
	}

	&.modal {
		@media (min-width: 1024px) {
			opacity: 1;
			background: transparent;
			position: unset;
			width: 100%;
			z-index: 2;
		}
	}

	.modal__content {
		@media (max-width: 1024px) {
			width: 100%;
			overflow-y: auto;
			display: block;
			transform: none;
			color: #050505;
			height: unset;
			padding: 20px 15px;
			left: auto;
			right: auto;
			top: 150px;
			bottom: 120px;
		}

		@media (min-width: 1024px) {
			position: unset;
			padding: 0;
			transition: none;
			transform: none;
			background: transparent;
			width: 100%;
			display: block;
		}
	}

	.modal__close-button {
		@media (min-width: 768px) {
			margin-top: 20px;
			margin-right: 15px;

			.icon {
				width: 23px;
				height: 23px;
			}
		}
	}

	.modal__overlay {
		@media (min-width: 1024px) {
			display: none;
		}
	}
}

// -------------------------------------
// Card -- Product
// -------------------------------------
.card {
	width: 100%;
}

.card__feature.background-image {
	aspect-ratio: 16 / 9;
}

.card__wrapper {
	display: block;
	height: 100%;
}

.card--product {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100%;
	position: relative;

	.card__image-wrapper picture:not(:only-child) .card__product-secondary-image {
		display: none;
	}

	&:hover {
		.card__image-wrapper picture:not(:only-child) .card__product-image {
			display: none;
		}

		.card__image-wrapper
			picture:not(:only-child)
			.card__product-secondary-image {
			display: block;
		}

		.btn {
			border: 1px solid #e6989c;
			background: #e6989c;
			border: 1px solid #e6989c;
			color: black;
			text-decoration: none;
			transition: none;
		}
	}

	.card__image-wrapper {
		border-radius: 3px;
		height: 300px;

		@media (min-width: 1024px) {
			height: 350px;
		}

		.background-image {
			-webkit-backface-visibility: hidden;
			transform: translate(0);
			transition: opacity 200ms ease;
			object-fit: contain;
			aspect-ratio: 16 / 9;
		}

		.card__product-secondary-image {
			object-fit: contain;
		}
	}

	.card__tag {
		z-index: 1;
	}

	.card__content {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-decoration: none;
		color: #474645;
		flex-grow: 1;

		@media (min-width: 1024px) {
			padding: 16px 8px;
			text-align: center;
		}
	}

	.card__subtitle {
		font-size: 16px;
		line-height: 26px;
		font-weight: 400;
		margin: 0;
		text-decoration: none;
	}

	.card__title {
		color: #484646;
		text-align: center;
		font-family: 'Chronicle Deck';
		font-size: 18px;
		font-style: normal;
		font-weight: 375;
		line-height: normal;
		letter-spacing: 2px;
		text-transform: uppercase;
		margin: 0;
		margin-top: 16px;
	}

	.card__description {
		margin: 10px 0;
		color: #474645;
		text-align: center;
		font-family: 'National';
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: 24px;
	}

	.card__price {
		color: #484646;
		text-align: center;
		font-family: 'Chronicle Deck';
		font-size: 16px;
		font-style: normal;
		font-weight: 375;
		line-height: 24px;
		letter-spacing: 3px;
		margin-top: auto;
	}

	.card__price--sale {
		color: #999999;

		& + .card__price--original {
			color: #e53935;
			padding-left: 8px;
		}
	}

	.btn {
		margin-top: 15px;
		transition: none;
		animation: none;
		border: 1px solid rgba(72, 70, 70, 0.5);
		color: #252525;
		justify-self: flex-end;
	}

	.card__product-image--secondary {
		display: none;
	}

	@media (min-width: 1024px) {
		&:hover {
			.card__title {
				color: #d1424e;
				text-decoration: underline;
			}

			.btn {
				background: #e6989c;
				border: 1px solid #e6989c;
				color: black;
				text-decoration: none;
				transition: none;
			}
		}

		.card__product-image--primary {
			display: none;
		}

		.card__product-image--secondary {
			display: block;
		}
	}
}

.btn:hover {
	background: #e6989c;
	border: 1px solid #e6989c;
	color: black;
	text-decoration: none;
	transition: none;
}

.btn--add-to-cart--quick {
	z-index: 2;
}

.collection-footer-content {
	padding: 40px 0;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

// -------------------------------------
// Background Media
// -------------------------------------
.background-media {
	display: grid;
	grid-gap: 0;
	overflow: hidden;
}

.background-image {
	background-color: transparent;
	object-fit: cover;
	object-position: center center;
	width: 100%;
	height: 100%;
	outline: none;
}

.background-media__background {
	-ms-grid-column: 1;
	-ms-grid-column-span: 5;
	-ms-grid-row: 1;
	-ms-grid-row-span: 4;
	grid-column: gutter-start / gutter-end;
	grid-row: image-start / image-end;
	z-index: -1;
	height: 100%;
}

.background-media__content {
	grid-column: content;
	grid-row: content;
	z-index: 1;

	@media (min-width: 1024px) {
		grid-column: center;
		grid-row: content;
	}
}

.background-media__content--left {
	grid-column: content;
	grid-row: content;

	@media (min-width: 1024px) {
		grid-column: content-start;
		grid-row: content;
	}
}

.background-media__content--right {
	grid-column: content;
	grid-row: content;

	@media (min-width: 1024px) {
		grid-column: 3;
		grid-row: content;
	}
}

.background-media__overlay {
	-ms-grid-column: 1;
	-ms-grid-column-span: 5;
	-ms-grid-row: 1;
	-ms-grid-row-span: 4;
	grid-column: gutter-start / gutter-end;
	grid-row: image-start / image-end;
	z-index: 0;
	background-color: rgba(0, 0, 0, 0.2);
}

// -------------------------------------
// Background Images
// -------------------------------------
.background-media--image {
	grid-template-columns: [gutter-start] 20px [content] 1fr 20px [gutter-end];
	grid-template-rows:
		[image-start] minmax(20px, 1fr) [content] auto minmax(20px, 1fr)
		[image-end];

	@media (min-width: 1024px) {
		grid-template-columns:
			[gutter-start] minmax(30px, 1fr)
			[content-start] minmax(0, 640px) [center] auto [content-end] minmax(
				0,
				640px
			)
			minmax(30px, 1fr) [gutter-end];
		grid-template-rows:
			[image-start] minmax(60px, 1fr) [content] auto minmax(60px, 1fr)
			[image-end];
	}
}

// -------------------------------------
// Base grid
// -------------------------------------
.css-grid {
	display: block;
	width: 100%;

	@supports (display: grid) {
		display: grid;
		grid-gap: 15px;

		@media (min-width: 1024px) {
			grid-gap: 30px;
		}
	}

	&:is(ul) {
		padding: 0;
	}
}

.css-grid__item {
	display: inline-block;
	vertical-align: top;

	@media (max-width: 1119px) {
		width: 50%;
	}

	@supports (display: grid) {
		margin: 0;
	}
}

// Support .css-grid--[small,medium,large]-[1-12]
@for $columns from 1 through 2 {
	.css-grid--small-#{$columns} {
		grid-template-columns: repeat($columns, 1fr);
	}
}

@media (min-width: 768px) {
	@for $columns from 1 through 4 {
		.css-grid--medium-#{$columns} {
			grid-template-columns: repeat($columns, 1fr);

			.css-grid__item {
				width: calc(#{percentage(math.div(1, $columns))} - (30px * 2));

				@supports (display: grid) {
					width: 100%;
				}
			}
		}
	}
}

@media (min-width: 1024px) {
	@for $columns from 1 through 6 {
		.css-grid--large-#{$columns} {
			grid-template-columns: repeat($columns, 1fr);

			.css-grid__item {
				width: calc(#{percentage(math.div(1, $columns))} - (30px * 2));

				@supports (display: grid) {
					width: 100%;
				}
			}
		}
	}
}

.product-grid {
	display: flex;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	padding: 0 15px;
	padding-top: 0;

	@media (min-width: 1119px) {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		padding: 0;
		padding-top: 56px;
	}

	&.product-grid--hero {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		gap: 100px;

		@media (min-width: 768px) {
			gap: 90px 40px;
		}

		@media (min-width: 1024px) {
			display: grid;
			grid-template-columns: repeat(2, 1fr);
			gap: 150px 40px;
		}
	}
}

// -------------------------------------
// Card -- Default
// -------------------------------------
.card--default {
	position: relative;
	background-color: transparent;
	border: none;
	overflow: visible;

	a {
		text-decoration: none;
	}

	.card__content {
		padding: 0;
	}

	.card__title {
		font-weight: 600;
	}

	.card__link {
		text-decoration: none;

		&::after {
			bottom: 0;
			content: '';
			left: 0;
			position: absolute;
			right: 0;
			top: 0;
			z-index: 1;
		}
	}

	.card__tags-list {
		padding: 0;
		list-style-type: none;

		li {
			display: inline-block;

			& + li {
				margin-left: 10px;
			}
		}

		a {
			text-decoration: underline;
		}
	}

	.card__button {
		font-weight: 700;
		display: flex;
		align-items: center;
		opacity: 0;
		position: absolute;
		bottom: 20px;
		right: 20px;
		z-index: 4;
		border-radius: 17px;

		.icon {
			margin-left: 3px;
			width: 25px;
		}
	}

	.card__image-wrapper {
		margin: 0;
		display: block;
		position: relative;
		transform: translate(0);
		transition:
			box-shadow 400ms ease,
			transform 400ms ease;
		border-radius: 2px;
		overflow: hidden;

		@media (min-width: 1024px) {
			border-radius: 3px;
		}
	}
}
/* SEO CONTENT DEFAULT STYLES */

.main-content a,
.collection-footer-content-wrapper a {
	text-decoration: underline;
}

.main-content a:hover,
.collection-footer-content-wrapper a:hover {
	filter: brightness(80%);
}

.collection-footer-content-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#footer-text-container {
	width: 100%;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

/* ONLY apply line clamp styles when collapsed */
#footer-text-container.is-collapsed {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	max-height: 7.5em;
}

/* Fully reset when expanded */
#footer-text-container.is-expanded {
	display: block; /* will now work ✅ */
	max-height: none;
	overflow: visible;
}

.read-more-link {
	background: none;
	border: none;
	color: currentColor;
	text-decoration: underline;
	cursor: pointer;
	padding: 15px 0;
	font-family: inherit;
	font-size: inherit;
	margin: 0 auto;
	display: inline-block;
}

/* SEO COLLECTION FOOTER FAQ BLOCK STYLES */

.seo--footer__description {
	text-wrap: balance;
}

.seo--footer__description a {
	text-decoration: underline;
}

.seo--footer__faqs {
	width: 100%;
	text-align: left;
	margin: 2rem 0;
}

.seo--footer__accordion {
	margin: 0;
	padding: 0;
	border: 1px solid #252525;
	border-bottom: 0;
	cursor: pointer;
}

.seo--footer__accordion:last-of-type {
	border-bottom: 1px solid #252525;
}

.seo--footer__question {
	cursor: pointer;
	padding: 1rem;
	font-family:
		Chronicle Deck Semi,
		Times,
		serif;
	font-weight: normal;
	font-size: 1.2rem;
}

.seo--footer__answer {
	text-align: left;
	padding: 1rem;
}

.seo--footer__answer p {
	text-align: left;
	margin-top: 0;
	margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.seo--footer__accordion {
		transition: all 0.3s ease;
	}
}
