/**
 * Home page layout: trust bar wrapper, hero, category tiles, bestsellers, guide, USP.
 *
 * Loaded only on the front page (see wpshop_front_page_styles() in
 * wp-shop-customizations.php). Colours and shadows reuse the site's existing tokens
 * (--theme-palette-color-N from the Customizer, --shadow-card/--transition from
 * design-system.css) rather than introducing a second palette -- a Customizer colour
 * change should still reach this page the same way it reaches everywhere else.
 *
 * Breakpoints (999px / 689px) match trust-bar.css / Blocksy's own tablet and mobile cuts.
 */

.wpshop-home-wrap {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
}

.wpshop-home section {
	padding-block: 64px;
}

@media ( max-width: 689px ) {
	.wpshop-home section {
		padding-block: 40px;
	}
}

/* ---------- Trust bar wrapper (grid + item styling live in trust-bar.css) ---------- */

.wpshop-trust {
	background: var( --theme-palette-color-8, #ffffff );
	border-bottom: 1px solid var( --theme-palette-color-5, #bbc4bc );
}

.wpshop-trust .ds-trust-bar__grid {
	padding-block: 22px;
}

/* ---------- Hero ---------- */

.wpshop-hero {
	background: var( --theme-palette-color-3, #405d4f );
	color: #ffffff;
}

.wpshop-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
	padding-block: 72px;
}

@media ( max-width: 860px ) {
	.wpshop-hero__grid {
		grid-template-columns: 1fr;
		padding-block: 48px;
	}
}

.wpshop-hero__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --theme-palette-color-6, #dee5df );
	border: 1px solid rgba( 255, 255, 255, .25 );
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: 20px;
}

.wpshop-hero h1 {
	font-family: 'IBM Plex Serif', Georgia, serif;
	font-size: clamp( 30px, 4vw, 46px );
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	text-wrap: balance;
}

.wpshop-hero__lede {
	margin-top: 18px;
	font-size: 17px;
	line-height: 1.6;
	color: var( --theme-palette-color-6, #dee5df );
	max-width: 46ch;
}

.wpshop-hero__cta {
	margin-top: 32px;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.wpshop-btn {
	font-weight: 600;
	font-size: 15px;
	border-radius: 8px;
	padding: 14px 26px;
	border: 1px solid transparent;
	transition: background var( --transition, 180ms ease ), border-color var( --transition, 180ms ease );
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Both hero buttons sit on the dark wpshop-hero background (--theme-palette-color-3).
   A solid palette-accent fill there reads as dark-on-dark -- low contrast regardless of
   which accent colour is active. Every colour/background here is !important: something
   on this page overrides plain var(--theme-palette-color-N) fills with the maroon slot
   (reproduced with the ghost button's text; root cause not found in any enqueued
   stylesheet), so these are pinned to guarantee the light-on-dark contrast the hero
   needs regardless of that fight. */
.wpshop-btn--primary {
	background: var( --theme-palette-color-8, #ffffff ) !important;
	color: var( --theme-palette-color-4, #103428 ) !important;
}

.wpshop-btn--primary:hover {
	background: var( --theme-palette-color-7, #f0f5f1 ) !important;
}

.wpshop-btn--ghost {
	background: transparent !important;
	color: #ffffff !important;
	border-color: rgba( 255, 255, 255, .6 ) !important;
}

.wpshop-btn--ghost:hover {
	background: rgba( 255, 255, 255, .1 ) !important;
	border-color: #ffffff !important;
}

.wpshop-hero__art {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	background: rgba( 0, 0, 0, .18 );
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba( 255, 255, 255, .55 );
	font-size: 13px;
	text-align: center;
	padding: 20px;
	border: 1px solid rgba( 255, 255, 255, .12 );
	overflow: hidden;
}

.wpshop-hero__art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/* ---------- Section heading ---------- */

.wpshop-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.wpshop-section-head h2 {
	font-family: 'IBM Plex Serif', Georgia, serif;
	font-size: 28px;
	margin: 0;
}

.wpshop-section-head__sub {
	color: var( --theme-palette-color-3, #405d4f );
	font-size: 15px;
	margin: 6px 0 0;
}

.wpshop-see-all {
	font-weight: 600;
	font-size: 14px;
	color: var( --theme-palette-color-1, #227f53 );
	white-space: nowrap;
}

.wpshop-see-all:hover {
	color: var( --theme-palette-color-4, #103428 );
}

/* ---------- Category tiles ---------- */

.wpshop-cats {
	background: var( --theme-palette-color-8, #ffffff );
}

.wpshop-cat-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 20px;
}

@media ( max-width: 780px ) {
	.wpshop-cat-grid {
		grid-template-columns: 1fr;
	}
}

.wpshop-cat-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 16 / 11;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	color: #ffffff;
	box-shadow: var( --shadow-card, 0 1px 2px rgba( 16, 52, 40, .06 ), 0 10px 30px -14px rgba( 16, 52, 40, .22 ) );
	transition: transform var( --transition, 180ms ease ), box-shadow var( --transition, 180ms ease );
}

.wpshop-cat-card:hover {
	transform: translateY( var( --hover-lift, -3px ) );
	box-shadow: var( --shadow-card-hover, 0 6px 14px rgba( 16, 52, 40, .10 ), 0 22px 48px -18px rgba( 16, 52, 40, .32 ) );
}

.wpshop-cat-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient( 180deg, transparent 35%, rgba( 16, 52, 40, .82 ) 100% );
}

.wpshop-cat-card--mice { background-color: var( --theme-palette-color-3, #405d4f ); }
.wpshop-cat-card--rats { background-color: var( --theme-palette-color-4, #103428 ); }
.wpshop-cat-card--moles { background-color: var( --theme-palette-color-2, #760b34 ); }

.wpshop-cat-card img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpshop-cat-card h3 {
	position: relative;
	z-index: 2;
	font-family: 'IBM Plex Serif', Georgia, serif;
	font-size: 22px;
	color: #ffffff;
	margin: 0;
}

.wpshop-cat-card__count {
	position: relative;
	z-index: 2;
	font-size: 13px;
	color: var( --theme-palette-color-6, #dee5df );
	margin: 4px 0 0;
}

/* ---------- Bestsellers ---------- */

.wpshop-products {
	background: var( --theme-palette-color-7, #f0f5f1 );
}

.wpshop-prod-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 20px;
}

@media ( max-width: 940px ) {
	.wpshop-prod-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

.wpshop-prod-card {
	display: block;
	background: var( --theme-palette-color-8, #ffffff );
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var( --shadow-card, 0 1px 2px rgba( 16, 52, 40, .06 ), 0 10px 30px -14px rgba( 16, 52, 40, .22 ) );
	transition: transform var( --transition, 180ms ease ), box-shadow var( --transition, 180ms ease );
}

.wpshop-prod-card:hover {
	transform: translateY( var( --hover-lift, -3px ) );
	box-shadow: var( --shadow-card-hover, 0 6px 14px rgba( 16, 52, 40, .10 ), 0 22px 48px -18px rgba( 16, 52, 40, .32 ) );
}

.wpshop-prod-card__thumb {
	aspect-ratio: 1 / 1;
	background: var( --theme-palette-color-6, #dee5df );
	overflow: hidden;
}

.wpshop-prod-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpshop-prod-card__body {
	padding: 14px 14px 18px;
}

.wpshop-prod-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: var( --theme-palette-color-4, #103428 );
	color: #ffffff;
	border-radius: var( --radius-badge, 6px );
	padding: 3px 8px;
	margin-bottom: 9px;
}

.wpshop-prod-tag--humane {
	background: var( --theme-palette-color-1, #227f53 );
}

.wpshop-prod-card__name {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	min-height: 38px;
	color: var( --theme-palette-color-4, #103428 );
}

.wpshop-prod-card__price {
	font-family: 'IBM Plex Serif', Georgia, serif;
	font-weight: 700;
	font-size: 22px;
	margin-top: 10px;
	color: var( --theme-palette-color-4, #103428 );
}

/* ---------- Guide / helper block ---------- */

.wpshop-guide {
	background: var( --theme-palette-color-6, #dee5df );
}

.wpshop-guide__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

@media ( max-width: 860px ) {
	.wpshop-guide__grid {
		grid-template-columns: 1fr;
	}
}

.wpshop-guide h2 {
	font-family: 'IBM Plex Serif', Georgia, serif;
	font-size: 26px;
	max-width: 16ch;
	margin: 0;
	color: var( --theme-palette-color-4, #103428 );
}

.wpshop-guide__lede {
	margin-top: 14px;
	color: var( --theme-palette-color-3, #405d4f );
	font-size: 15px;
	line-height: 1.6;
	max-width: 46ch;
}

.wpshop-guide__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 22px;
}

.wpshop-guide__opt {
	background: var( --theme-palette-color-8, #ffffff );
	border: 1px solid var( --theme-palette-color-5, #bbc4bc );
	border-radius: 10px;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var( --theme-palette-color-4, #103428 );
	transition: border-color var( --transition, 180ms ease );
}

.wpshop-guide__opt:hover {
	border-color: var( --theme-palette-color-1, #227f53 );
}

.wpshop-guide__opt-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wpshop-guide__opt-label {
	font-size: 15px;
	font-weight: 600;
}

.wpshop-guide__opt-note {
	font-size: 13px;
	font-weight: 400;
	color: var( --theme-palette-color-3, #405d4f );
}

.wpshop-guide__arrow {
	flex-shrink: 0;
	color: var( --theme-palette-color-1, #227f53 );
	font-weight: 700;
}

.wpshop-guide__art {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	background: var( --theme-palette-color-8, #ffffff );
	border: 1px solid var( --theme-palette-color-5, #bbc4bc );
	display: flex;
	align-items: center;
	justify-content: center;
	color: var( --theme-palette-color-3, #405d4f );
	font-size: 13px;
	text-align: center;
	padding: 20px;
	overflow: hidden;
}

.wpshop-guide__art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/* ---------- USP row ---------- */

.wpshop-usp {
	background: var( --theme-palette-color-4, #103428 );
	color: #ffffff;
}

.wpshop-usp__grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 32px;
}

@media ( max-width: 780px ) {
	.wpshop-usp__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media ( max-width: 480px ) {
	.wpshop-usp__grid {
		grid-template-columns: 1fr;
	}
}

.wpshop-usp__item h3 {
	font-family: 'IBM Plex Serif', Georgia, serif;
	font-size: 17px;
	color: #ffffff;
	margin: 0 0 8px;
}

.wpshop-usp__item p {
	font-size: 14px;
	line-height: 1.55;
	color: var( --theme-palette-color-6, #dee5df );
	margin: 0;
}
