/* Keep the decorative circle while placing the hero content above it on small screens. */
html,
body {
  min-height: 100%;
}

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

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
}

.product-image {
  border: 0;
  padding: 0;
  cursor: zoom-in;
}

.product-image--grossa img {
  transform: scale(1.13);
}

.product-image--tradicional img {
  transform: scale(1.4);
}

.product-image--nativa img {
  object-fit: cover;
}

.product-image--chas img {
  transform: scale(1.16);
}

.product-card:hover .product-image--grossa img {
  transform: scale(1.18);
}

.product-card:hover .product-image--tradicional img {
  transform: scale(1.45);
}

.product-card:hover .product-image--chas img {
  transform: scale(1.21);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(16, 30, 21, .88);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox__dialog {
  position: relative;
  max-width: min(700px, 100%);
  max-height: 100%;
}

.image-lightbox__dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  background: #fff;
  cursor: zoom-out;
  object-fit: contain;
}

.image-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

.product-buy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.product-buy:hover {
  background: var(--green-2);
  transform: translateY(-2px);
}

.product-buy b {
  font-size: 16px;
}

@media (max-width: 650px) {
  html,
  body {
    overscroll-behavior-y: none;
  }

  .hero {
    isolation: isolate;
  }

  .hero .shape-one {
    display: block;
    z-index: 0;
  }

  .hero .hero-grid {
    position: relative;
    z-index: 1;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    scroll-snap-type: none;
    margin-right: 0;
    padding-bottom: 0;
  }

  .product-card {
    min-width: 0;
  }
}
