/* Невеликі стилі, які зручніше тримати поза Tailwind */

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Сніг (чистий CSS, без JS) ---------- */
.snow {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20px 30px, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(2px 2px at 90px 120px, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(3px 3px at 160px 60px, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(2px 2px at 230px 170px, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(4px 4px at 300px 90px, rgba(255,255,255,.6), transparent 60%);
  background-size: 320px 220px;
  animation: snowfall 18s linear infinite;
  opacity: .9;
}
.snow--dark { opacity: .35; }
@keyframes snowfall { to { background-position: 40px 440px; } }

/* сніг на світлому фоні має бути трохи помітним */
section.bg-gradient-to-b .snow {
  background-image:
    radial-gradient(3px 3px at 20px 30px, rgba(201,163,90,.35), transparent 60%),
    radial-gradient(2px 2px at 90px 120px, rgba(31,86,67,.18), transparent 60%),
    radial-gradient(3px 3px at 160px 60px, rgba(201,163,90,.3), transparent 60%),
    radial-gradient(2px 2px at 230px 170px, rgba(31,86,67,.15), transparent 60%);
}

/* ---------- Галерея товару (свайп) ---------- */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > img { flex: 0 0 100%; scroll-snap-align: center; object-fit: cover; width: 100%; height: 100%; }
.dots button { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.6); transition: all .25s; }
.dots button[aria-current="true"] { width: 20px; background: #fff; }
.dots-sm button { width: 5px; height: 5px; }
.dots-sm button[aria-current="true"] { width: 12px; }
.modal-sheet { overscroll-behavior: contain; }

/* ---------- Модальне вікно ---------- */
#order-modal.open, #product-modal.open { display: block; }
.open .modal-fade { animation: fadeIn .25s ease both; }
.open > .modal-sheet { animation: sheetUp .35s cubic-bezier(.2,.9,.3,1) both; }
@media (min-width: 640px) {
  .open > .modal-sheet { animation: popIn .3s cubic-bezier(.2,.9,.3,1) both; }
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }

/* «стрибок» лічильника при додаванні */
.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }

@media (prefers-reduced-motion: reduce) {
  .snow { animation: none; }
  html { scroll-behavior: auto; }
}

/* Елементи grid/flex не повинні розтягуватися через горизонтальні скролери всередині */
.grid > *, .flex-1 { min-width: 0; }
body { overflow-x: clip; }

/* підказка «оберіть колір» */
@keyframes pickPulse { 0%,100% { transform: none; } 20%,60% { transform: translateX(-4px); } 40%,80% { transform: translateX(4px); } }
.pick-pulse { animation: pickPulse .5s ease 2; }
.pick-pulse > .swatch, .pick-pulse > .optchip { box-shadow: 0 0 0 3px rgba(179,38,58,.45); }
