/* FiveMRides Christmas skin (Dec 2026). Loaded only when option fmr_xmas_skin is active.
   Palette: red #e3121f, gold #ffd24a, green #2fd66b, cream #fffbe6.
   Safety: no flashing. Only slow fades (>= 4s) at low contrast; everything static under prefers-reduced-motion. */
body.fmr-xmas {
  --xm-red: #e3121f;
  --xm-red-dark: #a90b15;
  --xm-gold: #ffd24a;
  --xm-green: #2fd66b;
  --xm-cream: #fffbe6;
  --xm-cane: repeating-linear-gradient(135deg, #e3121f 0 8px, #fffbe6 8px 16px);
}

/* Candy cane line under the header */
body.fmr-xmas .site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: var(--xm-cane);
  opacity: .9;
  pointer-events: none;
}
body.fmr-xmas .site-header { border-bottom-color: rgba(255, 210, 74, .35); }
body.fmr-xmas .site-header.scrolled { border-bottom-color: rgba(255, 210, 74, .55); }

/* Santa hat on the logo */
body.fmr-xmas .logo-link { position: relative; display: inline-block; }
body.fmr-xmas .logo-link::after {
  content: "";
  position: absolute;
  top: 3%; right: 16%;
  width: 36%; aspect-ratio: 64 / 56;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M8 44C10 22 22 6 44 6c4 0 7 1 9 4-8 1-12 6-13 12 6 4 12 10 16 22z' fill='%23e3121f'/%3E%3Cpath d='M8 44C12 26 24 10 44 8' fill='none' stroke='%23ff6b73' stroke-width='3' stroke-linecap='round' opacity='.6'/%3E%3Crect x='4' y='40' width='56' height='13' rx='6.5' fill='%23fffbe6'/%3E%3Ccircle cx='53' cy='9' r='7' fill='%23fffbe6'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: rotate(14deg);
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}

/* Warm accents: Add to cart, price tags */
body.fmr-xmas button.single_add_to_cart_button,
body.fmr-xmas.single-product form.cart .single_add_to_cart_button,
body.fmr-xmas .single_add_to_cart_button.button,
body.fmr-xmas ul.products li.product .button,
body.fmr-xmas ul.products li.product .add_to_cart_button {
  background: linear-gradient(45deg, var(--xm-red), var(--xm-red-dark)) !important;
  color: var(--xm-cream) !important;
  border-color: rgba(255, 210, 74, .55) !important;
}
body.fmr-xmas button.single_add_to_cart_button:hover,
body.fmr-xmas.single-product form.cart .single_add_to_cart_button:hover,
body.fmr-xmas .single_add_to_cart_button.button:hover,
body.fmr-xmas ul.products li.product .button:hover,
body.fmr-xmas ul.products li.product .add_to_cart_button:hover {
  background: linear-gradient(45deg, #f21d2a, var(--xm-red)) !important;
  box-shadow: 0 0 18px rgba(255, 210, 74, .45), 0 0 0 1px rgba(255, 210, 74, .6) !important;
  filter: none !important;
}
body.fmr-xmas ul.products li.product .price,
body.fmr-xmas ul.products li.product .price ins,
body.fmr-xmas ul.products li.product .price .amount,
body.fmr-xmas ul.products li.product .price .woocommerce-Price-currencySymbol,
body.fmr-xmas div.product p.price .woocommerce-Price-currencySymbol,
body.fmr-xmas div.product p.price,
body.fmr-xmas div.product p.price ins,
body.fmr-xmas div.product p.price .amount,
body.fmr-xmas div.product span.price .amount {
  color: var(--xm-gold) !important;
  text-shadow: 0 0 10px rgba(255, 210, 74, .22);
}
body.fmr-xmas ul.products li.product .price del,
body.fmr-xmas ul.products li.product .price del .amount,
body.fmr-xmas div.product p.price del .amount {
  color: rgba(255, 251, 230, .55) !important;
  text-shadow: none;
}

/* Product cards: snow cap that settles on hover, warm border */
body.fmr-xmas ul.products li.product::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 16px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .6s ease, transform .6s ease;
  background:
    radial-gradient(circle at 10px 0, #fffbe6 0 9px, transparent 9.5px) 0 0 / 28px 16px repeat-x,
    radial-gradient(circle at 24px 0, #fffbe6 0 6px, transparent 6.5px) 0 0 / 28px 12px repeat-x,
    linear-gradient(#fffbe6, #fffbe6) 0 0 / 100% 4px no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
body.fmr-xmas ul.products li.product:hover::before,
body.fmr-xmas ul.products li.product:focus-within::before {
  opacity: .95;
  transform: none;
}
body.fmr-xmas ul.products li.product:hover {
  border-color: var(--xm-gold);
  box-shadow: 0 0 25px rgba(227, 18, 31, .28), inset 0 0 10px rgba(255, 210, 74, .1);
}

/* Shop / category / page titles: small kicker */
body.fmr-xmas .woocommerce-products-header__title::before,
body.fmr-xmas.archive .page-title::before {
  content: "\2744  Christmas 2026";
  display: block;
  margin: 0 0 .35rem;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--xm-gold);
  text-shadow: 0 0 10px rgba(255, 210, 74, .3);
}

/* Footer: candy cane, string of lights (slow low contrast fade), greeting */
body.fmr-xmas .site-footer { position: relative; border-top: 4px solid transparent !important; border-image: var(--xm-cane) 4 !important; }
body.fmr-xmas .site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 26px;
  pointer-events: none;
  background:
    radial-gradient(circle at 12px 14px, #e3121f 0 4px, transparent 4.5px) 0 0 / 72px 26px repeat-x,
    radial-gradient(circle at 30px 14px, #ffd24a 0 4px, transparent 4.5px) 0 0 / 72px 26px repeat-x,
    radial-gradient(circle at 48px 14px, #2fd66b 0 4px, transparent 4.5px) 0 0 / 72px 26px repeat-x,
    radial-gradient(circle at 66px 14px, #fffbe6 0 4px, transparent 4.5px) 0 0 / 72px 26px repeat-x;
  opacity: .8;
  animation: fmr-xm-glow 7s ease-in-out infinite;
}
body.fmr-xmas .site-footer .footer-widgets { padding-top: 1.6rem; }
body.fmr-xmas .site-footer::after {
  content: "\2744  Merry Christmas from the FiveMRides team  \2744";
  display: block;
  text-align: center;
  padding: 1rem 1rem 1.2rem;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--xm-gold);
  border-top: 1px dashed rgba(255, 210, 74, .25);
}
@keyframes fmr-xm-glow { 0%, 100% { opacity: .62; } 50% { opacity: .9; } }

/* Ornament bullets in footer lists */
body.fmr-xmas .footer-menu li { position: relative; }
body.fmr-xmas .footer-menu li::before {
  content: "";
  position: absolute;
  left: -14px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8 0 15%, var(--xm-red) 40%);
}
body.fmr-xmas .footer-menu li:nth-child(3n+2)::before { background: radial-gradient(circle at 35% 30%, #fff8 0 15%, var(--xm-gold) 40%); }
body.fmr-xmas .footer-menu li:nth-child(3n)::before { background: radial-gradient(circle at 35% 30%, #fff8 0 15%, var(--xm-green) 40%); }

/* Snow canvas (created by fmr-xmas.js) */
.fmr-xm-snow {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 900;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  body.fmr-xmas .site-footer::before { animation: none; opacity: .8; }
  body.fmr-xmas ul.products li.product::before { transition: none; }
  .fmr-xm-snow { display: none; }
}
@media print { body.fmr-xmas .site-header::after, body.fmr-xmas .logo-link::after, .fmr-xm-snow { display: none; } }
