/* ==========================================================
   Pandora Iran — Winter theme (homepage only)
   Additive file: remove the <link>/<script> lines of
   winter.css / winter.js from index.html to turn it off.
   ========================================================== */
:root{
  --pw-snow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 48' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.6' stop-color='%23f7f9fc'/%3E%3Cstop offset='1' stop-color='%23dde3ee'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath transform='translate%280 3%29' fill='%23c9d1e0' opacity='.55' d='M0 16 C10 4 26 2 40 9 C52 0 72 -1 86 8 C100 0 120 1 132 9 C146 0 168 0 180 9 C194 1 214 1 226 9 C240 0 262 1 274 9 C288 1 308 0 320 9 C334 1 354 2 366 9 C380 2 394 5 400 14 L400 24 C394 30 388 26 384 32 C380 42 370 42 368 32 C356 36 344 30 334 33 C328 46 316 46 314 34 C302 37 288 30 276 34 C270 41 260 41 258 33 C246 36 232 30 220 34 C214 46 202 46 200 34 C188 37 172 30 160 34 C154 41 144 41 142 33 C130 36 116 30 104 34 C98 46 86 46 84 34 C72 37 58 30 46 34 C40 41 30 41 28 33 C18 35 8 30 0 30 Z'/%3E%3Cpath fill='url%28%23g%29' stroke='%23e2e7f0' stroke-width='1' d='M0 16 C10 4 26 2 40 9 C52 0 72 -1 86 8 C100 0 120 1 132 9 C146 0 168 0 180 9 C194 1 214 1 226 9 C240 0 262 1 274 9 C288 1 308 0 320 9 C334 1 354 2 366 9 C380 2 394 5 400 14 L400 24 C394 30 388 26 384 32 C380 42 370 42 368 32 C356 36 344 30 334 33 C328 46 316 46 314 34 C302 37 288 30 276 34 C270 41 260 41 258 33 C246 36 232 30 220 34 C214 46 202 46 200 34 C188 37 172 30 160 34 C154 41 144 41 142 33 C130 36 116 30 104 34 C98 46 86 46 84 34 C72 37 58 30 46 34 C40 41 30 41 28 33 C18 35 8 30 0 30 Z'/%3E%3Cpath d='M20 12 C60 6 100 6 140 11 M220 11 C260 5 300 6 350 11' stroke='%23fff' stroke-width='3' stroke-linecap='round' fill='none' opacity='.9'/%3E%3C/svg%3E");
  --pw-pink:#f7dfe6;
  --pw-pink-2:#fbeef2;
}

/* soft winter page background */
body.pw-winter{
  background:
    radial-gradient(1200px 500px at 50% -120px, var(--pw-pink-2), transparent 70%),
    linear-gradient(#fff, #fdf6f8 40%, #fff) !important;
}

/* ---------- snow caps ---------- */
.pw-cap{ position:relative; }
.pw-cap::before{
  content:""; position:absolute; z-index:5; pointer-events:none;
  left:-6px; right:-6px; top:-13px; height:27px;
  background:var(--pw-snow) center top/100% 100% no-repeat;
  filter:drop-shadow(0 3px 3px rgba(110,120,150,.22));
}
/* big cap for hero banner */
.pw-cap--lg::before{ top:calc(var(--pw-off,0px) - 19px); height:43px; left:-12px; right:-12px; }
/* inner cap for clipped cards (overflow:hidden) */
.pw-cap-in{ position:relative; }
.pw-cap-in.pw-cap-in::after{
  content:""; position:absolute; z-index:5; pointer-events:none;
  left:-2px; right:-2px; top:-3px; bottom:auto; width:auto; height:22px;
  border-radius:0; opacity:1; transform:none;
  background:var(--pw-snow) center top/100% 100% no-repeat;
  filter:drop-shadow(0 3px 3px rgba(110,120,150,.3));
}

/* frosty pink tint for highlighted blocks */
.pw-frost{
  background:linear-gradient(180deg,#fff 0%,var(--pw-pink-2) 100%) !important;
  border-radius:16px;
}
.pi-benefit-card{ border:1px solid #f3e3e8; }
.pw-cap-in.pi-product-card{ box-shadow:0 0 0 1px #f1e4e9, 0 6px 16px rgba(200,150,170,.12); }

/* ---------- falling snow canvas ---------- */
#pw-snow-canvas{
  position:fixed; inset:0; width:100vw; height:100vh;
  pointer-events:none; z-index:2; opacity:.5;
}

/* ---------- snowman ---------- */
#pw-snowman{
  position:fixed; right:14px; bottom:120px; width:100px; z-index:2147483000;
  pointer-events:none; animation:pw-sway 4s ease-in-out infinite;
  transform-origin:50% 100%;
}
#pw-snowman svg{ display:block; width:100%; height:auto; overflow:visible; }
#pw-snowman .pw-arm-r{ transform-box:fill-box; transform-origin:0% 100%; }
@keyframes pw-sway{ 0%,100%{transform:rotate(-3deg)} 50%{transform:rotate(3deg)} }
/* mobile/tablet: peekaboo at mid-screen, alternating sides (driven by winter-v8.js) */
@media (max-width:1499px){
  #pw-snowman{
    right:auto; left:0; top:50%; bottom:auto; margin-top:-54px; width:78px;
    transform:translateX(-115%); transform-origin:0% 100%; animation:none;
  }
  #pw-snowman.pw-r{ left:auto; right:0; transform:translateX(115%); transform-origin:100% 100%; }
  #pw-snowman.pw-r svg{ transform:scaleX(-1); }
  #pw-snowman.pw-go{ animation:pw-peekL 3.6s ease-in-out 1; }
  #pw-snowman.pw-r.pw-go{ animation-name:pw-peekR; }
  #pw-snowman.pw-go .pw-arm-r{ animation:pw-wave 3.6s ease-in-out 1; }
}
@keyframes pw-peekL{
  0%{ transform:translateX(-115%) rotate(0deg); }
  20%,80%{ transform:translateX(-42%) rotate(14deg); }
  100%{ transform:translateX(-115%) rotate(0deg); }
}
@keyframes pw-peekR{
  0%{ transform:translateX(115%) rotate(0deg); }
  20%,80%{ transform:translateX(42%) rotate(-14deg); }
  100%{ transform:translateX(115%) rotate(0deg); }
}
@keyframes pw-wave{
  0%,22%{ transform:rotate(0deg); }
  30%{ transform:rotate(-28deg); } 40%{ transform:rotate(8deg); }
  50%{ transform:rotate(-28deg); } 60%{ transform:rotate(8deg); }
  70%,100%{ transform:rotate(0deg); }
}

/* ---------- snow on story circles (curved) ---------- */
.pdr-story-bubble{ position:relative; }
.pw-ring-snow{
  position:absolute; z-index:4; pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 46'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23dfe5ef'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M6 40 C4 22 22 4 50 3 C78 4 96 22 94 40 C91 37 89 42 86 39 C84 33 80 28 76 30 C73 37 69 35 68 29 C62 23 56 24 52 26 C50 33 46 33 45 26 C38 23 30 26 26 30 C24 37 20 37 19 31 C14 31 11 36 10 42 C9 46 6 45 6 40 Z' fill='url(%23s)' stroke='%23e3e8f1' stroke-width='1'/%3E%3Cpath d='M22 14 C34 7 46 6 58 7' stroke='%23fff' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  filter:drop-shadow(0 2px 2px rgba(80,90,120,.45));
}

/* ---------- snow on logo ---------- */
.pw-logo-wrap{ position:relative; display:inline-block; }
.pw-logo-snow{
  position:absolute; z-index:4; pointer-events:none;
  left:4px; right:14px; top:4px; height:10px;
  background:var(--pw-snow) center top/100% 100% no-repeat;
  filter:drop-shadow(0 1px 1px rgba(60,70,100,.55));
}

/* ---------- mobile: benefit titles on one line ---------- */
@media (max-width:575px){
  .pi-benefits .pi-benefit-card.pi-benefit-card{ flex:0 0 auto!important; min-width:0!important; width:auto!important; }
  .pi-benefits .pi-benefit-card h3{ white-space:nowrap!important; }
}

/* ---------- Yalda items sitting on the snow (one per row, random spot) ---------- */
.pw-yalda{
  position:absolute; z-index:6; pointer-events:none; width:34px; height:34px;
  filter:drop-shadow(0 2px 2px rgba(90,30,40,.3));
  transform-origin:50% 100%; animation:pw-wobble 2.8s ease-in-out infinite;
}
@keyframes pw-wobble{ 0%,100%{ transform:rotate(-6deg); } 50%{ transform:rotate(6deg); } }
/* room above product cards so the Yalda item can sit on the card's snow */
.latest-products .owl-stage-outer.pw-room{ padding-top:34px; margin-top:-34px; pointer-events:none; }
.latest-products .owl-stage-outer.pw-room > .owl-stage{ pointer-events:auto; }
/* header blends with the winter page background */
body.pw-winter header.header.bg-white{ background-color:transparent!important; }
.pw-yalda svg{ display:block; width:100%; height:100%; }
.pw-yalda--wm{ width:42px; height:29px; }
@media (max-width:767px){ .pw-yalda{ width:24px; height:24px; } .pw-yalda--wm{ width:30px; height:21px; } }
/* a touch of Yalda warmth in the background */
body.pw-winter{
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(214,40,70,.07), transparent 70%),
    radial-gradient(1200px 500px at 50% -120px, var(--pw-pink-2), transparent 70%),
    linear-gradient(#fff, #fdf6f8 40%, #fff) !important;
}

/* ---------- snowball thrown by the peeking snowman (mobile/tablet) ---------- */
.pw-ball{
  position:fixed; left:-11px; top:-11px; width:22px; height:22px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff 0%,#eef2f8 55%,#c3cddd 100%);
  box-shadow:0 2px 4px rgba(90,100,130,.35), inset -3px -3px 5px rgba(150,165,190,.45); z-index:2147483001; pointer-events:none; will-change:transform;
}
.pw-splat{
  position:fixed; width:150px; height:150px; margin:-75px 0 0 -75px; z-index:2147483002; pointer-events:none;
  filter:drop-shadow(0 2px 3px rgba(90,100,130,.35));
}
.pw-splat svg{ display:block; width:100%; height:100%; }

@media (prefers-reduced-motion:reduce){
  .pw-yalda{ animation:none; }
  #pw-snow-canvas{ display:none; }
  #pw-snowman{ animation:none; }
}

/* ---------- v6: performance ---------- */
/* weak devices / data saver (body.pw-lite, set by winter-v8.js): static Yalda items */
body.pw-lite .pw-yalda{ animation:none; }
/* keep the snow layer and snowman on their own GPU layers */
#pw-snow-canvas{ contain:strict; }
#pw-snowman{ contain:layout style; }
#pw-snowman.pw-go{ will-change:transform; }
