@layer base {
  html,
  body {
    margin: 0;
    padding: 0;
  }

  body {
    overscroll-behavior: none;
  }

  main > :last-child {
    margin-bottom: 0 !important;
  }
}

::-webkit-scrollbar {
  display: none;
}

.aspect-square,
.modal-thumb-item,
#bedding-grid img,
#mattress-accessories-grid img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 639px) {
  #combo-slider > div {
    scroll-snap-align: center;
  }
}

#combo-slider {
  scrollbar-width: none;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.music-spin {
  animation: spin-slow 4s linear infinite;
}

.music-spin.paused {
  animation-play-state: paused !important;
}

/* ─── COUNTDOWN SECTION ─────────────────────────────────────────────────── */
.countdown-glow {
  background:
    radial-gradient(60% 80% at 85% 50%, rgba(205, 191, 169, 0.16), transparent 70%),
    radial-gradient(45% 60% at 10% 100%, rgba(128, 0, 32, 0.22), transparent 70%);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 0;
  padding: 0.75rem 0.25rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(205, 191, 169, 0.3);
  background: rgba(252, 249, 242, 0.06);
}

.countdown-value {
  display: block;
  font-family: "Moulin", serif;
  font-size: clamp(1.625rem, 7vw, 2.25rem);
  line-height: 1;
  color: #fcf9f2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: opacity 250ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 250ms cubic-bezier(0.25, 1, 0.5, 1);
}

.countdown-value.is-ticking {
  opacity: 0.35;
  transform: translateY(-4px);
}

.countdown-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffdada;
}

@media (min-width: 640px) {
  .countdown-unit {
    padding: 1rem 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .countdown-label {
    font-size: 11px;
  }
}

@media (min-width: 1024px) {
  .countdown-value {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-value {
    transition: none;
  }
  .countdown-value.is-ticking {
    opacity: 1;
    transform: none;
  }
}
