/* ---------- Buttons (server-rendered) ---------- */
.emz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 14px 30px;
	border: 0; border-radius: var(--r-pill);
	font-family: var(--font-ui); font-weight: 700; font-size: 1.02rem;
	text-decoration: none; cursor: pointer;
	transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.emz-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -14px rgba(158,79,71,.75); }
.emz-btn--primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(158,79,71,.8); }
.emz-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.emz-btn--ghost:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.emz-btn:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.emz-hero { text-align: center; padding-block: clamp(64px, 10vw, 130px); position: relative; }
.emz-hero__kicker { margin-bottom: 6px; }
.emz-hero__title { font-size: var(--fs-hero); margin: 0 0 .35em; letter-spacing: -.02em; }
.emz-hero__lead { max-width: 640px; margin: 0 auto 32px; font-size: var(--fs-lead); color: var(--ink-soft); }
.emz-hero__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Product grid ---------- */
.emz-section--products .emz-section__title { text-align: center; }
.emz-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(18px, 2.4vw, 30px);
}
.emz-product-card {
	position: relative; display: flex; flex-direction: column;
	text-decoration: none; color: inherit;
	background: var(--surface); border-radius: var(--r-lg);
	overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.emz-product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.emz-product-card__media { display: block; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.emz-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.emz-product-card:hover .emz-product-card__media img { transform: scale(1.05); }
.emz-product-card__title { padding: 18px 20px 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.emz-product-card__cta {
	padding: 0 20px 20px; font-family: var(--font-ui); font-size: .9rem; font-weight: 600;
	color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px;
}
.emz-product-card__cta::after { content: "→"; transition: transform var(--dur-1) var(--ease-out); }
.emz-product-card:hover .emz-product-card__cta::after { transform: translateX(4px); }

/* ---------- Related products (WooCommerce loop) ----------
   The .emz-product prefix out-specifies woocommerce-layout.css, which
   floats li.product at 22.05% width and injects ::before/::after clearfix
   pseudo-elements that would otherwise become empty grid cells. */
.emz-product .emz-section--related ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px;
}
.emz-product .emz-section--related ul.products::before,
.emz-product .emz-section--related ul.products::after { content: none; }
.emz-product .emz-section--related ul.products li.product {
	float: none; width: auto; margin: 0;
	display: flex; flex-direction: column;
	background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.emz-product .emz-section--related ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.emz-product .emz-section--related ul.products a { text-decoration: none; color: inherit; }
.emz-product .emz-section--related ul.products img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin: 0; }
.emz-product .emz-section--related ul.products .woocommerce-loop-product__title {
	padding: 18px 20px 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.emz-product .emz-section--related ul.products .price { display: none; }
.emz-product .emz-section--related ul.products a.button { margin: auto 20px 20px; align-self: stretch; padding-inline: 16px; }

@media (prefers-reduced-motion: reduce) {
	.emz-product-card, .emz-product-card__media img, .emz-btn { transition: none; }
	.emz-product-card:hover { transform: none; }
	.emz-product-card:hover .emz-product-card__media img { transform: none; }
	.emz-product .emz-section--related ul.products li.product { transition: none; }
	.emz-product .emz-section--related ul.products li.product:hover { transform: none; }
}
