/**
 * Trading Post catalog.
 * Product cards are one link. No gold frames, no loop buttons.
 */

body.woocommerce #tovt-main,
body.woocommerce-cart #tovt-main,
body.woocommerce-checkout #tovt-main,
body.woocommerce-account #tovt-main {
	padding-top: 28px;
	padding-bottom: 48px;
}

.tov-shop {
	width: min(1120px, calc(100% - 48px));
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 0 40px;
}

.tov-shop__mast {
	max-width: none;
	margin: 0 0 48px;
}

.tov-shop__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-family: var(--tov-font-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--tov-gold);
}

.tov-shop__eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: linear-gradient(90deg, var(--tov-gold), transparent);
}

.tov-shop__title {
	margin: 0 0 14px;
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 0.92;
	text-transform: uppercase;
}

.tov-shop__lede {
	margin: 0;
	max-width: 36em;
	color: var(--tov-text-muted);
	font-size: 1.0625rem;
	line-height: 1.55;
}

/* Woo's float grid and clearfix become extra grid items. Kill both. */
body.woocommerce .tov-shop ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	clear: none;
}

body.woocommerce .tov-shop ul.products::before,
body.woocommerce .tov-shop ul.products::after {
	content: none;
	display: none;
}

body.woocommerce .tov-shop ul.products li.product {
	width: auto !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.tov-card__link {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 100%;
	color: var(--tov-text);
	text-decoration: none;
	border-radius: 22px;
	outline-offset: 4px;
}

.tov-card__link:hover,
.tov-card__link:focus-visible {
	color: var(--tov-text);
}

.tov-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 22px;
	background: #101012;
}

body.woocommerce .tov-shop ul.products li.product a img.tov-card__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 11%;
	object-fit: contain;
	box-shadow: none;
	transition: transform 0.7s var(--tov-ease);
}

.tov-card__link:hover .tov-card__img,
.tov-card__link:focus-visible .tov-card__img {
	transform: scale(1.035);
}

.tov-card__media--empty {
	background:
		radial-gradient(ellipse at center, rgba(212, 162, 78, 0.08), transparent 62%),
		#101012;
}

.tov-card__mark {
	font-family: var(--tov-font-display);
	font-size: clamp(4rem, 8vw, 5.5rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--tov-gold);
}

.tov-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 6px 8px;
}

.tov-card__kicker {
	margin: 0;
	font-family: var(--tov-font-display);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tov-text-dim);
}

.tov-card__name {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--tov-text);
}

.tov-card__price .price {
	margin: 4px 0 0;
	color: var(--tov-gold);
	font-family: var(--tov-font-display);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}

.tov-card__price del {
	margin-right: 8px;
	color: var(--tov-text-dim);
	font-weight: 400;
	opacity: 0.85;
}

.tov-card__price ins {
	color: var(--tov-gold);
	text-decoration: none;
}

/* Catalog is a link. Hide a loop button if a hook still prints one. */
body.woocommerce .tov-shop ul.products .button,
body.woocommerce .tov-shop ul.products .added_to_cart,
body.woocommerce .tov-shop ul.products .onsale,
body.woocommerce .tov-shop ul.products .star-rating,
body.woocommerce .tov-shop .woocommerce-result-count,
body.woocommerce .tov-shop .woocommerce-ordering,
body.woocommerce .tov-shop .woocommerce-breadcrumb {
	display: none !important;
}

.tov-shop .woocommerce-pagination {
	margin: 48px 0 0;
	text-align: left;
}

.tov-shop .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.tov-shop .woocommerce-pagination ul li {
	margin: 0;
	border: 0;
	float: none;
	overflow: visible;
}

.tov-shop .woocommerce-pagination ul li a,
.tov-shop .woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	background: transparent;
	color: var(--tov-text-muted);
	font-family: var(--tov-font-display);
	font-size: 14px;
	letter-spacing: 0.08em;
}

.tov-shop .woocommerce-pagination ul li a:hover,
.tov-shop .woocommerce-pagination ul li span.current {
	background: #141416;
	color: var(--tov-text);
}

.tov-shop .woocommerce-info,
.tov-shop .woocommerce-message,
.tov-shop .woocommerce-error,
.tov-shop .woocommerce-no-products-found .woocommerce-info {
	margin: 0 0 28px;
	padding: 16px 18px;
	background: #141416;
	color: var(--tov-text);
	border: 0;
	border-left: 2px solid var(--tov-gold);
	border-radius: 12px;
	list-style: none;
}

.tov-shop .woocommerce-error {
	border-left-color: #c4564a;
}

.tov-shop .woocommerce-info::before,
.tov-shop .woocommerce-message::before,
.tov-shop .woocommerce-error::before {
	display: none;
}

@media (max-width: 900px) {
	body.woocommerce .tov-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}
}

@media (max-width: 560px) {
	.tov-shop {
		width: min(1120px, calc(100% - 32px));
	}

	.tov-shop__mast {
		margin-bottom: 32px;
	}

	body.woocommerce .tov-shop ul.products {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.tov-card__media {
		border-radius: 18px;
	}
}

/* The frozen header stays. Shop pages paint it solid so body type cannot show
   through. Wrapping is desktop-only: under 860px the nav is a drawer. */
body.woocommerce .tovt-header,
body.woocommerce-cart .tovt-header,
body.woocommerce-checkout .tovt-header,
body.woocommerce-account .tovt-header {
	background: #0a0a0b;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

@media (min-width: 861px) {
	body.woocommerce .tovt-header__bar,
	body.woocommerce-cart .tovt-header__bar,
	body.woocommerce-checkout .tovt-header__bar,
	body.woocommerce-account .tovt-header__bar {
		height: auto;
		min-height: var(--tov-header-h, 68px);
		flex-wrap: wrap;
		align-content: center;
		row-gap: 0;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	body.woocommerce .tovt-nav,
	body.woocommerce-cart .tovt-nav,
	body.woocommerce-checkout .tovt-nav,
	body.woocommerce-account .tovt-nav {
		flex: 1 1 240px;
		min-width: 0;
	}

	body.woocommerce .tovt-nav ul,
	body.woocommerce-cart .tovt-nav ul,
	body.woocommerce-checkout .tovt-nav ul,
	body.woocommerce-account .tovt-nav ul {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	body.woocommerce .tovt-nav a,
	body.woocommerce-cart .tovt-nav a,
	body.woocommerce-checkout .tovt-nav a,
	body.woocommerce-account .tovt-nav a {
		height: auto;
		min-height: 44px;
		padding-top: 12px;
		padding-bottom: 12px;
		white-space: nowrap;
	}
}

.tov-card__drop {
	margin: 0;
	font-family: var(--tov-font-display);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--tov-text-dim);
	overflow-wrap: anywhere;
}

.tov-card__drop--members {
	color: var(--tov-gold);
}
