/* Pet Central — Christmas 2026 overlay ("Sorrel & Sunshine").
   Loaded only while wp-content/mu-plugins/petcentral-christmas.php is active. Port of
   .docs/design/christmas-2026/prototype/pcx.css. Every rule is scoped under body.pc-xmas. */

@font-face {
	font-family: "Young Serif";
	src: url("fonts/young-serif-400-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
/* Metric-matched fallback keeps the swap from shifting layout. Tune size-adjust after measuring. */
@font-face {
	font-family: "Young Serif Fallback";
	src: local("Georgia");
	size-adjust: 108%;   /* starting values: tune against the real face with a fallback-metrics tool */
	ascent-override: 90%;
	descent-override: 24%;
}

.pc-xmas {
	--pcx-orange: #ed6436;      /* existing brand orange (nav, price) — unchanged */
	--pcx-sorrel: #7a1f2b;      /* primary seasonal colour */
	--pcx-sorrel-deep: #5e1621; /* hover / pressed */
	--pcx-leaf: #1f5a44;        /* bay-leaf green, secondary */
	--pcx-sun: #f2b441;         /* gold accent: icons, stars, never body text on white */
	--pcx-cream: #fff4e6;       /* seasonal paper */
	--pcx-cream-2: #f7d9a8;     /* muted text on sorrel */
	--pcx-ink: #1e1a17;
	--pcx-ink-2: #5c534c;
	--pcx-radius: 12px;
	--pcx-ease: cubic-bezier(.22, .8, .24, 1);
	--pcx-display: "Young Serif", "Young Serif Fallback", Georgia, serif;
}

/* ---------- 1. Announcement ribbon (wp_body_open) ---------- */
.pc-xmas .pcx-ribbon {
	background: var(--pcx-sorrel);
	color: #fff;
	font: 700 14px/1.3 Nunito, sans-serif;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 8px 16px;
	text-align: center;
}
.pc-xmas .pcx-ribbon__star { width: 18px; height: 18px; color: #e7a0a8; flex: none; }
.pc-xmas .pcx-ribbon strong { color: var(--pcx-sun); font-weight: 800; }
.pc-xmas .pcx-ribbon__short { display: none; }
@media (max-width: 600px) { .pc-xmas .pcx-ribbon__short { display: inline; } }
.pc-xmas .pcx-ribbon a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	white-space: nowrap;
}
.pc-xmas .pcx-ribbon a:hover { color: var(--pcx-cream-2); }
.pc-xmas .pcx-ribbon__sep { opacity: .5; }
@media (max-width: 600px) {
	.pc-xmas .pcx-ribbon { font-size: 13px; gap: 8px; }
	.pc-xmas .pcx-ribbon__sep, .pc-xmas .pcx-ribbon__link, .pc-xmas .pcx-ribbon__long { display: none; }
}

/* ---------- 2. Orange nav: seasonal message + Gift Guide item ---------- */
.pc-xmas .bwp-header.header-v2 .header-bottom .shipping {
	display: flex; align-items: center; gap: 8px;
	font-size: 19px; /* 19px/700 counts as WCAG large text, so white on #ED6436 (3.24:1) passes AA-large */
}
.pc-xmas .bwp-header .shipping .pcx-star {
	/* Empty span (Petio passes this text through wp_kses 'social', which strips <svg>), drawn with a mask. */
	flex: none; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("img/poinsettia.svg") center / contain no-repeat;
	mask: url("img/poinsettia.svg") center / contain no-repeat;
}
/* Pill lives on the inner span so the item keeps the theme's own spacing and baseline. */
.pc-xmas .bwp-navigation ul > li.level-0.pcx-menu-gifts > a > .menu-item-text {
	display: inline-block;
	background: var(--pcx-cream);
	color: var(--pcx-sorrel);
	border-radius: 999px;
	padding: 2px 14px;
	margin: -2px -14px;
	transition: background-color .2s var(--pcx-ease);
}
.pc-xmas .bwp-navigation ul > li.level-0.pcx-menu-gifts > a:hover > .menu-item-text { background: #fff; }

/* Belt and braces: the plugin already stops Elementor rendering the RevSlider section. */
.pc-xmas.home .elementor-section:has(.elementor-widget-slider_revolution) { display: none; }

/* ---------- 3. Home hero (replaces RevSlider on the front page) ---------- */
/* Same box as the RevSlider column: 1110px content at desktop, 15px gutters on mobile. */
.pc-xmas .pcx-wrap { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.pc-xmas .pcx-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	min-height: 464px;               /* same box as the RevSlider it replaces: no CLS */
	margin: 20px 0 48px;
	border-radius: var(--pcx-radius);
	overflow: hidden;
	background: var(--pcx-sorrel);
	color: #fff;
}
.pc-xmas .pcx-hero__copy {
	padding: 56px 48px 48px 56px;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	gap: 18px;
}
.pc-xmas .pcx-hero h2 {
	font-family: var(--pcx-display);
	font-weight: 400;
	font-size: clamp(2rem, 1.2rem + 1.6vw, 2.625rem);
	line-height: 1.1;
	letter-spacing: -.012em;
	color: #fff;
	margin: 0;
	text-wrap: balance;
}
.pc-xmas .pcx-hero p {
	font: 400 17px/1.55 Nunito, sans-serif;
	color: var(--pcx-cream);
	margin: 0;
	max-width: 38ch;
}
.pc-xmas .pcx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.pc-xmas .pcx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 26px;
	border-radius: 999px;
	background: var(--pcx-cream); color: var(--pcx-sorrel);
	font: 800 16px/1 Nunito, sans-serif;
	text-decoration: none;
	transition: background-color .2s var(--pcx-ease), transform .2s var(--pcx-ease);
}
.pc-xmas .pcx-btn:hover { background: #fff; color: var(--pcx-sorrel-deep); }
@media (prefers-reduced-motion: no-preference) { .pc-xmas .pcx-btn:active { transform: translateY(1px); } }
.pc-xmas .pcx-link {
	color: #fff; font: 700 16px/1 Nunito, sans-serif;
	text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.pc-xmas .pcx-link:hover { color: var(--pcx-cream-2); }
.pc-xmas .pcx-hero .pcx-btn:focus-visible,
.pc-xmas .pcx-hero .pcx-link:focus-visible { outline: 2px solid var(--pcx-sun); outline-offset: 3px; }
.pc-xmas .pcx-cutoff {
	display: inline-flex; align-items: center; gap: 10px;
	margin-top: 10px; padding-top: 18px;
	border-top: 1px solid rgba(255, 244, 230, .22);
	font: 700 14px/1.35 Nunito, sans-serif; color: var(--pcx-cream);
}
.pc-xmas .pcx-cutoff svg { width: 22px; height: 22px; color: var(--pcx-sun); flex: none; }
.pc-xmas .pcx-hero__media { position: relative; min-height: 100%; }
.pc-xmas .pcx-hero__media img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 62%;
	display: block;
}

/* Entrance: copy only, never the image (it is the LCP element). */
@media (prefers-reduced-motion: no-preference) {
	.pc-xmas .pcx-hero__copy > * { animation: pcx-rise .52s var(--pcx-ease) both; }
	.pc-xmas .pcx-hero__copy > :nth-child(2) { animation-delay: .06s; }
	.pc-xmas .pcx-hero__copy > :nth-child(3) { animation-delay: .12s; }
	.pc-xmas .pcx-hero__copy > :nth-child(4) { animation-delay: .18s; }
}
@keyframes pcx-lift { from { transform: translateY(18px); } to { transform: none; } }
@keyframes pcx-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 991px) {
	.pc-xmas .pcx-hero__copy { padding: 40px 32px; }
}
@media (max-width: 767px) {
	.pc-xmas .pcx-hero { grid-template-columns: 1fr; min-height: 0; margin: 12px 0 36px; }
	.pc-xmas .pcx-hero__media { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
	.pc-xmas .pcx-hero__copy { padding: 28px 22px 26px; gap: 14px; }
	.pc-xmas .pcx-hero p { font-size: 16px; }
	.pc-xmas .pcx-actions { width: 100%; }
	.pc-xmas .pcx-btn { width: 100%; }
	.pc-xmas .pcx-cutoff { display: none; } /* the ribbon already carries the cut-off on mobile */
}

/* ---------- 4. Gift guide ---------- */
.pc-xmas .pcx-gifts { margin: 0 0 48px; scroll-margin-top: 24px; }
.pc-xmas .pcx-gifts__head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
	margin: 0 0 20px;
}
.pc-xmas .pcx-gifts h2 {
	font-family: var(--pcx-display); font-weight: 400;
	font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em;
	color: var(--pcx-ink); margin: 0;
}
.pc-xmas .pcx-gifts__head p { font: 400 16px/1.5 Nunito, sans-serif; color: var(--pcx-ink-2); margin: 6px 0 0; }
.pc-xmas .pcx-gifts__all { font: 800 15px/1 Nunito, sans-serif; color: var(--pcx-sorrel); text-decoration: underline; text-underline-offset: 5px; }
.pc-xmas .pcx-gifts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.pc-xmas .pcx-gift {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--pcx-cream);
	border-radius: var(--pcx-radius);
	overflow: hidden;
	transition: transform .3s var(--pcx-ease), box-shadow .3s var(--pcx-ease);
}
.pc-xmas .pcx-gift img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .45s var(--pcx-ease); }
.pc-xmas .pcx-gift__body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.pc-xmas .pcx-gift__cta { margin-top: auto; } /* CTAs share one baseline across the row */
.pc-xmas .pcx-gift h3 { font-family: var(--pcx-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; color: var(--pcx-ink); margin: 0 0 4px; }
.pc-xmas .pcx-gift p { font: 400 14.5px/1.45 Nunito, sans-serif; color: var(--pcx-ink-2); margin: 0 0 12px; }
.pc-xmas .pcx-gift__cta { font: 800 14px/1 Nunito, sans-serif; color: var(--pcx-sorrel); }
.pc-xmas .pcx-gift a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable, one link */
.pc-xmas .pcx-gift a { color: inherit; text-decoration: none; }
.pc-xmas .pcx-gift:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(94, 22, 33, .35); }
.pc-xmas .pcx-gift:hover img { transform: scale(1.03); }
.pc-xmas .pcx-gift:focus-within { outline: 2px solid var(--pcx-sorrel); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.pc-xmas .pcx-gift, .pc-xmas .pcx-gift img { transition: none; }
	.pc-xmas .pcx-gift:hover { transform: none; }
	.pc-xmas .pcx-gift:hover img { transform: none; }
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		/* Transform only, never opacity: tiles must stay visible to crawlers, screenshots and no-scroll renders. */
		.pc-xmas .pcx-gift { animation: pcx-lift linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
	}
}
@media (max-width: 991px) { .pc-xmas .pcx-gifts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.pc-xmas .pcx-gifts { margin-bottom: 36px; }
	.pc-xmas .pcx-gifts__grid { gap: 12px; }
	.pc-xmas .pcx-gift__body { padding: 12px 12px 14px; }
	.pc-xmas .pcx-gift h3 { font-size: 1.0625rem; }
	.pc-xmas .pcx-gift p { font-size: 13.5px; margin-bottom: 8px; }
}

/* ---------- 5. Existing coupon section: give it a surface (its white copy is invisible today) ---------- */
.pc-xmas.home .elementor-element-fb2c584 {
	background: var(--pcx-sorrel);
	border-radius: var(--pcx-radius);
	padding: 8px 24px;
	max-width: 1110px; margin-left: auto; margin-right: auto;
}
/* Its Elementor padding (80/110) was sized for the lost background photo; trim it to a ~360px card. */
.pc-xmas.home .elementor-element-fb2c584 .elementor-element-ba47f28 > .elementor-element-populated { padding: 40px 15px 48px; }
.pc-xmas.home .elementor-element-fb2c584 .elementor-element-4007d8b .elementor-button { background: var(--pcx-cream); color: var(--pcx-sorrel); }
.pc-xmas.home .elementor-element-fb2c584 .elementor-element-4007d8b .elementor-button:hover,
.pc-xmas.home .elementor-element-fb2c584 .elementor-element-4007d8b .elementor-button:focus { background: #fff; color: var(--pcx-sorrel-deep); }

@media (max-width: 767px) {
	/* Match the hero and gift guide's 15px gutters instead of running edge to edge. */
	.pc-xmas.home .elementor-element-fb2c584 { margin-left: 15px; margin-right: 15px; padding: 0 8px; }
}

/* ---------- 6. Product badges: seasonal "Hot" ---------- */
.pc-xmas .vgwc-label.hot { background: var(--pcx-sorrel) !important; }

/* ---------- 7. Delivery note (PDP, cart, shop) ---------- */
.pc-xmas .pcx-note {
	display: flex; align-items: center; gap: 12px;
	background: var(--pcx-cream);
	border: 1px solid rgba(122, 31, 43, .18);
	border-radius: 10px;
	padding: 12px 16px; margin: 16px 0;
	font: 600 14.5px/1.45 Nunito, sans-serif; color: var(--pcx-ink);
}
.pc-xmas .pcx-note svg { width: 22px; height: 22px; color: var(--pcx-sorrel); flex: none; }
.pc-xmas .pcx-note a { color: var(--pcx-sorrel); font-weight: 800; }
.pc-xmas .pcx-note strong { font-weight: 800; color: var(--pcx-sorrel); }

/* ---------- 8. Shop: gift chips under the archive title ---------- */
.pc-xmas .pcx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; align-items: center; }
.pc-xmas .pcx-chips__label { flex: none; white-space: nowrap; font: 800 13px/1 Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--pcx-sorrel); margin-right: 4px; }
.pc-xmas .pcx-chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
	border-radius: 999px; border: 1px solid rgba(122, 31, 43, .28);
	background: #fff; color: var(--pcx-ink); font: 700 14px/1 Nunito, sans-serif; text-decoration: none;
	transition: background-color .2s var(--pcx-ease), border-color .2s var(--pcx-ease);
}
.pc-xmas .pcx-chip:hover { background: var(--pcx-cream); border-color: var(--pcx-sorrel); color: var(--pcx-sorrel); }
@media (max-width: 767px) {
	.pc-xmas .pcx-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -15px; padding-right: 15px; }
	.pc-xmas .pcx-chip { flex: none; }
}

/* ---------- 9. Footer band (get_footer) ---------- */
.pc-xmas .pcx-band {
	background: var(--pcx-leaf); color: var(--pcx-cream);
	padding: 28px 16px; text-align: center;
}
.pc-xmas .pcx-band__inner { max-width: 1110px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap; }
.pc-xmas .pcx-band__title { font-family: var(--pcx-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); color: #fff; margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.pc-xmas .pcx-band__title svg { width: 26px; height: 26px; color: #e7a0a8; }
.pc-xmas .pcx-band__hours { font: 600 15px/1.45 Nunito, sans-serif; margin: 0; }

/* ---------- 10. Focus: the theme removes link outlines, so the overlay's own links get visible ones ---------- */
.pc-xmas .pcx-ribbon a:focus-visible { outline: 2px solid var(--pcx-sun); outline-offset: 3px; }
.pc-xmas .bwp-navigation ul > li.level-0.pcx-menu-gifts > a:focus-visible { outline: none; }
.pc-xmas .bwp-navigation ul > li.level-0.pcx-menu-gifts > a:focus-visible > .menu-item-text { outline: 2px solid #fff; outline-offset: 2px; }
.pc-xmas .pcx-gifts__all:focus-visible,
.pc-xmas .pcx-chip:focus-visible,
.pc-xmas .pcx-note a:focus-visible { outline: 2px solid var(--pcx-sorrel); outline-offset: 3px; }
.pc-xmas .pcx-gift a:focus-visible { outline: none; } /* the card shows the ring via :focus-within */
