/* Christmas decoration kit — switched on by <body data-*> attributes (see js/shop.js) */
:root { --bulb-1: #ff3b3b; --bulb-2: #ffcc33; --bulb-3: #36c46b; --bulb-4: #4fb6ff; --wire: #2d3b2a; }

/* Top announcement banner */
.xmas-banner { position: relative; z-index: 45; background: linear-gradient(90deg, #a3131f, #d0262f 50%, #a3131f); color: #fff7e6; text-align: center; font-size: .88rem; font-weight: 500; padding: .5rem 1rem; letter-spacing: .01em;
  background-image: linear-gradient(90deg, #a3131f, #d0262f 50%, #a3131f); border-bottom: 3px solid #f2c14e; }
.xmas-banner a { color: #ffe08a; font-weight: 700; text-decoration: none; white-space: nowrap; }
.xmas-banner::before, .xmas-banner::after { content: "❄"; opacity: .7; margin: 0 .6rem; }
@media (max-width: 560px) { .xmas-banner { font-size: .78rem; } .xmas-banner::before, .xmas-banner::after { display: none; } }

/* String of fairy lights hanging under the header */
.xmas-lights { position: absolute; left: 0; right: 0; top: 100%; height: 34px; display: flex; justify-content: space-around; pointer-events: none; overflow: hidden; z-index: 1; }
.xmas-lights::before { content: ""; position: absolute; left: -2%; right: -2%; top: -14px; height: 26px; border-bottom: 2px solid var(--wire); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.xmas-lights i { position: relative; width: 9px; height: 15px; margin-top: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--bulb-1); box-shadow: 0 0 10px 2px var(--bulb-1); animation: bulb 1.8s ease-in-out infinite alternate; }
.xmas-lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 5px; height: 5px; background: #555; border-radius: 1px; }
.xmas-lights i:nth-child(4n+2) { background: var(--bulb-2); box-shadow: 0 0 10px 2px var(--bulb-2); animation-delay: .45s; }
.xmas-lights i:nth-child(4n+3) { background: var(--bulb-3); box-shadow: 0 0 10px 2px var(--bulb-3); animation-delay: .9s; }
.xmas-lights i:nth-child(4n)   { background: var(--bulb-4); box-shadow: 0 0 10px 2px var(--bulb-4); animation-delay: 1.35s; }
.xmas-lights i:nth-child(odd) { margin-top: 13px; }
@keyframes bulb { to { opacity: .35; box-shadow: none; } }
@media (max-width: 600px) { .xmas-lights i:nth-child(n+15) { display: none; } }

/* Hanging baubles in the hero */
.hero { position: relative; }
.baubles { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 2; pointer-events: none; }
.bauble { position: absolute; top: 0; width: 56px; transform-origin: 50% 0; animation: swing 4.5s ease-in-out infinite alternate; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.bauble:nth-child(2) { animation-duration: 5.2s; animation-delay: -1.5s; }
.bauble:nth-child(3) { animation-duration: 3.9s; animation-delay: -.8s; }
@keyframes swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@media (max-width: 860px) { .bauble { width: 34px; } .bauble.hide-sm { display: none; } }

/* Holly sprig on every cake card */
.xmas-cards .card-media::before { content: ""; position: absolute; z-index: 2; right: 8px; bottom: 8px; width: 46px; height: 36px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E%3Cpath d='M40 30c-10-14-26-12-34-6 8 2 10 10 18 10-6 4-8 12-4 18 8-4 16-12 20-22zM40 30c10-14 26-12 34-6-8 2-10 10-18 10 6 4 8 12 4 18-8-4-16-12-20-22z' fill='%232f7d3b' stroke='%23184d22' stroke-width='1.5'/%3E%3Ccircle cx='35' cy='30' r='6' fill='%23d62828'/%3E%3Ccircle cx='46' cy='27' r='6' fill='%23e63946'/%3E%3Ccircle cx='41' cy='38' r='6' fill='%23c1121f'/%3E%3Ccircle cx='33' cy='28' r='2' fill='%23fff' opacity='.6'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }

/* Snow drift edge at the bottom of a section */
.snow-drift { position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 46' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C30 10 60 14 90 26 S150 6 190 22 S260 8 300 24 S360 10 400 22 V46 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x bottom / 400px 46px; }

/* Twinkle stars */
.twinkle { position: absolute; color: #ffe08a; font-size: 1.1rem; animation: tw 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes tw { 50% { opacity: .2; transform: scale(.7); } }

@media (prefers-reduced-motion: reduce) { .bauble, .xmas-lights i, .twinkle { animation: none; } }
