/*
 * FuzzPups commerce refinements.
 *
 * A compact, quiet hierarchy for Cart and Account. Character art is reserved
 * for the account companion stage; the cart keeps the shipping rule primary.
 */

.fuzz-commerce-shell {
	padding-block: clamp(3rem, 5vw, 5.5rem);
}

/* Account: a compact workspace with both house companions */
.fuzz-account-shell {
	max-width: 1160px;
}

.fuzz-account-hero {
	align-items: center;
	gap: clamp(2rem, 5vw, 4.75rem);
	grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
	margin-bottom: clamp(2.5rem, 4.5vw, 4.25rem);
}

.fuzz-account-hero__copy {
	max-width: 38rem;
}

.fuzz-account-hero h1 {
	font-size: clamp(2.8rem, 5vw, 4.8rem);
	line-height: 0.98;
	margin: 0 0 1rem;
	max-width: 11ch;
}

.fuzz-account-hero .fuzz-page-lede {
	font-size: clamp(1rem, 1.45vw, 1.18rem);
	line-height: 1.58;
	max-width: 34rem;
}

.fuzz-account-hero__companion {
	align-items: end;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 48%),
		linear-gradient(145deg, #e8eef0, #f4e9e8);
	border-radius: 28px;
	display: block;
	isolation: isolate;
	min-height: 300px;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.fuzz-account-hero__companion::after {
	background: rgba(255, 255, 255, 0.42);
	border-top: 1px solid rgba(63, 60, 57, 0.1);
	bottom: 0;
	content: "";
	height: 18%;
	inset-inline: 0;
	position: absolute;
	z-index: -1;
}

.fuzz-account-hero__halo {
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 999px;
	position: absolute;
}

.fuzz-account-hero__halo--pipi {
	background: rgba(198, 217, 228, 0.52);
	height: 15rem;
	left: -1.5rem;
	top: 1.25rem;
	width: 15rem;
}

.fuzz-account-hero__halo--puff {
	background: rgba(235, 200, 196, 0.42);
	height: 10rem;
	right: 0.75rem;
	top: 3.25rem;
	width: 10rem;
}

.fuzz-account-hero__companion img {
	bottom: 0;
	height: auto;
	max-height: none;
	position: absolute;
	width: auto;
}

.fuzz-account-hero__pipi {
	left: 4%;
	max-width: min(63%, 265px);
	z-index: 1;
}

.fuzz-account-hero__puff {
	max-width: min(43%, 180px);
	right: 7%;
	z-index: 2;
}

.fuzz-account-panel {
	margin-inline: auto;
	max-width: 1080px;
	padding: clamp(1rem, 2.2vw, 2rem);
}

.woocommerce-account .woocommerce {
	gap: clamp(1.5rem, 2.5vw, 2.5rem);
	grid-template-columns: minmax(11.5rem, 0.28fr) minmax(0, 1fr);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	font-size: 0.84rem;
	padding: 0.72rem 0.9rem;
}

.woocommerce-account .woocommerce-MyAccount-content {
	font-size: 0.95rem;
	line-height: 1.65;
	padding: 0.35rem 0;
}

/* Cart: a compact title and a deliberately numeric shipping card */
.fuzz-cart-shell {
	max-width: 1160px;
}

.fuzz-cart-hero {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 6vw, 6rem);
	grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.5fr);
	margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

.fuzz-cart-hero__copy {
	max-width: 36rem;
}

.fuzz-cart-hero h1 {
	font-size: clamp(2.8rem, 5vw, 4.8rem);
	line-height: 0.98;
	margin: 0 0 1rem;
	max-width: 10ch;
}

.fuzz-cart-hero .fuzz-page-lede {
	font-size: clamp(1rem, 1.45vw, 1.18rem);
	line-height: 1.58;
	max-width: 31rem;
}

.fuzz-cart-shipping {
	background:
		radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.82), transparent 35%),
		linear-gradient(145deg, #e8ebdd, #f0f1e8);
	border: 1px solid rgba(119, 129, 74, 0.2);
	border-radius: 24px;
	display: grid;
	grid-template-columns: auto 1fr;
	padding: clamp(1.35rem, 2.5vw, 2rem);
}

.fuzz-cart-shipping__label {
	color: var(--fuzz-leaf);
	font-size: 0.7rem;
	font-weight: 750;
	grid-column: 1 / -1;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.fuzz-cart-shipping strong {
	color: var(--fuzz-ink);
	font-family: var(--fuzz-display);
	font-size: clamp(3.1rem, 5vw, 4.5rem);
	font-weight: 650;
	letter-spacing: -0.07em;
	line-height: 0.92;
	margin-top: 1.2rem;
}

.fuzz-cart-shipping__basis {
	align-self: end;
	color: rgba(63, 60, 57, 0.68);
	font-size: 0.8rem;
	line-height: 1.3;
	margin: 0 0 0.35rem 0.85rem;
}

.fuzz-cart-shipping small {
	border-top: 1px solid rgba(63, 60, 57, 0.12);
	color: rgba(63, 60, 57, 0.7);
	font-size: 0.76rem;
	grid-column: 1 / -1;
	line-height: 1.5;
	margin-top: 1rem;
	padding-top: 0.85rem;
}

.fuzz-cart-panel {
	margin-inline: auto;
	max-width: 1080px;
	padding: clamp(1rem, 2vw, 2rem);
}

.fuzz-cart-panel .wp-block-woocommerce-empty-cart-block {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.fuzz-cart-recommendations {
	margin-inline: auto;
	max-width: 1080px;
}

@media (max-width: 781px) {
	.fuzz-commerce-shell {
		padding-block: 2.75rem 4rem;
	}

	.fuzz-account-hero,
	.fuzz-cart-hero {
		display: block;
	}

	.fuzz-account-hero h1,
	.fuzz-cart-hero h1 {
		font-size: clamp(2.65rem, 12vw, 3.8rem);
	}

	.fuzz-account-hero__companion {
		margin-top: 2rem;
		min-height: 235px;
	}

	.fuzz-account-hero__pipi {
		max-width: min(60%, 215px);
	}

	.fuzz-account-hero__puff {
		max-width: min(40%, 145px);
	}

	.fuzz-cart-shipping {
		margin-top: 2rem;
	}
}

@media (max-width: 420px) {
	.fuzz-account-hero__companion {
		min-height: 210px;
	}

	.fuzz-cart-shipping {
		border-radius: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fuzz-account-hero__companion img {
		transform: none !important;
	}
}
