/* PP Featured Rows — shortcode wrapper.
 * The row itself is styled by the theme (components.css / style.css: .pp-picks-*,
 * .pp-products-section, .pp-card). These rules adapt the homepage section spacing
 * to page content, and shield the row from page-content typography. */

.pp-frows-embed {
	margin: var(--pp-sp-8) 0;
	/* Match body text metrics (style.css body + Storefront's 1.618 line-height)
	   instead of inheriting the blog content's larger size and 1.75 line-height. */
	font-size: var(--pp-fs-body);
	line-height: 1.618;
	color: var(--pp-text-2);
}

/* contained (default): the page content already has its own side gutter, so
   drop the homepage's page-gutter padding and section-gap top padding. */
.pp-frows-embed--contained .pp-picks-section {
	padding: 0;
}

.pp-frows-embed--contained .pp-picks-carousel {
	scroll-padding-left: 0;
}

/* full: keep the homepage spacing (for full-width templates). */
.pp-frows-embed--full {
	margin: 0;
}

/* ── Content-page shield ─────────────────────────────────────────────────────
 * The Content Page templates (template-parts/content-page.php) wrap the_content()
 * in .entry-content.pp-post-content. blog.css styles every img/h2/h3/a in there
 * (.pp-post-content img|h2|h3|a — specificity 0,1,1, loaded after the theme's
 * card rules) and Storefront underlines .hentry .entry-content a. Each rule below
 * restates the theme's own value for a property those rules change, at 0,2,0+,
 * so the row renders exactly as on the homepage whatever the load order. */

/* Card image: blog.css sets height:auto + margin + radius, which pushes the
   image out of its fixed-height tile and over the product name. */
.pp-frows-embed .pp-card .pp-card__img {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
}

/* Section heading: no blog left bar/indent, theme size and weight. */
.pp-frows-embed .pp-section-title {
	font-size: var(--pp-fs-h1);
	font-weight: var(--pp-fw-black);
	color: var(--pp-ink);
	margin: 0;
	padding-left: 0;
	border-left: 0;
}

@media (max-width: 600px) {
	.pp-frows-embed .pp-section-title {
		font-size: 28px;
	}
}

/* Product name: no blog numbered circle / divider / flex row. */
.pp-frows-embed .pp-card__name {
	display: block;
	font-size: var(--pp-fs-body);
	font-weight: var(--pp-fw-semibold);
	color: inherit;
	margin: var(--pp-sp-1) 0 0;
	padding-top: 0;
	border-top: 0;
	counter-increment: none;
}

.pp-frows-embed .pp-card__name::before {
	content: none;
}

/* Links: no blog magenta / Storefront underline. */
.pp-frows-embed .pp-picks-section a[href] {
	text-decoration: none;
}

.pp-frows-embed .pp-card__name-link {
	color: inherit;
}

.pp-frows-embed .pp-card__name-link:hover {
	color: var(--pp-magenta);
}

.pp-frows-embed .pp-btn--secondary {
	color: var(--pp-ink);
}

.pp-frows-embed .pp-btn--secondary:hover {
	color: var(--pp-magenta);
}
