.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;
}

/* ---- Card de produto do grid "Escolha o seu boom" ----
   Layout empilhado e centralizado (título, preços, botão full-width), igual à loja
   oficial. O botão é decorativo: o card inteiro é o link pra página do produto. */
.product-card__body {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0.625rem 0.8125rem;
  text-align: center;
}

.product-card__title {
  font-family: var(--font-satoshi), sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__was {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.product-card__now {
  margin-top: 0.1875rem;
  font-family: var(--font-satoshi), sans-serif;
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.product-card__installments {
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

.product-card__btn {
  margin-top: 0.625rem;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: var(--radius-pill);
  background-color: var(--ink);
  padding: 0.5625rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s;
}

.product-card__btn svg {
  flex: none;
}

/* mobile mostra "comprar"; a partir de md vira "comprar agora" */
.product-card__btn-lg {
  display: none;
}

.product-card:hover .product-card__btn {
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .product-card__body {
    padding: 1rem 1rem 1.125rem;
  }

  .product-card__title {
    font-size: 0.875rem;
  }

  .product-card__was {
    font-size: 0.75rem;
  }

  .product-card__now {
    font-size: 1.25rem;
  }

  .product-card__installments {
    font-size: 0.75rem;
  }

  .product-card__btn {
    margin-top: 0.875rem;
    padding: 0.6875rem 0.75rem;
    font-size: 0.6875rem;
  }

  .product-card__btn-lg {
    display: inline;
  }

  .product-card__btn-sm {
    display: none;
  }
}

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

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