/*
 * site-seasons.css — сезонное оформление витрины «С иголочки | 37»
 * Подключается только когда сезон != classic (см. site_seasons.php).
 * Загружается ПОСЛЕ базовой красной темы, поэтому переопределяет её.
 */

/* ─── Общие декоративные слои ─────────────────────────────────────────── */
.season-sky{
    position:fixed; inset:0; z-index:40; overflow:hidden;
    pointer-events:none; contain:strict;
}
.season-sky__p{
    position:absolute; top:-40px; left:0;
    will-change:transform; opacity:0;
    animation:seasonFall linear infinite;
}
.season-sky__p svg{ display:block; width:100%; height:100%; }
.season-sky.is-paused .season-sky__p{ animation-play-state:paused; }
@keyframes seasonFall{
    0%  { transform:translate3d(0,-6vh,0) rotate(0deg);   opacity:0; }
    8%  { opacity:var(--o,.8); }
    50% { transform:translate3d(var(--dx,30px),50vh,0) rotate(var(--r,140deg)); }
    92% { opacity:var(--o,.8); }
    100%{ transform:translate3d(calc(var(--dx,30px) * -.4),106vh,0) rotate(calc(var(--r,140deg) * 2)); opacity:0; }
}
.season-icon{ display:inline-block; vertical-align:-4px; margin-right:6px; }
body[class*="season-"] .hero__search-input{ color:#22352D !important; }
body[class*="season-"] .hero__search-input::placeholder{ color:#68766D !important; opacity:1; }
/* Старые эмодзи-листья всегда скрыты в сезонных режимах — единственный слой движения .season-sky */
body[class*="season-"] #autumn-global-leaves,
body[class*="season-"] .autumn-side-leaves,
body[class*="season-"] .autumn-leaves-wrap,
body[class*="season-"] .autumn-leaf{ display:none !important; animation:none !important; }
body.season-autumn .season-sky__p{ color:#B5651D; }
body.season-motion-off .autumn-side-leaves,
body.season-motion-off .autumn-leaves-wrap{ display:none !important; }
@media (prefers-reduced-motion: reduce){
    .season-sky{ display:none !important; }
    .autumn-side-leaves, .autumn-leaves-wrap{ display:none !important; }
}

/* ═════════════════════════════════════════════════════════════════════
   ОСЕНЬ — дополнение к существующему autumn-mode: охра, ржавчина, сливки
   ═════════════════════════════════════════════════════════════════════ */
body.season-autumn{
    --season-ink:#2B1A10; --season-paper:#FBF4E8; --season-accent:#C8862E;
    --color-primary:#7B3A10; --color-primary-dark:#5C2A0A; --color-primary-light:#A4561C;
}
body.season-autumn .site-header::after{
    content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; pointer-events:none;
    background:linear-gradient(90deg,transparent,#C8862E 30%,#9A3B12 50%,#C8862E 70%,transparent);
}
body.season-autumn .section--newbies,
body.season-autumn .section:nth-of-type(even){ background-color:var(--season-paper); }
body.season-autumn .product-card:hover{ border-color:rgba(200,134,46,.55) !important; }
body.season-autumn .site-footer{ border-top:3px solid #9A3B12; }
body.season-autumn .section--autumn .section-title .season-icon{ color:#FFD580; }

/* ═════════════════════════════════════════════════════════════════════
   ЗИМА — хвоя, иней, рождественский красный и золотая нить
   ═════════════════════════════════════════════════════════════════════ */
body.season-winter{
    --w-pine:#10302A; --w-pine-2:#1B4A3F; --w-ice:#EAF2F3; --w-frost:#A9CBD3;
    --w-red:#B3202A; --w-red-dark:#8E1820; --w-gold:#C9A45C;
    --color-primary:#B3202A; --color-primary-dark:#8E1820; --color-primary-light:#D0343C;
    --color-border:#CFE0E3;
    background-color:#F4F8F8;
}
body.season-winter .btn-primary{ background:var(--w-red) !important; border-color:var(--w-red) !important; }
body.season-winter .btn-primary:hover{ background:var(--w-red-dark) !important; border-color:var(--w-red-dark) !important; }
body.season-winter .btn-outline{ border-color:var(--w-pine-2) !important; color:var(--w-pine-2) !important; }
body.season-winter .btn-outline:hover{ background:var(--w-pine-2) !important; color:#fff !important; }
body.season-winter .site-header{
    background:linear-gradient(180deg,rgba(14,42,36,.97),rgba(16,48,42,.96)) !important;
    border-bottom:1px solid rgba(169,203,211,.22) !important;
}
body.season-winter .site-header::after{
    background:
        linear-gradient(90deg,transparent 0%,rgba(201,164,92,.45) 20%,rgba(179,32,42,.85) 50%,rgba(201,164,92,.45) 80%,transparent 100%) top/100% 2px no-repeat,
        linear-gradient(180deg,rgba(16,48,42,.22),transparent) !important;
}
body.season-winter .header-nav a.active::after{ background:var(--w-gold) !important; }
body.season-winter .tryon-header-btn{ border-color:rgba(169,203,211,.55) !important; background:rgba(169,203,211,.1) !important; color:#DDEEF1 !important; }
body.season-winter .cart-btn{ background:linear-gradient(135deg,#A51C25,#C9303A) !important; border-color:#C9303A !important; }
body.season-winter .cart-count{ color:var(--w-red) !important; }
body.season-winter .header-search input,
body.season-winter .header-search-input{ background:rgba(234,242,243,.1) !important; border-color:rgba(169,203,211,.35) !important; }
body.season-winter .product-card-price,
body.season-winter .product-card-sku{ color:var(--w-red) !important; }
body.season-winter .price,
body.season-winter .product-price{ color:var(--w-pine-2) !important; }
body.season-winter .product-card{ border-color:#D8E6E8 !important; }
body.season-winter .product-card:hover{ border-color:rgba(27,74,63,.35) !important; box-shadow:0 12px 30px rgba(16,48,42,.12) !important; }
body.season-winter .hero--fullscreen::after{
    background:linear-gradient(160deg,rgba(10,36,31,.55),rgba(14,32,40,.35) 55%,rgba(120,18,26,.28)) !important;
}
body.season-winter .section--newbies{ background:linear-gradient(180deg,#F4F8F8,#EAF2F3); }
body.season-winter .section-title{ color:var(--w-pine) !important; }
body.season-winter .stat-value{ color:var(--w-red) !important; }
body.season-winter .section--autumn{
    background:
        radial-gradient(1200px 400px at 85% -10%,rgba(169,203,211,.22),transparent 60%),
        linear-gradient(140deg,#0C2622 0%,#123A32 55%,#1B4A3F 100%) !important;
}
body.season-winter .section--autumn::before{
    content:''; position:absolute; left:0; right:0; top:0; height:4px; pointer-events:none;
    background:repeating-linear-gradient(90deg,var(--w-red) 0 26px,var(--w-gold) 26px 30px,var(--w-red) 30px 56px,#F4F8F8 56px 60px);
    opacity:.85;
}
body.season-winter .section--autumn .section-title{ color:#F1F7F8 !important; }
body.season-winter .section--autumn .section-title .season-icon{ color:var(--w-frost); }
body.season-winter .section--autumn .section-subtitle{ color:#BFD8DD !important; }
body.season-winter .section--autumn .btn-outline{ border-color:var(--w-gold) !important; color:#F3E2BC !important; }
body.season-winter .section--autumn .btn-outline:hover{ background:var(--w-gold) !important; color:var(--w-pine) !important; }
body.season-winter .section--autumn .autumn-side-leaves,
body.season-spring .section--autumn .autumn-side-leaves{ display:none !important; }
body.season-winter .site-footer{ border-top:3px solid var(--w-red); }
body.season-winter .season-sky__p{ color:#FFFFFF; filter:drop-shadow(0 0 1px rgba(80,120,130,.5)); }

/* ═════════════════════════════════════════════════════════════════════
   ВЕСНА — шалфей, мята, пыльная роза, пасхальные яйца
   ═════════════════════════════════════════════════════════════════════ */
body.season-spring{
    --s-sage:#5E7F68; --s-sage-dark:#46634F; --s-mint:#E3EFE4; --s-rose:#E4A6B3;
    --s-rose-deep:#B14E67; --s-cream:#FBF7F1; --s-butter:#F1DE9C;
    --color-primary:#B14E67; --color-primary-dark:#8F3C52; --color-primary-light:#C96A81;
    --color-border:#E6D9D2;
    background-color:var(--s-cream);
}
body.season-spring .btn-primary{ background:var(--s-rose-deep) !important; border-color:var(--s-rose-deep) !important; }
body.season-spring .btn-primary:hover{ background:#8F3C52 !important; border-color:#8F3C52 !important; }
body.season-spring .btn-outline{ border-color:var(--s-sage) !important; color:var(--s-sage-dark) !important; }
body.season-spring .btn-outline:hover{ background:var(--s-sage) !important; color:#fff !important; }
body.season-spring .site-header{
    background:linear-gradient(180deg,rgba(54,78,62,.97),rgba(62,88,70,.96)) !important;
    border-bottom:1px solid rgba(228,166,179,.25) !important;
}
body.season-spring .site-header::after{
    background:
        linear-gradient(90deg,transparent 0%,rgba(241,222,156,.5) 22%,rgba(228,166,179,.9) 50%,rgba(241,222,156,.5) 78%,transparent 100%) top/100% 2px no-repeat,
        linear-gradient(180deg,rgba(54,78,62,.18),transparent) !important;
}
body.season-spring .header-nav a.active::after{ background:var(--s-rose) !important; }
body.season-spring .tryon-header-btn{ border-color:rgba(228,166,179,.6) !important; background:rgba(228,166,179,.14) !important; color:#FBE3E9 !important; }
body.season-spring .cart-btn{ background:linear-gradient(135deg,#A9465E,#C66A80) !important; border-color:#C66A80 !important; box-shadow:0 8px 22px rgba(177,78,103,.3) !important; }
body.season-spring .cart-count{ color:var(--s-rose-deep) !important; }
body.season-spring .product-card-price,
body.season-spring .product-card-sku{ color:var(--s-rose-deep) !important; }
body.season-spring .price,
body.season-spring .product-price{ color:var(--s-sage-dark) !important; }
body.season-spring .product-card{ border-color:#EADFD8 !important; }
body.season-spring .product-card:hover{ border-color:rgba(177,78,103,.3) !important; box-shadow:0 12px 30px rgba(94,127,104,.14) !important; }
body.season-spring .hero--fullscreen::after{
    background:linear-gradient(150deg,rgba(46,70,54,.5),rgba(80,60,64,.3) 60%,rgba(177,78,103,.22)) !important;
}
body.season-spring .section--newbies{ background:linear-gradient(180deg,var(--s-cream),#F3F7F0); }
body.season-spring .section-title{ color:#33473A !important; }
body.season-spring .stat-value{ color:var(--s-rose-deep) !important; }
body.season-spring .section--autumn{
    background:
        radial-gradient(900px 380px at 10% 0%,rgba(228,166,179,.35),transparent 60%),
        linear-gradient(140deg,#E8F1E6 0%,#F5EEE6 55%,#F7E6EA 100%) !important;
}
body.season-spring .section--autumn .section-title{ color:#33473A !important; }
body.season-spring .section--autumn .section-title .season-icon{ color:var(--s-rose); }
body.season-spring .section--autumn .section-subtitle{ color:#6B7A6E !important; }
body.season-spring .section--autumn .btn-outline{ border-color:var(--s-rose-deep) !important; color:var(--s-rose-deep) !important; }
body.season-spring .section--autumn .btn-outline:hover{ background:var(--s-rose-deep) !important; color:#fff !important; }
body.season-spring .site-footer{ border-top:3px solid var(--s-rose); }

/* Пасхальные яйца — статичная композиция в разделе коллекции */
.season-eggs{
    position:absolute; right:3%; bottom:18px; z-index:0;
    display:flex; align-items:flex-end; gap:6px;
    pointer-events:none; opacity:.9;
}
.season-eggs svg{ display:block; }
.season-eggs--left{ right:auto; left:3%; transform:scaleX(-1); opacity:.6; }
@media (max-width:720px){ .season-eggs{ transform:scale(.6); transform-origin:bottom right; } .season-eggs--left{ display:none; } }
.section--autumn > .container{ position:relative; z-index:1; }

/* ═════════════════════════════════════════════════════════════════════
   ПЕРВЫЙ ЭКРАН (index.php .hero--fullscreen) — сезонная обработка
   ═════════════════════════════════════════════════════════════════════ */
body.season-autumn{ --rd-primary:#7B3A10; --rd-primary-dark:#5C2A0A; --rd-accent:#A4561C; --rd-bg-alt:#FBF4E8; }
body.season-autumn .hero--fullscreen{ background:#3A1E0E !important; }
body.season-autumn .hero--fullscreen::after{ background:linear-gradient(150deg,rgba(58,30,14,.42),rgba(110,52,16,.3) 60%,rgba(200,134,46,.18)) !important; }
body.season-autumn .hero__search-btn,
body.season-autumn .hero__btn-primary{ color:#7B3A10 !important; }
body.season-autumn .hero__search-btn{ background:#7B3A10 !important; color:#fff !important; border-color:#7B3A10 !important; }
body.season-autumn .hero__search-btn:hover{ background:#9B5A1A !important; }
body.season-autumn .hero__search-icon{ color:#C8862E !important; }

/* Зима: хвоя + иней, еловые ветви по углам, золотые шары с красным */
body.season-winter{ --rd-primary:#B3202A; --rd-primary-dark:#8E1820; --rd-accent:#B3202A; --rd-bg-alt:#EEF5F6; --rd-border:#D8E6E8; }
body.season-winter .hero--fullscreen{ background:#0E2A25 !important; }
body.season-winter .hero--fullscreen::before{
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300' viewBox='0 0 420 300'%3E%3Cg fill='none' stroke='%232F6B5A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M0 40 C120 60 220 110 330 220'/%3E%3Cpath d='M40 46l-6-30M40 46l20-24M90 56l-4-34M90 56l26-22M140 70l0-34M140 70l30-18M190 92l6-32M190 92l32-12M240 122l10-30M240 122l32-6M285 160l14-28M285 160l30 0' stroke='%23477F6C'/%3E%3C/g%3E%3Cpath d='M210 104v40' stroke='%23C9A45C' stroke-width='1.5'/%3E%3Ccircle cx='210' cy='156' r='13' fill='%23B3202A'/%3E%3Ccircle cx='205' cy='151' r='3.5' fill='%23fff' opacity='.5'/%3E%3Cpath d='M120 66v26' stroke='%23C9A45C' stroke-width='1.5'/%3E%3Ccircle cx='120' cy='100' r='9' fill='%23C9A45C'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300' viewBox='0 0 420 300'%3E%3Cg transform='translate(420 0) scale(-1 1)' fill='none' stroke='%232F6B5A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M0 30 C110 50 200 90 300 190'/%3E%3Cpath d='M50 38l-6-30M50 38l22-22M110 52l0-34M110 52l28-20M170 74l6-32M170 74l32-12M230 112l12-28M230 112l30-4' stroke='%23477F6C'/%3E%3C/g%3E%3Cpath d='M250 90v34' stroke='%23C9A45C' stroke-width='1.5'/%3E%3Ccircle cx='250' cy='134' r='11' fill='%23C9A45C'/%3E%3C/svg%3E"),
        radial-gradient(900px 500px at 50% 110%,rgba(169,203,211,.28),transparent 70%),
        radial-gradient(rgba(234,242,243,.16) 1.2px,transparent 1.4px),
        linear-gradient(165deg,#0B231F 0%,#123A32 50%,#1A4540 100%) !important;
    background-size:min(46vw,420px) auto,min(46vw,420px) auto,100% 100%,26px 26px,100% 100% !important;
    background-position:left top,right top,center,center,center !important;
    background-repeat:no-repeat,no-repeat,no-repeat,repeat,no-repeat !important;
    filter:none !important; transform:none !important;
}
body.season-winter .hero--fullscreen::after{
    background:linear-gradient(180deg,transparent 70%,rgba(234,242,243,.14)) !important;
}
body.season-winter .hero__bg-pattern{ opacity:.12 !important; }
body.season-winter .hero__title{ color:#F2F8F9 !important; text-shadow:0 2px 24px rgba(5,20,17,.5); }
body.season-winter .hero__subtitle{ color:#C7DDE1 !important; }
body.season-winter .hero__btn-primary{ background:#B3202A !important; color:#fff !important; box-shadow:0 10px 28px rgba(120,16,24,.35) !important; }
body.season-winter .hero__btn-primary:hover{ background:#8E1820 !important; }
body.season-winter .hero__btn-outline{ border-color:rgba(201,164,92,.85) !important; color:#F3E2BC !important; }
body.season-winter .hero__btn-outline:hover{ background:rgba(201,164,92,.16) !important; }
body.season-winter .hero__search-btn{ background:#B3202A !important; border-color:#B3202A !important; color:#fff !important; }
body.season-winter .hero__search-btn:hover{ background:#8E1820 !important; }
body.season-winter .hero__search-icon{ color:#1B4A3F !important; }
body.season-winter .hero__scroll-arrow{ color:#A9CBD3 !important; }

/* Весна: светлый экран, шалфей и роза, ветки и пасхальные яйца */
body.season-spring{ --rd-primary:#B14E67; --rd-primary-dark:#8F3C52; --rd-accent:#B14E67; --rd-bg-alt:#F3F7F0; --rd-border:#EADFD8; }
body.season-spring .hero--fullscreen{ background:#F4F1E8 !important; color:#2F4236 !important; }
body.season-spring .hero--fullscreen::before{
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='300' viewBox='0 0 360 300'%3E%3Cpath d='M0 20 C90 40 160 90 240 190' fill='none' stroke='%237E9C84' stroke-width='3' stroke-linecap='round'/%3E%3Cg fill='%23A9C3AC'%3E%3Cellipse cx='60' cy='22' rx='16' ry='7' transform='rotate(-20 60 22)'/%3E%3Cellipse cx='120' cy='70' rx='16' ry='7' transform='rotate(40 120 70)'/%3E%3Cellipse cx='190' cy='120' rx='16' ry='7' transform='rotate(-10 190 120)'/%3E%3C/g%3E%3Cg fill='%23EBB3C0'%3E%3Ccircle cx='95' cy='36' r='9'/%3E%3Ccircle cx='160' cy='92' r='11'/%3E%3Ccircle cx='222' cy='160' r='9'/%3E%3C/g%3E%3Cg fill='%23F1DE9C'%3E%3Ccircle cx='95' cy='36' r='3'/%3E%3Ccircle cx='160' cy='92' r='3.5'/%3E%3Ccircle cx='222' cy='160' r='3'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='170' viewBox='0 0 300 170'%3E%3Cpath d='M70 20C100 20 120 80 120 110c0 30-22 50-50 50S20 140 20 110C20 80 40 20 70 20z' fill='%23E4A6B3'/%3E%3Cpath d='M24 96c15-9 31 9 46 0s31-9 46 0' fill='none' stroke='%235E7F68' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M170 50c24 0 40 50 40 74 0 24-18 40-40 40s-40-16-40-40c0-24 16-74 40-74z' fill='%23DDEBDD'/%3E%3Cpath d='M134 110c12-7 24 7 36 0s24-7 36 0' fill='none' stroke='%23B14E67' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='160' cy='88' r='4' fill='%23B14E67'/%3E%3Ccircle cx='182' cy='84' r='4' fill='%23B14E67'/%3E%3Cpath d='M250 80c18 0 30 38 30 56s-13 30-30 30-30-12-30-30 12-56 30-56z' fill='%23F1DE9C'/%3E%3Cpath d='M222 128c9-5 19 5 28 0s19-5 28 0' fill='none' stroke='%235E7F68' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"),
        radial-gradient(700px 420px at 85% 0%,rgba(228,166,179,.38),transparent 65%),
        radial-gradient(700px 420px at 0% 100%,rgba(169,195,172,.45),transparent 65%),
        linear-gradient(160deg,#F7F3EA 0%,#EEF4EC 55%,#F8ECEE 100%) !important;
    background-size:min(42vw,360px) auto,min(34vw,300px) auto,100% 100%,100% 100%,100% 100% !important;
    background-position:left top,right 4% bottom 6%,center,center,center !important;
    background-repeat:no-repeat !important;
    filter:none !important; transform:none !important;
}
body.season-spring .hero--fullscreen::after{ background:none !important; }
body.season-spring .hero__bg-pattern{ background-image:radial-gradient(rgba(94,127,104,.14) 1.4px,transparent 1.5px) !important; opacity:.6 !important; }
body.season-spring .hero__title{ color:#2F4236 !important; }
body.season-spring .hero__subtitle{ color:#56665B !important; }
body.season-spring .hero__btn-primary{ background:#B14E67 !important; color:#fff !important; box-shadow:0 10px 26px rgba(177,78,103,.28) !important; }
body.season-spring .hero__btn-primary:hover{ background:#8F3C52 !important; }
body.season-spring .hero__btn-outline{ border-color:#5E7F68 !important; color:#3F5A47 !important; }
body.season-spring .hero__btn-outline:hover{ background:rgba(94,127,104,.12) !important; }
body.season-spring .hero__search-btn{ background:#5E7F68 !important; border-color:#5E7F68 !important; color:#fff !important; }
body.season-spring .hero__search-btn:hover{ background:#46634F !important; }
body.season-spring .hero__search-icon{ color:#B14E67 !important; }
body.season-spring .hero__scroll-arrow{ color:#5E7F68 !important; }
@media (max-width:720px){
    body.season-winter .hero--fullscreen::before{ background-size:62vw auto,62vw auto,100% 100%,22px 22px,100% 100% !important; }
    body.season-spring .hero--fullscreen::before{ background-size:58vw auto,46vw auto,100% 100%,100% 100%,100% 100% !important; }
}
