/* OnlyBooks — Christmas theme (paired with christmas.js): banner, snowfall, snowmen, snowdrift */
.xmas-strip {
  position: relative;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 46px 14px 16px;
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .04em;
  text-align: center;
  color: #fff8ee;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px),
    linear-gradient(90deg, #0f3a24, #8c1428 50%, #0f3a24);
  box-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.xmas-strip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 12px;
  background: radial-gradient(circle at 12px 0, #fff 9px, transparent 10px) 0 0 / 24px 12px repeat-x;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.25));
  pointer-events: none;
}
.xmas-strip-icon { font-size: 1.1rem; }
.xmas-strip-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff8ee;
  font-size: 1rem;
  cursor: pointer;
}
.xmas-strip-close:hover { background: rgba(255,255,255,.26); }

/* Falling snow */
.xmas-snow {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Big decorative flakes drifting down */
.xmas-flake {
  position: fixed;
  top: -60px;
  z-index: 61;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.7);
  user-select: none;
  animation: xmas-fall linear infinite, xmas-sway ease-in-out infinite alternate;
}
@keyframes xmas-fall { to { transform: translateY(calc(100vh + 120px)) rotate(360deg); } }
@keyframes xmas-sway { from { margin-left: -30px; } to { margin-left: 30px; } }

/* Snowdrift along the bottom of the screen with snowmen */
.xmas-drift {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  z-index: 59;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90px 30px at 50% 100%, #fff 98%, transparent 100%) 0 100% / 160px 34px repeat-x,
    linear-gradient(transparent 60%, #fff 60%);
  filter: drop-shadow(0 -3px 8px rgba(200,220,255,.35));
  opacity: .92;
}
.xmas-snowman-fixed {
  position: fixed;
  bottom: 10px;
  z-index: 62;
  pointer-events: none;
  font-size: 3.4rem;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  animation: xmas-snowman-wobble 4.5s ease-in-out infinite;
  transform-origin: bottom center;
}
.xmas-snowman-fixed.left { left: 14px; }
.xmas-snowman-fixed.right { right: 14px; font-size: 2.6rem; animation-delay: -2s; }
@keyframes xmas-snowman-wobble { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* Hanging lights under the header strip */
.xmas-lights {
  position: relative;
  z-index: 69;
  display: flex;
  justify-content: space-around;
  height: 18px;
  margin-top: 6px;
  pointer-events: none;
  overflow: hidden;
}
.xmas-lights span {
  width: 9px;
  height: 14px;
  border-radius: 50%;
  background: #ffd76a;
  box-shadow: 0 0 10px 2px currentColor;
  color: #ffd76a;
  animation: xmas-blink 1.6s ease-in-out infinite;
}
.xmas-lights span:nth-child(3n+1) { background: #ff4d5e; color: #ff4d5e; animation-delay: -.5s; }
.xmas-lights span:nth-child(3n+2) { background: #4fe08a; color: #4fe08a; animation-delay: -1s; }
@keyframes xmas-blink { 50% { opacity: .35; box-shadow: none; } }

/* Keep the cart bar and other floating UI above the drift */
.cart-bar { z-index: 80 !important; }

@media (max-width: 768px) {
  .xmas-strip { font-size: .84rem; }
  .xmas-snowman-fixed.left { font-size: 2.4rem; }
  .xmas-snowman-fixed.right { display: none; }
  .xmas-drift { height: 24px; background-size: 110px 24px, 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-flake, .xmas-snowman-fixed, .xmas-lights span { animation: none; }
  .xmas-flake { display: none; }
}
