/**
 * Homepage — restyle plugin .zampoush-home__* sections
 */

.zampoush-home {
	--zp-home-section-pad: var(--zp-space-35);
	max-width: none !important;
	width: 100% !important;
	padding: 0 0 var(--zp-space-35) !important;
	margin: 0 !important;
}

.zampoush-home__section-title {
	font-size: var(--zp-font-size-section);
	font-weight: 600;
	color: var(--zp-color-text-heading);
	line-height: 1.2;
	margin-bottom: var(--zp-space-25);
}

/* Hero — full-viewport bleed (overrides plugin homepage.css grid/container) */
.zampoush-home__hero {
	position: relative;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: center;
	grid-template-columns: none !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-inline: calc(50% - 50vw) !important;
	min-height: 590px !important;
	margin-bottom: var(--zp-space-35);
	overflow: hidden;
	isolation: isolate;
}

.zampoush-home__hero-media {
	position: absolute !important;
	inset: 0 !important;
	z-index: 0;
	min-height: 100% !important;
	border-radius: 0 !important;
	overflow: hidden;
}

.zampoush-home__hero-media--placeholder {
	background:
		linear-gradient(135deg, rgba(17, 17, 17, 0.45), rgba(var(--zp-color-primary-rgb), 0.35)),
		linear-gradient(160deg, rgba(var(--zp-color-primary-rgb), 0.55), #1a3d34 70%);
}

.zampoush-home__hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 28% center;
}

.zampoush-home__hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to inline-start, rgba(12, 36, 30, 0.08), rgba(12, 36, 30, 0.28) 46%, rgba(12, 36, 30, 0.62) 100%),
		linear-gradient(180deg, rgba(12, 36, 30, 0.12), transparent 28%, rgba(12, 36, 30, 0.28));
	pointer-events: none;
}

.zampoush-home__hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--zp-container-inner);
	margin-inline: auto;
	padding: 200px var(--zp-gutter) var(--zp-space-50);
	background: transparent !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.zampoush-home__hero-title {
	font-size: var(--zp-font-size-hero) !important;
	font-weight: 900 !important;
	line-height: 44px !important;
	color: var(--zp-color-text-on-primary) !important;
	margin-bottom: var(--zp-space-15);
	max-width: 640px;
	text-shadow: 0 8px 28px rgba(12, 36, 30, 0.45);
}

.zampoush-home__hero-subtitle {
	font-size: 16px !important;
	color: rgba(255, 255, 255, 0.92) !important;
	margin-bottom: var(--zp-space-25);
	max-width: 520px;
	text-shadow: 0 4px 18px rgba(12, 36, 30, 0.4);
}

.zampoush-home__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--zp-space-15);
}

@media (max-width: 991px) {
	.zampoush-home__hero {
		min-height: 480px;
	}

	.zampoush-home__hero-img {
		object-position: 18% center;
	}

	.zampoush-home__hero-content {
		padding-block: 120px var(--zp-space-35);
	}
}

@media (max-width: 390px) {
	.zampoush-home__hero {
		min-height: 420px;
	}

	.zampoush-home__hero-title {
		font-size: var(--zp-font-size-hero);
		line-height: 44px;
	}

	.zampoush-home__hero-content {
		padding-block: 90px var(--zp-space-30);
	}
}

.zampoush-home__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--zp-space-15) var(--zp-space-25);
	border-radius: var(--zp-radius-pill);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zampoush-home__button--primary {
	background: var(--zp-color-primary);
	color: var(--zp-color-text-on-primary) !important;
	box-shadow: var(--zp-shadow-accent);
}

.zampoush-home__button--secondary {
	background: var(--zp-color-primary-tint);
	color: var(--zp-color-primary) !important;
}

.zampoush-home__button:hover {
	transform: translateY(-1px);
	opacity: 1;
}

/* Family cards */
.zampoush-home__families {
	padding-block: var(--zp-home-section-pad);
}

.zampoush-home__families-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--zp-space-20);
	max-width: var(--zp-container-inner);
	margin-inline: auto;
	padding-inline: var(--zp-gutter);
}

@media (max-width: 576px) {
	.zampoush-home__families-grid {
		grid-template-columns: 1fr;
	}
}

.zampoush-home__family-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 152px;
	padding: var(--zp-space-30);
	border-radius: var(--zp-radius-lg);
	background: var(--zp-color-surface);
	box-shadow: var(--zp-shadow-card);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zampoush-home__family-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--zp-shadow-accent);
	opacity: 1;
}

.zampoush-home__family-card--socks {
	background: linear-gradient(160deg, rgba(var(--zp-color-primary-rgb), 0.12), var(--zp-color-surface));
}

.zampoush-home__family-card--underwear {
	background: linear-gradient(160deg, rgba(110, 134, 216, 0.1), var(--zp-color-surface));
}

.zampoush-home__family-label {
	font-size: 20px;
	font-weight: 700;
	color: var(--zp-color-text-heading);
}

.zampoush-home__family-desc {
	font-size: 13px;
	color: var(--zp-color-text-muted);
	margin-top: var(--zp-space-5);
}

/* Discovery chips */
.zampoush-home__discovery {
	padding-block: var(--zp-home-section-pad);
	background: var(--zp-color-surface-alt);
}

.zampoush-home__discovery .zampoush-home__section-title,
.zampoush-home__discovery-chips {
	max-width: var(--zp-container-inner);
	margin-inline: auto;
	padding-inline: var(--zp-gutter);
}

.zampoush-home__discovery-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--zp-space-10);
}

.zampoush-home__chip {
	display: inline-flex;
	padding: var(--zp-space-10) var(--zp-space-20);
	border-radius: var(--zp-radius-pill);
	background: var(--zp-color-surface);
	border: 1px solid var(--zp-color-border);
	color: var(--zp-color-text);
	font-size: 13px;
	transition: all 0.2s ease;
}

.zampoush-home__chip:hover {
	background: var(--zp-color-primary);
	color: var(--zp-color-text-on-primary);
	border-color: var(--zp-color-primary);
	opacity: 1;
}

/* Product rails */
.zampoush-home__products {
	padding-block: var(--zp-home-section-pad);
}

.zampoush-home__products:nth-child(even) {
	background: var(--zp-color-surface-alt);
}

.zampoush-home__section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--zp-space-15);
	max-width: var(--zp-container-inner);
	margin: 0 auto var(--zp-space-25);
	padding-inline: var(--zp-gutter);
}

.zampoush-home__section-link {
	font-size: 14px;
	color: var(--zp-color-primary);
	font-weight: 500;
}

.zampoush-home__product-grid {
	max-width: var(--zp-container-inner);
	margin-inline: auto;
	padding-inline: var(--zp-gutter);
}

.zampoush-home__product-grid ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
	.zampoush-home__product-grid ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Promo */
.zampoush-home__promo {
	padding-block: var(--zp-space-35);
	background: var(--zp-color-surface-alt);
}

.zampoush-home__promo-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--zp-space-30);
	align-items: center;
	max-width: var(--zp-container-inner);
	margin-inline: auto;
	padding-inline: var(--zp-gutter);
}

@media (max-width: 768px) {
	.zampoush-home__promo-inner {
		grid-template-columns: 1fr;
	}
}

.zampoush-home__promo-img {
	border-radius: var(--zp-radius-lg);
	width: 100%;
}

.zampoush-home__promo-title {
	font-size: var(--zp-font-size-section);
	margin-bottom: var(--zp-space-10);
}

.zampoush-home__promo-subtitle {
	color: var(--zp-color-text-muted);
	margin-bottom: var(--zp-space-20);
}

/* Trust */
.zampoush-home__trust {
	padding-block: var(--zp-home-section-pad);
}

.zampoush-home__trust-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--zp-space-20);
	max-width: var(--zp-container-inner);
	margin-inline: auto;
	padding-inline: var(--zp-gutter);
}

@media (max-width: 768px) {
	.zampoush-home__trust-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

.zampoush-home__trust-item {
	text-align: center;
	padding: var(--zp-space-20);
	background: var(--zp-color-surface);
	border-radius: var(--zp-radius-md);
	box-shadow: var(--zp-shadow-card);
	font-size: 14px;
	color: var(--zp-color-text-secondary);
}

/* Support CTA */
.zampoush-home__support-cta {
	padding: var(--zp-space-35) var(--zp-gutter);
	margin: var(--zp-space-35) var(--zp-gutter);
	text-align: center;
	background: var(--zp-color-primary-tint);
	border-radius: var(--zp-radius-lg);
}

.zampoush-home__support-text {
	color: var(--zp-color-text-muted);
	margin-bottom: var(--zp-space-20);
}

.zampoush-home__support-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--zp-space-15);
	justify-content: center;
}

.zampoush-home__support-faq-link {
	margin-top: var(--zp-space-15);
	font-size: 13px;
}

.zampoush-home__support-faq-link a {
	color: var(--zp-color-text-muted);
}

/* Section title centering helper */
.zampoush-home__section-title--visually-centered {
	text-align: center;
	max-width: var(--zp-container-inner);
	margin-inline: auto;
	padding-inline: var(--zp-gutter);
}

.zampoush-home > section > .zampoush-home__section-title:first-child {
	max-width: var(--zp-container-inner);
	margin-inline: auto;
	padding-inline: var(--zp-gutter);
}
