/**
 * PLP-RECENT — "Recently viewed" rail.
 *
 * Spec: VATALY PLP Design Spec V4 §9.
 * Figma: heading Title 30 (Cormorant Garamond Medium 30px) Ink / Title 24
 * mobile. Cards ~322x393 image + name (Body 16, Manrope Light), horizontal
 * scroll, ~19px gaps.
 *
 * Card markup is WooCommerce's own content-widget-product.php (image +
 * title + price/rating) — price and rating are hidden here since neither is
 * in the Figma card; everything else is that template's real markup.
 *
 * Tokens only — Ink var(--ink_text) · Sand var(--b_clr) · Title var(--font1)
 * · Manrope var(--font2).
 */

.vataly-recent {
	/* Fidelity pass: divider is now real markup (vataly_plp_divider(), see
	   inc/plp-recent.php), so padding-top drops by its 13px height to keep
	   the total gap the same. */
	/* No side padding: the heading centres on the page (Figma), and the list
	   carries its own 12px inset below. */
	padding: 43px 0 56px;
}

.vataly-recent__head {
	margin: 0 0 40px; /* Heading → image row, desktop. */
	text-align: center;
}

.vataly-recent__heading {
	margin: 0;
	font-family: var(--font1);
	font-weight: 500;
	font-size: 30px;
	line-height: normal; /* Figma: Title 30, lineHeight 100% */
	color: var(--ink_text);
	font-style: normal;
}

/* No arrows (Figma has none) — the rail scrolls by swipe / trackpad / a thin
   scrollbar, kept so mouse-only users can still drag it. Removed arrow code:
   docs/recent-arrow-code.md. */
.vataly-recent__list {
	display: flex;
	gap: 19px;
	margin: 0;
	/* Figma: first card at x12. Matching end inset so the last card doesn't
	   sit flush against the edge at the end of the scroll. Bottom 4px is
	   room for the scrollbar. */
	padding: 0 12px 4px;
	scroll-padding-left: 12px;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--ink_text) transparent;
}

.vataly-recent__list::-webkit-scrollbar {
	height: 2px;
}

.vataly-recent__list::-webkit-scrollbar-track {
	background: transparent;
}

.vataly-recent__list::-webkit-scrollbar-thumb {
	background: var(--ink_text);
}

.vataly-recent__list li {
	flex: 0 0 322px;
	scroll-snap-align: start;
}

.vataly-recent__list li a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.vataly-recent__list li img {
	display: block;
	width: 322px;
	height: 393px;
	object-fit: cover;
	object-position: 50% 50%;
	/* Figma: 0.1px INSIDE stroke, Ink, radius 0. Outline rather than an inset
	   box-shadow, which paints beneath the image and wouldn't show. */
	outline: 0.1px solid var(--ink_text);
	outline-offset: -0.1px;
}

/* Found while implementing this pass, not in the delivered audit table:
   margin-top was 16.5px — not a Figma value at all, an arithmetic slip from
   an earlier pass. The real gap, from the Figma instance's own box edges
   (text top 404px, image bottom 393px, both measured from the same group
   origin), is 11px. */
.vataly-recent__list li .product-title {
	display: block;
	margin-top: 11px;
	font-family: var(--font2);
	font-weight: 300;
	font-size: 16px;
	line-height: normal; /* Figma: Body 16, lineHeight 100% */
	color: var(--ink_text);
	font-style:normal;
}

/* Price/rating are not in the Figma card. Konte's own override of the
   reused template (themes/konte/woocommerce/content-widget-product.php)
   wraps the title in .cart_item--summary and prints price as a bare
   .woocommerce-Price-amount span — no rating markup unless $args explicitly
   requests it, which this rail never does. */
.vataly-recent__list li .woocommerce-Price-amount {
	display: none;
}

.vataly-recent__list li .cart_item--summary {
	display: block;
}

/* =========================================================================
   Mobile — Figma [M] 460:5462: Title 24, 200x274 cards, Body 12 caption,
   same horizontal scroll.
   ========================================================================= */

@media (max-width: 767px) {

	.woocommerce-archive .site-content
	{
		    padding-bottom: 26px;
	}

	.vataly-recent {
		padding: 34px 0 40px; /* Figma: 28px divider → heading. */
	}

	.vataly-recent__head {
		margin-bottom: 27px; /* Heading → image row, mobile. */
	}

	.vataly-recent__heading {
		font-size: 24px;
		
font-style: normal;
font-weight: 500;
line-height: normal;
	}

	.vataly-recent__list {
		padding-left: 10px; /* Figma: first card at x10. */
		padding-right: 10px;
		scroll-padding-left: 10px;
	}

	.vataly-recent__list li {
		flex-basis: 200px;
	}

	.vataly-recent__list li img {
		width: 200px;
		height: 274px;
	}

	.vataly-recent__list li .product-title {
		margin-top: 9.625px;
		font-size: 12px;
		font-style: normal;
font-weight: 300;
line-height: normal;
	}
}
