/*
 * BuBuZoo warm editorial visual layer.
 * This file intentionally loads last so the direction is modular and reversible.
 */
:root {
	--zpc-font-display: "Iowan Old Style", Baskerville, "Times New Roman", serif;
	--zpc-font-body: "Avenir Next", "Helvetica Neue", sans-serif;
	--zpc-ink-soft: #171513;
	--zpc-ivory: #fffdfa;
	--zpc-oat: #f5efe9;
	--zpc-blush: #f7ddd6;
	--zpc-peach: #eea18f;
	--zpc-kraft: #b98555;
	--zpc-line-warm: #eadfd7;
	--zpc-muted-warm: #6d655f;
	--zpc-shadow-editorial: 0 1.4rem 3.5rem rgb(56 42 31 / 9%);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: clip;
	background: var(--zpc-ivory);
	color: var(--zpc-ink-soft);
	font-family: var(--zpc-font-body);
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, .product_title, .woocommerce-loop-product__title) {
	font-family: var(--zpc-font-display);
	font-weight: 700;
	letter-spacing: -.025em;
	text-wrap: balance;
}

:where(p, li, summary) {
	text-wrap: pretty;
}

/* Header */
#header [data-row="middle"] {
	border-bottom: 1px solid rgb(23 21 19 / 8%);
	background: rgb(255 253 250 / 96%);
	box-shadow: none;
}

#header .site-branding,
#header .site-logo-container {
	min-width: 0;
}

.site-branding .bubuzoo-wordmark-logo {
	width: auto !important;
	height: 70px !important;
	max-width: 142px !important;
	max-height: 70px !important;
	object-fit: contain;
}

#header .menu > li > a {
	position: relative;
	color: var(--zpc-ink-soft);
	font-size: .86rem;
	font-weight: 600;
	letter-spacing: 0;
}

#header .menu > li > a::after {
	position: absolute;
	right: .7rem;
	bottom: .8rem;
	left: .7rem;
	height: 1px;
	background: currentColor;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease;
}

#header .menu > li > a:hover::after,
#header .menu > li.current-menu-item > a::after {
	transform: scaleX(1);
}

/* Homepage */
.zpc-home {
	background: var(--zpc-ivory);
	color: var(--zpc-ink-soft);
}

.zpc-container {
	width: min(100% - 2.5rem, 78rem);
}

.zpc-section {
	padding-block: clamp(4.5rem, 7vw, 7rem);
}

.zpc-eyebrow {
	color: var(--zpc-muted-warm);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .1em;
}

.zpc-home h2 {
	max-width: 16ch;
	font-size: clamp(2.4rem, 4.8vw, 4.5rem);
	line-height: .98;
}

.zpc-hero {
	background: linear-gradient(110deg, #fffdfa 0%, #faf5f0 56%, #f5e9e2 100%);
	color: var(--zpc-ink-soft);
}

.zpc-hero__grid {
	grid-template-columns: minmax(20rem, .82fr) minmax(28rem, 1.18fr);
	gap: clamp(2.5rem, 5vw, 5.5rem);
	min-height: min(44rem, calc(100svh - 7rem));
	padding-block: clamp(3.25rem, 6vw, 5.75rem);
}

.zpc-hero h1 {
	max-width: 9.5ch;
	color: var(--zpc-ink-soft);
	font-size: clamp(3.4rem, 6.3vw, 6rem);
	line-height: .92;
	letter-spacing: -.045em;
}

.zpc-hero__content > p:not(.zpc-eyebrow) {
	max-width: 31rem;
	margin-top: 1.5rem;
	font-size: clamp(1.05rem, 1.45vw, 1.2rem);
	font-weight: 500;
	line-height: 1.55;
}

.zpc-hero__media {
	min-height: 0;
	aspect-ratio: 3 / 2;
	border: 0;
	border-radius: 1.5rem;
	background-image: url("../images/hero-editorial-kv.jpg");
	background-position: center;
	background-size: cover;
	box-shadow: none;
}

.zpc-hero__media img {
	opacity: 0;
}

.zpc-hero__box {
	display: none;
}

.zpc-actions {
	gap: .8rem;
	margin-top: 1.5rem;
}

.zpc-actions .wp-block-button__link,
.zpc-button,
.zpc-commerce a.button,
.zpc-commerce button.button,
.zpc-action {
	min-height: 46px;
	padding: .82rem 1.35rem;
	border: 1px solid var(--zpc-ink-soft);
	border-radius: 999px;
	box-shadow: none;
	font-weight: 600;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.zpc-actions .zpc-button-primary .wp-block-button__link,
.zpc-button--primary,
.zpc-commerce a.button,
.zpc-commerce button.button,
.zpc-action--primary {
	background: var(--zpc-ink-soft);
	box-shadow: none;
	color: #fff;
}

.zpc-actions .zpc-button-secondary .wp-block-button__link,
.zpc-button--secondary,
.zpc-action--secondary {
	border-color: var(--zpc-ink-soft);
	background: transparent;
	color: var(--zpc-ink-soft);
}

.zpc-actions .wp-block-button__link:hover,
.zpc-button:hover,
.zpc-commerce a.button:hover,
.zpc-commerce button.button:hover,
.zpc-action:hover {
	background: var(--zpc-peach);
	color: var(--zpc-ink-soft);
	transform: translateY(-2px);
}

.zpc-themes {
	background: #fff;
}

.zpc-theme-grid,
.zpc-tier-grid,
.zpc-how-grid {
	gap: clamp(1rem, 2vw, 1.5rem);
}

.zpc-theme-card {
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1.15rem;
	background: var(--zpc-ivory);
	box-shadow: none;
}

.zpc-theme-card:hover {
	box-shadow: var(--zpc-shadow-editorial);
	transform: translateY(-.3rem);
}

.zpc-theme-card__image {
	overflow: hidden;
	background: var(--zpc-oat);
}

.zpc-theme-card__image img {
	transition: transform 450ms cubic-bezier(.2, .7, .2, 1);
}

.zpc-theme-card:hover .zpc-theme-card__image img {
	transform: scale(1.03);
}

.zpc-theme-card__content {
	gap: .65rem;
	padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.zpc-theme-card__content h3 {
	font-size: clamp(1.45rem, 2.3vw, 1.8rem);
}

.zpc-theme-card__content h3 a,
.zpc-text-link {
	color: var(--zpc-ink-soft);
}

.zpc-tiers {
	background: #fbf3ef;
}

.zpc-tier-option {
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1.1rem;
	background: var(--zpc-ivory);
	box-shadow: none;
}

.zpc-tier-option.is-featured {
	border-color: var(--zpc-peach);
	background: #fff8f5;
	box-shadow: 0 0 0 3px rgb(238 161 143 / 18%);
}

.zpc-tier-option__label {
	background: var(--zpc-blush);
	color: var(--zpc-ink-soft);
}

.zpc-tier-option__cta {
	border-color: var(--zpc-ink-soft);
	border-radius: 999px;
	background: var(--zpc-ink-soft);
	color: #fff;
}

.zpc-how {
	background: var(--zpc-oat);
	color: var(--zpc-ink-soft);
}

.zpc-how-grid article,
.zpc-how-grid > .wp-block-column {
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1rem;
	background: var(--zpc-ivory);
}

.zpc-how-grid article > span,
.zpc-how-grid .zpc-step-number {
	background: var(--zpc-blush);
}

.zpc-transparency {
	background: #26211e;
	color: #fffaf6;
}

.zpc-transparency li {
	border: 1px solid rgb(255 255 255 / 12%);
	background: rgb(255 255 255 / 6%);
}

.zpc-transparency__image.wp-block-image img {
	border-radius: 1.25rem;
	box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 22%);
}

.zpc-story-faq {
	background: var(--zpc-ivory);
}

.zpc-story-faq__grid > article,
.zpc-story-faq__grid > .wp-block-column {
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1.2rem;
	background: #fbf2ee;
}

.zpc-story-faq__grid > article + article,
.zpc-story-faq__grid > .wp-block-column + .wp-block-column {
	background: #f3eee8;
}

.zpc-faq {
	background: #fff;
}

.zpc-faq .wp-block-details {
	border-color: var(--zpc-line-warm);
	border-radius: .8rem;
	background: var(--zpc-ivory);
}

.zpc-faq .wp-block-details[open] {
	border-color: var(--zpc-peach);
	background: #fff7f3;
}

.zpc-final-cta {
	background: var(--zpc-blush);
	color: var(--zpc-ink-soft);
}

.zpc-final-cta::after {
	border-color: rgb(255 255 255 / 42%);
}

/* Commerce */
.zpc-commerce {
	--zpc-shop-navy: var(--zpc-ink-soft);
	--zpc-shop-sky: #faf6f2;
	--zpc-shop-coral: var(--zpc-peach);
	--zpc-shop-yellow: var(--zpc-blush);
	--zpc-shop-line: var(--zpc-line-warm);
	background: #faf6f2;
}

.zpc-commerce .site-main {
	padding-block: clamp(1.25rem, 3vw, 3rem);
}

.zpc-commerce .ct-container,
.zpc-commerce .entry-content {
	width: min(100% - 2.5rem, 78rem);
}

.zpc-shop-intro {
	margin: .5rem 0 2.25rem;
	padding: clamp(1.75rem, 3vw, 2.75rem);
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1.25rem;
	background: linear-gradient(120deg, #f6dfd8 0%, #faeee9 100%);
	box-shadow: none;
	color: var(--zpc-ink-soft);
}

.zpc-shop-intro h1 {
	font-size: clamp(2.8rem, 5.2vw, 4.6rem);
}

.zpc-shop-categories a {
	border: 1px solid var(--zpc-line-warm);
	border-radius: 999px;
	background: var(--zpc-ivory);
	box-shadow: none;
	color: var(--zpc-ink-soft);
}

.zpc-shop-categories a:hover,
.zpc-shop-categories a:focus-visible,
.zpc-shop-categories a.is-current {
	border-color: var(--zpc-ink-soft);
	background: var(--zpc-ink-soft);
	box-shadow: none;
	color: #fff;
}

.zpc-commerce .woocommerce-ordering select {
	height: auto;
	min-height: 46px;
	padding-block: .65rem;
	border: 1px solid var(--zpc-line-warm);
	border-radius: 999px;
	background: var(--zpc-ivory);
	line-height: 1.25;
}

.zpc-commerce ul.products {
	gap: clamp(1rem, 2vw, 1.5rem);
}

.zpc-commerce ul.products li.product {
	padding: .7rem;
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1.1rem;
	background: var(--zpc-ivory);
	box-shadow: none;
}

.zpc-commerce ul.products li.product:hover {
	box-shadow: var(--zpc-shadow-editorial);
	transform: translateY(-.25rem);
}

.zpc-commerce ul.products li.product a img {
	border-radius: .85rem;
	background: var(--zpc-oat);
}

.zpc-commerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--zpc-ink-soft);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.zpc-commerce .price {
	color: #b65f4d !important;
}

.zpc-commerce--product .product {
	padding-block: .5rem 2.5rem;
}

.zpc-commerce--product .woocommerce-product-gallery__wrapper img {
	border-radius: 1.15rem;
	box-shadow: var(--zpc-shadow-editorial);
}

.zpc-commerce--product .summary {
	padding-top: clamp(.5rem, 2vw, 1.5rem);
}

.zpc-commerce--product .product_title {
	color: var(--zpc-ink-soft);
	font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.single-product .zpc-mystery-box-summary {
	border-color: var(--zpc-line-warm);
	border-radius: 1rem;
	background: var(--zpc-ivory);
	box-shadow: none;
}

.zpc-tier-card.is-selected {
	border-color: var(--zpc-peach);
	background: #fff7f3;
	box-shadow: 0 0 0 3px rgb(238 161 143 / 18%);
}

.zpc-tier-card[data-tier^="standard"]::after {
	background: var(--zpc-blush);
	color: var(--zpc-ink-soft);
}

.zpc-product-detail-grid article {
	border: 1px solid var(--zpc-line-warm);
	background: var(--zpc-ivory);
}

.zpc-product-detail-grid article.is-featured {
	border-color: var(--zpc-peach);
	background: #fff7f3;
	box-shadow: none;
}

.zpc-commerce--utility .entry-header {
	padding: clamp(1.4rem, 3vw, 2.25rem);
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1.2rem;
	background: linear-gradient(120deg, #f6dfd8 0%, #faeee9 100%);
	box-shadow: none;
}

.zpc-commerce--utility .entry-title {
	color: var(--zpc-ink-soft);
	font-size: clamp(2.5rem, 5vw, 4.1rem);
}

body.woocommerce-checkout.zpc-commerce--utility .hero-section {
	margin-bottom: 0;
}

body.woocommerce-checkout.zpc-commerce--utility .hero-section .entry-header {
	min-height: 0;
	padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(1.4rem, 3vw, 2.25rem) !important;
	border: 1px solid var(--zpc-line-warm) !important;
	border-radius: 1rem !important;
	background: #fbf2ee !important;
	box-shadow: none !important;
}

body.woocommerce-checkout.zpc-commerce--utility .hero-section .page-title {
	font-size: clamp(1.8rem, 3.5vw, 2.65rem);
	line-height: 1.05;
}

.zpc-commerce--utility .entry-content {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.zpc-commerce--utility .woocommerce,
.zpc-commerce--utility .woocommerce-MyAccount-content {
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1.2rem;
	background: var(--zpc-ivory);
	box-shadow: var(--zpc-shadow-editorial);
}

.zpc-checkout-guidance {
	border: 1px solid var(--zpc-line-warm);
	border-left: .35rem solid var(--zpc-peach);
	border-radius: .8rem;
	background: #fbf2ee;
	box-shadow: none;
	color: var(--zpc-ink-soft);
}

.zpc-commerce--utility .woocommerce-checkout-review-order,
.zpc-commerce--utility .cart_totals {
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1rem;
	background: #fbf2ee;
}

.zpc-commerce--utility :where(input.input-text, textarea, select) {
	min-height: 46px;
	border: 1px solid #d8cbc3;
	border-radius: .55rem;
	background: #fff;
}

.zpc-commerce--utility :where(input.input-text, textarea, select):focus {
	border-color: var(--zpc-ink-soft);
	box-shadow: 0 0 0 3px rgb(238 161 143 / 22%);
}

/* Editorial and footer continuity */
body.page:not(.home):not(.zpc-commerce--utility) .entry-header,
body.blog .page-title,
body.archive:not(.zpc-commerce) .page-title {
	padding: clamp(1.7rem, 4vw, 3rem);
	border: 1px solid var(--zpc-line-warm);
	border-radius: 1.2rem;
	background: #fbf2ee;
	box-shadow: none;
}

.zpc-site-footer {
	background: #211d1a;
}

.zpc-site-footer__cta {
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: 1.2rem;
	background: var(--zpc-blush);
	box-shadow: none;
	color: var(--zpc-ink-soft);
}

.zpc-site-footer__button {
	border: 1px solid var(--zpc-ink-soft);
	background: var(--zpc-ink-soft);
	box-shadow: none;
	color: #fff;
}

@media (max-width: 767px) {
	#header [data-row="middle"] .ct-container {
		padding-inline: .85rem;
	}

	.site-branding .bubuzoo-wordmark-logo {
		height: 50px !important;
		max-width: 104px !important;
		max-height: 50px !important;
	}

	.zpc-container,
	.zpc-commerce .ct-container,
	.zpc-commerce .entry-content {
		width: min(100% - 2rem, 78rem);
	}

	.zpc-section {
		padding-block: 3.75rem;
	}

	.zpc-hero__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		min-height: 0;
		padding-block: 3.2rem 2rem;
	}

	.zpc-hero h1 {
		max-width: 10ch;
		font-size: clamp(3rem, 14vw, 4.1rem);
		line-height: .92;
	}

	.zpc-hero__content > p:not(.zpc-eyebrow) {
		margin-top: 1.1rem;
		font-size: 1rem;
	}

	.zpc-actions {
		gap: .65rem;
		margin-top: 1.2rem;
	}

	.zpc-hero__media {
		aspect-ratio: 4 / 3;
		border-radius: 1rem;
	}

	.zpc-theme-card:hover {
		box-shadow: none;
		transform: none;
	}

	.zpc-shop-intro {
		margin: .25rem 0 1.5rem;
		padding: 1.45rem;
		border-radius: 1rem;
	}

	.zpc-shop-intro h1 {
		font-size: clamp(2.6rem, 13vw, 3.45rem);
	}

	.zpc-commerce .woocommerce-result-count,
	.zpc-commerce .woocommerce-ordering {
		margin-block: .75rem 1.2rem;
	}

	.zpc-commerce--product .woocommerce-product-gallery__image img {
		width: 100%;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		object-position: center;
	}

	.zpc-commerce--product .product_title {
		font-size: clamp(2.8rem, 13vw, 3.75rem);
	}

	.zpc-commerce--utility .entry-header {
		padding: 1.35rem;
		border-radius: 1rem;
	}

	.zpc-commerce--utility .woocommerce {
		padding: 1rem;
		border-radius: 1rem;
	}
}

@media (max-width: 430px) {
	.zpc-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.zpc-actions .wp-block-button,
	.zpc-actions .wp-block-button__link {
		width: 100%;
	}

	.zpc-commerce ul.products {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	#header .menu > li > a::after,
	.zpc-theme-card__image img,
	.zpc-actions .wp-block-button__link,
	.zpc-button,
	.zpc-commerce a.button,
	.zpc-commerce button.button {
		transition: none;
	}
}
