/* =====================================================================
   HOLIDAY THEME (Christmas and New Year)
   Shown only while <html data-season="holiday"> is set by js/core/holiday.js:
   automatically 1 December – 6 January, or as set in Admin › Promotions › Homepage.
   Never applied to the Admin dashboard. Everything else stays as normal.
   - Colours: deep wine red with gold, as a full colour set (like dark mode).
   - Backdrop: soft bokeh lights + fine gold drawings (baubles, stars, holly, palms, gifts).
   - Glass ("mirror") cards, glossy gold buttons with a passing shine, twinkling stars,
     and a falling layer (snow, Santa hats or gifts, a different one each day).
   - Phones set to "reduce motion" get the colours without the movement.
   ===================================================================== */
:root[data-season="holiday"] body:not(.admin-mode) {
  --bg: #5A0B14; --surface: #761320; --surface-2: #861B28; --ink: #FFF7F2; --muted: #F2CFC7; --line: rgba(255, 255, 255, .22);
  --leaf: #FFD36B; --leaf-hover: #FFE08F; --leaf-ink: #FFE7A8; --leaf-soft: rgba(255, 211, 107, .18); --on-leaf: #5A0A10;
  --mango: #FFD36B; --mango-ink: #FFE7A8; --mango-soft: rgba(255, 211, 107, .2); --chili-soft: rgba(255, 140, 120, .2);
  --sky: #A9D4F5; --sky-soft: rgba(169, 212, 245, .16); --band: #3E060C; --band-ink: #FFE7C2;
  --overlay: rgba(30, 0, 4, .6);
  --shadow-sm: 0 1px 2px rgba(30, 0, 4, .3); --shadow: 0 16px 32px -18px rgba(20, 0, 3, .75); --shadow-lg: 0 24px 60px -24px rgba(20, 0, 3, .85);
  --xm-glass: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .13));
  --xm-glass-edge: rgba(255, 255, 255, .36);
  --art-pattern: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22360%22%20height=%22360%22%20viewBox=%220%200%20360%20360%22%3E%3Cg%20fill=%22none%22%20stroke=%22%23F6C860%22%20stroke-opacity=%22.28%22%20stroke-width=%221.4%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%20%3Cpath%20d=%22M70%2020v26%22/%3E%3Ccircle%20cx=%2270%22%20cy=%2262%22%20r=%2216%22/%3E%3Cpath%20d=%22M64%2046h12v-4H64z%22/%3E%3Cpath%20d=%22M56%2058c8%205%2020%205%2028%200M58%2070c7%204%2017%204%2024%200%22/%3E%20%3Cpath%20d=%22M200%2040l5%2011%2012%201-9%208%203%2012-11-7-11%207%203-12-9-8%2012-1z%22/%3E%20%3Cpath%20d=%22M300%2090c-10-6-22%200-22%2012%2010%200%2018-4%2022-12zM300%2090c10-6%2022%200%2022%2012-10%200-18-4-22-12z%22/%3E%3Ccircle%20cx=%22296%22%20cy=%22104%22%20r=%224%22/%3E%3Ccircle%20cx=%22305%22%20cy=%22106%22%20r=%224%22/%3E%20%3Cpath%20d=%22M40%20200c10-30%204-56%200-70M40%20130c-12%202-24%2010-28%2022M40%20130c12%202%2024%2010%2028%2022M40%20130c-6-10-18-14-28-12M40%20130c6-10%2018-14%2028-12%22/%3E%3Ccircle%20cx=%2222%22%20cy=%22150%22%20r=%222%22/%3E%3Ccircle%20cx=%2258%22%20cy=%22150%22%20r=%222%22/%3E%3Ccircle%20cx=%2230%22%20cy=%22122%22%20r=%222%22/%3E%20%3Cpath%20d=%22M180%20160l-26%2046h52zM180%20140l-20%2034h40zM180%20126v-8M172%20206v12h16v-12%22/%3E%3Ccircle%20cx=%22170%22%20cy=%22190%22%20r=%222.4%22/%3E%3Ccircle%20cx=%22190%22%20cy=%22180%22%20r=%222.4%22/%3E%3Ccircle%20cx=%22182%22%20cy=%22164%22%20r=%222%22/%3E%20%3Cpath%20d=%22M300%20210v40M283%20220l34%2020M283%20240l34-20M300%20214l-4-4M300%20214l4-4M300%20246l-4%204M300%20246l4%204%22/%3E%20%3Crect%20x=%2260%22%20y=%22270%22%20width=%2244%22%20height=%2236%22%20rx=%223%22/%3E%3Cpath%20d=%22M82%20270v36M60%20286h44M82%20270c-8-14-20-6-12%200M82%20270c8-14%2020-6%2012%200%22/%3E%20%3Cpath%20d=%22M200%20300c14-10%2030-10%2044%200s30%2010%2044%200%22/%3E%20%3Cpath%20d=%22M140%2080l3%207%207%201-5%205%201%207-6-4-6%204%201-7-5-5%207-1z%22/%3E%3Cpath%20d=%22M250%20330l2%205%205%201-4%203%201%205-4-3-4%203%201-5-4-3%205-1z%22/%3E%20%3C/g%3E%3Cg%20fill=%22%23F6C860%22%20fill-opacity=%22.35%22%3E%3Ccircle%20cx=%22120%22%20cy=%2230%22%20r=%221.8%22/%3E%3Ccircle%20cx=%22250%22%20cy=%22150%22%20r=%221.8%22/%3E%3Ccircle%20cx=%2220%22%20cy=%22250%22%20r=%221.6%22/%3E%3Ccircle%20cx=%22150%22%20cy=%22250%22%20r=%222%22/%3E%3Ccircle%20cx=%22340%22%20cy=%2230%22%20r=%221.6%22/%3E%3Ccircle%20cx=%22340%22%20cy=%22300%22%20r=%221.8%22/%3E%3C/g%3E%3C/svg%3E");
  --art-wash: radial-gradient(9rem 9rem at 8% 12%, rgba(255,206,120, 0.22), transparent 70%),
    radial-gradient(12rem 12rem at 82% 8%, rgba(255,170,110, 0.18), transparent 70%),
    radial-gradient(6rem 6rem at 64% 30%, rgba(255,236,180, 0.16), transparent 70%),
    radial-gradient(14rem 14rem at 18% 46%, rgba(255,120,110, 0.14), transparent 70%),
    radial-gradient(10rem 10rem at 90% 52%, rgba(255,214,140, 0.16), transparent 70%),
    radial-gradient(8rem 8rem at 40% 70%, rgba(255,240,200, 0.12), transparent 70%),
    radial-gradient(16rem 16rem at 75% 82%, rgba(255,160,90, 0.14), transparent 70%),
    radial-gradient(10rem 10rem at 10% 92%, rgba(255,220,150, 0.14), transparent 70%),
    radial-gradient(7rem 7rem at 52% 96%, rgba(120,200,150, 0.1), transparent 70%),
    radial-gradient(5rem 5rem at 30% 24%, rgba(255,250,220, 0.16), transparent 70%),
    radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(25, 0, 4, .55) 100%),
    linear-gradient(165deg, #8C1622 0%, #6E0F1A 40%, #4E0811 100%);
  color-scheme: dark;
}
:root[data-season="holiday"] body:not(.admin-mode)::before { background: var(--art-wash), var(--art-pattern) 0 0 / 360px 360px repeat, var(--bg); }

/* Top bar and header */
:root[data-season="holiday"] body:not(.admin-mode) .promo { background: linear-gradient(90deg, #3E060C, #6E0F1A, #3E060C); }
:root[data-season="holiday"] body:not(.admin-mode) .promo::after { height: 2px; background: linear-gradient(90deg, transparent, #FFD36B, #FFF, #FFD36B, transparent); }
:root[data-season="holiday"] body:not(.admin-mode) .site-header { background: rgba(110, 15, 26, .62); border-bottom-color: rgba(255, 255, 255, .16); }
:root[data-season="holiday"] body:not(.admin-mode) .logo-word { color: #FFF7F2; }
:root[data-season="holiday"] body:not(.admin-mode) .lf-fruit { fill: #FFD36B; }
:root[data-season="holiday"] body:not(.admin-mode) .lf-leaf { fill: #FFF; }
:root[data-season="holiday"] body:not(.admin-mode) .logo { overflow: visible; }
.xm-hat { display: none; }
:root[data-season="holiday"] body:not(.admin-mode) .xm-hat { display: block; position: absolute; width: .95em; height: .72em; left: -.38em; top: -.52em; transform: rotate(-22deg); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); pointer-events: none; }
:root[data-season="holiday"] body:not(.admin-mode) .logo-word { position: relative; }

/* Homepage */
:root[data-season="holiday"] body:not(.admin-mode) .hero { background: transparent; }
:root[data-season="holiday"] body:not(.admin-mode) .hero h1 { text-shadow: 0 2px 18px rgba(255, 180, 120, .3); }
:root[data-season="holiday"] body:not(.admin-mode) .hero-photo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 18px 40px -16px rgba(20, 0, 3, .8); }
:root[data-season="holiday"] body:not(.admin-mode) .hero-photo img.xm-hero { object-position: 72% 50%; }
.xm-chip { display: none; }
:root[data-season="holiday"] body:not(.admin-mode) .xm-chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; color: #FFF; font-weight: 800; font-size: var(--fs-sm); padding: 7px 16px; border-radius: 999px;
  background: var(--xm-glass); border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }

/* Glass ("mirror") surfaces */
:root[data-season="holiday"] body:not(.admin-mode) .hdr-search, :root[data-season="holiday"] body:not(.admin-mode) .hero-req, :root[data-season="holiday"] body:not(.admin-mode) .ccard, :root[data-season="holiday"] body:not(.admin-mode) .pcard, :root[data-season="holiday"] body:not(.admin-mode) .bcard, :root[data-season="holiday"] body:not(.admin-mode) .docket, :root[data-season="holiday"] body:not(.admin-mode) .req-promo {
  background: var(--xm-glass), rgba(110, 15, 26, .45); border: 1px solid var(--xm-glass-edge);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 10px 30px -14px rgba(20, 0, 3, .7);
}
:root[data-season="holiday"] body:not(.admin-mode) .hdr-search { border-radius: 999px; }
:root[data-season="holiday"] body:not(.admin-mode) .hdr-search input { background: transparent; color: var(--ink); }
:root[data-season="holiday"] body:not(.admin-mode) .hdr-search input::placeholder { color: rgba(255, 240, 235, .78); }
:root[data-season="holiday"] body:not(.admin-mode) .bottom-nav { background: rgba(78, 8, 17, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top-color: rgba(255, 255, 255, .18); }
:root[data-season="holiday"] body:not(.admin-mode) .bottom-nav a, :root[data-season="holiday"] body:not(.admin-mode) .bottom-nav button { color: #F2CFC7; }
:root[data-season="holiday"] body:not(.admin-mode) .bottom-nav .active { color: #FFD36B; }

/* Glossy gold buttons with a light sweeping across now and then */
:root[data-season="holiday"] body:not(.admin-mode) .btn-primary, :root[data-season="holiday"] body:not(.admin-mode) .cart-btn { background: linear-gradient(180deg, #FFE7A0, #F2B634); color: #5A0A10; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 20px -8px rgba(0, 0, 0, .5); }
:root[data-season="holiday"] body:not(.admin-mode) .btn-primary:hover { background: linear-gradient(180deg, #FFEFB8, #F5C04E); }
:root[data-season="holiday"] body:not(.admin-mode) .btn-primary::after, :root[data-season="holiday"] body:not(.admin-mode) .xm-chip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); animation: xm-shine 3.2s ease-in-out infinite; }
@keyframes xm-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* Twinkling stars */
.xm-tw, .xm-fall { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.xm-tw { z-index: 0; }
.xm-fall { z-index: 60; }
.xm-tw i { position: absolute; width: var(--s); height: var(--s); opacity: .3;
  background: radial-gradient(circle, #FFF 0 18%, rgba(255, 230, 160, .9) 30%, transparent 70%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 6px #FFE7A0) drop-shadow(0 0 12px rgba(255, 220, 140, .9));
  animation: xm-twinkle var(--d) ease-in-out infinite; animation-delay: var(--dl); }
@keyframes xm-twinkle { 0%, 100% { opacity: .3; transform: scale(.55) rotate(0); } 50% { opacity: 1; transform: scale(1.35) rotate(45deg); } }

/* Falling snow / Santa hats / gifts (a different one each day) */
.xm-fall i { position: absolute; top: -12vh; left: var(--x); width: var(--s); height: var(--s); opacity: var(--o, .9); animation: xm-fall var(--d) linear infinite; animation-delay: var(--dl); }
.xm-fall i svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(40, 0, 6, .35)); animation: xm-sway var(--sw) ease-in-out infinite alternate; }
@keyframes xm-fall { to { transform: translateY(125vh); } }
@keyframes xm-sway { from { transform: translateX(-14px) rotate(-25deg); } to { transform: translateX(14px) rotate(25deg); } }
:root:not([data-season="holiday"]) .xm-tw, :root:not([data-season="holiday"]) .xm-fall, body.admin-mode .xm-tw, body.admin-mode .xm-fall { display: none; }
:root[data-season="holiday"] body:not(.admin-mode) main, :root[data-season="holiday"] body:not(.admin-mode) .site-header, :root[data-season="holiday"] body:not(.admin-mode) .site-footer { position: relative; z-index: 1; }
:root[data-season="holiday"] body:not(.admin-mode) .site-header { position: sticky; z-index: 40; }

@media (prefers-reduced-motion: reduce) {
  .xm-tw, .xm-fall { display: none; }
  :root[data-season="holiday"] body:not(.admin-mode) .btn-primary::after, :root[data-season="holiday"] body:not(.admin-mode) .xm-chip::after { animation: none; display: none; }
}
@media print { .xm-tw, .xm-fall { display: none; } }
