/* Dobra "Comparador" da página de família — Figma node 2265:13994 (frame 1920px, escala 0,75 para 1440px) */

.cmp {
  background: #fff;
  color: #111;
  font-family: "Archivo", sans-serif;
}

.cmp *:not(i) {
  box-sizing: border-box;
  font-family: "Archivo", sans-serif !important;
}

.cmp__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.cmp h1,
.cmp h2,
.cmp h3,
.cmp p {
  margin: 0;
}

/* Botões */
.cmp .cmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #111;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-size: 10px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cmp .cmp-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
  text-decoration: none;
}

.cmp .cmp-btn--dark {
  background: #111;
  color: #fff;
}

.cmp .cmp-btn--red {
  border-color: #ed1c25;
  background: #ed1c25;
  color: #fff;
}

.cmp .cmp-btn--ghost {
  border-color: #fff;
  color: #fff;
}

.cmp .cmp-btn--small {
  padding: 7px 14px;
}

/* Seleção */
.cmp-picker {
  padding: 42px 36px 36px;
  border-radius: 18px;
  background: #f4f4f4;
  text-align: center;
}

.cmp .cmp-picker__title {
  color: #111;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.14em;
}

.cmp .cmp-picker__subtitle {
  max-width: 454px;
  margin: 22px auto 0;
  color: #1a1410;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 100;
  line-height: 1.25;
}

.cmp-picker__controls {
  margin-top: 8px;
  border-top: 1px solid #ddd;
}

.cmp .cmp-picker__help {
  padding-top: 24px;
  font-size: 15px;
  font-weight: 500;
}

.cmp-picker__selects {
  display: flex;
  gap: 15px;
  padding-top: 15px;
}

.cmp .cmp-select {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 12px 40px 12px 14px;
  border: 1px solid #ddd;
  border-radius: 9px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #000;
  font-size: 13px;
  line-height: 17px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.cmp-picker__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
}

/* Tabela */
.cmp-scroll {
  overflow-x: auto;
  padding-bottom: 30px;
  -webkit-overflow-scrolling: touch;
}

.cmp-row {
  display: grid;
  grid-template-columns: 165px repeat(var(--cmp-cols, 3), minmax(0, 1fr));
}

.cmp-row:not(.cmp-row--head) {
  border-bottom: 1px solid #ececec;
}

.cmp-label {
  display: flex;
  align-items: center;
  padding: 11px 9px 11px 0;
  background: #fff;
  color: #999;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cmp-cell {
  display: block;
  align-self: center;
  padding: 10px 9px;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.cmp-dot {
  color: #ed1c25;
}

.cmp-prod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 22px 9px 28px;
  text-align: center;
}

.cmp-prod__photo {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cmp .cmp-prod__photo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  margin: 0 auto;
}

.cmp-prod__name {
  padding-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
}

.cmp-prod__family {
  padding-bottom: 8px;
  color: #777;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cmp-swatches {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.cmp-swatches img {
  display: block;
  width: 20px;
  height: 23px;
  border-radius: 2px;
  object-fit: cover;
}

/* Chamada */
.cmp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px;
  border-radius: 18px;
  background: #111;
}

.cmp .cmp-cta__title {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.cmp .cmp-cta__text {
  max-width: 390px;
  margin-top: 8px;
  color: #aaa;
  font-size: 12px;
  font-weight: 300;
}

.cmp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Projetos */
.cmp-proj {
  padding-top: 30px;
}

.cmp-proj[hidden] {
  display: none;
}

.cmp .cmp-proj__title {
  color: #111;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.3px;
  text-align: center;
}

.cmp-proj__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding-top: 22px;
}

.cmp .cmp-proj__loading {
  grid-column: 1 / -1;
  color: #777;
  font-size: 13px;
  text-align: center;
}

.cmp-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f4f4;
}

.cmp-card__photo {
  height: 180px;
  overflow: hidden;
  background: #e8e5e2;
}

.cmp-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cmp-card:hover .cmp-card__photo img {
  transform: scale(1.04);
}

.cmp-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
}

.cmp .cmp-card__title {
  color: #111;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.cmp .cmp-card__meta {
  color: #777;
  font-size: 10px;
  font-weight: 300;
}

.cmp-card__tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #777;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cmp .cmp-card__open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 767px) {
  .cmp__wrap {
    padding: 20px 14px 48px;
  }

  .cmp-picker {
    padding: 30px 18px 24px;
  }

  .cmp .cmp-picker__title {
    letter-spacing: 0.08em;
  }

  .cmp-picker__selects {
    flex-direction: column;
    gap: 10px;
  }

  .cmp .cmp-select {
    flex: none;
    font-size: 16px;
  }

  .cmp-table {
    min-width: 600px;
  }

  .cmp-row {
    grid-template-columns: 105px repeat(var(--cmp-cols, 3), minmax(0, 1fr));
  }

  /* rótulos fixos enquanto a tabela rola para o lado */
  .cmp-label {
    position: sticky;
    left: 0;
    z-index: 1;
  }

  .cmp-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }

  .cmp-proj__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cmp-proj__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmp-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Baixar PDF */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  .cmp-noprint,
  .cmp-picker__controls,
  .cmp-cta,
  .cmp-proj,
  .cmp .cmp-btn {
    display: none !important;
  }

  .cmp,
  .cmp * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cmp__wrap {
    max-width: none;
    padding: 0;
  }

  .cmp-picker {
    padding: 16px;
  }

  .cmp-scroll {
    overflow: visible;
  }

  .cmp-table {
    min-width: 0;
  }

  .cmp-row {
    grid-template-columns: 110px repeat(var(--cmp-cols, 3), minmax(0, 1fr));
    break-inside: avoid;
  }

  .cmp-label {
    position: static;
  }
}
