/* Default uses the original catalog styles unchanged. Seasonal layers are opt-in. */
:root[data-theme="christmas-classic"] {
  --holiday-character: url('../themes/santa-peeking.webp'); --holiday-character-ratio: calc(256 / 194); --holiday-character-overhang-ratio: calc(12 / 194);
  --spot-green: #04592b; --spot-pink: #dec6a0; --spot-pink-soft: #f5ece4;
  --holiday-bg: #faf7f0; --holiday-paper: #fffdf8; --holiday-ink: #20251f;
  --holiday-accent: #b89555; --holiday-heading: #8c2633; --holiday-border: #d9c8aa;
  --holiday-ribbon: repeating-linear-gradient(120deg,#8c2633 0 16px,#b89555 16px 19px,#faf7f0 19px 25px);
}
:root[data-theme="grinch"] {
  --holiday-character: url('../themes/grinch-peeking.avif'); --holiday-character-ratio: calc(404 / 316); --holiday-character-overhang-ratio: calc(66 / 316);
  --spot-green: #04592b; --spot-pink: #a8cf45; --spot-pink-soft: #edf3d9;
  --holiday-bg: #f4f7e9; --holiday-paper: #fcfdf7; --holiday-ink: #20291d;
  --holiday-accent: #a8cf45; --holiday-heading: #20291d; --holiday-border: #cad8ac;
  --holiday-ribbon: repeating-linear-gradient(120deg,#a8cf45 0 16px,#f4f7e9 16px 21px,#c43d45 21px 25px);
}
:root[data-seasonal-theme] { background: var(--holiday-bg); color: var(--holiday-ink); --spot-ink: var(--holiday-ink); }
:root[data-seasonal-theme] body { background: var(--holiday-bg); color: var(--holiday-ink); }
:root[data-seasonal-theme] .topbar { background: #04592b; border-bottom: 4px solid var(--holiday-accent); }
:root[data-seasonal-theme] .topbar :is(.header-title,.nav-icon-link,.favorites-pill,.cart-pill,.header-filter-trigger) { color: #fff; }
:root[data-seasonal-theme] .topbar > nav > a { color: #fff; }
:root[data-seasonal-theme] .topbar .favorites-pill.active { background: #174d2e; }
:root[data-seasonal-theme] .catalog-intro { position: relative; overflow: hidden; background: linear-gradient(115deg,var(--holiday-paper),var(--spot-pink-soft)); border: 1px solid var(--holiday-border); border-top: 4px solid var(--holiday-accent); border-radius: 14px; padding: 20px; }
:root[data-seasonal-theme] :is(h1,.section-title h2,.catalog-intro h1,.policy-page h1) { color: var(--holiday-heading); }
:root[data-seasonal-theme] .section-title::after { content: ''; flex: 0 0 9px; height: 9px; background: var(--holiday-accent); transform: rotate(45deg); margin-inline: 8px; }
:root[data-seasonal-theme] :is(.in-store-brands,.location-panel,.mobile-home-nav) { background: var(--spot-pink-soft); border-color: var(--holiday-border); }
:root[data-seasonal-theme] :is(.product-card,.panel,.filters,.category-popover,.quick-view-dialog,.quick-view-modal,.tailoring-modal,.drawer,.policy-page) { border-color: var(--holiday-border); }
:root[data-seasonal-theme] :is(.button.secondary,.tailoring-guide,.tailoring-color,.tailoring-table-wrap td,.tailoring-table-wrap th) { border-color: var(--holiday-border); }
:root[data-seasonal-theme] .button.secondary { background: var(--holiday-paper); color: #04592b; }
:root[data-seasonal-theme] .button.primary:not(:disabled):not(.disabled) { background: #04592b; color: #fff; }
:root[data-seasonal-theme] :is(.tailoring-modal,.quick-view-dialog,.quick-view-modal,.drawer,#shipping-dialog,#request-dialog) { background: var(--holiday-paper); color: var(--holiday-ink); border-top: 4px solid var(--holiday-accent); }
:root[data-seasonal-theme] #shipping-dialog :is(.shipping-close,.shipping-rate), :root[data-seasonal-theme] #request-dialog :is(.request-close,.process-note,.whatsapp-confirmation) { background: var(--spot-pink-soft); }
:root[data-seasonal-theme] :is(.tailoring-guide,.tailoring-color) { background: var(--holiday-paper); }
:root[data-seasonal-theme] :is(#shipping-dialog,#request-dialog) h2 { color: var(--holiday-heading); }
:root[data-seasonal-theme] :is(input,select,textarea) { accent-color: #04592b; }
:root[data-seasonal-theme] :is(.cart-item.invalid,.cart-alert,[role="alert"]) { color: #8a2525; }
/* Decoration stays on interface edges and never changes product images or logos. */
:root[data-seasonal-theme] .catalog-intro::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--holiday-ribbon); pointer-events: none; }
@media (max-width:560px) { :root[data-seasonal-theme] .catalog-intro { padding: 14px; } }

/* Shared height and intrinsic image ratio keep the character anchored at all widths. */
:root[data-seasonal-theme] .topbar { --holiday-character-height: clamp(4.5rem,8vw,6rem); --header-edge: .25rem; padding-block: 0; border-bottom-width: var(--header-edge); }
:root[data-seasonal-theme] .header-title {
  display: inline-flex; align-items: center; align-self: stretch; gap: .25em;
  padding: 0; min-height: calc(var(--holiday-character-height) * (1 - var(--holiday-character-overhang-ratio)) + .4rem);
}
:root[data-seasonal-theme] .topbar > nav::after,
:root[data-seasonal-theme] .topbar:not(:has(> nav))::before {
  content: ''; display: block; align-self: flex-end; flex: 0 0 auto;
  height: var(--holiday-character-height); width: calc(var(--holiday-character-height) * var(--holiday-character-ratio));
  margin-bottom: calc(-1 * (var(--header-edge) + var(--holiday-character-height) * var(--holiday-character-overhang-ratio)));
  background: var(--holiday-character) center bottom / contain no-repeat;
  pointer-events: none;
}
:root[data-seasonal-theme] .topbar > nav { display: flex; align-items: center; align-self: stretch; gap: 0; }
:root[data-seasonal-theme] .topbar:not(:has(> nav))::before { grid-column: 1; grid-row: 1; justify-self: start; }
@media (max-width:760px) {
  :root[data-seasonal-theme] .topbar { --holiday-character-height: clamp(3.75rem,18vw,5.25rem); }
  :root[data-seasonal-theme] .header-title { font-size: clamp(1.2rem,4.7vw,1.5rem); gap: .15em; }
  :root[data-seasonal-theme] .header-name { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.05; }
}

@media (max-width:360px) {
  :root[data-seasonal-theme] .topbar { --holiday-character-height: clamp(2.75rem,14vw,3.1rem); }
}
