/*
 * Seamless Hold Discovery - archive product-card anatomy.
 *
 * Scoped to the WooCommerce product loop. Typography and colour follow the
 * Seamless Hold design tokens (warm ivory/brown, Manrope body text).
 */

.woocommerce ul.products li.product,
ul.products li.product {
	--shd-primary: #A24522;
	--shd-secondary: #4E341B;
	--shd-text: #1C1106;
	--shd-accent: #846447;
	--shd-ivory: #FBF8F3;
	--shd-cream: #F3EDE5;
	--shd-border: #E5DCD2;
}

/* ---- Inspired-by line ---- */

ul.products li.product .shd-card__inspired {
	display: block;
	margin: 4px 0 10px;
	font-family: Manrope, sans-serif;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.2px;
	color: var(--shd-accent);
	text-align: center;
}

ul.products li.product .shd-card__inspired-by,
ul.products li.product .shd-card__inspired-name {
	display: block;
}

ul.products li.product .shd-card__inspired-name {
	color: var(--shd-secondary);
}

/* ---- Note chips ---- */

ul.products li.product .shd-card__notes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

ul.products li.product .shd-card__note {
	display: inline-block;
	margin: 0;
	padding: 3px 8px;
	border: 1px solid var(--shd-border);
	border-radius: 2px;
	background: var(--shd-ivory);
	font-family: Manrope, sans-serif;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0.3px;
	color: var(--shd-secondary);
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- From $XX price ---- */

ul.products li.product .price .shd-card__from {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	font-family: Manrope, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--shd-text);
}

ul.products li.product .price .shd-card__from-label {
	font-size: 12px;
	font-weight: 400;
	color: var(--shd-accent);
}

ul.products li.product .price .shd-card__from .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

/* ---- Screen-reader-only tier labels ---- */

ul.products li.product .shd-card__notes .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
	ul.products li.product .shd-card__note {
		font-size: 10px;
		padding: 3px 7px;
	}
}

@media (max-width: 767px) {
	ul.products li.product .shd-card__inspired {
		font-size: 11px;
		margin-bottom: 8px;
	}

	ul.products li.product .shd-card__notes {
		gap: 4px;
		margin-bottom: 8px;
	}

	ul.products li.product .shd-card__note {
		padding: 2px 6px;
		font-size: 10px;
		white-space: normal;
	}

	ul.products li.product .price .shd-card__from {
		font-size: 13px;
	}
}