/* WooCommerce pages use the same warm editorial palette as the Pony Hair site. */
body.woocommerce-page {
	--pony-woo-ink: #241b12;
	--pony-woo-muted: #786d61;
	--pony-woo-gold: #a96e2c;
	--pony-woo-line: #eadcc8;
	--pony-woo-paper: #fffdf9;
	background: #fbf8f2;
}

body.woocommerce-page #main { background: #fbf8f2; }
body.woocommerce-page .breadcrumbs { color: #8b7965; font-size: 11px; letter-spacing: .08em; }
body.woocommerce-page .breadcrumbs a { color: #8b7965; }
body.woocommerce-page .page-title { background: #fbf8f2; }

/* Empty catalog: remove the unhelpful widget warning and use the full content width. */
body.woocommerce-shop .category-page-row:has(.pony-woo-empty-shop) > .col:first-child { display: none; }
body.woocommerce-shop .category-page-row:has(.pony-woo-empty-shop) > .col:last-child { flex-basis: 100%; max-width: 100%; }
body.woocommerce-shop .category-page-row { max-width: 1280px; margin-inline: auto; padding: 16px 24px 72px; }
.pony-woo-empty-shop {
	position: relative;
	isolation: isolate;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	padding: clamp(34px, 6vw, 76px);
	border: 1px solid var(--pony-woo-line);
	border-radius: 20px;
	background: radial-gradient(ellipse at 88% 22%, rgba(216,177,106,.2), transparent 35%), linear-gradient(118deg, #fffdf9 0%, #f7efe3 100%);
	box-shadow: 0 12px 38px rgba(52,36,17,.055);
}
.pony-woo-empty-shop::after {
	position: absolute;
	z-index: -1;
	right: 9%;
	bottom: -105px;
	width: 290px;
	height: 290px;
	border: 1px solid rgba(169,110,44,.18);
	border-radius: 50%;
	box-shadow: 0 0 0 22px rgba(169,110,44,.035), 0 0 0 48px rgba(169,110,44,.025);
	content: "";
}
.pony-woo-empty-shop__eyebrow { color: var(--pony-woo-gold); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.pony-woo-empty-shop h1 { max-width: 640px; margin: 13px 0 10px; color: var(--pony-woo-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1.12; }
.pony-woo-empty-shop > p { max-width: 590px; margin: 0; color: var(--pony-woo-muted); font-size: 15px; line-height: 1.8; }
.pony-woo-empty-shop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.pony-woo-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none !important; transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease; }
.pony-woo-button:hover { transform: translateY(-2px); }
.pony-woo-button--primary { padding: 0 23px; border: 1px solid #e3c38d; background: linear-gradient(135deg,#f9e2b8,#dfb875); color: #21180f !important; box-shadow: 0 7px 18px rgba(142,96,40,.12); }
.pony-woo-button--primary:hover { box-shadow: 0 10px 24px rgba(142,96,40,.2); }
.pony-woo-button--text { color: #79552f !important; }
.pony-woo-empty-shop__mark { position: absolute; right: 13%; top: 50%; color: rgba(169,110,44,.055); font-family: Georgia,serif; font-size: clamp(180px,27vw,320px); line-height: 1; transform: translateY(-50%); pointer-events: none; }
.woocommerce-no-products-found { position: relative; }

/* Cart and checkout empty state. These selectors leave populated carts/forms untouched. */
body.woocommerce-page .cart-container:has(.wc-empty-cart-message) { max-width: 1040px; min-height: 400px; padding-top: clamp(22px, 4vw, 46px); padding-bottom: clamp(48px, 7vw, 82px); }
body.woocommerce-page .cart-container:has(.wc-empty-cart-message) > .woocommerce > .text-center.pt.pb { position: relative; max-width: 790px; margin: 0 auto; padding: clamp(38px, 6vw, 66px) clamp(20px, 5vw, 56px) !important; overflow: hidden; border: 1px solid var(--pony-woo-line); border-radius: 20px; background: radial-gradient(ellipse at 90% 5%,rgba(216,177,106,.17),transparent 38%),var(--pony-woo-paper); box-shadow: 0 12px 38px rgba(52,36,17,.06); }
body.woocommerce-page .wc-empty-cart-message { margin: 0 auto 20px; }
body.woocommerce-page .wc-empty-cart-message .cart-empty { display: flex; min-height: 68px; align-items: center; justify-content: center; margin: 0; padding: 18px 20px 18px 66px; border: 0; border-radius: 12px; background: #f8f1e6; color: var(--pony-woo-ink); font-size: 15px; line-height: 1.65; text-align: left; }
body.woocommerce-page .wc-empty-cart-message .cart-empty::before { left: 20px; color: var(--pony-woo-gold); font-size: 22px; }
body.woocommerce-page .return-to-shop { margin: 0; }
body.woocommerce-page .return-to-shop .button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; margin: 0; padding: 0 24px; border: 1px solid #e3c38d; border-radius: 999px; background: linear-gradient(135deg,#f9e2b8,#dfb875); color: #21180f; font-size: 13px; font-weight: 600; text-transform: none; }
body.woocommerce-page .return-to-shop .button:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(142,96,40,.17); }
body.woocommerce-page .checkout-breadcrumbs { gap: 12px; padding: 17px 0; font-family: inherit; font-size: 12px; letter-spacing: .08em; }
body.woocommerce-page .checkout-breadcrumbs a { color: #8b7965; }
body.woocommerce-page .checkout-breadcrumbs a.current { color: #8a5a27; }

/* Future product forms and populated cart controls keep the same visual language. */
body.woocommerce-page .woocommerce form .form-row input.input-text,
body.woocommerce-page .woocommerce form .form-row textarea,
body.woocommerce-page .woocommerce form .form-row select,
body.woocommerce-page .woocommerce .quantity .qty { min-height: 44px; border: 1px solid #e4d7c4; border-radius: 8px; background: #fffdf9; box-shadow: none; }
body.woocommerce-page .woocommerce form .form-row input:focus,
body.woocommerce-page .woocommerce form .form-row textarea:focus,
body.woocommerce-page .woocommerce form .form-row select:focus { border-color: #bb8d51; outline: 2px solid rgba(187,141,81,.16); }
body.woocommerce-page .woocommerce .button:not(.wc-backward),
body.woocommerce-page .woocommerce button.button,
body.woocommerce-page .woocommerce a.checkout-button { border-radius: 999px; background: #211b14; color: #fff9ef; text-transform: none; }

@media (max-width: 849px) {
	body.woocommerce-shop .category-page-row { padding: 10px 16px 48px; }
	.pony-woo-empty-shop { min-height: 300px; padding: 32px 24px; border-radius: 16px; }
	.pony-woo-empty-shop__mark { right: 0; top: 60%; font-size: 190px; }
	.pony-woo-empty-shop > p { max-width: 480px; font-size: 14px; }
	body.woocommerce-page .cart-container:has(.wc-empty-cart-message) { min-height: 330px; padding: 18px 16px 50px; }
	body.woocommerce-page .cart-container:has(.wc-empty-cart-message) > .woocommerce > .text-center.pt.pb { padding: 34px 20px !important; border-radius: 16px; }
	body.woocommerce-page .wc-empty-cart-message .cart-empty { padding-left: 55px; font-size: 14px; }
	body.woocommerce-page .checkout-breadcrumbs { gap: 6px; font-size: 10px; letter-spacing: .035em; }
}
@media (max-width: 389px) {
	.pony-woo-empty-shop__actions { align-items: stretch; flex-direction: column; }
	.pony-woo-button--text { justify-content: flex-start; }
	body.woocommerce-page .checkout-breadcrumbs { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
	.pony-woo-button, body.woocommerce-page .return-to-shop .button { transition: none; }
}
