/* The Cookie Caterer — Christmas look v1 (Nov 2026)
   Everything here applies only while <body class="xmas"> is set.
   To go back to the regular look: remove the word xmas from the <body> tag (home and order pages)
   and put the regular logo file names back. The regular "pick your Flavours" heading is still in the page. */

:root { --xred: #B3121D; --xred-deep: #8C0D16; }

body:not(.xmas) .xmas-only { display: none !important; }
.xmas .regular-only { display: none !important; }

/* ---------- home: the Flavours band turns Christmas red, with snow ---------- */
.xmas section.flavours { background: var(--xred); position: relative; overflow: hidden; }
.xmas .wave-green-top path, .xmas section.flavours + .wave path { fill: var(--xred); }
.xmas section.flavours > .wrap { position: relative; z-index: 1; }
.xmas section.flavours .flav-head .script { color: var(--gold); font-size: clamp(2.2rem, 7vw, 3.8rem); }
.xmas section.flavours .flav-head .h2 { color: #fff; }

.xmas .snow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.xmas .flake { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--s); color: #fff;
  transform: translate3d(0, -12%, 0); animation: xsnow var(--t) linear var(--dl) infinite; will-change: transform; }
.xmas .flake svg { display: block; width: 100%; height: auto; opacity: var(--o, .7); animation: xspin calc(var(--t) * .9) linear infinite; }
@keyframes xsnow { from { transform: translate3d(0, -12%, 0); } to { transform: translate3d(var(--dx, 0px), 104%, 0); } }
@keyframes xspin { to { transform: rotate(360deg); } }

/* the four Christmas cookies drop in above the flavour pills */
.xmas .xmas-drop { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px;
  max-width: 820px; margin: 0 auto 22px; }
.xmas .xc { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.xmas .xc-btn { position: relative; display: block; width: min(100%, 180px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.xmas .xc-btn img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .35));
  transition: transform 300ms var(--ease-out); }
.xmas .xc-btn::after { content: "+"; position: absolute; right: 4%; bottom: 4%; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-deep); color: #fff; font: 700 1.35rem/1 var(--font-ui);
  box-shadow: 0 0 0 3px #fff; transition: transform 160ms var(--ease-out); }
.xmas .xc-btn:active img { transform: rotate(var(--r, 0deg)) scale(.95); }
.xmas .xc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .xmas .xc-btn:hover img { transform: rotate(0deg) scale(1.06); }
  .xmas .xc-btn:hover::after { transform: scale(1.12) rotate(90deg); }
}
.xmas .xc-name { color: #fff; font: 400 clamp(.95rem, 2.6vw, 1.4rem)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.xmas .xc-price { display: block; margin-top: 4px; color: #fff; opacity: .9; font: 600 .9rem/1.2 var(--font-ui); letter-spacing: 0; text-transform: none; }

.js .xmas .pills .xc-btn, .js .xmas .pills .xc-name { opacity: 0; }
.js .xmas .pills.in .xc-btn { animation: xdrop 1150ms cubic-bezier(.22, 1.1, .36, 1) both; animation-delay: calc(var(--i) * 160ms + 120ms); }
.js .xmas .pills.in .xc-name { animation: xfade 400ms ease both; animation-delay: calc(var(--i) * 160ms + 900ms); }
@keyframes xfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes xdrop {
  0% { opacity: 0; transform: translate3d(0, -460px, 0) rotate(-55deg); }
  16% { opacity: 1; }
  60% { opacity: 1; transform: translate3d(0, 16px, 0) rotate(7deg); }
  80% { transform: translate3d(0, -7px, 0) rotate(-2deg); }
  100% { opacity: 1; transform: none; }
}

/* Christmas flavour pills sit first in the cloud */
.xmas .pill-xmas { background: #fff; color: var(--xred-deep); box-shadow: inset 0 0 0 2px var(--xred-deep); }
.xmas .pill-xmas.pill-live.on { background: var(--cocoa-deep); color: #fff; box-shadow: none; }

/* Christmas gift boxes call-out */
.xmas .xbox { display: grid; grid-template-columns: 150px 1fr; gap: 6px 22px; align-items: center; max-width: 760px; margin: 6px auto 28px;
  padding: 18px 24px; background: #fff; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); text-align: left; }
.xmas .xbox-img { width: 150px; height: 150px; object-fit: contain; transition: opacity 300ms ease; }
.xmas .xbox-img:not(.cut) { opacity: 0; }
.xmas .xbox .script { display: block; font-size: 1.7rem; line-height: 1; color: var(--xred); transform: rotate(-3deg); transform-origin: 0 50%; }
.xmas .xbox-title { margin: 4px 0 6px; font: 400 clamp(1.9rem, 5vw, 2.6rem)/.98 var(--font-display); text-transform: uppercase; color: var(--cocoa-deep); }
.xmas .xbox p { margin: 0 0 12px; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.xmas .xbox .btn-primary { background: var(--xred); min-height: 44px; padding: 10px 20px; line-height: 1.2; text-align: center; }
@media (hover: hover) and (pointer: fine) { .xmas .xbox .btn-primary:hover { background: var(--xred-deep); } }

@media (max-width: 640px) {
  .xmas .xmas-drop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; max-width: 380px; }
  .xmas .xc-btn { width: min(100%, 150px); }
  .xmas .xbox { grid-template-columns: 96px 1fr; gap: 4px 14px; padding: 16px; }
  .xmas .xbox-img { width: 96px; height: 96px; }
  .xmas .promo-xmas .promo-art { width: 64px; height: 64px; }
}

/* ---------- order page ---------- */
.xmas .item.is-xmas { position: relative; }
.xmas .xmas-tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 9px; border-radius: 999px;
  background: var(--xred); color: #fff; font: 700 .66rem/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; }
.xmas .promo-xmas { background: var(--xred); color: #fff; }
.xmas .promo-xmas .promo-kicker { color: var(--gold); }
.xmas .promo-xmas .promo-title, .xmas .promo-xmas .promo-text { color: #fff; }
.xmas .promo-xmas .promo-cta { color: var(--gold); }
.xmas .promo-xmas .promo-art { width: 84px; height: 84px; background: none; }
.xmas .promo-xmas .promo-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.xmas .promo-xmas .promo-art img:not(.cut) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .xmas .flake, .xmas .flake svg { animation: none; }
  .xmas .flake { transform: translate3d(0, var(--y, 30%), 0); }
  .js .xmas .pills.in .xc-btn, .js .xmas .pills.in .xc-name { animation: xfade 240ms ease both; animation-delay: 0ms; }
  .xmas .xc-btn img, .xmas .xc-btn::after { transition: none; }
}
