/* Christmas theme (10.11.2026). Loaded only while it is on: output.php xmas(), setting tc_xmas_mode (patch 053).
   Everything here is under html.tc-xmas; markup it relies on: span.tc-hat-box + svg.tc-hat in #logo, span.tc-xmas-hi in
   the top bar, canvas.tc-snow (tc-xmas.js). */

/* ---------- hat: a box the size of the logo image; the hat is placed in % of it, so it scales with the logo ---------- */
.tc-xmas #logo a{position:relative}
/* E2E r1 W1-header-tablet (11.11.2026): the box takes the image's place in #logo a, so it carries the theme's size cap
   '#logo a>img{max-width:100%;max-height:100%}', which no longer matches the image inside it. Before, the box was 100% wide
   and the image grew with the screen (iPad: 385x117 px in the 65 px bar, under the top bar and over the page). Now the box
   is as wide as the image and at most the logo column; in the phone/tablet header the image gets the height the plain logo
   has there: 54 px = the 65 px bar less its 1 px border and the 5 px top/bottom padding of #logo a. */
.tc-xmas .tc-hat-box{position:relative;display:inline-block;vertical-align:middle;width:auto;max-width:100%;line-height:0;align-self:center}
.tc-xmas .tc-hat-box img{display:block;width:auto;height:auto;max-width:100%}
.tc-xmas .mobile-header #logo .tc-hat-box img{max-height:54px}
.tc-xmas .tc-hat{position:absolute;left:16.0%;top:-14.6%;width:15.3%;height:auto;aspect-ratio:100/90;overflow:visible;transform:rotate(22deg);transform-origin:50% 79%;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(0,0,0,.18))}
/* phone/tablet header (phones, and tablets / narrow windows up to 1023 px): it leaves only ~5 px above the logo (the top
   bar would cut the crown) - a little smaller and lower. Was "max-width:760px", which left 761-1023 px with the desktop hat. */
.tc-xmas .mobile-header .tc-hat{left:16.9%;top:-8.1%;width:13.8%}

/* ---------- top bar: festive red with a string of small lights along its top edge ---------- */
.tc-xmas .tc-topbar{position:relative;background:linear-gradient(90deg,#A80F18,#CF1A23 50%,#A80F18);color:#fff;overflow:hidden}
.tc-xmas .tc-topbar b{color:var(--tc-gold)}
.tc-xmas .tc-topbar svg{stroke:#fff}
.tc-xmas .tc-topbar::before,.tc-xmas .tc-topbar::after{content:"";position:absolute;left:0;right:0;top:0;height:9px;pointer-events:none;background-repeat:repeat-x;background-size:96px 9px;background-position:center top}
.tc-xmas .tc-topbar::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 9'%3E%3Cpath d='M0 1.5Q12 5 24 1.5T48 1.5T72 1.5T96 1.5' fill='none' stroke='%23421' stroke-opacity='.55' stroke-width='.8'/%3E%3Cg%3E%3Cellipse cx='12' cy='5.6' rx='1.7' ry='2.4' fill='%23F8C830'/%3E%3Cellipse cx='36' cy='5.6' rx='1.7' ry='2.4' fill='%23FFFFFF'/%3E%3Cellipse cx='60' cy='5.6' rx='1.7' ry='2.4' fill='%2346C47A'/%3E%3Cellipse cx='84' cy='5.6' rx='1.7' ry='2.4' fill='%238AD8FF'/%3E%3C/g%3E%3C/svg%3E")}
/* soft glow on every other bulb, fading in and out */
.tc-xmas .tc-topbar::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 9'%3E%3Ccircle cx='12' cy='5.6' r='3.6' fill='%23FFE27A' fill-opacity='.55'/%3E%3Ccircle cx='60' cy='5.6' r='3.6' fill='%2390F0B5' fill-opacity='.5'/%3E%3C/svg%3E");animation:tc-twinkle 2.6s ease-in-out infinite alternate}
@keyframes tc-twinkle{from{opacity:.15}to{opacity:1}}
.tc-xmas .tc-topbar>span{position:relative;top:2px}
.tc-xmas .tc-topbar>svg{position:relative;top:2px}
.tc-xmas-hi{display:none}
@media (min-width:761px){
	.tc-xmas .tc-xmas-hi{display:inline-flex;align-items:center;gap:7px;margin-left:12px;padding-left:14px;border-left:1px solid rgba(255,255,255,.35);font-weight:700;color:#fff;letter-spacing:.01em}
	.tc-xmas .tc-xmas-hi::before{content:"";width:13px;height:13px;background:var(--tc-gold);-webkit-mask:var(--tc-flake) center/contain no-repeat;mask:var(--tc-flake) center/contain no-repeat}
}
.tc-xmas{--tc-flake:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M12 12L12 2M12 5.5L14.1 3.1M12 5.5L9.9 3.1M12 12L3.3 7M6.4 8.8L5.4 5.7M6.4 8.8L3.2 9.4M12 12L3.3 17M6.4 15.2L3.2 14.6M6.4 15.2L5.4 18.3M12 12L12 22M12 18.5L9.9 20.9M12 18.5L14.1 20.9M12 12L20.7 17M17.6 15.3L18.6 18.3M17.6 15.3L20.8 14.6M12 12L20.7 7M17.6 8.8L20.8 9.4M17.6 8.8L18.6 5.7'/%3E%3C/svg%3E")}

/* ---------- desktop menu bar: a thin snow edge along its top (layers over the bar's own green, tc.css / theme ::before) ---------- */
.tc-xmas .desktop-main-menu-wrapper::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 7'%3E%3Cpath d='M0 0H120V2.4C116 2.4 115 5.2 111 5.2S107 2.6 101 2.6C97 2.6 96 4 92 4S86 2.2 80 2.2 75 6 70 6 66 2.5 61 2.5 57 3.6 53 3.6 49 2 44 2 39 5.4 34 5.4 30 2.6 25 2.6 21 4.2 17 4.2 12 2.2 7 2.2 3 3.4 0 2.4Z' fill='%23fff'/%3E%3C/svg%3E") 0 0/120px 7px repeat-x,rgba(0,83,45,1)}

/* ---------- home headings: a small gold snowflake (the gold of the top bar's flake). Under the guide and FAQ headings it
   hangs at the end of the gold underline, so the text stays in line with the bar; on the green shopping block and the
   brands row (no underline) it sits before the text ---------- */
.tc-xmas .tc-guide>h2::before,.tc-xmas .tc-faq>h2::before{content:"";position:absolute;left:63px;bottom:-4px;width:11px;height:11px;background:var(--tc-gold);-webkit-mask:var(--tc-flake) center/contain no-repeat;mask:var(--tc-flake) center/contain no-repeat}
.tc-xmas .tc-logos-head h2::before,.tc-xmas .tc-shop>h2::before{content:"";display:inline-block;width:.7em;height:.7em;margin-right:.35em;vertical-align:-.02em;background:var(--tc-gold);-webkit-mask:var(--tc-flake) center/contain no-repeat;mask:var(--tc-flake) center/contain no-repeat}

/* ---------- snow (tc-xmas.js): behind the page. z-index -1 paints the canvas just above the page background, so flakes
   show only in the empty background (margins, gaps between blocks, around the header) and pass behind the top bar,
   header, text, cards, buttons, form fields and photos instead of landing on them ---------- */
.tc-snow{position:fixed;left:0;top:0;width:100%;height:100%;z-index:-1;pointer-events:none;contain:strict}
@media (prefers-reduced-motion:reduce){.tc-xmas .tc-topbar::after{animation:none;opacity:.6}.tc-snow{display:none}}
@media print{.tc-snow,.tc-xmas .tc-hat{display:none}}
