/* Product category archive (custom). */

.defelt-archive-layout {
	display: grid;

	grid-template-columns: 20.4375rem minmax(0, 1fr);

	gap: 2rem;
}

@media (max-width: 64rem) {
	.defelt-archive-layout {
		grid-template-columns: 1fr;
	}
}

.defelt-archive-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;

	margin-bottom: 1.5rem;

	gap: 1rem;
}

.defelt-archive-status {
	min-height: 1.25rem;

	font-size: .875rem;
	color: #666;
}

.defelt-products-grid {
	display: grid;

	grid-template-columns: repeat(3, minmax(0, 1fr));

	padding: 0;

	margin: 0;

	list-style: none;

	gap: 2rem;
}

@media (max-width: 64rem) {
	.defelt-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 47.9375rem) {
	.defelt-products-grid {
		grid-template-columns: 1fr;
	}
}

.defelt-product-card {
	margin: 0;
}

.defelt-product-link {
	display: block;

	text-decoration: none;
}

.defelt-product-media img {
	display: block;

	width: 100%;
	height: auto;
}

.defelt-product-title {
	margin: .625rem 0 0;

	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--global-palette4, #2D3748);
}

.defelt-product-price {
	margin-top: .375rem;

	font-size: 1.125rem;
	color: #242424;
}

.defelt-pagination {
	display: flex;
	align-items: center;
	justify-content: center;

	margin-top: 3.125rem;

	gap: .75rem;
}

.defelt-page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	gap: .5rem;
}

.defelt-page-btn {
	padding: .625rem .9375rem;

	line-height: 1;

	border: .0625rem solid rgba(0, 0, 0, .15);
	border-radius: .5rem;
	background: #FFF;
	cursor: pointer;

	appearance: none;
}

.defelt-page-btn[disabled] {
	cursor: not-allowed;
	opacity: .45;
}

.defelt-page-btn.is-current {
	font-weight: 700;

	border-color: rgba(0, 0, 0, .55);
}

[data-defelt-archive-root].is-loading {
	pointer-events: none;

	opacity: .75;
}

.defelt-no-products {
	grid-column: 1 / -1;
}

[data-defelt-archive-root].is-loading::after {
	content: '';

	position: fixed;
	z-index: 9998;

	background: rgba(255, 255, 255, .6);

	inset: 0;
	backdrop-filter: blur(.0625rem);
}

[data-defelt-archive-root].is-loading::before {
	content: '';

	width: 2.875rem;
	height: 2.875rem;

	position: fixed;
	z-index: 9999;
	top: 50%;
	left: 50%;
	margin-top: -1.4375rem;
	margin-left: -1.4375rem;

	border: .25rem solid rgba(0, 0, 0, .15);
	border-top-color: rgba(0, 0, 0, .65);
	border-radius: 50%;

	animation: defelt_spin .8s linear infinite;
}

.defelt-product-media {
	height: 22.5rem;
}

@keyframes defelt_spin {
	to {
		transform: rotate(360deg);
	}
}

.defelt-product-media .defelt-product-img {
	display: block;

	width: auto !important;
	height: 100% !important;

	transform: translateZ(0);

	transition: opacity 160ms ease, transform 160ms ease;

	object-fit: cover !important;
}

.defelt-product-media .defelt-product-img.is-swapping {
	transform: scale(1.01);

	opacity: .85;
}

.currency-switcher-holder {
	display: flex;
	align-items: center;

	line-height: 1.4;

	gap: .625rem;
}