/* Ruled paper, warm stock and the gold edge of a catalog folio. */
.vsf-archive-products .vsf-product-grid,
.vsf-related-inventory .vsf-product-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.vsf-inventory-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block: 24px 20px;
	padding-block: 12px;
	border-block: 1px solid #ddd5c6;
}

.vsf-inventory-toolbar > p {
	margin: 0;
	color: #61584a;
	font: 600 .875rem/1.45 var(--lux-ui);
	letter-spacing: normal;
	text-transform: none;
}

.vsf-inventory-toolbar > p span {
	color: #96774a;
}

.vsf-sort {
	position: relative;
	z-index: 3;
	font-size: .9375rem;
}

.vsf-sort summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 12px;
	box-sizing: border-box;
	border: 1px solid #ad9164;
	border-radius: 2px;
	background: #fcfaf5;
	color: #252820;
	cursor: pointer;
	list-style: none;
}

.vsf-sort summary::-webkit-details-marker {
	display: none;
}

.vsf-sort summary > span {
	color: #625a4d;
}

.vsf-sort summary::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-inline-start: 6px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.vsf-sort[open] summary::after {
	transform: rotate(225deg);
}

.vsf-sort ul {
	position: absolute;
	inset: calc(100% + 4px) 0 auto auto;
	min-width: max(100%, 168px);
	margin: 0;
	padding: 4px;
	list-style: none;
	border: 1px solid #ad9164;
	border-radius: 2px;
	background: #fcfaf5;
}

.vsf-sort li a {
	display: block;
	padding: 9px 12px;
	color: #252820;
	text-decoration: none;
	white-space: nowrap;
}

.vsf-sort li a:hover,
.vsf-sort li a[aria-current] {
	background: #eee7d9;
}

.vsf-inventory-card {
	display: flex;
	border-color: #e3dbce;
	border-radius: 2px;
	background: #fffdf8;
}

.vsf-inventory-card:hover,
.vsf-inventory-card:focus-within {
	border-color: #aa8b58;
}

.vsf-inventory-link {
	width: 100%;
	display: flex;
	flex-direction: column;
	color: #222722;
	text-decoration: none;
}

.vsf-inventory-link:focus-visible,
.vsf-sort :focus-visible {
	outline: 2px solid #927242;
	outline-offset: 3px;
}

.vsf-inventory-card .vsf-product-image {
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
	padding: 14px;
	background: #f9f8f6;
}

.vsf-inventory-card .vsf-product-image img {
	box-sizing: border-box;
	object-fit: contain;
	transition: opacity 220ms ease-out, transform 220ms ease-out;
	transform: none;
}

.vsf-inventory-card .vsf-card-alternate {
	position: absolute;
	inset: 14px;
	width: calc(100% - 28px);
	height: calc(100% - 28px);
	opacity: 0;
}

.vsf-card-reference,
.vsf-card-video {
	position: absolute;
	z-index: 1;
	top: 8px;
	padding: 4px 6px;
	border-radius: 2px;
	white-space: nowrap;
	font: 600 .8125rem/1.25 var(--lux-ui);
	text-transform: none;
}

.vsf-card-reference {
	inset-inline-start: 8px;
	border: 1px solid #e2d6c4;
	color: #594c39;
	background: #fcfaf5;
}

.vsf-card-video {
	inset-inline-end: 8px;
	border: 1px solid #685538;
	color: #f2d7a6;
	background: #141619;
}

.vsf-card-video span {
	margin-inline-end: 2px;
}

.vsf-inventory-card .vsf-product-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 14px;
}

.vsf-card-spec {
	min-block-size: 1.45em;
	margin: 0 0 7px;
	overflow: hidden;
	color: #725d3e;
	font: 400 .875rem/1.45 var(--lux-ui);
	text-transform: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vsf-inventory-card h3 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	height: 2.8em;
	margin: 0 0 12px;
	overflow: hidden;
	color: #222722;
	font: 600 clamp(1.125rem, 1.5vw, 1.375rem)/1.4 var(--lux-ui);
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.vsf-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4px 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #e4dcd0;
	flex-wrap: wrap;
}

.vsf-card-price {
	font: 500 .875rem/1.35 var(--lux-mono);
	font-variant-numeric: tabular-nums;
}

.vsf-card-price del {
	margin-right: 4px;
	color: #696154;
	font-size: .8em;
}

.vsf-card-price ins {
	color: #123b2b;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.vsf-card-view {
	color: #374438;
	font-size: .875rem;
	white-space: nowrap;
}

.vsf-card-view span {
	color: #896940;
}

.vsf-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.vsf-pagination .page-numbers:not(ul) {
	display: inline-grid;
	min-width: 40px;
	min-height: 40px;
	place-items: center;
	padding: 0 8px;
	border: 1px solid #a28657;
	border-radius: 2px;
	background: #fcfaf5;
	color: #292922;
	font-family: var(--lux-ui);
	text-decoration: none;
	font-weight: 600;
}

.vsf-pagination .page-numbers.current,
.vsf-pagination a.page-numbers:hover {
	background: #171a18;
	color: #f0d4a5;
}

@media (hover: hover) and (pointer: fine) {
	.vsf-inventory-card:hover .has-alternate .vsf-card-cover { opacity: 0; }
	.vsf-inventory-card:hover .has-alternate .vsf-card-alternate { opacity: 1; }
	.vsf-inventory-card:hover .vsf-product-image:not(.has-alternate) img { transform: scale(1.04); }
}

@media (min-width: 1200px) {
	.vsf-archive-products .vsf-product-grid,
	.vsf-related-inventory .vsf-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.vsf-archive-products .vsf-product-grid,
	.vsf-related-inventory .vsf-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.vsf-inventory-toolbar { margin-block: 18px 12px; }
	.vsf-inventory-toolbar > p { font-size: .875rem; }
	.vsf-sort summary { gap: 4px; padding-inline: 8px; }
	.vsf-card-reference, .vsf-card-video { padding-inline: 4px; }
	.vsf-inventory-card .vsf-product-body { padding: 10px; }
	.vsf-inventory-card h3 { font-size: 1.125rem; }
	.vsf-card-spec { font-size: .8125rem; }
	.vsf-card-footer { align-items: flex-end; padding-top: 8px; }
	.vsf-card-price { font-size: .8125rem; }
	.vsf-card-price del { display: block; }
	.vsf-card-view { font-size: .8125rem; }
}

@media (max-width: 460px) {
	.vsf-card-video { top: calc(12px + 1.75rem); }
}

@media (prefers-reduced-motion: reduce) {
	.vsf-inventory-card .vsf-product-image img { transition: none; }
}
