/* Tema de sărbători — activată de js/winter.js între 25 noiembrie și 7 ianuarie */
:root { --xmas-red: #ef4444; --xmas-gold: #facc15; }

/* Top bar */
.xmas-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 110; display: flex; align-items: center; justify-content: center; gap: 10px 26px; flex-wrap: wrap; min-height: 40px; padding: 7px 50px; font-size: .86rem; color: #fff; text-align: center; background: linear-gradient(90deg, #7f1d1d, #b91c1c 30%, #065f46 70%, #064e3b); border-bottom: 1px solid rgba(255,255,255,.15); }
.xmas-bar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1.5px); background-size: 22px 22px; opacity: .35; }
.xmas-bar > * { position: relative; }
.xmas-code { font: 700 .8rem var(--mono); padding: 3px 9px; border-radius: 6px; border: 1px dashed rgba(255,255,255,.7); background: rgba(0,0,0,.25); color: #fff; cursor: pointer; }
.xmas-code:hover { background: rgba(0,0,0,.45); }
.xmas-count { font: 500 .8rem var(--mono); background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 999px; cursor: pointer; border: 0; color: #fff; }
.xmas-count b { color: var(--xmas-gold); font-weight: 600; }
.xmas-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.25); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.xmas-close:hover { background: rgba(0,0,0,.5); }
.has-xmas-bar .nav-wrap { top: 52px; }
.has-xmas-bar .hero { padding-top: 180px; }
.has-xmas-bar .page-hero { padding-top: 200px; }

/* Christmas lights on the nav */
.xmas-lights { position: absolute; top: -5px; left: 34px; right: 34px; height: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.xmas-lights::before { content: ""; position: absolute; left: -10px; right: -10px; top: 4px; height: 8px; border-top: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.xmas-lights i { position: relative; width: 6px; height: 9px; margin-top: 5px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: var(--c); box-shadow: 0 0 8px 1px var(--c); animation: bulb 1.6s ease-in-out infinite alternate; }
.xmas-lights i::before { content: ""; position: absolute; top: -3px; left: 1px; width: 4px; height: 3px; border-radius: 1px; background: #334155; }
.xmas-lights i:nth-child(4n+1) { --c: #ef4444; }
.xmas-lights i:nth-child(4n+2) { --c: #facc15; animation-delay: .4s; }
.xmas-lights i:nth-child(4n+3) { --c: #34e8a5; animation-delay: .8s; }
.xmas-lights i:nth-child(4n+4) { --c: #60a5fa; animation-delay: 1.2s; }
@keyframes bulb { from { opacity: 1; } to { opacity: .35; box-shadow: none; } }

/* Santa hat on logo */
.brand { position: relative; }
.xmas-hat { position: absolute; left: -9px; top: -15px; width: 30px; height: auto; transform: rotate(-20deg); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.brand img.xmas-hat { filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); width: 30px; height: auto; }

/* Festive hero */
.xmas .rack { background: radial-gradient(circle, rgba(239, 68, 68, .95) 1.4px, transparent 2.2px) 12px 9px / 46px 22px, radial-gradient(circle, rgba(250, 204, 21, .85) 1.2px, transparent 2px) 30px 9px / 92px 22px, repeating-linear-gradient(180deg, #0b1d16 0 18px, #040c09 18px 22px), repeating-linear-gradient(90deg, transparent 0 230px, #000 230px 244px); }
.xmas-word { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); z-index: -1; margin: 0; white-space: nowrap; font: 900 clamp(3rem, 12vw, 10rem) var(--font-x); font-stretch: 125%; letter-spacing: -0.05em; color: transparent; background: linear-gradient(90deg, rgba(239, 68, 68, .22), rgba(250, 204, 21, .16), rgba(52, 232, 165, .2)); -webkit-background-clip: text; background-clip: text; pointer-events: none; user-select: none; }
.hero-badge.xmas-badge { border-color: rgba(239, 68, 68, .5); color: #fecaca; background: rgba(60, 10, 10, .55); }

/* Offers section */
.xmas-card { position: relative; overflow: hidden; padding: 46px; border-radius: 30px; border: 1px solid rgba(239, 68, 68, .35); background: radial-gradient(circle at 0% 0%, rgba(239, 68, 68, .22), transparent 45%), radial-gradient(circle at 100% 100%, rgba(52, 232, 165, .2), transparent 50%), #07110d; }
.xmas-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1.5px), radial-gradient(circle, rgba(255,255,255,.3) 1px, transparent 1.5px); background-size: 60px 60px, 37px 37px; background-position: 0 0, 18px 22px; opacity: .25; }
.xmas-card > * { position: relative; }
.xmas-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.xmas-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); text-transform: uppercase; font-stretch: 125%; font-weight: 900; margin-bottom: 10px; }
.xmas-head h2 .red { color: var(--xmas-red); }
.xmas-head p { color: #b9cdc5; max-width: 520px; margin: 0; }
.xmas-head .kicker { color: #fca5a5; }
.xmas-head .kicker::before { background: #fca5a5; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 78px; padding: 14px 10px; border-radius: 16px; text-align: center; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.countdown strong { display: block; font: 900 2rem var(--font-x); font-stretch: 112%; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font: 500 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gift { position: relative; padding: 26px; border-radius: 22px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .3s, border-color .3s; }
.gift:hover { transform: translateY(-4px); border-color: rgba(250, 204, 21, .45); }
.gift::after { content: ""; position: absolute; top: 0; bottom: 0; right: 34px; width: 10px; background: linear-gradient(180deg, rgba(239, 68, 68, .55), rgba(239, 68, 68, .15)); }
.gift .g-emoji { font-size: 2rem; }
.gift h3 { font-size: 1.2rem; margin: 0; padding-right: 50px; }
.gift p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; padding-right: 30px; }
.gift .big-off { font: 900 2.4rem var(--font-x); font-stretch: 125%; line-height: 1; color: var(--xmas-gold); }
.gift-code { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.gift-code code { flex: 1; font: 700 .95rem var(--mono); padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(250, 204, 21, .6); color: #fef08a; background: rgba(250, 204, 21, .06); text-align: center; letter-spacing: .06em; }
.gift small { color: var(--muted-2); font: 500 .74rem var(--mono); }
.xmas-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Snow / fireworks canvas + toggle */
.xmas-canvas { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.snow-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 120; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5, 15, 11, .85); color: #fff; font-size: 1.15rem; cursor: pointer; backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.snow-toggle:hover { transform: rotate(30deg); background: rgba(52, 232, 165, .15); }
.snow-toggle[aria-pressed="false"] { opacity: .55; }
.xmas-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 130; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--deep); font-weight: 700; box-shadow: 0 10px 30px -8px rgba(52, 232, 165, .7); animation: xtoast .3s ease; }
@keyframes xtoast { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (max-width: 1020px) {
  .gifts { grid-template-columns: 1fr; }
  .xmas-lights { left: 26px; right: 26px; }
  .xmas-lights i:nth-child(n+17) { display: none; }
}
@media (max-width: 640px) {
  .xmas-bar { font-size: .76rem; padding: 6px 42px 6px 12px; gap: 4px 12px; }
  .has-xmas-bar .nav-wrap { top: 76px; }
  .has-xmas-bar .hero { padding-top: 200px; }
  .has-xmas-bar .page-hero { padding-top: 210px; }
  .xmas-card { padding: 28px 20px; }
  .countdown div { min-width: 0; flex: 1; padding: 12px 6px; }
  .countdown strong { font-size: 1.5rem; }
  .xmas-lights i:nth-child(n+11) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-lights i { animation: none; }
}
