.product-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  margin: 1em 0;
  margin-bottom: 4em !important;
}

.product-table thead th {
  background-color: #f0f0f0;
  text-align: left;
  padding: 0.75em 1em;
  font-weight: 600;
  border-bottom: 2px solid #ccc;
}

.product-table tbody tr {
  border-bottom: 1px solid #ddd;
}

.product-table td {
  padding: 0.75em 1em;
  vertical-align: middle;
  position: relative;
}

/* Coluna posição: centro do badge */
.cell-position {
  width: 3.5em;
  text-align: center;
  vertical-align: middle;
}

/* Badge fica aqui, circulo laranja */
.badge {
  display: inline-block;
  background-color: #ff5722;
  color: white;
  font-weight: 700;
  font-size: 0.9em;
  padding: 0.3em 0.7em;
  border-radius: 50%;
  user-select: none;
  min-width: 1.8em;
  text-align: center;
  line-height: 1.2em;
}

/* Imagem com borda arredondada */
.cell-image img {
  display: block;
  max-width: 80px;
  height: auto;
}



.cell-info-modelo {
    display: flex;
    margin-bottom: -25px;
    margin-top: 25px;
}

.cell-info-destaque {
    display: flex
;
}

.cell-info .destaque {
  margin: 0;
  color: #555;
  font-size: 0.9em;
  font-weight: 400;
}



/* Botões empilhados */
.cell-buttons .btn {
display: block;
    margin: 0 0 0.5em 0;
    width: 100%;
    text-align: center;
    background-color: var(--button-bg-color, #398f4d);
    border: 2px solid var(--button-border-color, #398f4d);
    border-radius: 5px;
    color: var(--button-text-color, #fff) !important;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    padding: .6rem 1.4rem;
    text-decoration: none !important;
    transition: opacity .2s ease, transform .2s ease;
    white-space: nowrap;
}

.cell-buttons {
    min-width: 140px;
}

.cell-buttons .btn:hover,
.cell-buttons .btn:focus {
    opacity: .9;
    outline: none;
    transform: translateY(-1px);
}


.cell-buttons .btn[href*="amazon.com.br"]::before,
.cell-buttons .btn[href*="amzn.to"]::before
 {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(https://mundomi.com.br/wp-content/uploads/2025/07/AMZ.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: middle;
}

.cell-buttons .btn[href*="mercadolivre.com"]::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(https://mundomi.com.br/wp-content/uploads/2025/07/ML.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: middle;
    margin-top: 4px;
}

/* Responsividade */
@media (max-width: 600px) {

  .product-table, 
  .product-table tbody, 
  .product-table tr, 
  .product-table td {
    display: block;
    width: 100%;
  }

  .product-table tr {
        margin-bottom: 2.5em;
        border: 1px solid #ddd !important;
        border-radius: 4px;
  }

  .cell-position {
    text-align: left;
    margin-bottom: 0.5em;
  }

  .cell-image {
    margin-bottom: 0.5em;
    text-align: center;
  }

  .cell-buttons .btn {
    margin-bottom: 0.5em;
    width: 100%;
    text-align: center;
  }

.cell-image img {
  display: block;
  max-width: 100%;
  height: auto;
  justify-self: center;
  width: 160px;
}

.cell-info-modelo,
.cell-info-destaque {
  text-align: center;
}
}



thead {
    display: none;
}

td.cell-info {
    display: flex;
}

/* Para a linha da tabela, definir posição relativa */
.product-table tbody tr {
  position: relative;
}

/* Posicionar o badge absoluto no canto superior esquerdo da célula da imagem */
td.cell-position {
  position: absolute;
  top: 10px;  /* ajuste fino vertical */
  left: 10px; /* ajuste horizontal: o tamanho da célula posição + margem até imagem */
  z-index: 10;
  width: auto; /* tira largura fixa para não atrapalhar */
  text-align: left; /* alinhar conteúdo à esquerda */
  padding: 0;
}

/* Deixar o badge do tamanho original */
td.cell-position .badge {
  position: static; /* evitar conflito */
  display: inline-block;
}