:root {
  --t-bg: #f1f1f1;
  --t-card: #ffffff;
  --t-ink: #1f1f1f;
  --t-muted: #5f5f5f;
  --t-line: rgba(0, 0, 0, 0.12);
  --t-brand: #980f0f;
  --t-brand-2: #ba1313;
  --t-brand-dark: #340101;
  --t-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.template-showcase {
  position: relative;
  overflow: hidden;
  padding: 130px 0 90px;
  background: var(--t-bg);
}

.template-showcase .container {
  position: relative;
  z-index: 2;
}

.template-showcase__bg-shape {
  display: none;
}

.template-header {
  max-width: 760px;
  margin-bottom: 26px;
}

.template-header__tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--t-brand);
  border: 1px solid rgba(152, 15, 15, 0.25);
  background: rgba(152, 15, 15, 0.05);
  font: 700 12px/1 Kanit, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.template-header h1 {
  margin: 14px 0 8px;
  color: var(--t-ink);
  font: 700 clamp(1.95rem, 2.9vw, 2.75rem)/1.15 Kanit, sans-serif;
}

.template-header p {
  margin: 0;
  color: var(--t-muted);
  font: 400 1rem/1.6 Kanit, sans-serif;
}

.template-option {
  margin-bottom: 36px;
}

.template-option:last-child {
  margin-bottom: 0;
}

.template-option__header {
  margin-bottom: 14px;
}

.template-option__header h2 {
  margin: 0 0 4px;
  color: #2c2c2c;
  font: 600 1.3rem/1.2 Kanit, sans-serif;
}

.template-option__header p {
  margin: 0;
  color: #666;
  font: 400 0.94rem/1.45 Kanit, sans-serif;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.produto-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.produto-card:hover {
  transform: translateY(-4px);
}

.produto-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #f6f6f6;
  border-bottom: 1px solid #ececec;
}

.produto-card__media img {
  display: block;
  max-width: 84%;
  max-height: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.produto-card__code {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 2px;
  padding: 6px 8px;
  font: 700 10px/1 Kanit, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.produto-card__content {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 9px;
  padding: 15px;
}

.produto-card__content h3 {
  margin: 0;
  color: #202020;
  font: 600 0.98rem/1.35 Kanit, sans-serif;
}

.produto-card__content p {
  margin: 0;
  color: #667;
  font: 12px Kanit, sans-serif;
  text-align: start;
}

.produto-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.btn-template {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 3px;
  font: 600 0.74rem/1 Kanit, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btn-template:hover {
  opacity: 0.92;
}

/* Opcao A: padrão limpo */
.produto-card--a {
  border: 1px solid #e2e2e2;
  background: var(--t-card);
  box-shadow: var(--t-shadow);
}

.produto-card--a .produto-card__code {
  background: var(--t-brand);
  color: #fff;
}

.produto-card--a .btn-template--ghost {
  border: 1px solid #cfcfcf;
  color: #3f3f3f;
  background: #fff;
}

.produto-card--a .btn-template--solid {
  background: var(--t-brand);
  color: #fff;
}

/* Opcao B: escuro discreto */
.produto-card--b {
  border: 1px solid #2f2f2f;
  background: linear-gradient(180deg, #2a2a2a, #202020);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.produto-card--b .produto-card__media {
  background: #f0f0f0;
}

.produto-card--b .produto-card__code {
  background: #3a3a3a;
  color: #f8f8f8;
}

.produto-card--b .produto-card__content h3 {
  color: #f2f2f2;
}

.produto-card--b .produto-card__content p {
  color: #c8c8c8;
}

.produto-card--b .btn-template--ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f0f0f0;
  background: transparent;
}

.produto-card--b .btn-template--solid {
  background: #ececec;
  color: #202020;
}

/* Opcao C: técnico */
.produto-card--c {
  border: 1px dashed #a9a9a9;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.produto-card--c .produto-card__media {
  background: repeating-linear-gradient(
    45deg,
    #f8f8f8,
    #f8f8f8 9px,
    #f3f3f3 9px,
    #f3f3f3 18px
  );
}

.produto-card--c .produto-card__content {
  border-top: 2px solid #777;
}

.produto-card--c .produto-card__code {
  background: #666;
  color: #fff;
}

.produto-card--c .btn-template {
  border-radius: 2px;
}

.produto-card--c .btn-template--ghost {
  border: 1px solid #b8b8b8;
  color: #404040;
  background: #fff;
}

.produto-card--c .btn-template--solid {
  background: #666;
  color: #fff;
}

/* Opcao D: comercial do projeto */
.produto-card--d {
  border: 1px solid rgba(152, 15, 15, 0.25);
  background: #fff;
  box-shadow: 0 8px 24px rgba(152, 15, 15, 0.12);
}

.produto-card--d .produto-card__media {
  background: #f7f7f7;
}

.produto-card--d .produto-card__code {
  background: var(--t-brand-dark);
  color: #fff;
}

.produto-card--d .produto-card__content {
  border-top: 3px solid var(--t-brand);
}

.produto-card--d .btn-template--ghost {
  border: 1px solid rgba(152, 15, 15, 0.35);
  color: var(--t-brand);
  background: #fff;
}

.produto-card--d .btn-template--solid {
  background: linear-gradient(90deg, var(--t-brand-2), var(--t-brand));
  color: #fff;
}

/* Opcao E: simples */
.produto-card--e {
  grid-template-rows: 180px 1fr;
  border: 1px solid #dfdfdf;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.produto-card--e .produto-card__media {
  background: #fafafa;
}

.produto-card--e .produto-card__media img {
  max-width: 78%;
  max-height: 78%;
}

.produto-card--e .produto-card__code {
  background: #f1f1f1;
  color: #555;
  border: 1px solid #ddd;
}

.produto-card--e .produto-card__content {
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.produto-card--e .produto-card__content h3 {
  font-size: 0.95rem;
  line-height: 1.4;
}

.produto-card--e .produto-card__actions {
  gap: 10px;
}

.produto-card--e .btn-template {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.produto-card--e .btn-template--solid {
  color: var(--t-brand);
}

.produto-card--e .btn-template--ghost {
  color: #555;
}

@media (max-width: 991px) {
  .template-showcase {
    padding-top: 110px;
  }

  .produto-card {
    grid-template-rows: 190px 1fr;
  }
}

@media (max-width: 575px) {
  .template-showcase {
    padding: 100px 0 68px;
  }

  .template-option {
    margin-bottom: 30px;
  }

  .produto-card__media {
    padding: 14px;
  }

  .produto-card__content {
    padding: 13px;
  }

  .btn-template {
    width: 100%;
  }
}
