/* ===== Christmas theme (December). To switch off: remove the christmas.css + christmas.js tags
   from the pages and put logo-cocoa.png back. ===== */
:root {
  --lime: #1E7A46;          /* Christmas green: the new pop color */
  --green-light: #6FD39A;   /* green for text on dark backgrounds */
}

/* soft pink snowflake background, like the logo */
body {
  background-color: #FBEFEE;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23F2C3CB' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M30 18v24M18 30h24M21.5 21.5l17 17M38.5 21.5l-17 17'/%3E%3Cpath d='M90 76v16M82 84h16M84.3 78.3l11.4 11.4M95.7 78.3l-11.4 11.4'/%3E%3C/g%3E%3Ccircle cx='80' cy='28' r='2' fill='%23F2C3CB'/%3E%3Ccircle cx='24' cy='92' r='1.6' fill='%23F2C3CB'/%3E%3C/svg%3E");
}
.header { background: rgba(251, 239, 238, .9); }
.topbar { background: repeating-linear-gradient(-45deg, #C8203A 0 14px, #D8364F 14px 28px); }

/* logo: wordmark with the Santa hat */
.logo img { width: 168px !important; }
.header.is-scrolled .logo img { width: 132px !important; }
@media (max-width: 699px) { .logo img { width: 132px !important; } .header.is-scrolled .logo img { width: 112px !important; } }

/* green text/fills need white text on top */
.btn-lime, .btn.is-added, .bag-count, .pill, .tag, .fee-lime, .bag-icon .bag-dot, .toast button,
.so-bubble, .step-dot, .hint, .ref-chip .copy, .copy, .order-banner, .spinner,
.psst-wrap.open .psst { color: #fff !important; }
.fee-lime p, .fee-lime strong { color: #fff; }
.lineup-tile:hover span { color: #fff; }

/* green on dark backgrounds uses the lighter green */
.eyebrow-lime, .story-copy p.story-sign, .footer-cols a:hover, .menu-links a.lime, .bank-amount > strong { color: var(--green-light); }

/* hero */
.hl::after { background: var(--lime); height: .11em; }
.sticker { background: var(--lime); color: #fff; box-shadow: 0 0 0 4px #fff, 0 14px 30px -14px rgba(46, 26, 22, .45); }
.sticker::before { content: ""; position: absolute; top: -50px; left: 2px; width: 124px; height: 94px; background: url(../images/xmas/hat.svg) center / contain no-repeat; transform: rotate(-16deg); filter: drop-shadow(0 6px 6px rgba(46, 26, 22, .25)); }
@media (max-width: 699px) { .sticker::before { top: -38px; left: 4px; width: 90px; height: 72px; } }

/* candy cane leaning on the hero photos */
.hero-media::after { content: ""; position: absolute; z-index: 4; left: -34px; bottom: -40px; width: 96px; height: 214px; background: url(../images/xmas/candy-cane.svg) center / contain no-repeat; transform: rotate(-14deg); filter: drop-shadow(0 12px 12px rgba(46, 26, 22, .3)); animation: caneSway 5s ease-in-out infinite; transform-origin: 50% 100%; pointer-events: none; }
@keyframes caneSway { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(-8deg); } }
@media (max-width: 699px) { .hero-media::after { left: 12px; bottom: -34px; width: 66px; height: 150px; } }
@media (prefers-reduced-motion: reduce) { .hero-media::after { animation: none; } }
/* hero photos outlined with color-changing Christmas lights (bulbs added by js/christmas.js) */
.hero-img { overflow: visible; background: transparent; }
.hero-img img { border-radius: 24px; }
.hero-img-main img { border-radius: 999px 999px 24px 24px; }
.js .is-loaded .reveal-img { clip-path: inset(-40px -40px -40px -40px round 0); }
.hero-lights { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-lights > svg.wire { position: absolute; overflow: visible; left: 0; top: 0; }
.hl-bulb { position: absolute; width: 15px; height: 27px; margin-left: -7.5px; transform-origin: 50% 0; animation: bulbCycle 3.6s steps(1) infinite; }
.hl-bulb svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.hl-bulb .halo { position: absolute; left: 50%; top: 62%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: radial-gradient(circle, currentColor 0, transparent 70%); opacity: .4; animation: bulbGlow 1.8s ease-in-out infinite; animation-delay: inherit; }
@keyframes bulbCycle { 0% { color: #FF2E43; } 20% { color: #FFC21A; } 40% { color: #19C46A; } 60% { color: #FF6FB0; } 80% { color: #2AA8FF; } }
@keyframes bulbGlow { 0%, 100% { opacity: .42; transform: scale(1); } 50% { opacity: .18; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .hl-bulb, .hl-bulb .halo { animation-play-state: paused; } }
.btn-cherry { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F4A3B0; }

/* shade banners: green one and red one */
.marquee { background: var(--lime); color: #fff; }
.marquee-track i { color: #fff !important; }
.marquee-cherry { background: #C8203A; }

/* the green shade banner: a festive ribbon */
.marquee-xmas {
  position: relative; z-index: 2; margin: 26px -2% 30px; padding: 30px 0 26px !important;
  transform: rotate(-1.6deg);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.14) 0 1.5px, transparent 2px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.10) 0 1px, transparent 1.5px) 0 0 / 31px 31px,
    linear-gradient(180deg, #23894F, #1A6B3D);
  box-shadow: 0 18px 34px -20px rgba(26, 107, 61, .9);
}
.marquee-xmas::before, .marquee-xmas::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: repeating-linear-gradient(-45deg, #C8203A 0 10px, #fff 10px 20px);
}
.marquee-xmas::before { top: 0; } .marquee-xmas::after { bottom: 0; }
.marquee-xmas .marquee-track span:nth-of-type(odd) { color: #fff; }
.marquee-xmas .marquee-track span:nth-of-type(even) { color: #FFD3DC; }
.marquee-xmas .marquee-track i { animation: xmasBob 2.4s ease-in-out infinite; font-style: normal; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.marquee-xmas .marquee-track i:nth-of-type(2n) { animation-delay: -.8s; }
.marquee-xmas .marquee-track i:nth-of-type(3n) { animation-delay: -1.6s; }
@keyframes xmasBob { 0%, 100% { transform: translateY(0) rotate(-10deg) scale(1); } 50% { transform: translateY(-6px) rotate(10deg) scale(1.15); } }
.xmas-lights { position: absolute; left: 0; right: 0; top: 4px; height: 26px; pointer-events: none; z-index: 3; }
.xmas-lights svg { position: absolute; inset: 0 0 auto; width: 100%; height: 12px; }
.xmas-lights b { position: absolute; top: 6px; width: 10px; height: 15px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; animation: twinkle 1.5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; box-shadow: none; } }
@media (max-width: 699px) { .marquee-xmas { padding: 24px 0 20px !important; margin: 18px -3% 22px; } }
@media (prefers-reduced-motion: reduce) { .marquee-xmas .marquee-track i, .xmas-lights b { animation: none; } }

/* product cards: red ribbon + bow between photo and text (never over the photo) */
.card-body { position: relative; border-top: 10px solid transparent; border-image: linear-gradient(90deg, #C8203A, #E0405A, #C8203A) 1; }
.card-body::before { content: "🎀"; position: absolute; top: -34px; right: 22px; font-size: 46px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); pointer-events: none; }
.pill-pre { background: var(--cherry); }

/* falling snow (added by js/christmas.js) */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.snow i { position: absolute; top: -24px; font-style: normal; color: #F4A3B0; animation: snowFall linear infinite; will-change: transform; }
@keyframes snowFall { to { transform: translate3d(30px, 110vh, 0) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } }

/* icons instead of emojis */
.topbar .tb-ic, .topbar svg.ki { width: 15px; height: 15px; vertical-align: -2px; margin: 0 4px; }
.marquee-xmas .marquee-track i svg { width: .85em; height: .85em; display: block; color: #fff; filter: none; }
.marquee-xmas .marquee-track i:nth-of-type(3n+1) svg { color: #FFD3DC; }
.marquee-xmas .marquee-track i:nth-of-type(3n+2) svg { color: #F7C948; }
