/* Christmas first screen on the home page (inc/xmas-hero.php, owner 2026-12-05 „darom viską“) – only the site's own colours */
.v4-prologue{position:relative}
.v4-prologue__in{position:relative;z-index:2}

/* 1 · snow: natural flakes drawn on a canvas (inc/xmas-hero.php footer script), like the sale band's snow */
.sm-xh-snow{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}

/* 7 · warm light behind the arch + rose-gold sparkles */
.sm-xh-glow{position:absolute;z-index:0;right:4%;top:2%;width:min(760px,62vw);aspect-ratio:1;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(255,235,220,.95) 0%,rgba(247,238,234,0) 66%)}
.sm-xh-sparks{position:absolute;inset:0;z-index:1;pointer-events:none}
.sm-xh-sparks i{position:absolute;font-style:normal;color:#C48A7E;opacity:.75;animation:smxhtw 4s ease-in-out infinite}
.sm-xh-sparks i:nth-child(3n){animation-delay:-1.4s}.sm-xh-sparks i:nth-child(3n+1){animation-delay:-2.7s}
@keyframes smxhtw{0%,100%{opacity:.35}50%{opacity:.9}}


/* 3 · ornaments hanging on threads, each a link to its product */
.sm-xh-orns{position:absolute;left:0;right:0;top:-54px;height:0;z-index:4;pointer-events:none}
.sm-xh-orn{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;pointer-events:auto;transform-origin:50% 0;animation:smxh 7s ease-in-out infinite;text-decoration:none}
.sm-xh-orn__t{display:block;width:1px;background:#C48A7E}
.sm-xh-orn img,html body.v4 .sm-xh-orn img{display:block;width:84px;height:84px;border-radius:50%!important;object-fit:cover;border:3px solid #fff;background:#EEE7E4;box-shadow:0 12px 22px -12px rgba(94,47,55,.6)}
.sm-xh-orn:hover img,.sm-xh-orn:focus-visible img{box-shadow:0 0 0 3px #C48A7E,0 12px 22px -12px rgba(94,47,55,.6)}
.sm-xh-orn--1{left:46%}
.sm-xh-orn--1 .sm-xh-orn__t{height:34px}
.sm-xh-orn--2{left:53.5%;animation-delay:-2.3s}
.sm-xh-orn--2 .sm-xh-orn__t{height:104px}
.sm-xh-orn--2 img{width:76px;height:76px}
.sm-xh-orn--3{right:-14px;animation-delay:-4.6s}
.sm-xh-orn--3 .sm-xh-orn__t{height:62px}
.sm-xh-orn--3 img{width:70px;height:70px}
@keyframes smxh{0%,100%{transform:rotate(-2.5deg)}50%{transform:rotate(2.5deg)}}

/* 6 · heading in one colour, the second line bold (owner 2026-12-04) */
html body.v4 .v4-title.v4-title--one em{color:inherit!important;font-weight:700!important}

/* 4 · days to Christmas with the delivery term (or the plain delivery line) */
.sm-xh-count{display:inline-flex;align-items:center;gap:14px;margin:-4px 0 18px;padding:8px 20px 8px 8px;border:1px solid #D9B4AA;border-radius:999px;background:#fff;box-shadow:0 10px 24px -18px rgba(94,47,55,.6)}
.sm-xh-count>b{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:#8E4E58;color:#fff;font:600 24px/1 "Playfair Display",Georgia,serif}
.sm-xh-count>span{display:flex;flex-direction:column;gap:2px}
.sm-xh-count strong{font:700 15px/1.25 Barlow,"Barlow Fallback",system-ui,sans-serif;color:#2B1A17}
.sm-xh-count small{font:500 14px/1.3 Barlow,"Barlow Fallback",system-ui,sans-serif;color:#8E4E58}
.sm-xh-by{margin:-8px 0 16px;font:600 15px/1.45 Barlow,"Barlow Fallback",system-ui,sans-serif;color:#8E4E58}
.sm-xh-by span{margin-right:6px}

/* 2, 5, 9 · the arch with our ornament, the gift tag and the royal seal */
.sm-xh-media{position:relative}
.sm-xh-tag{position:absolute;z-index:5;left:-34px;top:18%;width:124px;padding:20px 10px 14px;background:#fff;border:1px solid #D9B4AA;border-radius:10px;text-align:center;transform:rotate(-8deg);box-shadow:0 12px 24px -14px rgba(94,47,55,.6);pointer-events:none}
.sm-xh-tag:before{content:"";position:absolute;top:8px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;border:1px solid #C48A7E}
.sm-xh-tag:after{content:"";position:absolute;top:-58px;left:62px;width:1px;height:66px;background:#C48A7E;transform:rotate(14deg)}
.sm-xh-tag small{display:block;font:700 10px/1.2 Barlow,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#8E4E58}
.sm-xh-tag em{display:block;margin-top:6px;font:italic 500 17px/1.15 "Playfair Display",Georgia,serif;color:#5E2F37}
.sm-xh-seal{position:absolute;z-index:5;left:-40px;bottom:16%;width:126px;height:126px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;pointer-events:none;
  background:radial-gradient(circle at 35% 30%,#E2B3A8,#B76E79 55%,#8E4E58);box-shadow:0 14px 28px -12px rgba(94,47,55,.8),inset 0 0 0 6px rgba(255,255,255,.18)}
.sm-xh-seal b{font:600 32px/1 "Playfair Display",Georgia,serif}
.sm-xh-seal span{max-width:96px;margin-top:5px;font:700 10px/1.3 Barlow,system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase}

/* 10 · four Christmas gifts with live prices under the first screen */
.sm-xh-gifts{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:6px;position:relative;z-index:3}
.sm-xh-gift{display:flex;align-items:center;gap:12px;padding:8px 14px 8px 8px;background:#fff;border:1px solid #EFDCD3;border-radius:16px;text-decoration:none;color:#2B1A17;box-shadow:0 12px 24px -22px rgba(94,47,55,.6)}
.sm-xh-gift:hover{border-color:#D9B4AA}
.sm-xh-gift img{flex:0 0 64px;width:64px;height:64px;border-radius:10px;object-fit:cover;background:#EEE7E4}
.sm-xh-gift>.sm-xh-gift__t{display:flex;flex-direction:column;gap:3px;min-width:0}
.sm-xh-gift em{font:600 14px/1.25 Barlow,"Barlow Fallback",system-ui,sans-serif;font-style:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sm-xh-gift b{font:700 15px/1.2 Barlow,"Barlow Fallback",system-ui,sans-serif;color:#8E4E58}
.sm-xh-gift b del{color:#9C8580;font-weight:500;margin-right:4px}.sm-xh-gift b ins{text-decoration:none}

html[data-theme="dark"] .sm-xh-by,html[data-theme="dark"] .sm-xh-count small{color:#D49AA3}

@media (prefers-reduced-motion:reduce){.sm-xh-orn,.sm-xh-sparks i{animation:none}}

@media (max-width:760px){
  .sm-xh-orns{top:-30px}
  .sm-xh-orn--1{display:none}
  .sm-xh-orn--2{left:auto;right:64px}
  .sm-xh-orn--2 .sm-xh-orn__t{height:22px}
  .sm-xh-orn--2 img{width:46px;height:46px;border-width:2px}
  .sm-xh-orn--3{right:12px}
  .sm-xh-orn--3 .sm-xh-orn__t{height:40px}
  .sm-xh-orn--3 img{width:40px;height:40px;border-width:2px}
  .sm-xh-glow{right:-20%;top:30%;width:120vw}
  .sm-xh-count{gap:10px;padding:6px 14px 6px 6px;margin:0 0 14px}
  .sm-xh-count>b{width:44px;height:44px;font-size:20px}
  .sm-xh-count strong{font-size:14px}.sm-xh-count small{font-size:13px}
  .sm-xh-by{font-size:14px;margin:-4px 0 14px}
  .sm-xh-tag{left:6px;top:10%;width:104px;padding:16px 8px 10px}
  .sm-xh-tag:after{display:none}
  .sm-xh-tag em{font-size:15px}
  .sm-xh-seal{left:10px;bottom:12%;width:96px;height:96px}
  .sm-xh-seal b{font-size:24px}.sm-xh-seal span{font-size:8.5px;max-width:76px}
  .sm-xh-gifts{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin:4px -16px 0;padding:0 16px 6px;scrollbar-width:none}
  .sm-xh-gifts::-webkit-scrollbar{display:none}
  .sm-xh-gift{flex:0 0 72%;scroll-snap-align:start}
}
/* phones (≤700 px, the cover grid orders the parts): days line right under the heading, gifts right under the arch; a smaller heading */
@media (max-width:700px){
  html body.v4 .v4-prologue--cover .v4-prologue__in > .v4-prologue__text > :is(.sm-xh-count,.sm-xh-by){order:2;justify-self:start}
  html body.v4 .v4-prologue--cover .v4-prologue__in > .sm-xh-gifts{order:3}
  html body.v4 .v4-title.v4-title--one{font-size:clamp(34px,10.4vw,44px)!important}
  .sm-xh-gifts{margin:0 -16px 14px}
}
/* ornaments always round (a site-wide picture rule squares other images) */
html body.v4 .sm-xh-orns .sm-xh-orn img{border-radius:50%!important;clip-path:circle(50%)}
/* phones: the arch caption can take three lines – tag and seal are measured from the top of the picture */
@media (max-width:760px){
  .sm-xh-tag{top:5%}
  .sm-xh-seal{top:46%;bottom:auto}
}
/* phones: small ornaments in the top-right corner, above the heading (beats the base size rule) */
@media (max-width:760px){
  html body.v4 .sm-xh-orns .sm-xh-orn--2 img{width:44px;height:44px;border-width:2px}
  html body.v4 .sm-xh-orns .sm-xh-orn--3 img{width:38px;height:38px;border-width:2px}
  html body.v4 .sm-xh-orns .sm-xh-orn--2 .sm-xh-orn__t{height:16px}
  html body.v4 .sm-xh-orns .sm-xh-orn--3 .sm-xh-orn__t{height:30px}
  .sm-xh-tag{left:-4px;width:84px;padding:13px 6px 8px;transform:rotate(-8deg) scale(.95)}
  .sm-xh-tag:before{top:5px;width:8px;height:8px;margin-left:-4px}
  .sm-xh-tag small{font-size:8px;letter-spacing:.1em}
  .sm-xh-tag em{font-size:13px;margin-top:4px}
}
/* the gift tag hangs straight down on its own thread from the top, like the ornaments (owner 2026-12-05: „visos virvutės turi būti iš viršaus“) */
.sm-xh-tag,.sm-xh-tag[class]{transform:none}
.sm-xh-tag:after,.sm-xh-tag[class]:after{display:block;top:auto;bottom:calc(100% - 13px);left:50%;width:1px;height:1200px;margin-left:-.5px;transform:none;background:#C48A7E}
/* phones: the heading stands above the arch, so the tag's thread starts at the arch frame (a thread from the very top would cross the text) */
@media (max-width:760px){
  .sm-xh-tag[class]:after{height:28px}
}
/* no white rim: the round clip cut the white border into uneven slivers (owner 2026-12-05 „matosi balti kraštai“) – a clean disc of the photo */
html body.v4 .sm-xh-orns .sm-xh-orn img{border:0!important;box-shadow:none!important;clip-path:circle(50% at 50% 50%)}
.sm-xh-orn{filter:drop-shadow(0 8px 10px rgba(94,47,55,.22))}
/* owner 2026-12-05 „b“: the heading's second line in shining rose gold from our palette */
html body.v4 .v4-title.v4-title--one em{color:#B76E79!important;background:linear-gradient(100deg,#8E4E58 0%,#B76E79 38%,#D49AA3 52%,#B76E79 66%,#8E4E58 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-bottom:.08em}
/* owner 2026-12-05 „20 ne centre“: full-height figures, centred in the circle */
.sm-xh-count>b{font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1;line-height:1;padding-bottom:2px}
/* 2 · the arch keeps changing ornaments (owner 2026-12-05 „kad vis keistųsi žaisliukai“) */
.sm-xh-slides{position:relative;aspect-ratio:4/5}
.sm-xh-slide,html body.v4 .sm-xh-slides>.sm-xh-slide{position:absolute;inset:0;display:block;opacity:0;transition:opacity 1.2s ease;pointer-events:none}
.sm-xh-slide.is-on,html body.v4 .sm-xh-slides>.sm-xh-slide.is-on{opacity:1;pointer-events:auto}
html body.v4 .sm-xh-slides .sm-xh-slide img{display:block;width:100%;height:100%;object-fit:cover}
@media (prefers-reduced-motion:reduce){.sm-xh-slide{transition:none}}
/* the gift tag a little lower on computers (owner 2026-12-05 „kortelę kiek žemiau“) */
@media (min-width:761px){.sm-xh-tag{top:30%}}
/* dark mode: the gift cards were white with light text („nesimato teksto“) */
html[data-theme="dark"] .sm-xh-gift{background:#2E1D19;border-color:rgba(235,203,190,.22)}
html[data-theme="dark"] .sm-xh-gift em{color:#F5E9E4}
html[data-theme="dark"] .sm-xh-gift b{color:#EBCBBE}
html[data-theme="dark"] .sm-xh-count{background:#2E1D19;border-color:rgba(235,203,190,.3)}
html[data-theme="dark"] .sm-xh-count strong{color:#F5E9E4}

/* dark mode: a softer warm light behind the arch (it made a bright halo on the dark page) */
html[data-theme="dark"] .sm-xh-glow{opacity:.22}
/* gift pictures: the whole photo centred (contain) on its own edge colour, not a crop */
html body.v4 .sm-xh-gift img{object-fit:contain;object-position:50% 50%}
