/**
 * Página Product - XSALT
 * Título como About, carrossel + texto, secções de características.
 */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

/* ========== Primeira secção — Light ========== */

.product-hero {
  background: var(--bg-secondary);
  padding-top: calc(var(--header-height) + var(--space-2xl));
}

.product-hero__title {
  display: block;
  text-align: left;
  margin-top: 0;
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-h2);
  color: var(--text-primary);
}

.product-hero__grid {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .product-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
  }
}

/* ========== Galeria Swiper (esquerda) ========== */

.product-gallery-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.product-gallery {
  width: 100%;
}

.product-gallery .swiper-slide {
  position: relative;
  background: var(--bg-primary);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-gallery .swiper-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-gallery .swiper-pagination {
  position: relative;
  margin-top: var(--space-md);
}

.product-gallery .swiper-pagination-bullet {
  background: var(--text-tertiary);
  opacity: 0.6;
}

.product-gallery .swiper-pagination-bullet-active {
  background: var(--color-primary);
  opacity: 1;
}

.product-gallery .swiper-button-prev,
.product-gallery .swiper-button-next {
  color: var(--color-primary);
  border: 1px solid var(--glass-border);
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
}

.product-gallery .swiper-button-prev::after,
.product-gallery .swiper-button-next::after {
  font-size: 1.25rem;
}

/* ========== Texto do produto (direita) ========== */

.product-hero__content {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
}

.product-hero__subtitle {
  font-size: var(--font-size-h3);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.product-hero__content p {
  margin-bottom: var(--space-lg);
}

.product-hero__content p:last-of-type {
  margin-bottom: 0;
}

.product-hero__h3 {
  font-size: var(--font-size-h4);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.product-hero__list {
  margin: 0 0 var(--space-lg);
  padding-left: var(--space-lg);
}

.product-hero__list li {
  margin-bottom: var(--space-sm);
}

.product-hero__list li:last-child {
  margin-bottom: 0;
}

/* ========== Secções genéricas ========== */

.product-section__title {
  margin-bottom: var(--space-sm);
}

.product-section__lead {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ========== Types of machine room (dois blocos título + imagem) ========== */

.product-machineroom {
  background: var(--bg-primary);
}

.product-machineroom__intro {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.product-machineroom__intro-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}

.product-machineroom__intro-title:not(:first-child) {
  margin-top: var(--space-xl);
}

.product-machineroom__intro-row {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

.product-machineroom__intro-row .product-machineroom__intro-title {
  margin-top: 0;
}

@media (min-width: 640px) {
  .product-machineroom__intro-row {
    grid-template-columns: 1fr 1fr;
  }
}

.product-machineroom__intro-text {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

.product-machineroom__intro-list {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}

.product-machineroom__intro-list li {
  margin-bottom: var(--space-xs);
}

.product-machineroom__intro-list li:last-child {
  margin-bottom: 0;
}

.product-machineroom__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

.product-machineroom__text {
  margin: 0;
}

.product-machineroom__text--left {
  order: 1;
}

.product-machineroom__text--right {
  order: 3;
}

.product-machineroom__figure {
  margin: 0;
  order: 2;
}

.product-machineroom__figure:nth-child(4) {
  order: 4;
}

.product-machineroom__item-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.product-machineroom__item-text {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin: 0 0 var(--space-lg);
}

.product-machineroom__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.product-machineroom__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 640px) {
  .product-machineroom__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .product-machineroom__text--left,
  .product-machineroom__text--right,
  .product-machineroom__figure {
    order: unset;
  }

  .product-machineroom__figure:nth-child(4) {
    order: unset;
  }
}

/* ========== Multiple protection (grid de ícones) ========== */

.product-features {
  background: var(--bg-primary);
}

.product-features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .product-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-features__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  text-align: left;
  padding: var(--space-xl);
}

.product-features__icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.product-features__title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.product-features__text {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ========== Secção única: Flow switch + Stable + Certifications ========== */

.product-details {
  background: var(--bg-secondary);
}

.product-details__block {
  margin-bottom: var(--space-3xl);
}

.product-details__block:last-child {
  margin-bottom: 0;
}

.product-details__title {
  font-size: var(--font-size-h3);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.product-details__lead {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.product-details__block p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.product-details__block p:last-child {
  margin-bottom: 0;
}

.product-details__flow {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .product-details__flow {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.product-details__list {
  margin: var(--space-md) 0 0;
  padding-left: var(--space-lg);
  color: var(--text-secondary);
}

.product-details__list li {
  margin-bottom: var(--space-sm);
}

.product-details__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.product-details__badge iconify-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ========== Manuais de equipamentos — vault técnico ========== */

.product-manuals {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0a0e12;
  color: #e8eef4;
}

.product-manuals__backdrop {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  background-image: linear-gradient(
      105deg,
      rgba(56, 175, 218, 0.08) 0%,
      transparent 42%
    ),
    linear-gradient(rgba(56, 175, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 175, 218, 0.04) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

.product-manuals__inner {
  position: relative;
  z-index: 1;
}

.product-manuals .product-section__title {
  color: #f8fafc;
}

.product-manuals .product-section__lead {
  color: rgba(226, 232, 240, 0.78);
}

.product-manuals__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-manuals__card {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 175, 218, 0.18);
  background: linear-gradient(
    135deg,
    rgba(22, 28, 36, 0.95) 0%,
    rgba(15, 20, 28, 0.98) 100%
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition-normal),
    transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: product-manuals-reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-manuals__list > li:nth-child(1) .product-manuals__card {
  animation-delay: 0.05s;
}

.product-manuals__list > li:nth-child(2) .product-manuals__card {
  animation-delay: 0.12s;
}

.product-manuals__list > li:nth-child(3) .product-manuals__card {
  animation-delay: 0.19s;
}

.product-manuals__list > li:nth-child(4) .product-manuals__card {
  animation-delay: 0.26s;
}

.product-manuals__list > li:nth-child(5) .product-manuals__card {
  animation-delay: 0.33s;
}

@keyframes product-manuals-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-manuals__card {
    animation: none;
  }
}

.product-manuals__card:hover,
.product-manuals__card:focus-within {
  border-color: rgba(56, 175, 218, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 175, 218, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.45), 0 0 36px rgba(56, 175, 218, 0.12);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .product-manuals__card {
    grid-template-columns: 1fr auto auto;
    gap: var(--space-xl);
  }
}

.product-manuals__card-main {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  min-width: 0;
}

.product-manuals__card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 175, 218, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(56, 175, 218, 0.22);
}

.product-manuals__card-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  color: #f1f5f9;
  margin: 0 0 var(--space-xs);
  line-height: 1.3;
}

.product-manuals__card-desc {
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  color: rgba(203, 213, 225, 0.85);
  margin: 0;
}

.product-manuals__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .product-manuals__meta {
    justify-content: flex-end;
  }
}

.product-manuals__tag {
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-manuals__tag--accent {
  color: #0a0e12;
  background: var(--color-primary);
  border-color: transparent;
}

.product-manuals__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: #0a0e12;
  background: var(--color-primary);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-manuals__download:hover {
  color: #0a0e12;
  background: #5bcbeb;
  box-shadow: 0 4px 20px rgba(56, 175, 218, 0.45);
}

.product-manuals__download:focus-visible {
  outline: 2px solid #f8fafc;
  outline-offset: 3px;
}

.product-manuals__download iconify-icon {
  flex-shrink: 0;
}

/* ========== App (como na index) ========== */

.app-section {
  background: var(--bg-primary);
}

.app-section--dark {
  background: #161b22;
}

.app-section--dark .section__title {
  color: #f0f4f8;
}

.app-section--dark .app-section__lead {
  color: rgba(255, 255, 255, 0.7);
}

.app-section--dark .app-section__feature-text {
  color: rgba(255, 255, 255, 0.9);
}

.app-section__content {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .app-section__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.app-section__text .section__title {
  text-align: left;
}

.app-section__lead {
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.app-section__features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-section__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.app-section__feature-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  width: 24px;
  height: 24px;
}

.app-section__feature-text {
  margin-bottom: 0;
  font-size: var(--font-size-body);
}

.app-section__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  max-width: 360px;
  margin: 0 auto;
}
