/*
 * Perfect Woo — Home template styles. Loaded ONLY on the Home page template.
 * Scoped under .pwc-home so nothing leaks into the rest of the store. Box-model rules use
 * LOGICAL properties to stay RTL-safe. Brand tokens (live-site blue/green) are local vars.
 */
.pwc-home {
	--pwc-brand: #1b8a52;
	--pwc-brand-hover: #487d59;
	--pwc-brand-ink: #ffffff;
	--pwc-green-light: #e8f5ee;
	--pwc-green-dark: #14633b;
	--pwc-gold: #ffd700;
	--pwc-black: #0a0a0a;
	--pwc-ok: #1b8a52;
	--pwc-ink: #141410;
	--pwc-body: #545453;
	--pwc-muted: #717171;
	--pwc-grey: #f4f4f4;
	--pwc-soft: #ffffff;
	--pwc-line: #eaeaea;
	--pwc-display: "Barlow Condensed", "Outfit", system-ui, sans-serif;
	--pwc-container: 1280px;
	/* The whole content area is a centred 1280px container. Header and footer (separate template
	   parts) stay full-width. The hero fills this container edge-to-edge; text sections add gutters. */
	max-inline-size: var(--pwc-container);
	margin-inline: auto;
	color: var(--pwc-body);
	overflow-x: clip;
}
.pwc-home h1, .pwc-home h2, .pwc-home h3 {
	color: var(--pwc-ink);
	font-family: var(--pwc-display);
}
/* Flush bands with alternating backgrounds — white / off-white (zebra). The hero keeps its own
   two-tone band; every other section gets vertical padding and an alternating fill. */
.pwc-home > * {
	margin-block-end: 0;
}
.pwc-home > section {
	padding-block: clamp(48px, 6vw, 72px);
	background: #ffffff;
}
.pwc-home > section:nth-of-type(even) {
	background: #f9f9f8;
}
.pwc-home > section.pwc-hero {
	padding-block: 0;
	background: var(--pwc-grey);
}
/* Inner gutters for content sections (the hero spans the full container width on purpose). */
.pwc-cats,
.pwc-picks,
.pwc-reviews,
.pwc-how,
.pwc-guar,
.pwc-news,
.pwc-body {
	padding-inline: clamp(1rem, 4vw, 2rem);
}

/* Shared section heading (eyebrow + Barlow Condensed title + muted sub) */
.pwc-sec-head {
	text-align: center;
	margin-block-end: 2rem;
}
.pwc-sec-head .pwc-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--pwc-brand);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-block-end: 10px;
}
.pwc-sec-head h2 {
	margin: 0 0 .5rem;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	line-height: 1.05;
}
.pwc-sec-head p {
	margin: 0 auto;
	max-inline-size: 600px;
	color: var(--pwc-muted);
}

/* Buttons */
.pwc-btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 7px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	line-height: 1.2;
}
.pwc-btn--gold {
	background: var(--pwc-brand);
	color: var(--pwc-gold);
	font-weight: 800;
	padding: 14px 32px;
	font-size: 15px;
}
.pwc-btn--gold:hover { background: var(--pwc-brand-hover); }
.pwc-btn--dark { background: var(--pwc-black); color: #fff; }
.pwc-btn--dark:hover { background: #2a2a2a; }
.pwc-btn--link {
	color: var(--pwc-brand);
	border-bottom: 1px solid var(--pwc-brand);
	padding: 0 0 1px;
	border-radius: 0;
	font-weight: 500;
}

/* 1 — Hero (full-bleed two-tone band; matches live storefront) */
.pwc-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-block-size: 520px;
	background: var(--pwc-grey);
	position: relative;
	overflow: hidden;
}
.pwc-hero::before {
	content: "";
	position: absolute;
	inset-block-start: -80px;
	inset-inline-end: -80px;
	inline-size: 500px;
	block-size: 500px;
	background: radial-gradient(circle, rgba(27, 138, 82, .08) 0%, transparent 70%);
	pointer-events: none;
}
.pwc-hero__left {
	padding: 64px clamp(24px, 5vw, 52px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-inline-size: 0; /* let the grid column shrink instead of overflowing */
}
.pwc-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	inline-size: fit-content;
	background: var(--pwc-green-light);
	color: var(--pwc-green-dark);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 5px 12px;
	border-radius: 4px;
	margin-block-end: 18px;
}
.pwc-hero__badge svg { inline-size: 12px; block-size: 12px; }
.pwc-hero__title {
	font-size: clamp(38px, 5.5vw, 58px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.01em;
	color: var(--pwc-black);
	margin: 0 0 14px;
}
.pwc-hero__accent { color: var(--pwc-brand); }
.pwc-hero__sub {
	font-size: 15px;
	color: var(--pwc-muted);
	line-height: 1.65;
	max-inline-size: 380px;
	margin: 0 0 20px;
}
.pwc-hero__cta {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-block-end: 24px;
}
.pwc-hero__micro {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pwc-hero__micro li {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--pwc-muted);
}
.pwc-check {
	inline-size: 16px;
	block-size: 16px;
	border-radius: 50%;
	background: var(--pwc-brand);
	flex-shrink: 0;
	position: relative;
}
.pwc-check::after {
	content: "";
	position: absolute;
	inset-block-start: 5px;
	inset-inline-start: 4px;
	inline-size: 7px;
	block-size: 4px;
	border-inline-start: 1.5px solid #fff;
	border-block-end: 1.5px solid #fff;
	transform: rotate(-45deg);
}
.pwc-hero__right {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: #efefed;
	padding: 40px;
	text-decoration: none;
	color: var(--pwc-ink);
}
.pwc-hero__media {
	inline-size: 100%;
	max-inline-size: 360px;
	display: block;
}
.pwc-hero__media img {
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain;
}
.pwc-hero__pname {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	max-inline-size: 320px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pwc-hero__pricetag {
	background: var(--pwc-brand);
	color: #fff;
	font-family: var(--pwc-display);
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	padding: 10px 22px;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(27, 138, 82, .35);
}
.pwc-hero__pricetag .amount,
.pwc-hero__pricetag bdi { color: #fff; }
@media (max-width: 900px) {
	.pwc-hero { grid-template-columns: 1fr; }
	.pwc-hero__right { display: none; }
	.pwc-hero__left { padding: 48px 24px; max-inline-size: none; }
}

/* 3 — Top Picks slider (Splide). Card visuals are mine; Splide handles layout + controls. */
.pwc-picks-slider {
	position: relative;
	padding-block-end: 2.5rem; /* room for the pagination dots below */
}
.pwc-picks-slider .splide__slide { block-size: auto; } /* stretch slides to equal height */
.pwc-card {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	block-size: 100%; /* fill the slide so cards are equal height */
	background: #fff;
	border: 1px solid var(--pwc-line);
	border-radius: 12px;
	padding: 14px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pwc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
	border-color: var(--pwc-brand);
}
.pwc-card__media {
	display: block;
	background: var(--pwc-grey);
	border-radius: 8px;
	padding: 10px;
}
.pwc-card__media img {
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain;
}
.pwc-card__title {
	font-weight: 600;
	color: var(--pwc-ink);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pwc-card__title:hover { color: var(--pwc-brand); }
.pwc-card__price { color: var(--pwc-ink); font-weight: 700; font-size: 1.05rem; }
.pwc-card__price .amount, .pwc-card__price bdi { color: var(--pwc-ink); }
.pwc-card .button {
	margin-block-start: auto;
	display: inline-block;
	background: var(--pwc-brand);
	color: #fff;
	border: 0;
	border-radius: 7px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.pwc-card .button:hover { background: var(--pwc-brand-hover); }
.pwc-card .button.disabled, .pwc-card .button[disabled] { background: var(--pwc-muted); cursor: not-allowed; }

/* Splide controls — themed to match the brand. The core CSS ships NO arrow positioning, so set
   it all here (position, vertical centring, and prev/next placement on opposite sides). */
.pwc-picks-slider .splide__arrow {
	position: absolute;
	inset-block-start: calc(50% - 1.25rem); /* centre on the cards, above the pagination */
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.6rem;
	block-size: 2.6rem;
	background: #fff;
	border: 1px solid var(--pwc-line);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	opacity: 1;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease;
}
.pwc-picks-slider .splide__arrow svg {
	inline-size: 1rem;
	block-size: 1rem;
	fill: var(--pwc-ink);
	transition: fill .2s ease;
}
.pwc-picks-slider .splide__arrow:hover:not(:disabled) { background: var(--pwc-brand); border-color: var(--pwc-brand); }
.pwc-picks-slider .splide__arrow:hover:not(:disabled) svg { fill: #fff; }
.pwc-picks-slider .splide__arrow:disabled { opacity: .3; cursor: default; }
.pwc-picks-slider .splide__arrow--prev { left: -0.5rem; right: auto; }
.pwc-picks-slider .splide__arrow--next { right: -0.5rem; left: auto; }
/* Core ships one SVG for both arrows — flip the prev arrow so it points left. */
.pwc-picks-slider .splide__arrow--prev svg { transform: scaleX(-1); }
.pwc-picks-slider .splide__pagination { bottom: 0; gap: 6px; padding: 0; }
.pwc-picks-slider .splide__pagination__page {
	inline-size: 8px;
	block-size: 8px;
	margin: 0;
	background: var(--pwc-line);
	opacity: 1;
	transition: inline-size .2s ease, background .2s ease;
}
.pwc-picks-slider .splide__pagination__page.is-active {
	background: var(--pwc-brand);
	transform: none;
	inline-size: 22px;
	border-radius: 4px;
}

/* 4 — Shop by Category */
.pwc-cats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
}
.pwc-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-block-size: 160px;
	padding: 25px 15px;
	text-align: center;
	text-decoration: none;
	background: var(--pwc-grey);
	border: 1.5px solid transparent;
	border-radius: 12px;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pwc-cat:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
	border-color: var(--pwc-brand);
}
.pwc-cat__icon { font-size: 32px; margin-block-end: 8px; }
.pwc-cat__name {
	font-family: var(--pwc-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--pwc-black);
}
.pwc-cat__count { font-size: 13px; color: var(--pwc-muted); }
@media (max-width: 600px) {
	.pwc-cats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.pwc-cat { min-block-size: 140px; padding: 20px 10px; }
	.pwc-cat__name { font-size: 15px; }
}

/* 5 — Testimonials */
.pwc-reviews__widget { margin-block-start: 0.5rem; }
.pwc-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pwc-review {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	background: var(--pwc-soft);
	border: 1px solid var(--pwc-line);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.pwc-review__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.pwc-review__stars { color: #fbbc04; font-size: 15px; letter-spacing: 1px; }
.pwc-review__src {
	inline-size: 22px;
	block-size: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--pwc-display);
	font-weight: 800;
	font-size: 14px;
	color: #fff;
	/* Google's four-colour mark, simplified into a conic ring. */
	background: conic-gradient(#ea4335 0 25%, #fbbc04 0 50%, #34a853 0 75%, #4285f4 0);
}
.pwc-review__text {
	margin: 0;
	color: var(--pwc-body);
	font-size: .95rem;
	line-height: 1.6;
	/* Keep cards even — Google reviews vary a lot in length. */
	display: -webkit-box;
	-webkit-line-clamp: 7;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pwc-review__by {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-block-start: auto;
}
.pwc-review__avatar { inline-size: 32px; block-size: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pwc-review__byline { display: flex; flex-direction: column; min-inline-size: 0; }
.pwc-review__byline strong { color: var(--pwc-ink); font-size: .95rem; }
.pwc-review__byline span { color: var(--pwc-muted); font-size: 12px; }
@media (max-width: 781px) {
	.pwc-reviews__widget { margin-block-start: 0.5rem; }
.pwc-reviews__grid { grid-template-columns: 1fr; }
}

/* 6 — How it works (green numbered circles + connector line) */
.pwc-how__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	position: relative;
}
.pwc-how__grid::before {
	content: "";
	position: absolute;
	inset-block-start: 28px;
	inset-inline: 12.5%;
	block-size: 2px;
	background: linear-gradient(to right, var(--pwc-brand), rgba(27, 138, 82, .15));
	opacity: .5;
	z-index: 0;
}
.pwc-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	z-index: 1;
	padding-inline: 10px;
}
.pwc-step__n {
	inline-size: 56px;
	block-size: 56px;
	border-radius: 50%;
	background: var(--pwc-brand);
	color: #fff;
	font-family: var(--pwc-display);
	font-size: 24px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-block-end: 24px;
	box-shadow: 0 0 0 8px rgba(27, 138, 82, .15);
}
.pwc-step strong {
	font-family: var(--pwc-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--pwc-ink);
	margin-block-end: 10px;
}
.pwc-step p { margin: 0; color: var(--pwc-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
	.pwc-how__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
	.pwc-how__grid::before { display: none; }
}
@media (max-width: 560px) {
	.pwc-how__grid { grid-template-columns: 1fr; }
}

/* 7 — Guarantees (4 boxes) */
.pwc-guar__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pwc-guar__box {
	padding: 28px 20px;
	background: var(--pwc-grey);
	border: 1px solid var(--pwc-line);
	border-radius: 12px;
	text-align: center;
}
.pwc-guar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 50%;
	background: var(--pwc-green-light);
	font-size: 26px;
	margin-block-end: 16px;
}
.pwc-guar__box strong {
	display: block;
	font-family: var(--pwc-display);
	font-size: 19px;
	font-weight: 700;
	color: var(--pwc-ink);
	margin-block-end: 8px;
}
.pwc-guar__box p { margin: 0; color: var(--pwc-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
	.pwc-guar__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.pwc-guar__grid { grid-template-columns: 1fr; }
}

/* 8 — Newsletter (light, centered; joined input + button) */
.pwc-news {
	text-align: center;
}
.pwc-news__eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--pwc-brand);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-block-end: 12px;
}
.pwc-news h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 32px); }
.pwc-news__body {
	margin: 0 auto 24px;
	max-inline-size: 500px;
	color: var(--pwc-muted);
	font-size: 15px;
	line-height: 1.6;
}
.pwc-news .pwc-newsletter {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	max-inline-size: 480px;
	margin-inline: auto;
}
.pwc-news .pwc-newsletter input {
	flex: 1;
	padding: 14px 20px;
	border: 1px solid var(--pwc-line);
	border-inline-end: none;
	border-radius: 8px 0 0 8px;
	font: inherit;
	color: var(--pwc-ink);
	background: rgba(0, 0, 0, .02);
	outline: none;
}
.pwc-news .pwc-newsletter input:focus { border-color: var(--pwc-brand); background: #fff; }
.pwc-news .pwc-newsletter button {
	background: var(--pwc-brand);
	color: #fff;
	border: 0;
	padding: 14px 28px;
	border-radius: 0 8px 8px 0;
	font-family: var(--pwc-display);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.pwc-news .pwc-newsletter button:hover { background: var(--pwc-brand-hover); }
.pwc-news__note { display: block; margin-block-start: 12px; color: var(--pwc-muted); font-size: 12px; }
@media (max-width: 560px) {
	.pwc-news .pwc-newsletter { flex-direction: column; gap: 10px; }
	.pwc-news .pwc-newsletter input { border-inline-end: 1px solid var(--pwc-line); border-radius: 8px; }
	.pwc-news .pwc-newsletter button { border-radius: 8px; }
}

/* Optional editable page body */
.pwc-body { max-inline-size: 720px; margin-inline: auto; }
