[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app-view {
  flex: 1;
  min-width: 0;
  width: 100%;
}

#app-view:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

button.produto-card-img-wrap,
.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
}

.gallery-button {
  background: transparent;
}

.produto::after {
  pointer-events: none;
}

.produto {
  flex-basis: calc((100% - 3rem) / 3);
}

.produto-card-img-wrap:focus-visible,
.gallery-button:focus-visible {
  outline: 2px solid var(--brown, #7a3b10);
  outline-offset: -2px;
}

.contactos-valor a,
.contact-social-link {
  overflow-wrap: anywhere;
  min-width: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 1rem 1rem;
  background: rgba(10, 5, 2, 0.92);
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 4.5rem);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .produto {
    flex-basis: 100%;
  }

  .navbar {
    flex-direction: row;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
