/**
 * Technical specification card.
 *
 * Card visual para ficha técnica de produto.
 *
 * @package NexoBase
 */

.nexo-tech-spec-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 24px;
  padding-left: 24px;
}

.nexo-tech-spec-card *,
.nexo-tech-spec-card *::before,
.nexo-tech-spec-card *::after {
  box-sizing: border-box;
}

.nexo-tech-spec-card__content {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
  gap: 48px;
  align-items: stretch;
  width: 100%;
  padding: 42px 48px 42px;
  border-radius: 14px;
  background: #f4f4f4;
  box-shadow:
    18px 0 28px rgba(15, 23, 42, 0.1),
    0 16px 34px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: visible;
}

.nexo-tech-spec-card__product-image {
  position: absolute;
  z-index: 1;
  left: -170px;
  bottom: -34px;
  width: clamp(420px, 42vw, 620px);
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.nexo-tech-spec-card__intro,
.nexo-tech-spec-card__table-wrap {
  position: relative;
  z-index: 2;
}

.nexo-tech-spec-card__intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding-top: 0;
  grid-column: 1;
}

.nexo-tech-spec-card__title {
  margin: 0;
  color: #ff5a00;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.nexo-tech-spec-card__text {
  max-width: 300px;
  margin: 18px 0 0;
  color: #ff5a00;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.32;
}

.nexo-tech-spec-card__table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  grid-column: 2;
}

.nexo-tech-spec-card__table {
  width: 100%;
  border-collapse: collapse;
  color: #111827;
  font-size: 12px;
  line-height: 1.3;
}

.nexo-tech-spec-card__table th,
.nexo-tech-spec-card__table td {
  padding: 8px 8px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(17, 24, 39, 0.32);
}

.nexo-tech-spec-card__table thead th {
  padding-top: 0;
  padding-bottom: 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  border-bottom: 1px solid rgba(17, 24, 39, 0.45);
}

.nexo-tech-spec-card__table tbody td {
  font-weight: 600;
}

.nexo-tech-spec-card__table tbody td:first-child {
  width: 46%;
  font-weight: 700;
}

.nexo-tech-spec-card__table tbody tr:last-child td {
  border-bottom: 0;
}

/**
 * Contenção específica da Home hardcoded.
 *
 * Evita que a imagem absoluta e a tabela criem largura extra horizontal
 * quando a viewport começa a ficar menor que o card original.
 */
body.home .nexo-tech-spec-card,
body.home .nexo-tech-spec-card__content,
body.home .nexo-tech-spec-card__table-wrap {
  max-width: 100%;
}

body.home .nexo-tech-spec-card {
  overflow-x: clip;
}

body.home .nexo-tech-spec-card__content {
  margin-right: auto;
  margin-left: auto;
}

body.home .nexo-tech-spec-card__table-wrap {
  overflow-x: visible;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1300px) {
  body.home .nexo-tech-spec-card {
    width: 100%;
    max-width: calc(100vw - 48px);
    padding-right: 0;
    padding-left: 0;
  }

  body.home .nexo-tech-spec-card__content {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
  }

  body.home .nexo-tech-spec-card__product-image {
    left: -120px;
    width: clamp(360px, 38vw, 520px);
  }
}

@media (max-width: 1024px) {
  .nexo-tech-spec-card__content {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: stretch;
    padding: 38px 34px 38px;
  }

  .nexo-tech-spec-card__intro {
    height: auto;
    padding-top: 0;
  }

  .nexo-tech-spec-card__title {
    font-size: 30px;
  }

  .nexo-tech-spec-card__text {
    max-width: 420px;
    margin-top: 16px;
  }

  .nexo-tech-spec-card__product-image {
    left: -120px;
    bottom: -28px;
    width: 460px;
    opacity: 0.22;
  }

  .nexo-tech-spec-card__intro,
  .nexo-tech-spec-card__table-wrap {
    grid-column: auto;
  }

  body.home .nexo-tech-spec-card {
    width: 100%;
    max-width: calc(100vw - 48px);
    padding-right: 0;
    padding-left: 0;
    overflow-x: clip;
  }

  body.home .nexo-tech-spec-card__content {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
  }

  body.home .nexo-tech-spec-card__table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }

  body.home .nexo-tech-spec-card__table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    font-size: 11.5px;
    line-height: 1.25;
  }

  body.home .nexo-tech-spec-card__table th,
  body.home .nexo-tech-spec-card__table td {
    padding: 7px 5px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.home .nexo-tech-spec-card__table thead th {
    font-size: 14px;
    padding-bottom: 7px;
  }

  body.home .nexo-tech-spec-card__table tbody td:first-child {
    width: 43%;
  }
}

@media (max-width: 767px) {
  .nexo-tech-spec-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nexo-tech-spec-card__content {
    gap: 28px;
    padding: 32px 22px 28px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  }

  .nexo-tech-spec-card__title {
    font-size: 26px;
    line-height: 1.08;
  }

  .nexo-tech-spec-card__text {
    margin-top: 14px;
    font-size: 13px;
  }

  .nexo-tech-spec-card__table {
    min-width: 640px;
    font-size: 12px;
  }

  .nexo-tech-spec-card__table thead th {
    font-size: 15px;
  }

  .nexo-tech-spec-card__product-image {
    display: none;
  }

  body.home .nexo-tech-spec-card {
    width: 100%;
    max-width: calc(100vw - 24px);
    padding-right: 0;
    padding-left: 0;
    overflow-x: clip;
  }

  body.home .nexo-tech-spec-card__content {
    width: 100%;
    max-width: 100%;
    gap: 22px;
    margin-right: auto;
    margin-left: auto;
    padding: 28px 10px 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  }

  body.home .nexo-tech-spec-card__title {
    font-size: 24px;
    line-height: 1.08;
  }

  body.home .nexo-tech-spec-card__text {
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.3;
  }

  body.home .nexo-tech-spec-card__table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }

  body.home .nexo-tech-spec-card__table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    font-size: 10px;
    line-height: 1.2;
  }

  body.home .nexo-tech-spec-card__table th,
  body.home .nexo-tech-spec-card__table td {
    padding: 5px 2px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.home .nexo-tech-spec-card__table thead th {
    font-size: 12px;
    padding-bottom: 5px;
  }

  body.home .nexo-tech-spec-card__table tbody td:first-child {
    width: 38%;
  }

  body.home .nexo-tech-spec-card__table tbody td:last-child {
    width: 62%;
  }

  body.home .nexo-tech-spec-card__product-image {
    display: none;
  }
}

/* ==========================================================================
   Home hardcoded: ajuste desktop da ficha técnica
   ========================================================================== */

body.home #pg-64-4,
body.home #pg-64-4 > .panel-row-style,
body.home #pg-64-4 .panel-grid-cell,
body.home #pg-64-4 .so-panel,
body.home #pg-64-4 .siteorigin-widget-tinymce,
body.home #pg-64-4 .textwidget {
  overflow: visible !important;
}

body.home #pg-64-4 .nexo-tech-spec-card {
  box-sizing: border-box;
  width: min(calc(100% - 96px), 1180px) !important;
  max-width: 1180px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  overflow: visible !important;
}

body.home #pg-64-4 .nexo-tech-spec-card__content {
  overflow: visible !important;
}

body.home #pg-64-4 .nexo-tech-spec-card__product-image {
  left: clamp(-170px, -8vw, -110px);
  width: clamp(460px, 34vw, 620px);
  max-width: none !important;
}
