/*
 * fv2026 · Christmas 2026 (3 Dec – 6 Jan): dresses the shop up over the «navidad» colours of css/temporadas.css
 * (red buttons, green badges, red top bar; those stay as they are). Loaded by header.tpl right after temporadas.css,
 * only while $fv_temporada is 'navidad' (fv-config.tpl: FV_NAVIDAD = 1 and its dates, or the preview
 * ?fvtemporada=navidad). The same file in farmavazquez.pt and .fr.
 * Nothing here changes a size or a position and nothing takes a click (pointer-events: none): the garland, the hat
 * and the snow (a burst over the home banner, a light snowfall over every page but the checkout) are drawn over what
 * is there. No JavaScript, no requests: the drawings are inline SVG ('#' written as
 * %23 in the data URIs, or the browser cuts the image there). prefers-reduced-motion: no twinkling and no snow.
 */

/* ---------- the garland along the top of the header: two layers of bulbs that twinkle in turn for ~30 s, then stay lit ---------- */
html.fv-temporada-navidad #header.fv-cab { position: relative; }
html.fv-temporada-navidad #header.fv-cab::before,
html.fv-temporada-navidad #header.fv-cab::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 3; pointer-events: none;
  background-repeat: repeat-x; background-size: 96px 18px;
}
html.fv-temporada-navidad #header.fv-cab::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='18' viewBox='0 0 96 18'%3E%3Cpath d='M0 3 Q24 11 48 3 Q72 11 96 3' fill='none' stroke='%23314b38' stroke-width='1.3'/%3E%3Crect x='10.4' y='5.3' width='3.2' height='2.6' rx='.6' fill='%235b6b5f'/%3E%3Cellipse cx='12' cy='11.1' rx='3' ry='4.3' fill='%23d62828'/%3E%3Cellipse cx='11' cy='9.9' rx='.9' ry='1.4' fill='%23fff' opacity='.55'/%3E%3Crect x='58.4' y='5.3' width='3.2' height='2.6' rx='.6' fill='%235b6b5f'/%3E%3Cellipse cx='60' cy='11.1' rx='3' ry='4.3' fill='%23f4b400'/%3E%3Cellipse cx='59' cy='9.9' rx='.9' ry='1.4' fill='%23fff' opacity='.55'/%3E%3C/svg%3E"); animation: fvn-brillo 1.8s ease-in-out 16 alternate; }
html.fv-temporada-navidad #header.fv-cab::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='18' viewBox='0 0 96 18'%3E%3Crect x='34.4' y='5.3' width='3.2' height='2.6' rx='.6' fill='%235b6b5f'/%3E%3Cellipse cx='36' cy='11.1' rx='3' ry='4.3' fill='%232e9e4f'/%3E%3Cellipse cx='35' cy='9.9' rx='.9' ry='1.4' fill='%23fff' opacity='.55'/%3E%3Crect x='82.4' y='5.3' width='3.2' height='2.6' rx='.6' fill='%235b6b5f'/%3E%3Cellipse cx='84' cy='11.1' rx='3' ry='4.3' fill='%235fb3e8'/%3E%3Cellipse cx='83' cy='9.9' rx='.9' ry='1.4' fill='%23fff' opacity='.55'/%3E%3C/svg%3E"); animation: fvn-brillo 1.8s ease-in-out .9s 16 alternate; }
@keyframes fvn-brillo { from { opacity: 1; } to { opacity: .45; } }

/* ---------- Santa's hat on the logo (54 × 52 on desktop, 42 × 40 up to 991 px, 36 × 35 up to 767 px: global.css) ---------- */
html.fv-temporada-navidad #header_logo a.logo { position: relative; }
html.fv-temporada-navidad #header_logo a.logo::before {
  content: ""; position: absolute; left: 22px; top: -17px; width: 40px; height: 35px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='38' viewBox='0 0 44 38'%3E%3Cpath d='M6 29 C8 15 17 6 29 5 C37 4 41 9 40 17 L35 17 C34 12 30 11 27 13 C23 16 26 23 31 29 Z' fill='%23d62828'/%3E%3Cpath d='M27 13 C23 16 26 23 31 29 L26 29 C21 23 21 16 27 13 Z' fill='%23a81e1e'/%3E%3Crect x='3' y='27' width='31' height='9' rx='4.5' fill='%23fff' stroke='%23dcdcdc'/%3E%3Ccircle cx='38' cy='19' r='5' fill='%23fff' stroke='%23dcdcdc'/%3E%3C/svg%3E") no-repeat center / contain; transform: rotate(14deg);
}
@media (max-width: 991px) { html.fv-temporada-navidad #header_logo a.logo::before { left: 17px; top: -14px; width: 32px; height: 28px; } }
@media (max-width: 767px) { html.fv-temporada-navidad #header_logo a.logo::before { left: 15px; top: -12px; width: 28px; height: 24px; } }
/* On phones the cart count sits on the top edge of the header (global.css: absolute, -6 px), right under the garland:
   it goes over it, so the number can always be read */
html.fv-temporada-navidad #header .shopping_cart .fv-cesta-n { z-index: 4; }

/* ---------- the trust bar («Free shipping from…») in red, with a snowflake at each end ---------- */
html.fv-temporada-navidad .fv-confianza {
  background: #b3261e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M12 2l-2.5 2.5M12 2l2.5 2.5M12 22l-2.5-2.5M12 22l2.5-2.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M12 2l-2.5 2.5M12 2l2.5 2.5M12 22l-2.5-2.5M12 22l2.5-2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center, right 14px center;
}

/* ---------- snow over the home banner for ~10 s. On the carousel box, not on its track (the track scrolls), and
   36 / 32 px short of its bottom so it stays off the dots (.fv-carrusel-puntos: 28 px + 8 / 4 px margin) ---------- */
html.fv-temporada-navidad #homepage-slider::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 36px; z-index: 2; pointer-events: none;
  border-radius: var(--fv-r-l);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='%23fff'%3E%3Ccircle cx='12' cy='20' r='2.2' opacity='0.9'/%3E%3Ccircle cx='48' cy='64' r='1.6' opacity='0.8'/%3E%3Ccircle cx='90' cy='14' r='2.6' opacity='0.95'/%3E%3Ccircle cx='130' cy='48' r='1.8' opacity='0.85'/%3E%3Ccircle cx='165' cy='90' r='2.4' opacity='0.9'/%3E%3Ccircle cx='30' cy='120' r='2.8' opacity='0.9'/%3E%3Ccircle cx='76' cy='150' r='1.7' opacity='0.8'/%3E%3Ccircle cx='118' cy='110' r='2.2' opacity='0.9'/%3E%3Ccircle cx='150' cy='160' r='1.5' opacity='0.75'/%3E%3Ccircle cx='60' cy='96' r='1.3' opacity='0.7'/%3E%3Ccircle cx='100' cy='176' r='2' opacity='0.85'/%3E%3Ccircle cx='8' cy='170' r='1.6' opacity='0.8'/%3E%3Ccircle cx='140' cy='6' r='1.4' opacity='0.7'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='%23fff'%3E%3Ccircle cx='12' cy='20' r='2.2' opacity='0.9'/%3E%3Ccircle cx='48' cy='64' r='1.6' opacity='0.8'/%3E%3Ccircle cx='90' cy='14' r='2.6' opacity='0.95'/%3E%3Ccircle cx='130' cy='48' r='1.8' opacity='0.85'/%3E%3Ccircle cx='165' cy='90' r='2.4' opacity='0.9'/%3E%3Ccircle cx='30' cy='120' r='2.8' opacity='0.9'/%3E%3Ccircle cx='76' cy='150' r='1.7' opacity='0.8'/%3E%3Ccircle cx='118' cy='110' r='2.2' opacity='0.9'/%3E%3Ccircle cx='150' cy='160' r='1.5' opacity='0.75'/%3E%3Ccircle cx='60' cy='96' r='1.3' opacity='0.7'/%3E%3Ccircle cx='100' cy='176' r='2' opacity='0.85'/%3E%3Ccircle cx='8' cy='170' r='1.6' opacity='0.8'/%3E%3Ccircle cx='140' cy='6' r='1.4' opacity='0.7'/%3E%3C/svg%3E"); background-size: 180px 180px, 120px 120px;
  animation: fvn-nieve 5s linear 2, fvn-fuera 1.2s ease-in 9s forwards;
}
@media (max-width: 767px) { html.fv-temporada-navidad #homepage-slider::after { bottom: 32px; border-radius: 12px; } }
@keyframes fvn-nieve { from { background-position: 0 0, 60px 40px; } to { background-position: 0 180px, 60px 280px; } }
@keyframes fvn-fuera { to { opacity: 0; } }

/* ---------- the page background: cream with faint red snowflakes ---------- */
html.fv-temporada-navidad body { background-color: #fbf6ef; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg transform='translate(40 50) scale(0.9)' opacity='0.07' stroke='%23b3261e' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 -10v20M-8.7 -5l17.4 10M-8.7 5l17.4 -10M0 -10l-2.5 2.5M0 -10l2.5 2.5M0 10l-2.5 -2.5M0 10l2.5 -2.5'/%3E%3C/g%3E%3Cg transform='translate(170 30) scale(0.6)' opacity='0.06' stroke='%23b3261e' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 -10v20M-8.7 -5l17.4 10M-8.7 5l17.4 -10M0 -10l-2.5 2.5M0 -10l2.5 2.5M0 10l-2.5 -2.5M0 10l2.5 -2.5'/%3E%3C/g%3E%3Cg transform='translate(120 140) scale(1.1)' opacity='0.06' stroke='%23b3261e' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 -10v20M-8.7 -5l17.4 10M-8.7 5l17.4 -10M0 -10l-2.5 2.5M0 -10l2.5 2.5M0 10l-2.5 -2.5M0 10l2.5 -2.5'/%3E%3C/g%3E%3Cg transform='translate(30 200) scale(0.7)' opacity='0.05' stroke='%23b3261e' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 -10v20M-8.7 -5l17.4 10M-8.7 5l17.4 -10M0 -10l-2.5 2.5M0 -10l2.5 2.5M0 10l-2.5 -2.5M0 10l2.5 -2.5'/%3E%3C/g%3E%3Cg transform='translate(210 190) scale(0.8)' opacity='0.07' stroke='%23b3261e' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 -10v20M-8.7 -5l17.4 10M-8.7 5l17.4 -10M0 -10l-2.5 2.5M0 -10l2.5 2.5M0 10l-2.5 -2.5M0 10l2.5 -2.5'/%3E%3C/g%3E%3C/svg%3E"); background-size: 240px 240px; }

/* ---------- a light snowfall over the whole page, all the time: two fixed layers (near flakes faster, far ones slower)
   that only move with transform, so the phone does it on the graphics chip. Soft blue-white flakes (a white flake would vanish on
   the cream page and on the white cards). Over the content but under the search layer (44), the phone search
   sheet (45), the elf (88-95), the cart drop-down (100) and the drawers; they never take a click. Not in the cart, the
   checkout steps, the payment modules or the pop-up pages (content_only): nothing distracts while paying. ---------- */
html.fv-temporada-navidad body:not(#order):not(#order-opc):not(#order-confirmation):not(#address):not([id^='module-']):not(.content_only)::before,
html.fv-temporada-navidad body:not(#order):not(#order-opc):not(#order-confirmation):not(#address):not([id^='module-']):not(.content_only)::after {
  content: ""; position: fixed; left: 0; right: 0; z-index: 40; pointer-events: none; will-change: transform;
}
html.fv-temporada-navidad body:not(#order):not(#order-opc):not(#order-confirmation):not(#address):not([id^='module-']):not(.content_only)::before {
  top: -320px; height: calc(100vh + 320px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cdefs%3E%3CradialGradient id='c'%3E%3Cstop offset='0' stop-color='%23f4f8fc'/%3E%3Cstop offset='.45' stop-color='%23dfe8f1'/%3E%3Cstop offset='.75' stop-color='%23c3d2e1' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23c3d2e1' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='24' cy='40' r='4.6' fill='url(%23c)' opacity='0.95'/%3E%3Ccircle cx='118' cy='12' r='3.6' fill='url(%23c)' opacity='0.9'/%3E%3Ccircle cx='210' cy='86' r='4.4' fill='url(%23c)' opacity='0.95'/%3E%3Ccircle cx='292' cy='30' r='3.4' fill='url(%23c)' opacity='0.85'/%3E%3Ccircle cx='70' cy='168' r='3.8' fill='url(%23c)' opacity='0.9'/%3E%3Ccircle cx='176' cy='214' r='4.8' fill='url(%23c)' opacity='0.95'/%3E%3Ccircle cx='268' cy='250' r='3.6' fill='url(%23c)' opacity='0.9'/%3E%3Ccircle cx='36' cy='286' r='3.2' fill='url(%23c)' opacity='0.85'/%3E%3C/svg%3E") repeat 0 0 / 320px 320px;
  animation: fvn-nevada-cerca 16s linear infinite;
}
html.fv-temporada-navidad body:not(#order):not(#order-opc):not(#order-confirmation):not(#address):not([id^='module-']):not(.content_only)::after {
  top: -220px; height: calc(100vh + 220px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cdefs%3E%3CradialGradient id='c'%3E%3Cstop offset='0' stop-color='%23f4f8fc'/%3E%3Cstop offset='.45' stop-color='%23dfe8f1'/%3E%3Cstop offset='.75' stop-color='%23c3d2e1' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23c3d2e1' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='30' cy='26' r='2.6' fill='url(%23c)' opacity='0.8'/%3E%3Ccircle cx='140' cy='70' r='2.2' fill='url(%23c)' opacity='0.75'/%3E%3Ccircle cx='84' cy='150' r='2.8' fill='url(%23c)' opacity='0.8'/%3E%3Ccircle cx='196' cy='186' r='2' fill='url(%23c)' opacity='0.7'/%3E%3C/svg%3E") repeat 90px 0 / 220px 220px;
  animation: fvn-nevada-lejos 20s linear infinite;
}
@keyframes fvn-nevada-cerca { to { transform: translateY(320px); } }
@keyframes fvn-nevada-lejos { to { transform: translateY(220px); } }

/* ---------- reduced motion: the bulbs stay lit and it does not snow ---------- */
@media (prefers-reduced-motion: reduce) {
  html.fv-temporada-navidad #header.fv-cab::before, html.fv-temporada-navidad #header.fv-cab::after { animation: none; }
  html.fv-temporada-navidad #homepage-slider::after { display: none; }
  html.fv-temporada-navidad body::before, html.fv-temporada-navidad body::after { display: none; }
}
