/* Winter tiles décor — canvas layers (see js/winter-tiles.js) */

.winter-tile {
  position: relative;
}

.winter-deco {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
}

.winter-deco canvas {
  position: absolute;
  display: block;
  pointer-events: none;
  max-width: none;
}

/* cold rim light inside the card */
.winter-deco::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 22px rgba(176, 212, 240, 0.16);
}

/* glints on the snow */
.winter-sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  opacity: 0;
  pointer-events: none;
  animation: winter-twinkle 6s ease-in-out infinite;
}
.winter-sparkle::before,
.winter-sparkle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, #fff 50%, transparent);
  box-shadow: 0 0 5px 1px rgba(150, 205, 255, 0.85);
}
.winter-sparkle::before {
  width: 10px;
  height: 1px;
  margin: -0.5px 0 0 -5px;
}
.winter-sparkle::after {
  width: 1px;
  height: 10px;
  margin: -5px 0 0 -0.5px;
  background: linear-gradient(180deg, transparent, #fff 50%, transparent);
}
@keyframes winter-twinkle {
  0%, 62%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  72% { opacity: 1; transform: scale(1) rotate(20deg); }
  84% { opacity: 0.2; transform: scale(0.55) rotate(45deg); }
}

/* snow bank along the bottom of the hero banner */
.winter-bank {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .winter-sparkle { display: none; }
}

/* cap-only tiles (product cards): no inner rim glow */
.winter-deco--cap::after { display: none; }
.winter-deco--cap { z-index: 3; }

/* tiles that clip their content: let the snow rise above the edge,
   and round the photo corners ourselves */
.winter-clip { overflow: visible !important; }
.winter-clip .prod-cube-img { border-radius: 15px 15px 0 0; }
.winter-clip.related-card > img { border-radius: 15px 15px 0 0; }
.winter-clip.cl-card .cl-card-img,
.winter-clip.cl-card .cl-card-overlay { border-radius: inherit; overflow: hidden; }
