/* iWALK Foot Care - Christmas & New Year theme. Loaded only while the theme is live (or in an
   admin preview); the brand colours themselves come from the tokens in includes/site-theme.php.
   Everything is drawn in CSS and inline SVG (no outside images), never catches a click or tap,
   and every movement stops with prefers-reduced-motion. */

html[data-theme="christmas"] {
    /* Inline SVG pieces used below. */
    --xm-tree: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 58'%3E%3Cpolygon points='20,8 33,23 26,23 36,36 28,36 39,50 1,50 12,36 4,36 14,23 7,23' fill='%230B6E4F'/%3E%3Cpolygon points='20,8 33,23 26,23 36,36 28,36 39,50 20,50' fill='%23095C42'/%3E%3Cpath d='M14 23h12l-2 3h-8zM12 36h16l-2 3H14zM5 50h30' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' opacity='.85'/%3E%3Crect x='17' y='50' width='6' height='8' fill='%236B3E26'/%3E%3Cpolygon points='20,0 22.2,5 27.5,5.3 23.4,8.6 24.8,13.8 20,10.8 15.2,13.8 16.6,8.6 12.5,5.3 17.8,5' fill='%23F2C14E'/%3E%3Ccircle cx='15' cy='31' r='2' fill='%23E5293F'/%3E%3Ccircle cx='25' cy='42' r='2.2' fill='%23F2C14E'/%3E%3Ccircle cx='23' cy='18' r='1.7' fill='%23FFFFFF'/%3E%3Ccircle cx='11' cy='45' r='2' fill='%234FA3FF'/%3E%3Ccircle cx='28' cy='31' r='1.6' fill='%23F2C14E'/%3E%3C/svg%3E");
    --xm-flake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cdefs%3E%3Cpath id='a' d='M0 0V-10M0-6L-3-9M0-6L3-9M0-2.5L-2-4.5M0-2.5L2-4.5'/%3E%3C/defs%3E%3Cg stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cuse href='%23a'/%3E%3Cuse href='%23a' transform='rotate(60)'/%3E%3Cuse href='%23a' transform='rotate(120)'/%3E%3Cuse href='%23a' transform='rotate(180)'/%3E%3Cuse href='%23a' transform='rotate(240)'/%3E%3Cuse href='%23a' transform='rotate(300)'/%3E%3C/g%3E%3C/svg%3E");
    --xm-hat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 58'%3E%3Cpath d='M6 46C12 25 28 7 48 9c9 1 14 8 12 18c-4-6-10-8-14-4c-4 5-3 14-1 23Z' fill='%23D62839'/%3E%3Cpath d='M44 11c7 1 12 5 14 11c-4-3-9-3-12 0c-3 4-3 13-1 24h-5c-1-12-1-25 4-35Z' fill='%23A8142A' opacity='.55'/%3E%3Crect x='2' y='41' width='50' height='14' rx='7' fill='%23FFFFFF' stroke='%23DDE5EE' stroke-width='1.5'/%3E%3Ccircle cx='58' cy='28' r='7' fill='%23FFFFFF' stroke='%23DDE5EE' stroke-width='1.5'/%3E%3C/svg%3E");
    --xm-sleigh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70'%3E%3Cdefs%3E%3Cg id='r' fill='%231A1A4B' stroke='%231A1A4B' stroke-width='2' stroke-linecap='round'%3E%3Cellipse cx='0' cy='0' rx='15' ry='6' stroke='none'/%3E%3Cpath d='M11-3L19-12h7l-2 4-7 5z' stroke='none'/%3E%3Cpath d='M20-12l-2-8M19-17l-4-3M23-12l3-8M25-17l4-2M-10 4l-7 9M-6 5l-1 10M8 5l5 8M11 4l8 5M-14-2l-5-3' fill='none'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23r' x='28' y='34'/%3E%3Cuse href='%23r' x='80' y='28'/%3E%3Cpath d='M45 32Q100 44 150 40M97 26Q120 36 150 38' stroke='%231A1A4B' stroke-width='1' fill='none'/%3E%3Cpath d='M146 36h46c10 0 12-14 12-14l2-6h7l-3 9c-4 20-22 21-22 21h-38z' fill='%23C8102E'/%3E%3Cpath d='M140 54h62c10 0 12-8 12-8' stroke='%23E8B44A' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M150 46v8M190 46v8' stroke='%23E8B44A' stroke-width='2'/%3E%3Cpath d='M168 36c0-12 8-14 8-14s9 2 9 14z' fill='%23C8102E'/%3E%3Ccircle cx='176' cy='19' r='5' fill='%23F3C9A8'/%3E%3Cpath d='M171 17l8-8 4 7z' fill='%23C8102E'/%3E%3Ccircle cx='184' cy='9' r='2' fill='%23FFFFFF'/%3E%3Cpath d='M172 22c1 4 7 4 8 0z' fill='%23FFFFFF'/%3E%3Ccircle cx='196' cy='26' r='8' fill='%236B3E26'/%3E%3C/svg%3E");
    --xm-hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 64C240 18 430 28 650 58S1080 26 1440 50V120H0Z' fill='%23E3EEF7'/%3E%3Cpath d='M0 88C300 58 520 70 760 92S1210 76 1440 86V120H0Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* Greeting ribbon above the utility bar: pine green velvet, gold letters, a tree at each side
   and candy-cane edges. */
.theme-greeting {
    position: relative;
    z-index: 1001;
    padding: 11px 16px;
    text-align: center;
    font: 800 0.86rem/1.35 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.4px;
    color: #FFE7A3;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px) 0 0 / 28px 18px,
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.5px) 14px 9px / 28px 18px,
        linear-gradient(90deg, #06402E 0%, #0B6E4F 50%, #06402E 100%);
}
.theme-greeting::before,
.theme-greeting::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(-45deg, #FFFFFF 0 6px, #C8102E 6px 12px);
}
.theme-greeting::before { top: 0; }
.theme-greeting::after { bottom: 0; }
.theme-greeting span { display: inline-flex; align-items: center; gap: 12px; }
.theme-greeting span::before,
.theme-greeting span::after {
    content: '';
    width: 20px; height: 28px; flex-shrink: 0;
    background: var(--xm-tree) center / contain no-repeat;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

/* Santa hat on the logo's foot mascot. */
html[data-theme="christmas"] .brand-link { position: relative; }
html[data-theme="christmas"] .brand-link::after {
    content: '';
    position: absolute;
    right: -9px; top: -13px;
    width: 34px; height: 30px;
    background: var(--xm-hat) center / contain no-repeat;
    transform: rotate(16deg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

/* String lights along the bottom of the sticky header. */
html[data-theme="christmas"] .site-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -9px;
    height: 12px;
    pointer-events: none;
    background:
        radial-gradient(circle at 10px 8px, #FF3B4E 0 3.5px, transparent 4.5px) 0 0 / 80px 12px,
        radial-gradient(circle at 30px 9px, #F2C14E 0 3.5px, transparent 4.5px) 0 0 / 80px 12px,
        radial-gradient(circle at 50px 8px, #2FBF71 0 3.5px, transparent 4.5px) 0 0 / 80px 12px,
        radial-gradient(circle at 70px 9px, #4FA3FF 0 3.5px, transparent 4.5px) 0 0 / 80px 12px,
        linear-gradient(180deg, transparent 2px, rgba(13, 17, 23, 0.35) 2px 3px, transparent 3px);
    filter: drop-shadow(0 0 4px rgba(255, 220, 120, 0.7));
    animation: xm-twinkle 1.6s ease-in-out infinite alternate;
}

/* Baubles hanging from the header near both edges, gently swinging. */
.theme-hang { position: absolute; left: 0; right: 0; top: 100%; height: 120px; overflow: hidden; pointer-events: none; }
.theme-hang i {
    position: absolute; top: 2px;
    width: 2px; height: var(--len);
    background: linear-gradient(180deg, #B9862B, #E8B44A);
    transform-origin: top center;
    animation: xm-swing var(--t, 3.6s) ease-in-out infinite alternate;
    animation-delay: var(--d, 0s);
}
.theme-hang i::before {
    content: '';
    position: absolute; left: 50%; top: 100%;
    width: 7px; height: 5px; margin-left: -3.5px;
    border-radius: 2px 2px 1px 1px;
    background: linear-gradient(90deg, #B9862B, #FFE7A3, #B9862B);
}
.theme-hang i::after {
    content: '';
    position: absolute; left: 50%; top: calc(100% + 4px);
    width: var(--b); height: var(--b); margin-left: calc(var(--b) / -2);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0 10%, rgba(255, 255, 255, 0) 26%),
        repeating-linear-gradient(0deg, transparent 0 40%, rgba(255, 231, 163, 0.75) 40% 47%, transparent 47% 60%),
        radial-gradient(circle at 50% 55%, var(--c) 0 55%, var(--c2) 100%);
    box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.45);
}
.theme-hang i:nth-child(1) { left: 1.4%;  --len: 30px; --b: 22px; --c: #E5293F; --c2: #8E0A1F; --t: 3.4s; }
.theme-hang i:nth-child(2) { left: 3.8%;  --len: 58px; --b: 17px; --c: #F2C14E; --c2: #B9862B; --t: 4.1s; --d: -1.2s; }
.theme-hang i:nth-child(3) { left: 6%;    --len: 22px; --b: 14px; --c: #1E9B6C; --c2: #064632; --t: 3.1s; --d: -2s; }
.theme-hang i:nth-child(4) { right: 1.4%; --len: 40px; --b: 22px; --c: #1E9B6C; --c2: #064632; --t: 3.8s; --d: -0.6s; }
.theme-hang i:nth-child(5) { right: 3.8%; --len: 20px; --b: 16px; --c: #E5293F; --c2: #8E0A1F; --t: 3.3s; --d: -1.6s; }
.theme-hang i:nth-child(6) { right: 6%;   --len: 52px; --b: 15px; --c: #F2C14E; --c2: #B9862B; --t: 4.4s; --d: -2.4s; }

/* Snow: real six-armed flakes and soft round flakes, over the whole page. */
.theme-fx { position: fixed; inset: 0; z-index: 999; pointer-events: none; overflow: hidden; }
.theme-fx i {
    position: absolute;
    top: -24px;
    left: calc(var(--x) * 1%);
    width: var(--s, 8px);
    height: var(--s, 8px);
    border-radius: 50%;
    background: #FFFFFF;
    filter: drop-shadow(0 0 2px rgba(70, 110, 160, 0.75));
    opacity: 0.95;
    animation: xm-snow var(--t, 12s) linear infinite;
    animation-delay: var(--d, 0s);
}
.theme-fx i:nth-child(odd) { border-radius: 0; background: var(--xm-flake) center / contain no-repeat; }
.theme-fx i:nth-child(1)  { --x: 3;  --s: 18px; --t: 14s; --d: -2s; }
.theme-fx i:nth-child(2)  { --x: 9;  --s: 6px;  --t: 10s; --d: -7s; }
.theme-fx i:nth-child(3)  { --x: 15; --s: 14px; --t: 15s; --d: -4s; }
.theme-fx i:nth-child(4)  { --x: 22; --s: 7px;  --t: 11s; --d: -9s; }
.theme-fx i:nth-child(5)  { --x: 28; --s: 22px; --t: 17s; --d: -1s; }
.theme-fx i:nth-child(6)  { --x: 35; --s: 5px;  --t: 9s;  --d: -5s; }
.theme-fx i:nth-child(7)  { --x: 41; --s: 12px; --t: 13s; --d: -11s; }
.theme-fx i:nth-child(8)  { --x: 48; --s: 8px;  --t: 16s; --d: -3s; }
.theme-fx i:nth-child(9)  { --x: 54; --s: 16px; --t: 12s; --d: -8s; }
.theme-fx i:nth-child(10) { --x: 61; --s: 6px;  --t: 13s; --d: -6s; }
.theme-fx i:nth-child(11) { --x: 67; --s: 20px; --t: 16s; --d: -12s; }
.theme-fx i:nth-child(12) { --x: 73; --s: 7px;  --t: 15s; --d: -2s; }
.theme-fx i:nth-child(13) { --x: 80; --s: 13px; --t: 12s; --d: -10s; }
.theme-fx i:nth-child(14) { --x: 86; --s: 6px;  --t: 14s; --d: -4s; }
.theme-fx i:nth-child(15) { --x: 92; --s: 17px; --t: 15s; --d: -7s; }
.theme-fx i:nth-child(16) { --x: 97; --s: 8px;  --t: 13s; --d: -1s; }

/* Home hero: a winter sky, Santa's sleigh crossing it, and snowy hills with Christmas trees
   along the bottom, behind the text and the shoe. */
html[data-theme="christmas"] .hero-viewport {
    isolation: isolate;
    overflow-x: clip;
    background:
        radial-gradient(60% 70% at 72% 45%, rgba(200, 16, 46, 0.07) 0%, transparent 70%),
        radial-gradient(40% 50% at 90% 85%, rgba(11, 110, 79, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #EEF5FB 0%, #FFFFFF 70%);
}
html[data-theme="christmas"] .hero-viewport::before {
    content: '';
    position: absolute; z-index: 1;
    top: 7%; left: 0;
    width: 320px; height: 94px;
    background: var(--xm-sleigh) center / contain no-repeat;
    opacity: 0.9;
    pointer-events: none;
    transform: translateX(-340px);
    animation: xm-sleigh 26s linear infinite;
    animation-delay: 3s;
}
html[data-theme="christmas"] .hero-viewport::after {
    content: '';
    position: absolute; z-index: 1;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    pointer-events: none;
    background:
        var(--xm-tree) left 0.4% bottom 30px / 40px 58px no-repeat,
        var(--xm-tree) right 3% bottom 30px / 52px 74px no-repeat,
        var(--xm-tree) right 8% bottom 38px / 32px 46px no-repeat,
        var(--xm-hills) bottom / 100% 120px no-repeat;
}

/* Offer section: green gift wrap with a gold ribbon, a red and green glow, and snow lying
   along its top edge. */
html[data-theme="christmas"] .offer-stage {
    --wrap-1: #1E9B6C; --wrap-2: #0B6E4F; --wrap-3: #064632;
    background:
        radial-gradient(55% 75% at 80% 45%, rgba(200, 16, 46, 0.45) 0%, rgba(200, 16, 46, 0) 62%),
        radial-gradient(45% 65% at 0% 100%, rgba(11, 110, 79, 0.35) 0%, rgba(11, 110, 79, 0) 70%),
        linear-gradient(140deg, #0B1030 0%, #14254A 52%, #2A0B16 100%);
}
html[data-theme="christmas"] .offer-stage::before {
    content: '';
    position: absolute; z-index: 3;
    left: 0; right: 0; top: 0;
    height: 18px;
    pointer-events: none;
    background:
        radial-gradient(circle at 16px 0, #FFFFFF 0 15px, transparent 16px) 0 0 / 40px 18px,
        radial-gradient(circle at 36px 0, #EEF5FB 0 10px, transparent 11px) 0 0 / 40px 18px;
}
html[data-theme="christmas"] .offer-cta { background: linear-gradient(180deg, #E5293F 0%, #C8102E 60%, #9E0B22 100%); box-shadow: 0 6px 0 #6E0717, 0 18px 30px -8px rgba(200, 16, 46, 0.6); }
html[data-theme="christmas"] .seal-core { background: radial-gradient(circle at 35% 30%, #2FBF71, #0B6E4F 60%, #064632); }
html[data-theme="christmas"] .offer-heading span { background: linear-gradient(180deg, #FFE7A3 0%, #F0C05A 55%, #FF5A6E 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="christmas"] .offer-sparks i:nth-child(8) { background: #2FBF71; }

/* Above the footer: a row of snowy Christmas trees standing on a snow edge over the dark
   trust strip. */
html[data-theme="christmas"] .skechers-trust-strip { position: relative; }
html[data-theme="christmas"] .skechers-trust-strip::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: 16px;
    pointer-events: none;
    background:
        radial-gradient(circle at 14px 0, #FFFFFF 0 13px, transparent 14px) 0 0 / 36px 16px,
        radial-gradient(circle at 32px 0, #F1F6FA 0 9px, transparent 10px) 0 0 / 36px 16px;
}
html[data-theme="christmas"] .skechers-trust-strip::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 100%;
    height: 56px;
    pointer-events: none;
    background:
        var(--xm-tree) left 3% bottom 0 / 34px 50px no-repeat,
        var(--xm-tree) left 6% bottom 0 / 24px 36px no-repeat,
        var(--xm-tree) right 4% bottom 0 / 38px 54px no-repeat,
        var(--xm-tree) right 7.5% bottom 0 / 26px 38px no-repeat,
        var(--xm-tree) right 10% bottom 0 / 20px 30px no-repeat;
}

@keyframes xm-snow {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%  { transform: translate3d(22px, 55vh, 0) rotate(180deg); }
    100% { transform: translate3d(-8px, 112vh, 0) rotate(360deg); }
}
@keyframes xm-twinkle { from { filter: drop-shadow(0 0 2px rgba(255, 220, 120, 0.4)) brightness(0.8); } to { filter: drop-shadow(0 0 6px rgba(255, 220, 120, 0.9)) brightness(1.15); } }
@keyframes xm-swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes xm-sleigh {
    0%   { transform: translate(-340px, 20px) rotate(-4deg); }
    50%  { transform: translate(50vw, -6px) rotate(-2deg); }
    70%, 100% { transform: translate(calc(100vw + 40px), 10px) rotate(-5deg); }
}

@media (max-width: 768px) {
    .theme-greeting { font-size: 0.74rem; padding: 9px 10px; }
    .theme-greeting span { gap: 8px; }
    .theme-greeting span::before, .theme-greeting span::after { width: 15px; height: 22px; }
    html[data-theme="christmas"] .brand-link::after { width: 26px; height: 23px; right: -7px; top: -10px; }
    .theme-hang i:nth-child(2), .theme-hang i:nth-child(3), .theme-hang i:nth-child(5), .theme-hang i:nth-child(6) { display: none; }
    .theme-hang i { --b: 15px; }
    .theme-hang i:nth-child(1) { --len: 22px; }
    .theme-hang i:nth-child(4) { --len: 30px; }
    .theme-fx i:nth-child(4n+2), .theme-fx i:nth-child(4n+3) { display: none; }
    html[data-theme="christmas"] .hero-viewport::before { width: 150px; height: 45px; top: 3%; }
    html[data-theme="christmas"] .hero-viewport::after { height: 80px; background:
        var(--xm-tree) left 2% bottom 22px / 30px 44px no-repeat,
        var(--xm-tree) right 3% bottom 20px / 34px 48px no-repeat,
        var(--xm-tree) right 13% bottom 26px / 22px 32px no-repeat,
        var(--xm-hills) bottom / 100% 80px no-repeat; }
    html[data-theme="christmas"] .skechers-trust-strip::after { height: 40px; background:
        var(--xm-tree) left 4% bottom 0 / 24px 36px no-repeat,
        var(--xm-tree) right 5% bottom 0 / 28px 40px no-repeat,
        var(--xm-tree) right 14% bottom 0 / 18px 26px no-repeat; }
}
@media (prefers-reduced-motion: reduce) {
    .theme-fx { display: none; }
    html[data-theme="christmas"] .site-header::after,
    .theme-hang i { animation: none; }
    html[data-theme="christmas"] .hero-viewport::before { animation: none; transform: none; left: auto; right: 6%; }
}
