.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

html {
  scroll-behavior: smooth;
}

#mobile-menu {
  background-color: color-mix(in oklab, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

#mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1 !important;
  height: calc(100dvh - 4rem) !important;
}

@media (min-width: 768px) {
  #mobile-menu.is-open {
    height: calc(100dvh - 5rem) !important;
  }
}

#cart-root[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

#cart-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

#cart-toast:not([hidden]) {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Mobile: garante que imagens em containers aspect-ratio apareçam */
.relative.aspect-square,
.relative.aspect-\[4\/5\] {
  position: relative;
  overflow: hidden;
}

.relative.aspect-square {
  aspect-ratio: 1 / 1;
}

.relative.aspect-\[4\/5\] {
  aspect-ratio: 4 / 5;
}

.relative.aspect-square > img,
.relative.aspect-\[4\/5\] > img,
.relative[class*="aspect-"] > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.relative.mx-auto.h-\[34vh\] {
  min-height: 220px;
}

header img[alt="MBOOM"] {
  display: block;
  max-height: 1.75rem;
  width: auto;
}

@media (min-width: 768px) {
  header img[alt="MBOOM"] {
    max-height: 1.85rem;
  }
}
