.product {
  --margem: clamp(20px, 6vw, 88px);
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fonte-interface);
}

.product-shell {
  width: min(calc(100% - 2 * var(--margem)), 1180px);
  margin-inline: auto;
}

.product :is(a, button):focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}

.product :is(.product-hero, .footer) a:focus-visible { outline-color: var(--branco); }

.product-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--branco);
  border-bottom: 1px solid var(--linha);
}

.product-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding-block: 8px;
}

.product-contact,
.product-hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.product-contact { background: var(--azul); color: var(--branco); }
.product-contact:hover { background: var(--azul-escuro); }
.product-contact svg { flex: none; width: 19px; height: 19px; }

.product-hero {
  overflow: hidden;
  color: var(--branco);
  background:
    repeating-radial-gradient(ellipse at 105% 125%, transparent 0 88px, #ffffff12 89px, transparent 90px),
    radial-gradient(ellipse at 95% 0%, var(--azul-claro), transparent 64%),
    linear-gradient(115deg, var(--tinta), var(--azul-escuro));
}

.product-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(185px, .55fr);
  align-items: center;
  gap: clamp(24px, 6vw, 84px);
  padding-block: clamp(36px, 4vw, 60px);
}

.product-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 6px;
  color: #dbe8ff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.product-hero__back:hover { text-decoration: underline; text-underline-offset: 4px; }

.product__title {
  margin: 12px 0 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.product__lead {
  max-width: 58ch;
  margin: 18px 0 23px;
  color: #e3edff;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.6;
}

.product-hero__link {
  border-color: #afc9f4;
  color: var(--branco);
  text-align: center;
}

.product-hero__link svg { flex: none; }
.product-hero__link:hover { background: #ffffff1a; border-color: var(--branco); }

.product-hero__preview {
  justify-self: center;
  width: min(78%, 218px);
  transform: rotate(7deg);
}

.product-hero__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 1px 2px #bac8df, 2px 4px #e2ebf8, 6px 18px 32px #061a4960;
}

.product-gallery { padding-block: clamp(32px, 5vw, 64px); }
.product-gallery__title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 22px;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -.05em;
}

.product-gallery__title::after { content: ""; flex: 1; height: 1px; background: var(--linha); }

.product-gallery__panorama {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(9px, 1.8vw, 20px);
}

.product-gallery__panorama img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.product-gallery__panorama figcaption {
  margin-top: 12px;
  padding: 0 4px 3px;
  color: var(--texto-secundario);
  font-size: .9rem;
  line-height: 1.45;
}

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 295px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.items:has(> :only-child) { grid-template-columns: minmax(0, 620px); }

.item {
  overflow: hidden;
  border: 1px solid var(--linha);
  border-radius: 14px;
  background: var(--branco);
}

.item__foto {
  height: clamp(184px, 22vw, 232px);
  padding: 12px;
  background: var(--branco);
}

.item__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask: var(--foto-mascara, none) center / contain no-repeat;
}

.item__body { padding: 16px 19px 19px; }
.item__nome {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.item__desc {
  margin: 5px 0 0;
  color: var(--texto-secundario);
  font-size: .9rem;
  line-height: 1.45;
}

.product .footer { padding-inline: var(--margem); color: var(--branco); background: var(--tinta); }
.product .footer__inner,
.product .footer__copy { max-width: 1180px; }

@media (max-width: 640px) {
  .product-header__inner { min-height: 60px; }
  .product-header .assinatura { font-size: 1.04rem; gap: 6px; }
  .product-header .vela { width: 23px; }
  .product-contact { padding-inline: 12px; font-size: .85rem; }
  .product-contact svg { width: 17px; height: 17px; }
  .product-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .product-hero__preview { display: none; }
  .product__title { text-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  .js-anima .item:not(.visivel) { opacity: 0; }
  .js-anima .item.visivel {
    animation: surgir 480ms cubic-bezier(.2, .7, .2, 1) min(180ms, var(--atraso, 0ms)) backwards;
  }
}
