/* SJ Jubiler: motyw świąteczny 2026, wersja jubilerska (04.12). Ładowany tylko przy włączonym motywie (xmas.on w head.ejs).
   Zieleń jodłowa na dużych polach, burgund tylko dla rabatu, złoto jako kreska ozdób. Ozdoby rysowane wektorowo
   w scripts/swieta-ozdoby.js (gałązki, girlanda, światełka, bileciki), Mikołaj i sanie ze scripts/swieta-grafiki.js
   zostają jako mały akcent. Animacje wyłączają się przy prefers-reduced-motion. */
:root {
  --xm-green: #0d3a2d;
  --xm-green-2: #134a3a;
  --xm-green-d: #082820;
  --xm-wine: #7a1128;
  --xm-wine-d: #5b0c1d;
  --xm-gold: #c9a85f;
  --xm-gold-2: #ecd9a4;
  --xm-gold-d: #80611c;
  --xm-paper: #fbf7ee;
  --xm-on: #f6f1e4;
  --xm-on-2: #c3d3c6;
  /* Nazwy ze starej wersji motywu, używane jeszcze w kilku miejscach */
  --xm-red: var(--xm-wine);
  --xm-red-d: var(--xm-wine-d);
  --xm-night: var(--xm-green-d);
}
html { accent-color: var(--xm-green); }
::selection { background: #e9dcb6; color: #10241d; }

/* ---------- Górny pasek: burgund, pod nim sznur ciepłych światełek ---------- */
.topbar.topbar--xm { position: relative; z-index: 61; background: var(--xm-wine); color: #f8ecd4; }
.topbar--xm .wrap { min-height: 40px; }
.topbar--xm a, .topbar--xm .topbar__side a { color: #f8ecd4; }
.topbar--xm p { padding: 0; font-size: 13.5px; font-weight: 500; line-height: 1.3; letter-spacing: .01em; text-transform: none; }
.topbar__xm { display: inline-flex; flex-wrap: wrap; align-items: baseline; align-content: center; justify-content: center; gap: 2px 12px; min-height: 40px; padding: 4px 0; }
.topbar__xm strong { font: italic 500 17px/1.1 var(--display, Georgia, serif); letter-spacing: .005em; color: var(--xm-gold-2); }
.topbar__xm-go { text-decoration: underline; text-decoration-color: rgba(236, 217, 164, .6); text-underline-offset: 4px; transition: text-decoration-color .2s var(--ease); }
.topbar__xm:hover .topbar__xm-go { text-decoration-color: currentColor; }
@media (max-width: 699px) {
  .topbar--xm p { font-size: 12.5px; }
  .topbar__xm { gap: 0 8px; }
  .topbar__xm strong { font-size: 15.5px; }
  .topbar__xm-go { display: none; }
}
.xm-lights { position: absolute; left: 0; right: 0; bottom: -14px; height: 16px; z-index: 2; pointer-events: none; background: url(/img/swieta/swiatelka.svg) repeat-x 50% 0 / 168px 16px; }
.xm-lights i { position: absolute; inset: 0; background: url(/img/swieta/swiatelka-a.svg) repeat-x 50% 0 / 168px 16px; animation: xm-twinkle 3.6s ease-in-out infinite; }
.xm-lights i + i { background-image: url(/img/swieta/swiatelka-b.svg); animation-delay: -1.8s; }
@keyframes xm-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Menu: link do promocji ---------- */
.nav__link--xm { gap: 8px; color: var(--xm-wine) !important; }
.xm-word { font-family: var(--display, Georgia, serif); font-style: italic; font-size: 1.12em; letter-spacing: .01em; text-transform: none; }
.xm-pill { display: inline-flex; align-items: center; padding: 3px 8px 2px; border-radius: 999px; background: var(--xm-wine); color: #fff; font: 700 11px/1.2 var(--sans); letter-spacing: .02em; }
.has-sjx-dark .header:not(.is-scrolled):not(.is-solid) .nav__link--xm { color: var(--xm-gold-2) !important; }
@media (min-width: 1100px) and (max-width: 1279px) { .nav__link--xm .xm-pill { display: none; } }
.sw-link--xm span:first-child { font-family: var(--display, Georgia, serif); font-style: italic; color: var(--xm-wine); }
.sw-link--xm .sw-pill { background: var(--xm-wine); color: #fff; }

/* ---------- Bileciki z rabatem na gałązce ---------- */
.sj-twig, .sj-fleuron { display: block; width: 100%; height: auto; overflow: visible; }
.xdeal { position: relative; width: min(400px, 100%); color: var(--xm-gold); }
.xdeal__twig { position: relative; z-index: 2; display: block; }
.xtags { list-style: none; display: flex; gap: 18px; margin: -9.5% 0 0; padding: 0 0 0 44px; }
.xtag { --rest: -3deg; --tw: 112px; --drop: 22px; position: relative; flex: none; display: grid; align-content: start; justify-items: center; width: var(--tw); height: calc(var(--tw) * 1.2667); margin-top: var(--drop); padding-top: calc(var(--tw) * .355); background: url(/img/swieta/bilecik.svg) center / 100% 100% no-repeat; color: var(--xm-wine); text-align: center; rotate: var(--rest); transform-origin: 50% calc(-1 * var(--drop)); filter: drop-shadow(0 12px 14px rgba(2, 18, 13, .42)); }
.xtag::before { content: ''; position: absolute; left: 50%; bottom: 86%; width: 1.2px; height: calc(var(--drop) + 14%); margin-left: -.6px; background: linear-gradient(var(--xm-gold), #e7cf93); }
.xtag:nth-child(2) { --rest: 2.5deg; --drop: 40px; }
.xtag:nth-child(3) { --rest: -1.5deg; --drop: 28px; }
.xtag.is-gold { background-image: url(/img/swieta/bilecik-zloty.svg); color: #4a360a; }
.xtag__cap { font: italic 500 calc(var(--tw) * .138)/1 var(--display, Georgia, serif); color: #3d3528; }
.xtag b { margin-top: 5px; font: 500 calc(var(--tw) * .275)/1 var(--display, Georgia, serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; white-space: nowrap; }
.xtag small { margin-top: 6px; font: 500 max(9.5px, calc(var(--tw) * .103))/1.2 var(--sans); letter-spacing: .01em; color: #5a5245; white-space: nowrap; }
.xtag.is-gold small, .xtag.is-gold .xtag__cap { color: #4a3b17; }
.xtag:nth-child(4) { --rest: 3deg; --drop: 34px; }
@media (max-width: 379px) { .xtags { gap: 14px; padding-left: 30px; } .xtag { --tw: 102px; } }
/* Trzy i więcej bilecików (promocja z progami): szersza gałązka, węższe bileciki, na telefonie mieszczą się w jednym rzędzie */
.xdeal--many { width: min(520px, 100%); }
.xdeal--many .xtags { gap: 12px; padding-left: 24px; }
.xdeal--many .xtag { --tw: clamp(68px, calc((min(100vw, 560px) - 2 * var(--gut) - 24px) / var(--n) - 12px), 104px); }
@media (prefers-reduced-motion: no-preference) {
  .xtag { animation: xtag-in 1.9s cubic-bezier(.33, 0, .3, 1) .3s both, xtag-sway 6.5s ease-in-out 2.2s infinite; }
  .xtag:nth-child(2) { animation-delay: .46s, 2.36s; animation-duration: 2s, 7.4s; }
  .xtag:nth-child(3) { animation-delay: .6s, 2.5s; animation-duration: 2s, 6.9s; }
}
/* Bileciki są widoczne od razu, animuje się tylko wychylenie (jak po trąceniu gałązki) */
@keyframes xtag-in {
  0% { rotate: calc(var(--rest) - 13deg); }
  36% { rotate: calc(var(--rest) + 8deg); }
  58% { rotate: calc(var(--rest) - 4.5deg); }
  78% { rotate: calc(var(--rest) + 2.2deg); }
  100% { rotate: var(--rest); }
}
@keyframes xtag-sway { 0%, 100% { rotate: var(--rest); } 50% { rotate: calc(var(--rest) + 1.8deg); } }

/* ---------- Strona główna: góra. Zdjęcie z modelką przechodzi w zieleń, po lewej tytuł i bileciki ---------- */
.xh { position: relative; isolation: isolate; overflow: hidden; display: grid; background: var(--xm-green); color: var(--xm-on); }
.has-sjx-dark .xh { margin-top: calc(-1 * var(--header-h) - 1px); }
.xh__slides { position: relative; height: 78vw; max-height: 56svh; }
.xh__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.xh__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; z-index: 1; }
.xh__img { position: absolute; inset: 0; display: block; overflow: hidden; }
.xh__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
@media (max-width: 699px) { .xh__img[style*="--xh-zoom-m"] img { object-position: 50% 0; transform: scale(var(--xh-zoom-m)); transform-origin: 50% 0; } }
.xh__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(3, 18, 14, .58) 0, rgba(3, 18, 14, 0) 26%), linear-gradient(0deg, var(--xm-green) 0, rgba(13, 58, 45, .82) 14%, rgba(13, 58, 45, 0) 44%); }
.xh__bough { position: absolute; z-index: 0; left: -90px; bottom: -70px; width: 520px; aspect-ratio: 900 / 640; background: url(/img/swieta/konar.svg) center / contain no-repeat; opacity: .5; pointer-events: none; }
.xh__in { position: relative; z-index: 3; margin-top: -56px; padding-bottom: 30px; }
.xh__title { margin: 0; max-width: 9.5ch; font: 400 clamp(44px, 12.4vw, 60px)/.98 var(--display, Georgia, serif); font-optical-sizing: auto; letter-spacing: -.02em; color: #fffaf0; text-wrap: balance; }
.xh__lead { max-width: 33em; margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--xm-on-2); text-wrap: pretty; }
.xh__lead strong { font-weight: 600; color: var(--xm-on); }
.xh .xdeal { margin-top: 16px; }
.xh__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 26px 0 0; }
.xh .xh__btn { min-width: 190px; background: #fffaf0; border-color: #fffaf0; color: #10241d; }
.xh .xh__btn:hover { background: var(--xm-gold-2); border-color: var(--xm-gold-2); color: #10241d; }
.xh__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--xm-on); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(236, 217, 164, .55); text-underline-offset: 6px; transition: text-decoration-color .2s var(--ease); }
.xh__more:hover { text-decoration-color: var(--xm-gold-2); }
.xh__foot { position: relative; z-index: 3; display: grid; gap: 14px; padding-bottom: 26px; }
.xh__count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin: 0; font-size: 14px; color: var(--xm-on-2); font-variant-numeric: tabular-nums lining-nums; }
.xh__count b { font-weight: 600; color: var(--xm-on); }
.xh__pick { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid rgba(236, 217, 164, .22); }
.xh__caps { list-style: none; display: grid; margin: 0; padding: 0; min-width: 0; }
.xh__cap { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.xh__cap a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; align-content: center; color: var(--xm-on); text-decoration: none; font-size: 14.5px; }
.xh__cap-name { text-decoration: underline; text-decoration-color: rgba(236, 217, 164, .5); text-underline-offset: 5px; }
.xh__cap a:hover .xh__cap-name { text-decoration-color: var(--xm-gold-2); }
.xh__cap-price { color: var(--xm-on-2); font-variant-numeric: tabular-nums lining-nums; }
.xh:has(.xh__slide:nth-child(1).is-active) .xh__cap:nth-child(1),
.xh:has(.xh__slide:nth-child(2).is-active) .xh__cap:nth-child(2),
.xh:has(.xh__slide:nth-child(3).is-active) .xh__cap:nth-child(3),
.xh:has(.xh__slide:nth-child(4).is-active) .xh__cap:nth-child(4),
.xh:has(.xh__slide:nth-child(5).is-active) .xh__cap:nth-child(5) { opacity: 1; visibility: visible; transition: opacity .5s var(--ease) .2s, visibility 0s; }
.xh__nav { display: flex; align-items: center; gap: 2px; flex: none; }
.xh__arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--xm-on); transition: background-color .2s var(--ease), scale .16s var(--ease-out, ease-out); }
.xh__arrow .ic { width: 22px; height: 22px; stroke-width: 1.3; }
.xh__arrow:active { scale: .9; }
.xh__arrow:focus-visible, .xh__more:focus-visible, .xh__cap a:focus-visible, .xh .xh__btn:focus-visible { outline: 2px solid var(--xm-gold-2); outline-offset: 3px; }
.xh__dots { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.xh__dots button { position: relative; width: 22px; height: 44px; padding: 0; border: 0; background: none; }
.xh__dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(246, 241, 228, .34); transition: background-color .3s var(--ease); }
.xh__dots button[aria-current="true"]::before { background: var(--xm-gold-2); }
@media (hover: hover) and (pointer: fine) { .xh__arrow:hover { background: rgba(246, 241, 228, .12); } }
/* Telefon: przycisk „Wybierz prezent” stoi zaraz pod opisem, żeby był widoczny na pierwszym ekranie bez przewijania
   (wcześniej wypadał pod bilecikami, tuż za dolną krawędzią iPhone'a). Gałązka z bilecikami wisi pod przyciskiem.
   Zdjęcie jest trochę niższe na niskich ekranach (44svh). */
@media (max-width: 699px) {
  .xh__slides { max-height: 44svh; }
  .xh__text { display: flex; flex-direction: column; align-items: flex-start; }
  .xh__cta { order: 1; margin-top: 20px; }
  .xh .xdeal { order: 2; margin-top: 24px; }
}
@media (min-width: 700px) and (max-width: 999px) {
  .xh__slides { height: 58vw; }
  .xh__img img { object-position: 78% 30%; }
  .xh__in { margin-top: -84px; }
  .xh__title { font-size: clamp(56px, 9vw, 76px); }
}
@media (min-width: 1000px) {
  .xh { min-height: clamp(600px, calc(100svh - 40px), 880px); grid-template-rows: 1fr auto; }
  .xh__slides { position: absolute; inset: 0; height: auto; max-height: none; }
  .xh__img img { object-position: 100% 32%; }
  .xh__shade { background: linear-gradient(180deg, rgba(3, 18, 14, .5) 0, rgba(3, 18, 14, 0) 22%), linear-gradient(0deg, rgba(5, 26, 20, .78) 0, rgba(5, 26, 20, 0) 24%), linear-gradient(90deg, var(--xm-green) 0, var(--xm-green) 27%, rgba(13, 58, 45, .93) 37%, rgba(13, 58, 45, .5) 52%, rgba(13, 58, 45, 0) 68%); }
  .xh__bough { z-index: 2; left: -70px; bottom: -60px; width: min(46vw, 700px); opacity: .62; }
  .xh__in { display: grid; align-content: center; margin-top: 0; padding-top: calc(var(--header-h) + 34px); padding-bottom: 26px; pointer-events: none; }
  .xh__text { max-width: min(580px, 46vw); pointer-events: auto; }
  .xh__title { font-size: clamp(64px, 6.3vw, 96px); }
  .xh__lead { margin-top: 20px; font-size: 17px; }
  .xh .xdeal { margin-top: 22px; }
  .xh__cta { margin-top: 34px; }
  .xh__foot { grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding-bottom: 22px; }
  .xh__pick { justify-content: flex-end; gap: 20px; padding-top: 0; border-top: 0; }
  .xh__caps { justify-items: end; }
}
/* Węższy ekran komputera (1000 do 1279 px): kolczyk wypada bliżej środka, więc zieleń kończy się wcześniej i nie zabarwia biżuterii */
@media (min-width: 1000px) and (max-width: 1279px) {
  .xh__shade { background: linear-gradient(180deg, rgba(3, 18, 14, .5) 0, rgba(3, 18, 14, 0) 22%), linear-gradient(0deg, rgba(5, 26, 20, .78) 0, rgba(5, 26, 20, 0) 24%), linear-gradient(90deg, var(--xm-green) 0, var(--xm-green) 22%, rgba(13, 58, 45, .93) 31%, rgba(13, 58, 45, .5) 42%, rgba(13, 58, 45, 0) 53%); }
  .xh__text { max-width: min(580px, 42vw); }
}
@media (prefers-reduced-motion: reduce) { .xh__slide, .xh__cap { transition: none; } }

/* Wejście góry strony: raz po załadowaniu. Zdjęcie jest widoczne od razu, tytuł wysuwa się zza krawędzi,
   gałązka rośnie od pnia, bileciki opadają i dopiero wtedy się kołyszą. Aktywne zdjęcie bardzo wolno się przybliża. */
.xh__img img { transition: scale 0s linear .95s; }
@media (prefers-reduced-motion: no-preference) {
  .xh__title { animation: xh-rise 1.1s var(--ease) .1s both; }
  .xh__lead { animation: xh-up .9s var(--ease) .3s both; }
  .xh .xdeal__twig { animation: xh-grow .9s cubic-bezier(.6, 0, .2, 1) .4s both; }
  .xh .xtags { animation: xh-drop .7s var(--ease) .68s both; }
  .xh .xtag { animation-delay: .68s, 2.6s; }
  .xh .xtag:nth-child(2) { animation-delay: .8s, 2.72s; }
  .xh .xtag:nth-child(3) { animation-delay: .92s, 2.84s; }
  .xh__cta { animation: xh-up .9s var(--ease) .84s both; }
  .xh__foot { animation: xh-up 1s var(--ease) 1s both; }
  .xh__slide.is-active .xh__img img { scale: 1.06; animation: xh-drift 7.5s linear both; }
  /* Na telefonie przycisk stoi nad bilecikami, więc wchodzi przed nimi */
  @media (max-width: 699px) {
    .xh__cta { animation-delay: .46s; }
    .xh .xdeal__twig { animation-delay: .6s; }
    .xh .xtags { animation-delay: .88s; }
    .xh .xtag { animation-delay: .88s, 2.8s; }
    .xh .xtag:nth-child(2) { animation-delay: 1s, 2.92s; }
    .xh .xtag:nth-child(3) { animation-delay: 1.12s, 3.04s; }
  }
}
@keyframes xh-rise { from { clip-path: inset(-10% -10% 100% -10%); translate: 0 .34em; } to { clip-path: inset(-10% -10% -16% -10%); translate: 0 0; } }
@keyframes xh-up { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes xh-grow { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% 0 -30% 0); } }
@keyframes xh-drop { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }
@keyframes xh-drift { from { scale: 1; } }

/* ---------- Strona główna: pasek pod górą strony (dostawa, płatność, zwrot, salony) ---------- */
.xtrust { background: #fff; border-bottom: 1px solid var(--line); }
.xtrust__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin: 0 auto; padding-top: 20px; padding-bottom: 20px; }
.xtrust__list li { display: flex; align-items: flex-start; gap: 11px; min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.xtrust__list .ic { flex: none; width: 24px; height: 24px; margin-top: 1px; stroke-width: 1.3; color: var(--xm-green); }
.xtrust__list b { display: block; margin-bottom: 1px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.xtrust__list a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s var(--ease); }
.xtrust__list a:hover { text-decoration-color: var(--ink); }
.xtrust__sub { display: block; }
/* Wąski telefon: cztery hasła w dwóch równych rzędach, dopiski zostają tylko dla czytnika ekranu */
@media (max-width: 559px) {
  .xtrust__list { gap: 14px 12px; padding-top: 16px; padding-bottom: 16px; }
  .xtrust__list li { align-items: center; gap: 9px; }
  .xtrust__list .ic { width: 22px; height: 22px; margin-top: 0; }
  .xtrust__list b { margin: 0; font-size: 13.5px; line-height: 1.25; }
  .xtrust__sub { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1100px) {
  .xtrust__list { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 28px; padding-top: 24px; padding-bottom: 24px; }
  .xtrust__list li { align-items: center; gap: 14px; }
  .xtrust__list .ic { width: 28px; height: 28px; margin-top: 0; }
}

/* ---------- Strona główna: prezenty pod choinkę. Wybór dla kogo i za ile podmienia rząd produktów ---------- */
.xgift { background: var(--xm-paper); }
.shelf.xgift { padding-top: clamp(52px, 6vw, 88px); padding-bottom: clamp(52px, 6vw, 84px); }
.xgift .xgift__head { margin-bottom: 0; }
.xgift__lead { max-width: 34em; margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.xgift__form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px clamp(14px, 2.4vw, 28px); margin: clamp(20px, 2.4vw, 28px) 0 clamp(24px, 3vw, 38px); }
.xgift__set { min-width: 0; margin: 0; padding: 0; border: 0; }
.xgift__set legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Przełącznik: biała kapsuła, zielona wkładka przesuwa się pod wybraną opcję (pozycję liczy :has, bez skryptu) */
.xgift__opts { --i: 0; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.xgift__opts::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2)); border-radius: 999px; background: var(--xm-green); transform: translateX(calc(var(--i) * 100%)); transition: transform .34s var(--ease); }
.xgift__opts:has(.xgift__opt:nth-child(2) input:checked) { --i: 1; }
.xgift__opts:has(.xgift__opt:nth-child(3) input:checked) { --i: 2; }
.xgift__opts:has(.xgift__opt:nth-child(4) input:checked) { --i: 3; }
.xgift__opts:has(.xgift__opt:nth-child(1):last-child) { --n: 1; }
.xgift__opts:has(.xgift__opt:nth-child(2):last-child) { --n: 2; }
.xgift__opts:has(.xgift__opt:nth-child(3):last-child) { --n: 3; }
.xgift__opts:has(.xgift__opt:nth-child(4):last-child) { --n: 4; }
.xgift__opt { position: relative; display: grid; }
.xgift__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.xgift__opt span { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 clamp(10px, 2.2vw, 22px); border-radius: 999px; font-size: 14.5px; font-weight: 500; line-height: 1.2; color: var(--ink); white-space: nowrap; transition: color .2s var(--ease), scale .16s var(--ease); }
.xgift__opt input:checked + span { color: #fff; }
.xgift__opt input:active + span { scale: .96; }
.xgift__opt input:focus-visible + span { outline: 2px solid var(--xm-green); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .xgift__opt input:not(:checked):hover + span { color: var(--xm-green); } }
@supports not selector(:has(a)) {
  .xgift__opts::before { display: none; }
  .xgift__opt input:checked + span { background: var(--xm-green); }
}
@media (max-width: 379px) { .xgift__opt span { padding: 0 8px; font-size: 13px; } }
.xgift__go { background: var(--xm-green); border-color: var(--xm-green); }
.xgift__go:hover { background: var(--xm-green-2); border-color: var(--xm-green-2); }
html.js .xgift__go { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .xgift__panel.is-in { animation: xgift-in .42s var(--ease) both; }
}
@keyframes xgift-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Półka z prezentami: ozdobnik pod nagłówkiem ---------- */
.shelf--xm .shelf__title::after { content: ''; display: block; width: 150px; height: 26px; margin: 12px auto 0; background: url(/img/swieta/ozdobnik.svg) center / contain no-repeat; }

/* ---------- Strona główna: kategorie. Trzy zdjęcia z modelkami na całą szerokość, dół zdjęcia przechodzi w zieleń ---------- */
.xcat { padding: clamp(52px, 6vw, 92px) 0 clamp(44px, 5vw, 76px); background: #fff; }
.xcat .xcat__title { margin: 0 0 clamp(24px, 3vw, 40px); text-align: center; }
.xcat__top { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; }
.xcat__top li { min-width: 0; }
.xcat__top li:first-child { grid-column: 1 / -1; }
.xcat__big { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--xm-green-d); color: var(--xm-on); text-decoration: none; }
.xcat__top li:first-child .xcat__big { aspect-ratio: 5 / 4; }
.xcat__photo { position: absolute; inset: 0; display: block; }
.xcat__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.5s var(--ease); }
.xcat__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 40, 32, .9) 0, rgba(8, 40, 32, .58) 20%, rgba(8, 40, 32, 0) 50%); }
.xcat__label { position: absolute; left: clamp(14px, 2.4vw, 36px); right: 14px; bottom: clamp(14px, 2.2vw, 30px); display: grid; gap: 5px; }
.xcat__name { display: inline-flex; align-items: center; gap: .32em; font: 400 clamp(25px, 3.1vw, 44px)/1.05 var(--display, Georgia, serif); font-optical-sizing: auto; letter-spacing: -.015em; color: #fffaf0; }
.xcat__name .ic { flex: none; width: .62em; height: .62em; stroke-width: 1.2; color: var(--xm-gold-2); transition: translate .4s var(--ease); }
.xcat__count { font-size: 13.5px; line-height: 1.3; color: var(--xm-on-2); font-variant-numeric: lining-nums; }
.xcat__big:focus-visible { outline: 3px solid var(--xm-gold-2); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .xcat__big:hover .xcat__photo img { scale: 1.04; }
  .xcat__big:hover .xcat__name .ic { translate: 6px 0; }
}
@media (min-width: 700px) {
  .xcat__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xcat__top li:first-child { grid-column: auto; }
  .xcat__big, .xcat__top li:first-child .xcat__big { aspect-ratio: auto; height: clamp(380px, 46vw, 680px); }
}
/* Pozostałe kategorie: miniatura i nazwa, na telefonie rząd przewijany w bok */
.xcat__row { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 38vw); gap: 12px; margin: clamp(20px, 3vw, 40px) calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 2px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.xcat__row::-webkit-scrollbar { display: none; }
.xcat__row li { min-width: 0; scroll-snap-align: start; }
.xcat__mini { display: grid; gap: 11px; color: var(--ink); text-decoration: none; }
.xcat__thumb { display: block; overflow: hidden; aspect-ratio: 1; background: #ebeae7; }
.xcat__thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.xcat__mini.is-packshot .xcat__thumb img { object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.xcat__mini-text { display: grid; gap: 3px; min-width: 0; }
.xcat__mini-name { justify-self: start; font: 400 19px/1.2 var(--display, Georgia, serif); font-optical-sizing: auto; letter-spacing: -.005em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.xcat__mini .xcat__count { color: var(--muted); }
.xcat__mini:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .xcat__mini:hover .xcat__thumb img { scale: 1.05; }
  .xcat__mini:hover .xcat__mini-name { background-size: 100% 1px; }
}
@media (min-width: 700px) {
  .xcat__row { grid-auto-flow: row; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px; margin-left: 0; margin-right: 0; padding: 0; overflow: visible; }
}
@media (min-width: 1000px) {
  .xcat__row { gap: clamp(16px, 2vw, 28px); }
  .xcat__mini { grid-template-columns: clamp(72px, 6.6vw, 96px) minmax(0, 1fr); align-items: center; gap: 16px; }
  .xcat__thumb { aspect-ratio: 4 / 5; }
  .xcat__mini-name { font-size: clamp(19px, 1.6vw, 23px); }
}
/* Zdjęcia odsłaniają się od dołu jedno po drugim, obraz lekko się oddala, potem pojawia się nazwa */
@media (prefers-reduced-motion: no-preference) {
  html.js .xcat__photo[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1) var(--d, 0s); }
  html.js .xcat__photo[data-reveal].is-in { clip-path: inset(0 0 0 0); }
  html.js .xcat__photo[data-reveal] img { scale: 1.12; transition: scale 1.6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
  html.js .xcat__photo[data-reveal].is-in img { scale: 1; }
  html.js .xcat__photo[data-reveal] + .xcat__label { opacity: 0; translate: 0 12px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--d, 0s) + .5s); }
  html.js .xcat__photo[data-reveal].is-in + .xcat__label { opacity: 1; translate: 0 0; }
  .xcat__top li:nth-child(2) { --d: .12s; }
  .xcat__top li:nth-child(3) { --d: .24s; }
  @media (hover: hover) and (pointer: fine) {
    html.js .xcat__big:hover .xcat__photo[data-reveal].is-in img { scale: 1.04; transition: scale 1.5s var(--ease); }
  }
}

/* ---------- Pas ze złotem: zdjęcie na modelce od krawędzi ekranu przechodzi w zieleń, nad tekstem przelatują sanie ---------- */
.xband { position: relative; isolation: isolate; display: grid; background: var(--xm-green); color: var(--xm-on); }
.xband__media { position: relative; display: block; overflow: hidden; aspect-ratio: 5 / 4; background: var(--xm-green-d); }
/* Zdjęcie o 1 px wyższe od ramki: przy ułamkowej wysokości pasa pod zdjęciem nie zostaje ciemna kreska tła */
.xband__media img { position: absolute; inset: 0 0 auto 0; width: 100%; height: calc(100% + 1px); object-fit: cover; object-position: 50% 46%; transition: scale 1.5s var(--ease); }
.xband__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--xm-green) 0, rgba(13, 58, 45, .55) 14%, rgba(13, 58, 45, 0) 38%); }
.xband--still .xband__media img { object-position: 50% 62%; }
.xband__body { position: relative; overflow: hidden; display: grid; align-content: center; padding: 76px var(--gut) clamp(44px, 7vw, 72px); }
.xband__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.xband__bough { position: absolute; right: -130px; top: -160px; width: min(92vw, 600px); aspect-ratio: 900 / 640; background: url(/img/swieta/konar.svg) center / contain no-repeat; opacity: .38; transform: scale(-1, -1); }
.xband__text { position: relative; z-index: 1; max-width: 540px; }
.xband .xband__title { margin: 0; max-width: 11ch; text-align: left; font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -.018em; color: #fffaf0; text-wrap: balance; }
.xband__lead { max-width: 33em; margin: 18px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--xm-on-2); text-wrap: pretty; }
.xband__cta { margin: 28px 0 0; }
.xband .xband__btn { min-width: 190px; background: #fffaf0; border-color: #fffaf0; color: #10241d; }
.xband .xband__btn:hover { background: var(--xm-gold-2); border-color: var(--xm-gold-2); color: #10241d; }
.xband .xband__btn:focus-visible, .xband__cap a:focus-visible { outline: 2px solid var(--xm-gold-2); outline-offset: 3px; }
.xband__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 14px 0 0; font-size: 14px; color: var(--xm-on-2); }
.xband__cap a { display: inline-flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 2px 9px; min-height: 44px; color: var(--xm-on); text-decoration: none; }
.xband__cap-name { text-decoration: underline; text-decoration-color: rgba(236, 217, 164, .5); text-underline-offset: 5px; transition: text-decoration-color .2s var(--ease); }
.xband__cap a:hover .xband__cap-name { text-decoration-color: var(--xm-gold-2); }
.xband__cap-price { color: var(--xm-on-2); font-variant-numeric: tabular-nums lining-nums; }
@media (hover: hover) and (pointer: fine) { .xband__media:hover img { scale: 1.03; } }
@media (min-width: 700px) {
  .xband { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(440px, 47vw, 700px); }
  .xband__media { aspect-ratio: auto; }
  .xband__media::after { background: linear-gradient(90deg, rgba(13, 58, 45, 0) 56%, rgba(13, 58, 45, .6) 84%, var(--xm-green) 100%); }
  .xband__body { padding: clamp(64px, 7vw, 96px) clamp(26px, 5.4vw, 96px) clamp(40px, 5vw, 80px) clamp(20px, 4vw, 72px); }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .xband__media[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
  html.js .xband__media[data-reveal].is-in { clip-path: inset(0 0 0 0); }
  html.js .xband__media[data-reveal] img { scale: 1.1; transition: scale 1.8s cubic-bezier(.2, .7, .2, 1); }
  html.js .xband__media[data-reveal].is-in img { scale: 1; }
  @media (hover: hover) and (pointer: fine) { html.js .xband__media[data-reveal].is-in:hover img { scale: 1.03; transition: scale 1.5s var(--ease); } }
}

/* ---------- Sanie Mikołaja (mały akcent) ---------- */
.sj-moon, .sj-sleigh, .sj-roofs, .sj-santa { display: block; width: 100%; height: auto; overflow: visible; }
.sj-sleigh__line path { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.sj-sleigh__fill { stroke: none; }
.sj-sleigh__nose { fill: #ff3b30; stroke: none; filter: drop-shadow(0 0 3px #ff3b30); animation: xm-nose 1.3s ease-in-out infinite alternate; }
@keyframes xm-nose { from { opacity: .65; } to { opacity: 1; } }
.sj-sleigh__glow { animation: xm-nose 1.3s ease-in-out infinite alternate; }
/* Nogi reniferów: noga obraca się w barku albo biodrze, dolna część w stawie. Środek obrotu ustawia niewidoczne kółko w rysunku
   (scripts/swieta-grafiki.js), dlatego wystarcza 50% 50%. Rysunek to skok (przednie nogi podkurczone, tylne w tył, 50% cyklu), stąd nogi
   idą do drugiej skrajnej pozy: przednie sięgają w przód, tylne chowają się pod brzuch. Cały zaprzęg biegnie prawie równo (fala .03 s na renifera),
   bo wtedy tylne kopyta nie wchodzą w przednie nogi następnego, a żaden renifer nie zostaje w pół kroku na prostych nogach. Pęcina i nogi z drugiego boku spóźniają się o ułamek kroku.
   Pęcina ma własne tempo: zgina się od razu i prostuje dopiero na końcu, więc w pół kroku noga jest ugięta, a nie wyprostowana jak u stojącego zwierzęcia. */
.sj-sleigh__front, .sj-sleigh__hind, .sj-sleigh__shin { transform-box: fill-box; transform-origin: 50% 50%; }
.sj-sleigh__front, .sj-sleigh__hind, .sj-sleigh__shin { animation: xm-leg-f .88s cubic-bezier(.6, 0, .4, 1) infinite; animation-delay: calc(var(--i, 0) * -.03s); }
.sj-sleigh__shin { animation-delay: calc(var(--i, 0) * -.03s - .84s); }
.sj-sleigh__far { animation-delay: calc(var(--i, 0) * -.03s - .81s); }
.sj-sleigh__far > .sj-sleigh__shin { animation-delay: calc(var(--i, 0) * -.03s - .77s); }
.sj-sleigh__front > .sj-sleigh__shin { animation-name: xm-shin-f; }
.sj-sleigh__hind { animation-name: xm-leg-h; }
.sj-sleigh__hind > .sj-sleigh__shin { animation-name: xm-shin-h; }
@keyframes xm-leg-f { 0%, 100% { transform: rotate(37deg); } 50% { transform: rotate(0deg); } }
@keyframes xm-shin-f { 0%, 100% { transform: rotate(55deg); animation-timing-function: cubic-bezier(.15, .7, .35, 1); } 50% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.65, 0, .85, .3); } }
@keyframes xm-leg-h { 0%, 100% { transform: rotate(42deg); } 50% { transform: rotate(0deg); } }
@keyframes xm-shin-h { 0%, 100% { transform: rotate(28deg); animation-timing-function: cubic-bezier(.65, 0, .85, .3); } 50% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.15, .7, .35, 1); } }
.sj-sleigh__deer-in { animation: xm-deer .88s cubic-bezier(.6, 0, .4, 1) infinite; animation-delay: calc(var(--i, 0) * -.03s); }
@keyframes xm-deer { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.xm-fly { position: absolute; left: 0; top: var(--fly-top, 12%); width: var(--fly-w, 170px); color: var(--xm-gold-2); filter: drop-shadow(0 0 6px rgba(236, 217, 164, .35)); transform: translateX(110vw); animation: xm-fly var(--fly-time, 26s) linear 1.2s infinite; will-change: transform; z-index: 1; }
.xm-fly__wave { display: block; animation: xm-bob 2.6s ease-in-out infinite; }
@keyframes xm-fly {
  0% { transform: translate(calc(var(--fly-from, 100vw) + 20px), 18px); }
  58% { transform: translate(calc(-1 * var(--fly-w, 170px) - 40px), -22px); }
  100% { transform: translate(calc(-1 * var(--fly-w, 170px) - 40px), -22px); }
}
@keyframes xm-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-2deg); } }
.xm-dust { position: absolute; width: var(--ds, 4px); height: var(--ds, 4px); margin: -2px 0 0 -2px; border-radius: 50%; background: radial-gradient(circle, #fff8dc 0 30%, rgba(236, 217, 164, .9) 45%, rgba(236, 217, 164, 0) 72%); pointer-events: none; animation: xm-dust 1.5s ease-out forwards; z-index: 1; }
@keyframes xm-dust { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx, 14px), 26px) scale(.3); } }
.xband .xm-fly { --fly-top: 16px; --fly-w: clamp(118px, 13vw, 190px); }
@media (min-width: 700px) { .xband .xm-fly { --fly-top: 9%; --fly-from: 50vw; } }

/* ---------- Śnieg (canvas z swieta.js) ---------- */
.xm-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }
.xm-snow-toggle { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Mikołaj w rogu (mały akcent) ---------- */
.xm-santa { position: fixed; left: 10px; bottom: 0; z-index: 84; width: 148px; height: 148px; pointer-events: none; }
.xm-santa[hidden] { display: none; }
.xm-santa__fig { position: absolute; left: 0; bottom: 0; width: 148px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform: translateY(105%); transform-origin: 0 100%; transition: transform .8s cubic-bezier(.3, 1.08, .55, 1); -webkit-tap-highlight-color: transparent; }
.xm-santa__fig:focus-visible { outline: 2px solid var(--xm-wine); outline-offset: 2px; border-radius: 8px; }
.xm-santa.is-up .xm-santa__fig { transform: translateY(16%); }
/* Schowany: mała głowa w czapce w samym rogu, żeby nie zasłaniał produktów */
.xm-santa.is-peek .xm-santa__fig { transform: translateY(24%) scale(.6); }
.xm-santa .sj-santa { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .22)); }
.xm-santa__bubble { position: absolute; left: 128px; bottom: 112px; width: 264px; padding: 16px 18px 15px; border-radius: 16px 16px 16px 4px; background: var(--xm-paper); color: #1c2520; box-shadow: 0 20px 44px -20px rgba(8, 40, 32, .5), 0 0 0 1px rgba(128, 97, 28, .18); pointer-events: auto; opacity: 0; transform: translateY(8px) scale(.95); transform-origin: 0 100%; transition: opacity .25s var(--ease), transform .35s var(--ease); visibility: hidden; }
.xm-santa.is-talk .xm-santa__bubble { opacity: 1; transform: none; visibility: visible; }
.xm-santa__hoho { margin: 0 26px 4px 0; font: italic 500 21px/1.1 var(--display, Georgia, serif); color: var(--xm-wine); }
.xm-santa__msg { margin: 0; font-size: 14px; line-height: 1.5; }
.xm-santa__go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 10px; padding: 0 16px; border-radius: 999px; background: var(--xm-green); color: #fff; font: 600 13.5px/1.2 var(--sans); text-decoration: none; }
.xm-santa__go:hover { background: var(--xm-green-2); }
.xm-santa__close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #5c5a52; cursor: pointer; }
.xm-santa__close:hover { background: rgba(128, 97, 28, .12); color: #111; }
.sj-santa__wave { transform-box: view-box; transform-origin: 318px 360px; }
.xm-santa.is-up .sj-santa__wave { animation: xm-wave 1.1s ease-in-out .5s 2; }
@keyframes xm-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-11deg); } 75% { transform: rotate(7deg); } }
.sj-santa__eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: xm-blink 4.6s infinite; }
@keyframes xm-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.12); } }
.sj-santa__head { transform-box: view-box; transform-origin: 210px 300px; }
.xm-santa.is-laugh .sj-santa__head { animation: xm-laugh .32s ease-in-out 4; }
@keyframes xm-laugh { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-4px); } }
.sj-santa__pom { transform-box: view-box; transform-origin: 84px 190px; animation: xm-pom 3s ease-in-out infinite; }
@keyframes xm-pom { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(9deg); } }
@media (max-width: 699px) {
  .xm-santa { width: 92px; height: 92px; left: 4px; }
  .xm-santa__fig { width: 92px; }
  .xm-santa.is-peek .xm-santa__fig { transform: translateY(24%) scale(.64); }
  .xm-santa__bubble { left: 82px; bottom: 66px; width: min(250px, calc(100vw - 98px)); padding: 13px 14px 12px; }
  .xm-santa__hoho { font-size: 18px; }
  .xm-santa__msg { font-size: 13.5px; }
}
/* Mikołaj chowa się za dolną krawędź, gdy pod jego rogiem przechodzi podpis zdjęcia albo przycisk (klasa is-duck z swieta.js),
   i wysuwa się z powrotem zwykłym ruchem, kiedy element minie. Schowany nie przechwytuje kliknięć. */
.xm-santa.is-duck .xm-santa__fig { transform: translateY(112%); transition-duration: .42s; transition-timing-function: var(--ease); pointer-events: none; }
.xm-santa.is-duck.is-peek .xm-santa__fig { transform: translateY(112%) scale(.6); }
@media (max-width: 699px) { .xm-santa.is-duck.is-peek .xm-santa__fig { transform: translateY(112%) scale(.64); } }
.xm-santa.is-duck .xm-santa__bubble { opacity: 0; visibility: hidden; pointer-events: none; }
.xm-santa.is-away .xm-santa__fig, .xm-santa.is-away .xm-santa__bubble { visibility: hidden !important; opacity: 0 !important; }
@media print { .xm-santa, .xm-snow, .xm-lights { display: none !important; } }

/* ---------- Prezent po dodaniu do koszyka ---------- */
.xm-gift { position: fixed; z-index: 120; width: 54px; height: 54px; margin: -27px 0 0 -27px; pointer-events: none; }
.xm-gift svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }

/* ---------- Karty produktów: plakietka i cena po rabacie ---------- */
.badge.badge--xm, .card__badges .badge.badge--xm { background: var(--xm-wine); color: #fff; border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
.badge.badge--xm.is-gold, .card__badges .badge.badge--xm.is-gold { background: var(--xm-gold-2); color: #3d2f0c; }
.price-xm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--xm-wine); font-variant-numeric: tabular-nums lining-nums; }
.price-xm strong { font-weight: 700; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .xm-fly, .xm-fly__wave, .sj-sleigh__front, .sj-sleigh__hind, .sj-sleigh__shin, .sj-sleigh__deer-in, .xm-lights i, .sj-santa__eyes, .sj-santa__pom, .sj-santa__wave, .sj-santa__head { animation: none !important; }
  .xm-fly { transform: translateX(8vw); }
  .xm-santa__fig, .xm-santa__bubble { transition: none; }
}

/* ---------- Karta produktu i koszyk: ramka z rabatem ---------- */
.xmp, .xmc { position: relative; overflow: hidden; border: 1px solid #e5dcc6; background: var(--xm-paper); }
.xmp::after, .xmc::after { content: ''; position: absolute; right: -46px; top: -20px; width: 230px; height: 50px; background: url(/img/swieta/galazka.svg) center / contain no-repeat; opacity: .5; rotate: -8deg; pointer-events: none; }
.xmp { margin: 14px 0 4px; padding: 15px 18px 14px; }
.xmp__top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 9px; font-size: 13px; letter-spacing: .01em; text-transform: none; color: #55504a; }
.xmp__tag { display: inline-block; padding: 4px 11px 3px; border-radius: 999px; background: var(--xm-wine); color: #fff; font: italic 500 14.5px/1.15 var(--display, Georgia, serif); letter-spacing: .01em; text-transform: none; white-space: nowrap; }
.xmp__deal { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; font-size: 15.5px; }
.xmp__deal b { font: 500 30px/1 var(--display, Georgia, serif); color: var(--xm-wine); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.xmp__deal strong { font-weight: 700; font-size: 17px; }
.xmp__msg { position: relative; z-index: 1; margin: 0; font-size: 13.5px; line-height: 1.5; color: #55504a; }
.xmp__msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.xmc { margin: 0 0 20px; padding: 14px 16px 13px; }
.xmc__head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; line-height: 1.45; }
.xmc__msg { flex: 1 1 220px; }
.xmc__save { position: relative; z-index: 1; margin: 8px 0 0; font-size: 14.5px; }
.xmc__save strong { color: var(--xm-wine); }
.xmc--small { margin-bottom: 14px; padding: 11px 12px 10px; }
.xmc--small .xmc__head { font-size: 13px; }
.xmc--small::after { display: none; }

/* ---------- Stopka świąteczna: ciemna zieleń, u góry girlanda ze światełkami ----------
   Girlanda to powtarzany kafel z jednym łukiem (scripts/swieta-ozdoby.js): kokarda na zawieszeniu, bombka w najniższym punkcie.
   Kafel jest wyśrodkowany, więc bombka wypada na środku strony, a łuki ucinają się równo po obu stronach. */
.footer.footer--xm { position: relative; background: var(--xm-green-d) !important; color: rgba(246, 241, 228, .74) !important; }
.xm-foot-top { position: relative; height: 96px; overflow: hidden; background: url(/img/swieta/girlanda.svg) repeat-x 50% 0 / 300px 96px; }
.xm-foot-top i { position: absolute; inset: 0; background: url(/img/swieta/girlanda-a.svg) repeat-x 50% 0 / 300px 96px; animation: xm-twinkle 4.2s ease-in-out infinite; }
.xm-foot-top i + i { background-image: url(/img/swieta/girlanda-b.svg); animation-delay: -2.1s; }
@media (max-width: 699px) { .xm-foot-top, .xm-foot-top i { height: 72px; background-size: 225px 72px; } }
@media (prefers-reduced-motion: reduce) { .xm-foot-top i { animation: none; opacity: .8; } }
.footer--xm .footer__nl { background: transparent !important; color: rgba(246, 241, 228, .74) !important; }
.footer--xm .footer__nl-inner { padding-top: clamp(20px, 3vw, 36px); }
.footer--xm h3, .footer--xm .footer__nl h2, .footer--xm strong { color: #fffaf0 !important; }
.footer--xm .footer__nl h2 .pct { color: var(--xm-gold-2); }
.footer--xm a { color: rgba(246, 241, 228, .82) !important; }
.footer--xm a:hover { color: #fff !important; }
.footer--xm .footer__brand img { filter: none; }
.footer--xm .footer__company, .footer--xm .footer__salon, .footer--xm .footer__nl p, .footer--xm .footer__bottom { color: rgba(214, 226, 215, .72) !important; }
.footer--xm .nl-form .input { border-color: rgba(236, 217, 164, .38) !important; background: rgba(255, 255, 255, .05) !important; color: #fff !important; }
.footer--xm .nl-form .input::placeholder { color: rgba(214, 226, 215, .62) !important; }
.footer--xm .nl-form .input:focus { border-color: var(--xm-gold-2) !important; }
.footer--xm .nl-form .btn { background: #fffaf0 !important; border-color: #fffaf0 !important; color: #10241d !important; }
.footer--xm .nl-form .btn:hover { background: var(--xm-gold-2) !important; border-color: var(--xm-gold-2) !important; }
.footer--xm .nl-form .check, .footer--xm .nl-form .check a { color: rgba(214, 226, 215, .8) !important; }
.footer--xm .nl-form .check input { border-color: rgba(236, 217, 164, .5) !important; background: transparent !important; }
.footer--xm .footer__social a { border-color: rgba(236, 217, 164, .4) !important; color: #fffaf0 !important; }
.footer--xm [class*="pay"] span, .footer--xm [class*="pay"] li { color: rgba(246, 241, 228, .8) !important; border-color: rgba(236, 217, 164, .28) !important; }
.footer--xm * { border-color: rgba(236, 217, 164, .16); }
.footer--xm .footer__nl, .footer--xm .footer__main, .footer--xm .footer__bottom, .footer--xm .wrap { border-color: rgba(236, 217, 164, .16) !important; }
.footer--xm :focus-visible { outline-color: var(--xm-gold-2); }

/* ---------- Strona /swieta: góra ---------- */
/* W czasie promocji góra jest ta sama co na stronie głównej (.xh), tylko niższa, żeby było widać początek strony pod spodem. */
@media (min-width: 1000px) {
  .xh--page { min-height: clamp(560px, calc(100svh - 128px), 800px); }
}
/* Po promocji: prosty zielony pas z tytułem, gałęzią i saniami. */
.xmh { position: relative; overflow: hidden; isolation: isolate; color: var(--xm-on); padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); background: var(--xm-green); }
.xmh__sky { position: absolute; inset: 0; pointer-events: none; }
.xmh__bough { position: absolute; left: -110px; bottom: -110px; width: min(70vw, 760px); aspect-ratio: 900 / 640; background: url(/img/swieta/konar.svg) center / contain no-repeat; opacity: .55; }
.xmh .xm-fly { --fly-w: clamp(130px, 14vw, 210px); --fly-time: 24s; --fly-top: 26px; }
.has-sjx-dark .xmh { margin-top: calc(-1 * var(--header-h) - 1px); padding-top: calc(var(--header-h) + clamp(36px, 5vw, 72px)); }
/* Sanie lecą pod nagłówkiem, nie po logo. */
.has-sjx-dark .xmh .xm-fly { --fly-top: calc(var(--header-h) + 10px); }
.xmh__inner { position: relative; z-index: 5; }
.xmh__title { margin: 0; max-width: 11ch; font: 400 clamp(48px, 7.4vw, 104px)/.98 var(--display, Georgia, serif); font-optical-sizing: auto; letter-spacing: -.02em; color: #fffaf0; text-wrap: balance; }
.xmh__lead { max-width: 35em; margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.55; color: var(--xm-on-2); }
@media (prefers-reduced-motion: reduce) {
  /* Bez ruchu sanie stoją po prawej, obok tytułu. */
  .xmh .xm-fly { transform: translateX(calc(100vw - var(--fly-w) - 28px)); }
}
.xm-body .bw-how__no { border-color: var(--xm-wine); border-radius: 50%; color: var(--xm-wine); }
.xm-body .bw-h2 { font-family: var(--display, Georgia, serif); }
.xm-body .bw-example__sum .is-discount { color: var(--xm-wine); }

/* ---------- Strona /swieta: zieleń także niżej, białe karty produktów ---------- */
body.is-xm { background: var(--xm-green-d); }
.is-xm #tresc { background: linear-gradient(180deg, var(--xm-green) 0, #0b3327 420px, var(--xm-green-d) 1400px); color: rgba(246, 241, 228, .86); }
.is-xm .xm-body .crumbs, .is-xm .xm-body .crumbs a { color: rgba(214, 226, 215, .72); }
.is-xm .xm-body .crumbs [aria-current] { color: var(--xm-on); }
.is-xm .xm-body .bw-h2 { color: #fffaf0; }
.is-xm .xm-body .bw-how, .is-xm .xm-body .bw-example { border-bottom-color: rgba(236, 217, 164, .18); }
.is-xm .xm-body .bw-how__list h3 { color: #fffaf0; }
.is-xm .xm-body .bw-how__list p, .is-xm .xm-body .bw-example__text > p, .is-xm .xm-body .bw-faq details p { color: var(--xm-on-2); }
.is-xm .xm-body .bw-how__no { border-color: var(--xm-gold); color: var(--xm-gold-2); font: 400 17px/1 var(--display, Georgia, serif); }
.is-xm .xm-body .bw-example__sum div { border-bottom-color: rgba(236, 217, 164, .2); color: rgba(246, 241, 228, .88); }
.is-xm .xm-body .bw-example__sum .is-discount { color: var(--xm-gold-2); }
.is-xm .xm-body .bw-example__sum .is-total { color: #fffaf0; }
.is-xm .xm-body .bw-example__items a, .is-xm .xm-body .bw-tile { color: #fffaf0; }
.is-xm .xm-body .bw-tile__count { color: var(--xm-on-2); }
.is-xm .xm-body .bw-shelf__head .link { color: #fffaf0; }
.is-xm .xm-body .card { background: #fff; overflow: hidden; }
.is-xm .xm-body .card__body { padding: 12px 14px 16px; }
.is-xm .xm-body .bw-faq details { border-bottom-color: rgba(236, 217, 164, .2); }
.is-xm .xm-body .bw-faq summary { color: #fffaf0; }
.is-xm .xm-body .bf-after, .is-xm .xm-body .bf-after h2 { color: #fffaf0; }
.is-xm .xm-body :focus-visible { outline-color: var(--xm-gold-2); }
.is-xm .xm-body .card :focus-visible { outline-color: var(--xm-green); }
.is-xm .perks { background: var(--xm-green-d); border-top-color: rgba(236, 217, 164, .14); }
.is-xm .perk .ic { color: var(--xm-gold-2); }
.is-xm .perk h3 { color: #fffaf0; }
.is-xm .perk p { color: var(--xm-on-2); }
.is-xm .footer--xm .xm-foot-top { display: none; }

   Czarna strona w motywie świątecznym (próba 28.11, ustawienie xmas_dark).
   Tła i teksty przez zmienne, białe tła wpisane na sztywno nadpisane niżej.
   Produkty zostają na białych kartach (zdjęcia mają jasne tło). Kasa jasna.
   ===================================================================== */
body.xm-dark {
  --bg: #0b0b0c; --surface: #141416; --canvas: #0b0b0c; --sand: #101012; --ivory: #141416; --cream: #161618;
  --ink: #f3f1ec; --ink-2: #cfccc5; --muted: #9c988f; --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .22);
  --accent: #f3f1ec; --accent-2: #dcd9d2; --accent-deep: #f3f1ec; --accent-tint: #26262a; --accent-soft: #55555a; --on-accent: #0b0b0c;
  background: #0b0b0c; color: var(--ink);
}
.xm-dark .btn:hover { color: #0b0b0c; }
/* Wyspy jasne: karty produktów i miniatury w koszyku z ciemnym tekstem */
.xm-dark :is(.card, .mini-line__img, .mini-added__img, .mini-pick__img, .set__imgs a) {
  --ink: #111; --ink-2: #3f3f3f; --muted: #777; --line: #e7e5e2; --line-2: #cfccc7;
  --accent: #1a1a1a; --accent-2: #3b3b3b; --on-accent: #fff; --accent-tint: #efefef; color: var(--ink);
}
.xm-dark .card { background: #fff; border-radius: 16px; overflow: hidden; }
.xm-dark .card__body { padding: 12px 14px 16px; }
.xm-dark .card__img { background: #fff; }
/* Nagłówek: ciemne szkło, białe logo i ikony (na głównej nad pasem dalej przezroczysty) */
.xm-dark .header::before { background: rgba(11, 11, 12, .84); }
@media (max-width: 1099px) { .xm-dark .header::before { background: rgba(11, 11, 12, .95); } }
.xm-dark .header { border-bottom-color: rgba(255, 255, 255, .1); }
.xm-dark .header .header__logo .logo-dark { display: none !important; }
.xm-dark .header .header__logo .logo-light { display: block !important; }
.xm-dark .header :is(.icon-btn, .nav__link) { color: #f3f1ec; }
.xm-dark .header .icon-btn .count { background: #fff; color: #0b0b0c; }
.xm-dark img[src*="/img/logo.svg"]:not(.logo-dark) { filter: invert(1); }
/* Białe tła wpisane na sztywno */
.xm-dark :is(.header .dd, .dd, .search-panel, .drawer__foot, .list-bar, .plp-bar .list-bar__filters, .modal__box, .nl-pop, .opt-card, .salon-card, .free-ship, .code-applied, .soon-status, .ship-info, .ship-pick__box, .gold-card, .plp-head--hero) { background: #141416 !important; color: var(--ink); }
.xm-dark .drawer__panel, .xm-dark .drawer--wide .drawer__panel, .xm-dark #koszyk-panel .drawer__panel, .xm-dark #koszyk-panel .drawer__foot { background: #101012 !important; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.xm-dark #menu .drawer__panel.sw-menu, .xm-dark .sw-col { background: #101012 !important; }
.xm-dark :is(.cats, .feature, .perks, body.is-pdp .pinfo) { background: transparent !important; }
.xm-dark.is-pdp .pinfo { background: transparent !important; }
.xm-dark.is-pdp :is(.stage, .stage__slide, .gallery) { background: #fff; }
.xm-dark.is-pdp .gallery--grid .stage { background: #0b0b0c; }
.xm-dark .sticky-buy { background: rgba(16, 16, 18, .97) !important; }
.xm-dark :is(.chip, .btn--ghost, .pay-badge, .rail__btn) { background: transparent; color: var(--ink); }
.xm-dark .chip[aria-current], .xm-dark .chip.is-active, .xm-dark .chip[aria-pressed="true"] { background: #f3f1ec; color: #0b0b0c; border-color: #f3f1ec; }
.xm-dark :is(.input, select.input, textarea.input) { background: #141416; color: var(--ink); border-color: rgba(255, 255, 255, .22); }
.xm-dark .input::placeholder { color: rgba(255, 255, 255, .45); }
.xm-dark .xmp, .xm-dark .xmc { background: linear-gradient(135deg, rgba(179, 25, 42, .18), rgba(179, 25, 42, .06)); border-color: rgba(229, 64, 76, .45); }
.xm-dark .xmp__deal b, .xm-dark .xmc__save strong { color: #ff6b74; }
.xm-dark .nav__link--xm { color: #ff8a8f !important; }
.xm-dark .sw-link--xm span:first-child { color: #ff8a8f; }
.xm-dark .xm-santa__bubble { background: #fff; color: #171717; }
/* Poprawki czarnej strony: jasne przyciski z ciemnym tekstem, pola i drobne elementy */
.xm-dark :is(.card, .mini-line__img, .mini-added__img, .mini-pick__img, .set__imgs a) { --bg: #fff; --surface: #fff; --canvas: #f6f6f4; --sand: #f0efec; --ivory: #f6f6f5; --cream: #f3f3f2; }
body.xm-dark:not(.has-sjx-dark) .header, .xm-dark .header.is-scrolled, .xm-dark .header.is-solid { background: #0b0b0c; }
body.xm-dark:not(.has-sjx-dark) .header::before, .xm-dark .header.is-scrolled::before, .xm-dark .header.is-solid::before { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.xm-dark :is(.btn--light, .sjx .sjx__btn, .soon-hero .btn, .slide--light .btn) { background: #fff; border-color: #fff; color: #0b0b0c; }
.xm-dark .sjx .sjx__btn:hover { background: transparent; color: #fff; }
.xm-dark .cookie .btn--light { color: #0b0b0c; }
.xm-dark .buy__fav { background: transparent; border-color: var(--line-2); color: var(--ink); }
.xm-dark .size span { background: transparent; }
.xm-dark .size input:disabled + span { background: repeating-linear-gradient(135deg, #141416 0 6px, #1c1c1f 6px 7px); color: #666; }
.xm-dark .plp-bar :is(.list-bar__sort, .list-bar__filters) { background: transparent !important; border-color: var(--line-2); color: var(--ink); }
.xm-dark .list-bar__sort select { color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f3f1ec' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); }
.xm-dark .list-bar__sort select option { background: #141416; color: #f3f1ec; }
.xm-dark .chip[aria-current="page"], .xm-dark .chip.is-current { background: #f3f1ec; color: #0b0b0c; border-color: #f3f1ec; }
