/* Palazzo Haven: shop by size, size pills, "tell me when my size lands". */

/* ---------- Size picker ---------- */
.pc-sizes { margin: 0 auto 8px; max-width: 1100px; }
.pc-sizes__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.pc-sizes__title { font-size: 0.8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #26222f; }
.pc-sizes__note { font-size: 0.9rem; color: #6a5950; }
.pc-sizes__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-size-chip {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 58px; padding: 9px 12px 7px; border: 1px solid #d9cfc3; border-radius: 10px;
	background: #fff; color: #26222f; text-decoration: none; line-height: 1.1;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pc-size-chip b { font-size: 1.05rem; font-weight: 700; }
.pc-size-chip small { font-size: 0.68rem; color: #8a7d74; margin-top: 3px; }
.pc-size-chip:hover, .pc-size-chip:focus-visible { border-color: #26222f; color: #26222f; }
.pc-size-chip.is-active { background: #26222f; border-color: #26222f; color: #fff; }
.pc-size-chip.is-active small { color: #ddd1c1; }

/* On the shop page it sits above the grid, as one scrollable row on phones. */
.pc-sizes--compact { margin: 0 0 18px; max-width: none; }
.pc-sizes--compact .pc-sizes__head { margin-bottom: 10px; }
.pc-sizes--compact .pc-size-chip { min-width: 50px; padding: 7px 10px 6px; }
.pc-sizes--compact a.pc-size-chip:first-child { justify-content: center; font-weight: 700; font-size: 0.9rem; }

@media (max-width: 600px) {
	.pc-sizes__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; }
	.pc-sizes__chips::-webkit-scrollbar { display: none; }
	.pc-size-chip { flex: 0 0 auto; min-width: 54px; }
}

/* ---------- Size pill on product cards ---------- */
ul.products li.product .pc-size-pill {
	display: inline-block; margin: 2px 0 6px; padding: 3px 10px; border-radius: 999px;
	background: #f3ece4; color: #6a5950; font-size: 0.72rem; font-weight: 700; letter-spacing: .03em;
}

/* ---------- Corner pills: Clearance (red) and New (green) ---------- */
/* Every geometry property is forced, not just colour: WooCommerce's grid and single-product
   templates both reposition and resize span.onsale by their own specificity, and they disagree
   with each other from one page type to the next. On a real category/archive page the theme's
   own rule wins the position fight and pushes the badge to the top-right, half off the card
   (ul.products li.product .onsale { top:0; right:0; margin:-0.5em -0.5em 0 0 }). On a single
   product page a different theme rule wins the font-size fight (.sale > span.onsale { font-size:
   1em }), which blows "CLEARANCE" up to body size. .pc-new-badge is a plain span with no theme
   rule targeting it, but it shares this block so the two pills are always the same size and sit
   in the same corner - a piece only ever wears one of them (see PC_Shop::new_badge). */
span.onsale.pc-clearance-badge, span.pc-new-badge {
	position: absolute !important; top: 10px !important; left: 10px !important; right: auto !important; bottom: auto !important;
	margin: 0 !important; min-width: 0 !important; min-height: 0 !important; width: auto !important; height: auto !important;
	padding: 4px 12px !important; font-size: 0.72rem !important; line-height: 1.6 !important; font-weight: 700 !important;
	border-radius: 999px !important; z-index: 5 !important; text-align: center !important;
	text-transform: uppercase !important; letter-spacing: .08em !important;
}
span.onsale.pc-clearance-badge { background: #c62828 !important; color: #fff !important; }
span.pc-new-badge { background: #1f5b33 !important; color: #fff !important; }
.single-product span.onsale.pc-clearance-badge,
.single-product span.pc-new-badge { top: 14px !important; left: 14px !important; font-size: 0.8rem !important; padding: 6px 16px !important; }

/* ---------- Clearance page ---------- */
.pc-clr__banner {
	background: #26222f; color: #ddd1c1; border-radius: 14px; text-align: center; overflow: hidden;
	padding: clamp(30px, 6vw, 64px) clamp(18px, 5vw, 56px); margin: 0 0 26px;
}
.pc-clr .pc-clr__kicker {
	display: inline-block; margin: 0 0 16px; padding: 6px 16px; border-radius: 999px; background: #c62828; color: #fff;
	font-size: 0.78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.pc-clr .pc-clr__title {
	margin: 0 0 16px; color: #ddd1c1; font-family: Montserrat, sans-serif; font-weight: 800;
	font-size: clamp(2.1rem, 9vw, 5rem); line-height: 1.08; letter-spacing: -.01em;
}
.pc-clr__title span { display: inline-block; opacity: 0; transform: translateY(.55em); animation: pc-clr-rise .6s cubic-bezier(.2, .7, .2, 1) forwards; }
.pc-clr__title span:nth-child(2) { animation-delay: .12s; }
.pc-clr__title span:nth-child(3) { animation-delay: .24s; }
.pc-clr__title span:nth-child(4) { animation-delay: .36s; }
.pc-clr__title .pc-clr__three { color: #fff; background: linear-gradient(transparent 68%, #c62828 68%, #c62828 92%, transparent 92%); }
.pc-clr .pc-clr__lead { margin: 0 auto; max-width: 560px; color: #ddd1c1; font-size: clamp(1rem, 2.4vw, 1.15rem); }
.pc-clr__lead strong { color: #fff; display: inline-block; margin: 0 .25em; animation: pc-clr-pulse 2.6s ease-in-out 1.2s infinite; }
.pc-clr__none { margin: 24px 0; font-size: 1.05rem; color: #4a4450; }
@keyframes pc-clr-rise { to { opacity: 1; transform: none; } }
@keyframes pc-clr-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
	.pc-clr__title span { opacity: 1; transform: none; animation: none; }
	.pc-clr__lead strong { animation: none; }
}

/* One button per card: Add to cart runs the full width. */
ul.products li.product a.add_to_cart_button,
ul.products li.product a.added_to_cart { display: block; width: 100%; text-align: center; box-sizing: border-box; }

/* ---------- Size sign-up ---------- */
.pc-signup { max-width: 560px; margin: 0 auto; text-align: left; }
.pc-signup fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.pc-signup legend { font-size: 0.78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.pc-signup__sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-size-check { position: relative; cursor: pointer; margin: 0; }
.pc-size-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-size-check span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 38px; padding: 0 8px;
	border: 1px solid #d9cfc3; border-radius: 8px; background: #fff; color: #26222f; font-weight: 700; font-size: 0.9rem;
}
.pc-size-check input:checked + span { background: #26222f; border-color: #26222f; color: #fff; }
.pc-size-check input:focus-visible + span { outline: 2px solid #6a5950; outline-offset: 2px; }
.pc-signup__row { display: flex; gap: 8px; }
.pc-signup__row input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #d9cfc3; border-radius: 8px; font-size: 16px; background: #fff; color: #26222f; }
.pc-signup__row button { height: 48px; padding: 0 26px; border: 0; border-radius: 8px; background: #26222f; color: #fff; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.pc-signup__row button:hover { background: #3a3548; color: #fff; }
.pc-signup__small { font-size: 0.8rem; margin: 10px 0 0; color: #6a5950; }
.pc-signup__hp { position: absolute; left: -9999px; }
.pc-signup__done, .pc-signup__error { padding: 12px 16px; border-radius: 8px; font-weight: 600; margin: 0 0 12px; }
.pc-signup__done { background: #e7f3ea; color: #1f5b33; }
.pc-signup__error { background: #f8e3e3; color: #8a2b2b; }

/* Dark version, for sitting on a video or the dark bands. */
.pc-signup.pc-signup--dark legend,
.pc-signup.pc-signup--dark p.pc-signup__small { color: #eee6dc !important; }
.pc-signup--dark .pc-size-check span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; }
.pc-signup--dark .pc-size-check input:checked + span { background: #ddd1c1; border-color: #ddd1c1; color: #26222f; }
.pc-signup--dark .pc-signup__row input[type="email"] { border-color: transparent; }
.pc-signup--dark .pc-signup__row button { background: #ddd1c1; color: #26222f; }
.pc-signup--dark .pc-signup__row button:hover { background: #fff; color: #26222f; }

@media (max-width: 480px) {
	.pc-signup__row { flex-direction: column; }
	.pc-signup__row input[type="email"] { flex: none; width: 100%; }
	.pc-signup__row button { width: 100%; }
}


/* ---------- Page not found ---------- */
.pc-404 { max-width: 1100px; margin: 0 auto; padding: 24px 0 8px; }
.pc-404__eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #b5572a; margin: 0 0 10px; }
.pc-404__title { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; color: #26222f; }
.pc-404__lead { font-size: 1.05rem; color: #4a4450; max-width: 620px; margin: 0 0 28px; }
.pc-404__sub { font-size: 1.5rem; margin: 40px 0 18px; color: #26222f; }
.pc-404__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pc-404__btn { display: inline-block; padding: 13px 26px; border-radius: 6px; background: #26222f; color: #fff; font-weight: 600; font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pc-404__btn:hover { background: #3a3548; color: #fff; }
.pc-404__btn--ghost { background: transparent; color: #26222f; border: 1px solid #26222f; }
.pc-404__btn--ghost:hover { background: #26222f; color: #fff; }
