/*============================================================================================*/
/* Starbazar – vianočný motív 2027 (načíta sa len v sezóne, App\Helper\Season)                 */
/*============================================================================================*/

/* ---------- Logo s čiapkou ---------- */
.sb-logo-xmas img { width: 226px; height: auto; margin: -12px 0 -4px -6px; }
@media (max-width: 991.98px) {
	header.site-header-v2 #logo .sb-logo-xmas img { width: 168px; margin: -6px 0 -2px -4px; }
}

/* ---------- Hero: sviatočné farby ---------- */
.sb-hero--xmas { background: linear-gradient(135deg, #071a2e 0%, #0b2944 48%, #0d3658 100%); padding-top: 92px; padding-bottom: 104px; }
.sb-hero--xmas .sb-hero__glow--a { background: rgba(20, 149, 214, .5); }
.sb-hero--xmas .sb-hero__glow--b { background: rgba(242, 183, 5, .26); }
.sb-hero--xmas .sb-hero__glow--c { right: 30%; background: rgba(225, 45, 70, .26); }
.sb-hero--xmas .sb-hero__title span { background: linear-gradient(90deg, #ff6b7d 0%, #ffb3a1 40%, #ffd25c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #ffb3a1; }
.sb-hero--xmas .sb-hero-search__submit { background: linear-gradient(135deg, #e63950, #b81f37); }
.sb-hero--xmas .sb-hero-search__submit:hover { background: linear-gradient(135deg, #f04a60, #c4243d); }
.sb-hero--xmas .sb-hero__sell-ico { background: #e63950; color: #fff; }

/* tipy na darčeky */
.sb-hero-popular__gift { display: inline-flex; align-items: center; gap: 6px; color: #ffd25c !important; font-weight: 600; }
.sb-hero-popular__gift svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sb-hero--xmas .sb-hero-popular a:hover { border-color: rgba(255, 210, 92, .75); }

/* ---------- Girlanda svetielok ---------- */
.sb-garland { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 74px; pointer-events: none; overflow: visible; }
.sb-garland__wire { fill: none; stroke: #0a1826; stroke-width: 2.2; stroke-linecap: round; opacity: .9; }
.sb-garland__bulb rect { fill: #2c3e4e; }
.sb-garland__glass { fill: var(--c); }
.sb-garland__glow { fill: var(--c); opacity: .38; filter: blur(5px); }
@media (prefers-reduced-motion: no-preference) {
	.sb-garland__glass, .sb-garland__glow { animation: sb-twinkle 2.6s ease-in-out var(--d, 0s) infinite; }
}
@keyframes sb-twinkle {
	0%, 100% { opacity: 1; }
	50% { opacity: .45; }
}
.sb-garland__glow { animation-name: sb-twinkle-glow; }
@keyframes sb-twinkle-glow {
	0%, 100% { opacity: .42; }
	50% { opacity: .1; }
}

/* ---------- Závej snehu na spodku hero ---------- */
.sb-snowdrift { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; display: block; width: 100%; height: 64px; pointer-events: none; }
.sb-snowdrift__back { fill: rgba(225, 238, 248, .5); }
.sb-snowdrift__front { fill: #f5f8fa; }
.sb-hero--xmas .sb-hero__inner { z-index: 2; }

.sb-hero--xmas .sb-hero__float--b svg { color: #ff8a9a; }

/* ---------- Pätička: snehová čiapka na hornom okraji ---------- */
body.is-xmas .sb-footer { position: relative; }
body.is-xmas .sb-footer::before {
	content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 22px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 0h240v8c-12 0-14 9-26 9s-12-7-24-7-14 11-27 11-13-8-25-8-12 6-24 6-15-9-28-9-12 8-24 8-13-6-25-6-13 8-25 8-12-6-12-6z'/%3E%3C/svg%3E") repeat-x top / 240px 22px;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18));
}

/* ---------- Sneženie ---------- */
.sb-snow { position: fixed; inset: 0; z-index: 990; width: 100vw; height: 100vh; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.sb-snow.is-on { opacity: .9; }
.sb-snow-toggle {
	position: fixed; left: 20px; bottom: 20px; z-index: 995; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border: 1px solid rgba(15, 34, 48, .1); border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1495d6; cursor: pointer;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 22px rgba(15, 34, 48, .14);
	transition: color .15s, background-color .15s, transform .15s;
}
.sb-snow-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-snow-toggle:hover { transform: scale(1.06); }
.sb-snow-toggle[aria-pressed="false"] { color: #9aa8b3; }
.sb-snow-toggle[aria-pressed="false"]::after { content: ""; position: absolute; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); }
.sb-snow-toggle:focus { outline: none; }
.sb-snow-toggle:focus-visible { outline: 3px solid rgba(20, 149, 214, .35); outline-offset: 2px; }
@media (max-width: 991.98px) {
	.sb-snow-toggle { left: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 38px; height: 38px; }
	body.no-tabbar .sb-snow-toggle { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media print {
	.sb-snow, .sb-snow-toggle, .sb-garland, .sb-snowdrift { display: none !important; }
}

/* ---------- Mobil: hero ---------- */
@media (max-width: 991.98px) {
	.sb-hero--xmas { padding-top: 58px; padding-bottom: 54px; }
	.sb-garland { height: 56px; }
	.sb-snowdrift { height: 34px; }
}

/* prepínač snehu: na mobile je v bočnom menu (plávajúce tlačidlo by prekrývalo obsah) */
.sb-drawer__snow { display: none; }
@media (max-width: 991.98px) {
	.sb-snow-toggle { display: none; }
	.sb-drawer__snow { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #e3ecf2; border-radius: 14px; background: #f7fafc; color: #0f2230; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
	.sb-drawer__snow svg { width: 20px; height: 20px; color: #1495d6; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.sb-drawer__snow span { flex: 1; }
	.sb-drawer__snow i { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #c9d6df; transition: background-color .15s; }
	.sb-drawer__snow i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
	.sb-drawer__snow[aria-pressed="true"] i { background: #1495d6; }
	.sb-drawer__snow[aria-pressed="true"] i::after { transform: translateX(16px); }
}
.sb-drawer__snow[hidden] { display: none !important; }

/*============================================================================================*/
/* Vianočné detaily na podstránkach                                                            */
/*============================================================================================*/

/* kategórie na úvode: visiaca guľa, po prejdení myšou sa zahojdá */
body.is-xmas .home-category-card-v2::before {
	content: ""; position: absolute; top: -1px; left: 22px; z-index: 2; width: 22px; height: 44px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 44'%3E%3Cpath d='M11 0v15' stroke='%23b8c7d3' stroke-width='1.2'/%3E%3Crect x='8' y='13.5' width='6' height='5' rx='1.2' fill='%23c9a227'/%3E%3Ccircle cx='11' cy='30' r='10' fill='%23e63950'/%3E%3Cpath d='M2.5 28.5q8.5 4 17 0' stroke='%23fff' stroke-opacity='.35' stroke-width='1.6' fill='none'/%3E%3Cellipse cx='7.4' cy='25.6' rx='2.8' ry='1.9' fill='%23fff' opacity='.6'/%3E%3C/svg%3E") no-repeat center / contain;
	transform-origin: 11px 0;
}
body.is-xmas .home-category-grid-v2 > :nth-child(4n+2) .home-category-card-v2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 44'%3E%3Cpath d='M11 0v15' stroke='%23b8c7d3' stroke-width='1.2'/%3E%3Crect x='8' y='13.5' width='6' height='5' rx='1.2' fill='%23c9a227'/%3E%3Ccircle cx='11' cy='30' r='10' fill='%23f2b705'/%3E%3Cpath d='M2.5 28.5q8.5 4 17 0' stroke='%23fff' stroke-opacity='.35' stroke-width='1.6' fill='none'/%3E%3Cellipse cx='7.4' cy='25.6' rx='2.8' ry='1.9' fill='%23fff' opacity='.6'/%3E%3C/svg%3E"); height: 36px; }
body.is-xmas .home-category-grid-v2 > :nth-child(4n+3) .home-category-card-v2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 44'%3E%3Cpath d='M11 0v15' stroke='%23b8c7d3' stroke-width='1.2'/%3E%3Crect x='8' y='13.5' width='6' height='5' rx='1.2' fill='%23c9a227'/%3E%3Ccircle cx='11' cy='30' r='10' fill='%2322a35a'/%3E%3Cpath d='M2.5 28.5q8.5 4 17 0' stroke='%23fff' stroke-opacity='.35' stroke-width='1.6' fill='none'/%3E%3Cellipse cx='7.4' cy='25.6' rx='2.8' ry='1.9' fill='%23fff' opacity='.6'/%3E%3C/svg%3E"); height: 48px; }
body.is-xmas .home-category-grid-v2 > :nth-child(4n+4) .home-category-card-v2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 44'%3E%3Cpath d='M11 0v15' stroke='%23b8c7d3' stroke-width='1.2'/%3E%3Crect x='8' y='13.5' width='6' height='5' rx='1.2' fill='%23c9a227'/%3E%3Ccircle cx='11' cy='30' r='10' fill='%231495d6'/%3E%3Cpath d='M2.5 28.5q8.5 4 17 0' stroke='%23fff' stroke-opacity='.35' stroke-width='1.6' fill='none'/%3E%3Cellipse cx='7.4' cy='25.6' rx='2.8' ry='1.9' fill='%23fff' opacity='.6'/%3E%3C/svg%3E"); height: 40px; }
@media (prefers-reduced-motion: no-preference) {
	body.is-xmas .home-category-card-v2:hover::before { animation: sb-bauble-swing 1.4s ease-in-out; }
}
@keyframes sb-bauble-swing {
	0% { transform: rotate(0); } 20% { transform: rotate(14deg); } 45% { transform: rotate(-10deg); }
	65% { transform: rotate(6deg); } 85% { transform: rotate(-3deg); } 100% { transform: rotate(0); }
}
@media (max-width: 991.98px) {
	body.is-xmas .home-category-card-v2::before { left: 10px; width: 14px; height: 28px !important; }
}

/* podstránky: girlanda svetielok pod modrým vyhľadávaním */
body.is-xmas #results.sb-searchbar { position: relative; }
body.is-xmas #results.sb-searchbar::after {
	content: ""; position: absolute; top: 100%; left: 0; right: 0; z-index: 5; height: 26px; margin-top: -3px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 26'%3E%3Cpath d='M0 2Q40 16 80 2T160 2' fill='none' stroke='%230b5f8a' stroke-width='1.4'/%3E%3Cg%3E%3Crect x='18.3' y='6.2' width='3.4' height='3' rx='.8' fill='%23385368'/%3E%3Cellipse cx='20' cy='13' rx='3.2' ry='4.6' fill='%23ff4d5e'/%3E%3Crect x='58.3' y='6.2' width='3.4' height='3' rx='.8' fill='%23385368'/%3E%3Cellipse cx='60' cy='13' rx='3.2' ry='4.6' fill='%23ffc53d'/%3E%3Crect x='98.3' y='6.2' width='3.4' height='3' rx='.8' fill='%23385368'/%3E%3Cellipse cx='100' cy='13' rx='3.2' ry='4.6' fill='%234ade80'/%3E%3Crect x='138.3' y='6.2' width='3.4' height='3' rx='.8' fill='%23385368'/%3E%3Cellipse cx='140' cy='13' rx='3.2' ry='4.6' fill='%235cc8ff'/%3E%3C/g%3E%3C/svg%3E") repeat-x top left / 160px 26px;
	filter: drop-shadow(0 2px 3px rgba(11, 47, 72, .18));
}
@media print { body.is-xmas #results.sb-searchbar::after, body.is-xmas .home-category-card-v2::before { display: none; } }

/* detail inzerátu: vianočná verzia „Bezpečný nákup“ */
.sb-safety--xmas { background: linear-gradient(135deg, #fff4f5, #fff9ec); color: #6b2430; border: 1px solid #f6d4d9; }
.sb-safety--xmas svg { color: #e63950; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* mobil: Mikulášska čiapka na tlačidle Pridať v spodnej lište */
body.is-xmas .sb-tabbar__fab { position: relative; overflow: visible; }
body.is-xmas .sb-tabbar__fab::before {
	content: ""; position: absolute; top: -13px; right: -9px; width: 30px; height: 26px; pointer-events: none; transform: rotate(18deg);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M4 19C6 8 13 2 21 4c4 1 6 5 5 9-2-3-5-4-7-2l-3 8z' fill='%23e63950'/%3E%3Crect x='1' y='17' width='19' height='6' rx='3' fill='%23fff' stroke='%23e3e9ee' stroke-width='.8'/%3E%3Ccircle cx='26' cy='14' r='3.4' fill='%23fff' stroke='%23e3e9ee' stroke-width='.8'/%3E%3C/svg%3E") no-repeat center / contain;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18));
}
