/* Holiday season touches — loaded only while inc/holiday-season.php says the season is on.
   Language of the Dear Santa end card: cream gift card, red stitched border, red satin ribbon + bow,
   gentle snow, firelight warmth; brand orange #F58634, ink #1A1A1A, Inter. */
:root { --wee-hb-h: 40px; --wee-red: #8E1F22; --wee-red2: #B3282D; --wee-cream: #FFF8F2; }

/* ── Banner: a red satin ribbon above the header ── */
html.wee-hb-wait body::before { content: ""; display: block; height: var(--wee-hb-h); background: var(--wee-red); }
.wee-hb { position: relative; z-index: 1001; height: var(--wee-hb-h); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #a3262b 0%, #8E1F22 46%, #7a1a1d 54%, #8E1F22 100%);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow: hidden; }
.wee-hb::before, .wee-hb::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed rgba(255, 236, 220, .45); pointer-events: none; }
.wee-hb::before { top: 4px; }
.wee-hb::after { bottom: 4px; }
html:not(.wee-hb-in) .wee-hb { display: none; } /* no JS: never show it out of place */
.wee-hb a.wee-hb-link { display: inline-flex; align-items: center; gap: 10px; height: 100%; padding: 0 16px; color: #FFF3EA; text-decoration: none;
  font-size: 14.5px; font-weight: 500; letter-spacing: .005em; white-space: nowrap; max-width: 100%; }
.wee-hb a.wee-hb-link:hover, .wee-hb a.wee-hb-link:focus-visible { color: #fff; }
.wee-hb a.wee-hb-link:hover .wee-hb-text { text-decoration: underline; text-underline-offset: 3px; }
.wee-hb a.wee-hb-link:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.wee-hb strong { font-weight: 800; color: #fff; }
.wee-hb s { color: rgba(255, 236, 220, .75); font-weight: 500; margin-left: 2px; }
.wee-hb-text { overflow: hidden; text-overflow: ellipsis; }
.wee-hb-bow { width: 30px; height: 20px; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.wee-hb .wee-hb-bow path:first-child, .wee-hb .wee-hb-bow path:nth-child(2) { fill: #F2D3BE; }
.wee-hb .wee-hb-bow path:nth-child(4) { fill: #E8BFA6; }
.wee-hb .wee-hb-bow ellipse { fill: #FFF3EA; }
.wee-hb-go { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #F58634; color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.wee-hb-snow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,236,220,.45);
  background: transparent; color: #FFF3EA; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.wee-hb-snow[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.wee-hb-snow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wee-hb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 640px) {
  .wee-hb-more { display: none; }
  .wee-hb a.wee-hb-link { font-size: 13.5px; gap: 8px; padding: 0 44px 0 12px; }
}
@media (max-width: 420px) { .wee-hb s { display: none; } }

/* ── Gift tag (homepage hero photo; same shape as the holiday page's) ── */
.wee-htag { position: absolute; left: 18px; top: 18px; z-index: 3; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 10px 16px 10px 34px; background: var(--wee-cream); color: #1A1A1A; text-decoration: none; border-radius: 6px 12px 12px 6px;
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 19px 50%, transparent 4.5px, #000 5px); mask: radial-gradient(circle at 19px 50%, transparent 4.5px, #000 5px);
  transform: rotate(-4deg); transform-origin: top left; font-family: 'Inter', system-ui, sans-serif; filter: drop-shadow(0 8px 14px rgba(0,0,0,.28)); }
.wee-htag:hover { color: #1A1A1A; transform: rotate(-2deg) scale(1.03); }
.wee-htag-k { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--wee-red); }
.wee-htag-p { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.wee-htag-p s { font-size: 13.5px; font-weight: 600; color: #7a746e; margin-left: 5px; letter-spacing: 0; }
.wee-htag-n { font-size: 12px; font-weight: 600; color: #55524e; }
@media (max-width: 767px) { .wee-htag { left: 10px; top: 12px; transform: rotate(-4deg) scale(.8); } }

/* ── Snow canvas (added by holiday-season.js over photos only) ── */
.wee-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* ── Shop: product cards wrapped like presents ── */
.woocommerce ul.products li.product, ul.products li.product { position: relative; }
ul.products li.product::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(179, 40, 45, .32); border-radius: 12px; pointer-events: none; z-index: 1; }
ul.products li.product::after { content: ""; position: absolute; top: 3px; right: 16px; width: 44px; height: 30px; /* cards clip overflow: keep it inside */ z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Cpath d='M24 16C17 6 6 3 4 9c-2 6 6 11 20 7z' fill='%23B3282D'/%3E%3Cpath d='M24 16C31 6 42 3 44 9c2 6-6 11-20 7z' fill='%23B3282D'/%3E%3Cpath d='M24 16C18 10 9 8 7 11c4-1 10 1 17 5zM24 16c6-6 15-8 17-5-4-1-10 1-17 5z' fill='%23E0565B' opacity='.55'/%3E%3Cpath d='M22 17l-7 13 5-1 3 3 2-14zM26 17l7 13-5-1-3 3-2-14z' fill='%238E1F22'/%3E%3Cellipse cx='24' cy='16' rx='4.2' ry='4.6' fill='%23C9363B'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
/* The SALE badge becomes a holiday badge (text only; prices are WooCommerce's own) */
ul.products li.product.sale .onsale { background: var(--wee-red) !important; color: #fff !important; font-size: 0 !important; letter-spacing: 0 !important; }
ul.products li.product.sale .onsale::before { content: "Holiday sale"; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
ul.products li.product.post-182.sale .onsale::before { content: "Holiday special"; }

/* ── Product page: a gift card under the price ── */
a.wee-hgift { position: relative; display: grid; gap: 2px; margin: 14px 0 18px; padding: 14px 18px 14px 60px; max-width: 460px; text-decoration: none; color: #1A1A1A;
  background: linear-gradient(90deg, transparent 22px, #B3282D 22px, #cf454a 27px, #B3282D 32px, transparent 32px), var(--wee-cream);
  border: 1px solid #ecd2c2; border-radius: 12px; outline: 1.5px dashed rgba(179, 40, 45, .5); outline-offset: -7px;
  box-shadow: 0 6px 18px rgba(142, 31, 34, .08); font-family: 'Inter', system-ui, sans-serif; line-height: 1.4; }
a.wee-hgift:hover { color: #1A1A1A; box-shadow: 0 8px 22px rgba(142, 31, 34, .14); }
a.wee-hgift:focus-visible { outline: 3px solid #1A1A1A; outline-offset: 2px; }
.wee-hgift-bow { position: absolute; left: 6px; top: 6px; width: 42px; height: 28px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.wee-hgift-k { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wee-red); }
.wee-hgift-t { font-size: 15px; font-weight: 600; }
.wee-hgift-h { font-size: 14px; font-style: italic; color: #B4531A; font-weight: 600; }
.wee-hgift-go { font-style: normal; color: #1A1A1A; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .wee-htag:hover { transform: rotate(-4deg); }
}

/* ── Snow globe: the round photo on the Night & Day home page (season only) ──
   Glass over the photo, a wooden base with a brass plate, snow inside, and "shake the globe for a holiday
   surprise" (holiday-season.js + inc/holiday-season.php). Ends with the season: after WEE_HOLIDAY_SEASON_END
   the plain round photo is back and the surprise codes are no longer handed out. */
.wee-hero-image.wee-nd-ring-box { padding-bottom: 92px; overflow: visible !important; } /* style.css clips .wee-hero-image; let the invite, base shadow, glow and prize show */
.wee-hero-image.wee-nd-ring-box .wee-nd-ring {
  box-shadow: 0 0 0 6px rgba(255,255,255,.10), 0 0 0 8px rgba(255,255,255,.28), 0 0 80px 8px rgba(245,130,42,.30);
}
/* glass: soft highlight top-left, a curved reflection, a darker rim at the edge */
.wee-hero-image.wee-nd-ring-box .wee-nd-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.55) 0, rgba(255,255,255,.18) 9%, rgba(255,255,255,0) 26%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 62%, rgba(255,255,255,.10) 69%, rgba(0,0,0,.28) 100%);
}
.wee-hero-image.wee-nd-ring-box .wee-nd-ring::after {
  content: ""; position: absolute; inset: 7%; border-radius: 50%; z-index: 3; pointer-events: none;
  border: 3px solid transparent; border-left-color: rgba(255,255,255,.38); border-top-color: rgba(255,255,255,.16);
  transform: rotate(18deg); filter: blur(.4px);
}
/* wooden base: rounded, gently tapered, warm grain, a brass name plate */
.wee-hero-image.wee-nd-ring-box .wee-globe-base {
  position: absolute; z-index: 4; left: 50%; bottom: 26px; width: min(64%, 350px); height: 118px; pointer-events: none;
  transform: translateX(-50%) perspective(420px) rotateX(14deg); transform-origin: 50% 100%;
  border-radius: 22px 22px 30px 30px / 18px 18px 34px 34px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,226,190,.28), rgba(255,226,190,0) 60%),
    repeating-linear-gradient(91deg, rgba(40,18,6,.16) 0 2px, rgba(40,18,6,0) 2px 11px),
    repeating-linear-gradient(87deg, rgba(255,214,170,.07) 0 1px, rgba(255,214,170,0) 1px 17px),
    linear-gradient(180deg, #9A6338 0%, #7A4A28 42%, #5A331B 78%, #3E2312 100%);
  box-shadow: inset 0 2px 0 rgba(255,230,200,.35), inset 0 -10px 18px rgba(0,0,0,.35), 0 22px 30px rgba(0,0,0,.5);
}
/* the collar the glass sits in */
.wee-globe-base::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -16px; height: 34px; border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(40,18,6,.18) 0 2px, rgba(40,18,6,0) 2px 9px),
    linear-gradient(180deg, #B07443 0%, #7E4C29 60%, #5E371D 100%);
  box-shadow: inset 0 3px 0 rgba(255,232,205,.4), 0 4px 8px rgba(0,0,0,.35);
}
/* brass plate with the wordmark */
.wee-globe-base::after {
  content: "WEEMERGENCY"; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  padding: 7px 16px 6px; border-radius: 8px; white-space: nowrap;
  font: 700 clamp(13px, 1.55vw, 17px)/1 'Arimo', Arial, sans-serif; letter-spacing: .06em; color: #3B2A10;
  background: linear-gradient(180deg, #F6DD9A 0%, #D9AE55 45%, #B8862F 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.4);
  text-shadow: 0 1px 0 rgba(255,240,200,.6);
}
/* sticker to the top right; the holiday gift tag stays on the top-left edge */
.wee-hero-image.wee-nd-ring-box .wee-nd-sticker { top: 2%; bottom: auto; right: 2%; z-index: 5; }
.wee-hero-image.wee-nd-ring-box .wee-htag { z-index: 5; }
/* the invitation */
.wee-globe-invite {
  position: absolute; left: 0; right: 0; bottom: -6px; z-index: 5; text-align: center; pointer-events: none;
  font: 700 15px/1.3 'Outfit', 'Inter', sans-serif; color: #FFB27A; letter-spacing: .01em;
}
/* shake */
.wee-globe-live .wee-nd-ring { cursor: pointer; }
.wee-globe-live .wee-nd-ring:focus-visible { outline: 3px solid #F5822A; outline-offset: 10px; }
.wee-globe-shake .wee-nd-ring { animation: wee-globe-shake .8s ease-in-out; }
@keyframes wee-globe-shake { 0%,100% { transform: rotate(0); } 15% { transform: rotate(-8deg) translateX(-6px); } 35% { transform: rotate(7deg) translateX(6px); } 55% { transform: rotate(-5deg); } 75% { transform: rotate(3deg); } 90% { transform: rotate(-1deg); } }
/* an idle nudge until the first shake */
.wee-globe-live:not(.wee-globe-tried):not(.wee-globe-shake) .wee-nd-ring { animation: wee-globe-nudge 6s ease-in-out 3s infinite; }
@keyframes wee-globe-nudge { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-3deg); } 94% { transform: rotate(3deg); } 97% { transform: rotate(-1.5deg); } }

/* the surprise: a gift tag over the lower half of the globe */
.wee-globe-prize {
  position: absolute; z-index: 7; left: 50%; top: 40%; width: min(92%, 360px); transform: translate(-50%, 0) rotate(-2deg);
  background: #FFF7EF; color: #111113; border-radius: 18px; padding: 18px 20px 16px; text-align: left;
  box-shadow: 0 24px 50px rgba(0,0,0,.45); border: 1.5px dashed rgba(179,40,45,.45); outline: 6px solid #FFF7EF;
  animation: wee-prize-pop .45s cubic-bezier(.2,1.4,.4,1);
}
.wee-globe-prize[hidden] { display: none; }
@keyframes wee-prize-pop { 0% { transform: translate(-50%, 18px) rotate(-6deg) scale(.6); opacity: 0; } 100% { transform: translate(-50%, 0) rotate(-2deg) scale(1); opacity: 1; } }
.wee-globe-prize .k { display: block; font: 800 11px 'Outfit', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #B3282D; margin: 0 0 4px; }
.wee-globe-prize .t { display: block; font: 800 24px/1.1 'Outfit', sans-serif; letter-spacing: -.01em; margin: 0 0 4px; padding-right: 22px; }
.wee-globe-prize .d { display: block; font-size: 14px; line-height: 1.45; color: #4A4A50; margin: 0 0 12px; }
.wee-globe-prize .c { display: inline-block; font: 700 15px 'Arimo', Arial, sans-serif; letter-spacing: .08em; padding: 6px 10px; border: 1.5px dashed #111113; border-radius: 8px; margin: 0 0 12px; background: #fff; }
.wee-globe-prize .go { display: flex; align-items: center; justify-content: center; background: #F5822A; color: #111113; border-radius: 99px; padding: 13px 18px; font: 700 16px 'Outfit', sans-serif; text-decoration: none; }
.wee-globe-prize .go:hover { background: #111113; color: #fff; }
.wee-globe-prize .again { display: block; margin: 10px 0 0; font-size: 13px; color: #64646B; text-align: center; }
.wee-globe-prize .x { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; background: none; font-size: 20px; line-height: 1; color: #64646B; cursor: pointer; border-radius: 50%; }
.wee-globe-prize .x:hover { background: #F4EEE7; color: #111113; }

@media (max-width: 860px) {
  .wee-hero-image.wee-nd-ring-box { padding-bottom: 74px; }
  .wee-hero-image.wee-nd-ring-box .wee-globe-base { height: 84px; width: 62%; bottom: 24px; }
  .wee-globe-base::before { height: 26px; top: -12px; }
  .wee-globe-base::after { padding: 5px 10px 4px; font-size: 12px; }
  .wee-globe-invite { font-size: 14px; bottom: -4px; }
  .wee-globe-prize { top: 26%; padding: 16px 16px 14px; }
  .wee-globe-prize .t { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .wee-globe-shake .wee-nd-ring, .wee-globe-live .wee-nd-ring { animation: none !important; }
  .wee-globe-prize { animation: none; }
}
