/* ==========================================================================
   Themes — ten coordinated palettes on one design system.
   Each palette defines the same roles:
     bases        --bg --bg-2 --surface --surface-2 --surface-3
     accents      --accent --accent-2 --accent-3 (+ --on-accent, --price)
     text         --text --text-2 --text-3
     borders      --line --line-strong --line-hi
     particles    --fx-a --fx-b --fx-c
   [data-palette] lets the admin Appearance previews render any palette.
   .welcome (the home hero, text over a dark photograph) always uses the dark
   palette, also in light mode.
   ========================================================================== */
:root,[data-palette="default"],.welcome{
  --bg:#070910;--bg-2:#0c0f1d;--surface:#11152a;--surface-2:#171c34;--surface-3:#1f2544;
  --accent:#7b5cff;--accent-2:#3f7dff;--accent-3:#2ccdf0;--on-accent:#ffffff;--price:#f2c46b;
  --text:#eef0f9;--text-2:#aab1c6;--text-3:#79819a;
  --line:rgb(150 160 215 / .14);--line-strong:rgb(150 160 215 / .26);--line-hi:rgb(123 92 255 / .6);
  --fx-a:#9a86ff;--fx-b:#4fc9ff;--fx-c:#5d86ff;
}
html[data-theme="spring"],[data-palette="spring"],html[data-theme="spring"] .welcome{
  --bg:#06110c;--bg-2:#0a1912;--surface:#0f2119;--surface-2:#152c22;--surface-3:#1c392c;
  --accent:#62c983;--accent-2:#6fd1bd;--accent-3:#c79ad8;--on-accent:#04150b;--price:#e6d48e;
  --text:#edf7f0;--text-2:#afcbbb;--text-3:#7e9d8d;
  --line:rgb(150 210 175 / .14);--line-strong:rgb(150 210 175 / .26);--line-hi:rgb(98 201 131 / .6);
  --fx-a:#d9b3de;--fx-b:#8fd9a8;--fx-c:#e8e0b4;
}
html[data-theme="summer"],[data-palette="summer"],html[data-theme="summer"] .welcome{
  --bg:#030d24;--bg-2:#061533;--surface:#0a1f47;--surface-2:#0f2956;--surface-3:#153366;
  --accent:#f2b544;--accent-2:#3f9dff;--accent-3:#ff8f66;--on-accent:#1c1204;--price:#ffd27a;
  --text:#eef4ff;--text-2:#a9bfe3;--text-3:#7a91ba;
  --line:rgb(120 165 255 / .16);--line-strong:rgb(120 165 255 / .28);--line-hi:rgb(242 181 68 / .6);
  --fx-a:#f4c86c;--fx-b:#7be0ea;--fx-c:#ffffff;
}
html[data-theme="autumn"],[data-palette="autumn"],html[data-theme="autumn"] .welcome{
  --bg:#0f0b09;--bg-2:#17120e;--surface:#201812;--surface-2:#2a2018;--surface-3:#35291e;
  --accent:#cf7a46;--accent-2:#b24e30;--accent-3:#d8ae5f;--on-accent:#1a0d05;--price:#e4b866;
  --text:#f6efe8;--text-2:#cab8a6;--text-3:#998776;
  --line:rgb(215 170 130 / .14);--line-strong:rgb(215 170 130 / .26);--line-hi:rgb(207 122 70 / .6);
  --fx-a:#d2733b;--fx-b:#bf964c;--fx-c:#9c4a2c;
}
html[data-theme="winter"],[data-palette="winter"],html[data-theme="winter"] .welcome{
  --bg:#060b15;--bg-2:#0a1221;--surface:#0f192b;--surface-2:#152239;--surface-3:#1c2c47;
  --accent:#6aafff;--accent-2:#4fdbee;--accent-3:#c2cddc;--on-accent:#04101f;--price:#8fe6f2;
  --text:#f0f5fc;--text-2:#afbfd2;--text-3:#7d8ea5;
  --line:rgb(160 190 230 / .14);--line-strong:rgb(160 190 230 / .26);--line-hi:rgb(106 175 255 / .6);
  --fx-a:#eaf5ff;--fx-b:#a8d5ff;--fx-c:#c6d4e6;
}
html[data-theme="christmas"],[data-palette="christmas"],html[data-theme="christmas"] .welcome{
  --bg:#06100b;--bg-2:#0b1711;--surface:#111f18;--surface-2:#172a21;--surface-3:#1e362b;
  --accent:#c23a47;--accent-2:#d7aa58;--accent-3:#3f9b6b;--on-accent:#ffffff;--price:#e6be6a;
  --text:#f6f3ec;--text-2:#c1c9bd;--text-3:#8c998e;
  --line:rgb(190 205 185 / .13);--line-strong:rgb(190 205 185 / .24);--line-hi:rgb(215 170 88 / .6);
  --fx-a:#fff6e8;--fx-b:#f0c46a;--fx-c:#e0606b;
}
html[data-theme="halloween"],[data-palette="halloween"],html[data-theme="halloween"] .welcome{
  --bg:#090708;--bg-2:#110d11;--surface:#181219;--surface-2:#211923;--surface-3:#2a202d;
  --accent:#df7428;--accent-2:#8656c2;--accent-3:#8cbc58;--on-accent:#1a0a02;--price:#f0a354;
  --text:#f5efe9;--text-2:#c2b5bf;--text-3:#8e818f;
  --line:rgb(200 170 200 / .13);--line-strong:rgb(200 170 200 / .24);--line-hi:rgb(223 116 40 / .6);
  --fx-a:#f08a36;--fx-b:#9c78c8;--fx-c:#9ecd69;
}
html[data-theme="black_friday"],[data-palette="black_friday"],html[data-theme="black_friday"] .welcome{
  --bg:#050505;--bg-2:#0a0a0b;--surface:#111112;--surface-2:#18181a;--surface-3:#212124;
  --accent:#dcdfe4;--accent-2:#8e98a4;--accent-3:#e0374a;--on-accent:#0b0b0c;--price:#ff4a5c;
  --text:#f4f4f5;--text-2:#afb2b8;--text-3:#7a7d84;
  --line:rgb(210 212 220 / .12);--line-strong:rgb(210 212 220 / .22);--line-hi:rgb(220 223 228 / .5);
  --fx-a:#e8eaee;--fx-b:#9aa3ae;--fx-c:#e0374a;
}
html[data-theme="easter"],[data-palette="easter"],html[data-theme="easter"] .welcome{
  --bg:#06111a;--bg-2:#0a1a24;--surface:#0e2330;--surface-2:#142d3d;--surface-3:#1a384a;
  --accent:#5aa6ef;--accent-2:#62cf92;--accent-3:#f1cc5e;--on-accent:#04121f;--price:#f3d06a;
  --text:#eef6fa;--text-2:#abc3cf;--text-3:#7a95a3;
  --line:rgb(140 195 220 / .14);--line-strong:rgb(140 195 220 / .26);--line-hi:rgb(90 166 239 / .6);
  --fx-a:#f1cc5e;--fx-b:#7fd8a4;--fx-c:#8ec1f4;
}
html[data-theme="valentine_trifon"],[data-palette="valentine_trifon"],html[data-theme="valentine_trifon"] .welcome{
  --bg:#100609;--bg-2:#180b10;--surface:#211018;--surface-2:#2b1520;--surface-3:#361b2a;
  --accent:#b8436a;--accent-2:#7a4ea6;--accent-3:#d5ad69;--on-accent:#ffffff;--price:#e2b979;
  --text:#f8eef1;--text-2:#cfb5bf;--text-3:#9b808e;
  --line:rgb(220 170 190 / .13);--line-strong:rgb(220 170 190 / .24);--line-hi:rgb(184 67 106 / .6);
  --fx-a:#c9607f;--fx-b:#d9b474;--fx-c:#9a74b4;
}

/* Roles derived from each palette (declared where palettes apply). */
:root,[data-palette],.welcome{
  --glow-a:color-mix(in srgb,var(--accent) 16%,transparent);
  --glow-b:color-mix(in srgb,var(--accent-2) 11%,transparent);
  --accent-soft:color-mix(in srgb,var(--accent) 14%,transparent);
  --accent-hover:color-mix(in srgb,var(--accent) 86%,#fff);
  --grad-accent:linear-gradient(110deg,var(--accent),color-mix(in srgb,var(--accent) 55%,var(--accent-2)));
  --grad-tri:linear-gradient(95deg,var(--accent) 0%,var(--accent-2) 55%,var(--accent-3) 100%);
  --header-bg:color-mix(in srgb,var(--bg) 82%,transparent);
  --success:#46d39a;--warning:#f2b84b;--danger:#ff5c70;
}
/* Summer: keep the sun-gold button warm (gold mixed with the ocean blue would turn grey). */
html[data-theme="summer"],[data-palette="summer"],html[data-theme="summer"] .welcome{--grad-accent:linear-gradient(110deg,#f2b544,#ffc978)}
/* Black Friday's primary is metallic: keep its button flat and luxurious. */
html[data-theme="black_friday"],[data-palette="black_friday"],html[data-theme="black_friday"] .welcome{--grad-accent:linear-gradient(180deg,#eceef2,#c3c8cf);--glow-a:rgb(255 255 255 / .05);--glow-b:rgb(224 55 74 / .06)}

/* Theme atmosphere on the hero: one restrained, theme-specific texture. */
html[data-theme="summer"] .welcome::after{background:repeating-radial-gradient(ellipse at 15% 140%,transparent 0 60px,color-mix(in srgb,var(--accent-2) 7%,transparent) 61px 62px,transparent 63px 110px)}
html[data-theme="black_friday"] .welcome::after{background:linear-gradient(115deg,transparent 40%,rgb(255 255 255 / .05) 40.15%,transparent 40.4% 70%,rgb(224 55 74 / .09) 70.2%,transparent 70.6%)}
html[data-theme="valentine_trifon"] .welcome::after{background:repeating-radial-gradient(ellipse at 0 150%,transparent 0 96px,color-mix(in srgb,var(--accent-3) 9%,transparent) 97px 98px,transparent 99px 150px)}
html[data-theme="winter"] .welcome::after{background:linear-gradient(180deg,rgb(200 225 255 / .05),transparent 40%)}
html[data-theme="autumn"] .welcome::after{background:radial-gradient(600px 300px at 80% 20%,color-mix(in srgb,var(--accent-3) 10%,transparent),transparent 70%)}

/* ==========================================================================
   Global theme effect layer — ONE fixed layer per page (mounted by layout.php).
   Every theme uses the same system: 16 particles (8 tablet, 4 mobile), the
   same slow falling drift, the same timing presets, the same opacity and one
   shared size scale. Only the motif shapes and colours change per theme.
   ========================================================================== */
.theme-effects{position:fixed;inset:0;z-index:1;overflow:hidden;pointer-events:none;contain:strict;--fall-distance:106vh;--particle-opacity:.42}
@media(prefers-reduced-motion:reduce){.theme-effects{display:none}}

.theme-particle{--w:calc(var(--size) + 18px);--h:var(--w);--turn:160deg;--drift:45px;
  position:absolute;top:-44px;left:var(--x);width:var(--w);height:var(--h);opacity:0;color:var(--accent-3);
  will-change:transform,opacity;animation:season-fall var(--duration) var(--delay) linear infinite}
.theme-particle svg{display:block;width:100%;height:100%;fill:currentColor;overflow:visible}
.theme-particle .motif-vein{fill:none;stroke:var(--bg);stroke-width:1;opacity:.55}
.theme-particle:nth-child(even){--drift:-55px;--turn:-120deg}

/* Shared timing/position presets (identical for every theme) */
.theme-particle:nth-child(1){--x:37%;--size:3px;--duration:31s;--delay:-13s}
.theme-particle:nth-child(2){--x:74%;--size:4px;--duration:38s;--delay:-26s}
.theme-particle:nth-child(3){--x:13%;--size:5px;--duration:45s;--delay:-39s}
.theme-particle:nth-child(4){--x:50%;--size:2px;--duration:29s;--delay:-12s}
.theme-particle:nth-child(5){--x:87%;--size:3px;--duration:36s;--delay:-25s}
.theme-particle:nth-child(6){--x:26%;--size:4px;--duration:43s;--delay:-38s}
.theme-particle:nth-child(7){--x:63%;--size:5px;--duration:27s;--delay:-11s}
.theme-particle:nth-child(8){--x:2%;--size:2px;--duration:34s;--delay:-24s}
.theme-particle:nth-child(9){--x:39%;--size:3px;--duration:41s;--delay:-37s}
.theme-particle:nth-child(10){--x:76%;--size:4px;--duration:25s;--delay:-10s}
.theme-particle:nth-child(11){--x:15%;--size:5px;--duration:32s;--delay:-23s}
.theme-particle:nth-child(12){--x:52%;--size:2px;--duration:39s;--delay:-36s}
.theme-particle:nth-child(13){--x:89%;--size:3px;--duration:46s;--delay:-9s}
.theme-particle:nth-child(14){--x:28%;--size:4px;--duration:30s;--delay:-22s}
.theme-particle:nth-child(15){--x:65%;--size:5px;--duration:37s;--delay:-35s}
.theme-particle:nth-child(16){--x:4%;--size:2px;--duration:44s;--delay:-8s}
@media(max-width:1000px){.theme-particle:nth-child(n+9){display:none}}
@media(max-width:600px){.theme-particle:nth-child(n+5){display:none}}

/* Shared size scale: signature motifs slightly larger, companions standard,
   glow motifs are small luminous points. Proportions only, same motion. */
.theme-particle.datachip,.theme-particle.petal,.theme-particle.sun,.theme-particle.maple,.theme-particle.snowflake,
.theme-particle.pumpkin,.theme-particle.sale_tag,.theme-particle.egg,.theme-particle.heart{--w:calc(var(--size) + 22px)}
.theme-particle.energy{--w:calc(var(--size) + 26px);--h:calc(var(--size) + 14px)}
.theme-particle.wave{--h:calc(var(--w) * .85)}
.theme-particle.icicle{--h:calc(var(--w) * 1.35)}
.theme-particle.egg{--h:calc(var(--w) * 1.18)}
.theme-particle.festive_bulb{--h:calc(var(--w) * 1.15)}
.theme-particle.wineglass{--h:calc(var(--w) * 1.2)}
.theme-particle.bat{--h:calc(var(--w) * .78)}
.theme-particle.pollen,.theme-particle.ember,html[data-theme="easter"] .theme-particle.petal,html[data-theme="easter"] .theme-particle.blossom{
  --w:calc(var(--size) + 5px);border-radius:50%;background:currentColor;box-shadow:0 0 10px 2px color-mix(in srgb,currentColor 55%,transparent)}
html[data-theme="easter"] .theme-particle.petal svg,html[data-theme="easter"] .theme-particle.blossom svg{display:none}
.theme-particle.bat svg{animation:wing-tilt 2.8s ease-in-out infinite alternate;transform-origin:center}

/* Motif colours (original theme identities) */
html[data-theme="default"] .theme-particle{color:#8a6cff;filter:drop-shadow(0 0 4px currentColor)}
html[data-theme="default"] .theme-particle:nth-child(4n+2){color:#4e82ff}
html[data-theme="default"] .theme-particle:nth-child(4n+3){color:#56d4ff}
html[data-theme="default"] .theme-particle:nth-child(4n){color:#b19cff}
html[data-theme="default"] .theme-particle.energy{color:#4e82ff}

html[data-theme="spring"] .theme-particle.petal{color:#c6ebbf;--turn:240deg;--drift:75px}
html[data-theme="spring"] .theme-particle.blossom{color:#9fddcc;--turn:210deg}
html[data-theme="spring"] .theme-particle.pollen{color:#daecc6}

html[data-theme="summer"] .theme-particle.sun{color:#eac775;--turn:100deg}
html[data-theme="summer"] .theme-particle.wave{color:#93ddd8;--turn:-25deg}
html[data-theme="summer"] .sun-rays,html[data-theme="summer"] .wave-lines{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

html[data-theme="autumn"] .theme-particle.maple{color:#cc7938;--turn:320deg}
html[data-theme="autumn"] .theme-particle.leaf{color:#b49043;--turn:-260deg}

.theme-particle.snowflake svg{fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="winter"] .theme-particle.snowflake{color:#dff5ff;--turn:65deg}
html[data-theme="winter"] .theme-particle.icicle{color:#a8cfff;--turn:25deg}
html[data-theme="winter"] .icicle .ice-shine{fill:none;stroke:#effaff;stroke-width:1;stroke-linecap:round;opacity:.7}

html[data-theme="christmas"] .theme-particle.snowflake{color:#fff8ec;--turn:25deg}
html[data-theme="christmas"] .theme-particle.festive_bulb{color:#e9bf60;--turn:35deg;filter:drop-shadow(0 0 2px currentColor)}
html[data-theme="christmas"] .theme-particle.festive_bulb:nth-child(4n){color:#e57c79}
html[data-theme="christmas"] .festive_bulb .bulb-cap{fill:#c3c8bc}
html[data-theme="christmas"] .festive_bulb .bulb-shine{fill:none;stroke:#fff8ec;stroke-width:1.6;stroke-linecap:round;opacity:.8}
html[data-theme="christmas"] .festive_bulb .ornament-loop{fill:none;stroke:#c3c8bc;stroke-width:1.5}
html[data-theme="christmas"] .festive_bulb .ornament-band{fill:none;stroke:var(--bg);stroke-width:1.2;opacity:.65}

html[data-theme="halloween"] .theme-particle.pumpkin{color:#ea772d;--turn:30deg}
html[data-theme="halloween"] .theme-particle.pumpkin .pumpkin-face{fill:var(--bg)}
html[data-theme="halloween"] .theme-particle.bat{color:#aa87c8;--turn:20deg}
html[data-theme="halloween"] .theme-particle.ember{color:#f08a36}

html[data-theme="black_friday"] .theme-particle.sale_tag{color:var(--accent-3);--turn:100deg;filter:drop-shadow(0 0 3px #d1a54b33)}
html[data-theme="black_friday"] .theme-particle.sale_tag:nth-child(4n+3){color:var(--accent)}
html[data-theme="black_friday"] .theme-particle.sale_tag .sale-cutout{fill:var(--bg)}
html[data-theme="black_friday"] .theme-particle.sale_tag .sale-mark{fill:none;stroke:var(--bg);stroke-width:1.6;stroke-linecap:round}
html[data-theme="black_friday"] .theme-particle.metal_shard{color:var(--accent);--turn:-150deg}
html[data-theme="black_friday"] .theme-particle.metal_shard:nth-child(4n){color:var(--accent-2)}

html[data-theme="easter"] .theme-particle.egg{color:#84c9bc;--turn:25deg}
html[data-theme="easter"] .theme-particle.egg:nth-child(4n){color:#d6c17c}
html[data-theme="easter"] .theme-particle.egg .motif-vein{stroke:#143b40;opacity:.7;stroke-width:1.5}
html[data-theme="easter"] .theme-particle.petal{color:#8bc9bb}
html[data-theme="easter"] .theme-particle.blossom{color:#dbc87e}

html[data-theme="valentine_trifon"] .theme-particle.wineglass{color:#d3b47c;--turn:24deg}
html[data-theme="valentine_trifon"] .theme-particle.wineglass svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="valentine_trifon"] .theme-particle.wineglass .wine-fill{fill:#bc637e;stroke:none}
html[data-theme="valentine_trifon"] .theme-particle.heart{color:#c96a82;--turn:40deg}
html[data-theme="valentine_trifon"] .theme-particle.vine{color:#859462;--turn:-180deg}

@keyframes season-fall{
  0%{transform:translate3d(0,-20px,0) rotate(0);opacity:0}
  12%{opacity:var(--particle-opacity)}
  50%{transform:translate3d(var(--drift),calc(var(--fall-distance) * .5),0) rotate(calc(var(--turn) * .4))}
  85%{opacity:var(--particle-opacity)}
  100%{transform:translate3d(0,var(--fall-distance),0) rotate(var(--turn));opacity:0}}
@keyframes wing-tilt{from{transform:scaleY(.72)}to{transform:scaleY(1)}}

/* ==========================================================================
   Admin → Appearance previews
   ========================================================================== */
.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:var(--gap-m);margin-top:var(--gap-m)}
.theme-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r-m);overflow:hidden;background:var(--surface)}
.theme-card.is-active{border-color:var(--line-hi);box-shadow:0 0 0 1px var(--line-hi)}
.theme-card-copy{display:flex;flex-direction:column;flex:1;padding:18px 20px 20px}
.theme-card h2{font-size:17px;margin:0 0 6px}
.theme-card p{font-size:var(--fs-meta);margin:0 0 16px}
.theme-card form{margin-top:auto}
.theme-card button{width:100%}
.theme-card button:disabled{cursor:default;opacity:.75}
.theme-preview{position:relative;height:132px;overflow:hidden;background:radial-gradient(260px 140px at 85% 0,var(--glow-a),transparent 70%),linear-gradient(180deg,var(--bg),var(--bg-2));border-bottom:1px solid var(--line)}
.theme-preview-orbit{position:absolute;width:150px;height:150px;right:-40px;top:-80px;border:1px solid var(--accent-2);border-radius:50%;opacity:.35}
.theme-preview-panel{position:absolute;left:20px;top:22px;right:70px;height:64px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--r-s);background:var(--surface-2)}
.theme-preview-panel i{display:block;height:4px;width:70%;margin:6px 0;border-radius:2px;background:var(--text-3)}
.theme-preview-panel i:first-child{width:40%;background:var(--grad-tri)}
.theme-swatches{position:absolute;left:20px;bottom:14px;display:flex;gap:6px}
.theme-swatches i{width:16px;height:16px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px rgb(255 255 255 / .12)}
.theme-swatches i:nth-child(2){background:var(--accent-2)}
.theme-swatches i:nth-child(3){background:var(--accent-3)}

/* Seasonal harmony for the shared hero artwork: a restrained hue tint so the
   image belongs to the active palette (Default keeps the original artwork). */
.welcome-image::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,var(--accent-2),var(--accent));mix-blend-mode:color;opacity:.38}
html[data-theme="default"] .welcome-image::after{content:none}
html[data-theme="black_friday"] .welcome-image::after{background:#8e98a4;opacity:.7}

/* ==========================================================================
   LIGHT MODE — a light variant of every palette (same roles, same accents'
   hues, same effects). Active when <html data-mode="light">: set by the
   server from the visitor's choice, otherwise by theme-mode.js from the
   device setting. Without data-mode="light" nothing below applies, so the
   dark themes above are untouched.
   Accent, link and price colours are deepened so they stay readable on a
   light background.
   ========================================================================== */
html[data-mode="light"]{color-scheme:light}
/* The home hero keeps the dark palette (see the top of this file): light text over the photograph. */
html[data-mode="light"] .welcome{color:var(--text)}
html[data-mode="light"],html[data-mode="light"] [data-palette="default"]{
  --bg:#f3f4fb;--bg-2:#e9ebf7;--surface:#ffffff;--surface-2:#f1f2fa;--surface-3:#e3e6f4;
  --accent:#6a48f2;--accent-2:#2f66e8;--accent-3:#097293;--on-accent:#ffffff;--price:#9c6300;
  --text:#151a2e;--text-2:#4a5170;--text-3:#5c637d;
  --line:rgb(40 50 110 / .13);--line-strong:rgb(40 50 110 / .24);--line-hi:rgb(106 72 242 / .6);
  --fx-a:#7b5cff;--fx-b:#2f9ad6;--fx-c:#4a6fe8;
}
html[data-mode="light"][data-theme="spring"],html[data-mode="light"] [data-palette="spring"]{
  --bg:#f1f8f3;--bg-2:#e4f1e8;--surface:#ffffff;--surface-2:#eef6f0;--surface-3:#dcebe1;
  --accent:#1f8246;--accent-2:#17897a;--accent-3:#8b4ca3;--on-accent:#ffffff;--price:#806500;
  --text:#12261a;--text-2:#456052;--text-3:#566c60;
  --line:rgb(30 90 55 / .13);--line-strong:rgb(30 90 55 / .24);--line-hi:rgb(31 130 70 / .6);
  --fx-a:#c07fd0;--fx-b:#4fb877;--fx-c:#c9b84f;
}
html[data-mode="light"][data-theme="summer"],html[data-mode="light"] [data-palette="summer"]{
  --bg:#f2f6fd;--bg-2:#e3ecfb;--surface:#ffffff;--surface-2:#edf3fd;--surface-3:#d9e5f8;
  --accent:#d99a1c;--accent-2:#1f73e0;--accent-3:#b5471f;--on-accent:#1c1204;--price:#9c5e09;
  --text:#0c1a3a;--text-2:#3f547d;--text-3:#536484;
  --line:rgb(20 60 140 / .13);--line-strong:rgb(20 60 140 / .24);--line-hi:rgb(217 154 28 / .6);
  --fx-a:#e0a52a;--fx-b:#2bb7c4;--fx-c:#5b9cf0;
}
html[data-mode="light"][data-theme="autumn"],html[data-mode="light"] [data-palette="autumn"]{
  --bg:#faf5f0;--bg-2:#f3e9df;--surface:#ffffff;--surface-2:#f8f1ea;--surface-3:#efe1d3;
  --accent:#b25a26;--accent-2:#a03f22;--accent-3:#855b0e;--on-accent:#ffffff;--price:#8c5e0b;
  --text:#2a1a0f;--text-2:#6a5443;--text-3:#776353;
  --line:rgb(110 60 20 / .13);--line-strong:rgb(110 60 20 / .24);--line-hi:rgb(178 90 38 / .6);
  --fx-a:#d2733b;--fx-b:#bf964c;--fx-c:#9c4a2c;
}
html[data-mode="light"][data-theme="winter"],html[data-mode="light"] [data-palette="winter"]{
  --bg:#f2f6fb;--bg-2:#e4edf7;--surface:#ffffff;--surface-2:#eef3fa;--surface-3:#dbe6f3;
  --accent:#2a76d6;--accent-2:#0b8497;--accent-3:#495b72;--on-accent:#ffffff;--price:#0a7689;
  --text:#0d1a2c;--text-2:#435671;--text-3:#55657b;
  --line:rgb(30 70 130 / .13);--line-strong:rgb(30 70 130 / .24);--line-hi:rgb(42 118 214 / .6);
  --fx-a:#7fb6ee;--fx-b:#5aa3e6;--fx-c:#9db4d0;
}
html[data-mode="light"][data-theme="christmas"],html[data-mode="light"] [data-palette="christmas"]{
  --bg:#f5f8f3;--bg-2:#e9f0e6;--surface:#ffffff;--surface-2:#f1f5ee;--surface-3:#e0e9dc;
  --accent:#b82f3d;--accent-2:#a57a1e;--accent-3:#27704a;--on-accent:#ffffff;--price:#8c680e;
  --text:#14241a;--text-2:#4b5d50;--text-3:#5c6b5f;
  --line:rgb(40 80 50 / .13);--line-strong:rgb(40 80 50 / .24);--line-hi:rgb(165 122 30 / .6);
  --fx-a:#a9bfd6;--fx-b:#d9a93f;--fx-c:#d0505c;
}
html[data-mode="light"][data-theme="halloween"],html[data-mode="light"] [data-palette="halloween"]{
  --bg:#f8f4f1;--bg-2:#efe7e9;--surface:#ffffff;--surface-2:#f6f0f2;--surface-3:#e9dfe5;
  --accent:#b9540c;--accent-2:#7443b3;--accent-3:#47721c;--on-accent:#ffffff;--price:#9c530b;
  --text:#231726;--text-2:#5d4f5f;--text-3:#6c5f6e;
  --line:rgb(80 40 90 / .13);--line-strong:rgb(80 40 90 / .24);--line-hi:rgb(185 84 12 / .6);
  --fx-a:#e0701f;--fx-b:#8b62c0;--fx-c:#6fa13a;
}
html[data-mode="light"][data-theme="black_friday"],html[data-mode="light"] [data-palette="black_friday"]{
  --bg:#f4f4f5;--bg-2:#e9e9eb;--surface:#ffffff;--surface-2:#f1f1f3;--surface-3:#e2e2e6;
  --accent:#18181b;--accent-2:#5d6672;--accent-3:#b41b2e;--on-accent:#ffffff;--price:#ba1c2f;
  --text:#0c0c0d;--text-2:#4a4c52;--text-3:#5e6067;
  --line:rgb(20 20 30 / .13);--line-strong:rgb(20 20 30 / .24);--line-hi:rgb(24 24 27 / .6);
  --fx-a:#3a3d44;--fx-b:#7c8591;--fx-c:#d02a3e;
}
html[data-mode="light"][data-theme="easter"],html[data-mode="light"] [data-palette="easter"]{
  --bg:#f1f8fb;--bg-2:#e2f0f6;--surface:#ffffff;--surface-2:#ecf5f9;--surface-3:#d8e9f1;
  --accent:#2b78cc;--accent-2:#1a8750;--accent-3:#816500;--on-accent:#ffffff;--price:#856800;
  --text:#0c2030;--text-2:#40596a;--text-3:#526775;
  --line:rgb(20 80 110 / .13);--line-strong:rgb(20 80 110 / .24);--line-hi:rgb(43 120 204 / .6);
  --fx-a:#d9b23a;--fx-b:#4fbf82;--fx-c:#5a9fe6;
}
html[data-mode="light"][data-theme="valentine_trifon"],html[data-mode="light"] [data-palette="valentine_trifon"]{
  --bg:#fbf3f5;--bg-2:#f5e6ea;--surface:#ffffff;--surface-2:#f9eff2;--surface-3:#f0dfe5;
  --accent:#b0375f;--accent-2:#6f3f9e;--accent-3:#88651c;--on-accent:#ffffff;--price:#8c620e;
  --text:#2a0f1a;--text-2:#6a4a57;--text-3:#775b66;
  --line:rgb(120 30 60 / .13);--line-strong:rgb(120 30 60 / .24);--line-hi:rgb(176 55 95 / .6);
  --fx-a:#c9607f;--fx-b:#c79a45;--fx-c:#8a64a8;
}
/* Derived roles and depth for light surfaces. */
html[data-mode="light"],html[data-mode="light"] [data-palette]{
  --glow-a:color-mix(in srgb,var(--accent) 9%,transparent);
  --glow-b:color-mix(in srgb,var(--accent-2) 7%,transparent);
  --accent-soft:color-mix(in srgb,var(--accent) 11%,transparent);
  --accent-hover:color-mix(in srgb,var(--accent) 88%,#000);
  --success:#12764e;--warning:#8f5b00;--danger:#c4263f;
  --shadow-1:0 1px 0 rgb(255 255 255 / .6) inset,0 10px 30px -18px rgb(30 35 70 / .28);
  --shadow-2:0 24px 60px -30px rgb(30 35 70 / .38);
}
html[data-mode="light"][data-theme="summer"],html[data-mode="light"] [data-palette="summer"]{--grad-accent:linear-gradient(110deg,#eaa92c,#f6c462)}
html[data-mode="light"][data-theme="black_friday"],html[data-mode="light"] [data-palette="black_friday"]{--grad-accent:linear-gradient(180deg,#2c2c31,#111113);--glow-a:rgb(0 0 0 / .04);--glow-b:rgb(200 30 51 / .05)}

/* Effects: same motifs and motion; tones deep enough to be seen on a light page. */
html[data-mode="light"] .theme-effects{--particle-opacity:.5}
html[data-mode="light"][data-theme="default"] .theme-particle{color:#7a5cf5;filter:none}
html[data-mode="light"][data-theme="default"] .theme-particle:nth-child(4n+2){color:#3f74ee}
html[data-mode="light"][data-theme="default"] .theme-particle:nth-child(4n+3){color:#1fa9d6}
html[data-mode="light"][data-theme="default"] .theme-particle:nth-child(4n){color:#9a84f5}
html[data-mode="light"][data-theme="default"] .theme-particle.energy{color:#3f74ee}
html[data-mode="light"][data-theme="spring"] .theme-particle.petal{color:#6cc486}
html[data-mode="light"][data-theme="spring"] .theme-particle.blossom{color:#c58ad6}
html[data-mode="light"][data-theme="spring"] .theme-particle.pollen{color:#b5cc5c}
html[data-mode="light"][data-theme="summer"] .theme-particle.sun{color:#e0a52a}
html[data-mode="light"][data-theme="summer"] .theme-particle.wave{color:#2fb3c2}
html[data-mode="light"][data-theme="winter"] .theme-particle.snowflake{color:#79b0e8}
html[data-mode="light"][data-theme="winter"] .theme-particle.icicle{color:#5a9be0}
html[data-mode="light"][data-theme="winter"] .icicle .ice-shine{stroke:#ffffff}
html[data-mode="light"][data-theme="christmas"] .theme-particle.snowflake{color:#9db6cf}
html[data-mode="light"][data-theme="christmas"] .theme-particle.festive_bulb{color:#d9a534}
html[data-mode="light"][data-theme="christmas"] .theme-particle.festive_bulb:nth-child(4n){color:#d0505c}
html[data-mode="light"][data-theme="christmas"] .festive_bulb .bulb-cap{fill:#8f978a}
html[data-mode="light"][data-theme="christmas"] .festive_bulb .ornament-loop{stroke:#8f978a}
html[data-mode="light"][data-theme="halloween"] .theme-particle.bat{color:#8b62c0}
html[data-mode="light"][data-theme="halloween"] .theme-particle.ember{color:#e0701f}
html[data-mode="light"][data-theme="easter"] .theme-particle.egg{color:#55b3a2}
html[data-mode="light"][data-theme="easter"] .theme-particle.egg:nth-child(4n){color:#d0b14a}
html[data-mode="light"][data-theme="easter"] .theme-particle.egg .motif-vein{stroke:#ffffff}
html[data-mode="light"][data-theme="easter"] .theme-particle.petal{color:#55b3a2}
html[data-mode="light"][data-theme="easter"] .theme-particle.blossom{color:#d0b14a}
html[data-mode="light"][data-theme="valentine_trifon"] .theme-particle.wineglass{color:#c79a45}
html[data-mode="light"][data-theme="valentine_trifon"] .theme-particle.vine{color:#74874a}
html[data-mode="light"] .theme-swatches i{box-shadow:0 0 0 1px rgb(0 0 0 / .12)}
/* Product badges sit on top of artwork of any colour: in light mode they get a solid light plate
   and deep label colours (the pastel dark-mode tones are unreadable on it). */
html[data-mode="light"] .product-badge{background:color-mix(in srgb,var(--surface) 94%,transparent);border-color:color-mix(in srgb,var(--accent-3) 45%,transparent);box-shadow:0 2px 8px -3px rgb(20 25 50 / .35)}
html[data-mode="light"] .product-badge.badge-new{--badge:#0b6fa3}
html[data-mode="light"] .product-badge.badge-popular{--badge:#b8431a}
html[data-mode="light"] .product-badge.badge-best-seller{--badge:#8a6100}
html[data-mode="light"] .product-badge.badge-updated{--badge:#6240cf}
html[data-mode="light"] .product-badge.badge-free{--badge:#0f6f49}
html[data-mode="light"] .product-badge[class*="badge-"]{color:var(--badge);border-color:color-mix(in srgb,var(--badge) 50%,transparent);background:color-mix(in srgb,var(--badge) 9%,#fff)}
