.product-background {
  background-color: #ffffff;
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
}

.thumbnail {
  border: 0px;
}

.image-additional a {
  border: 0px;
}

.btn-group .bt {
  border: 0px;
  background-color: #ffffff !important;
  background-image: none;
}

.btn-group {
  position: relative;
  z-index: 0;
}

.align-items-center-dados {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.align-items-center-dados li {
  margin-right: 10px;
  font-size: 15px;
}

.produto-preco {
  font-size: 30px;
}

.titulo {
  color: black;
}

.quantity-wrapper {
  height: 55px;
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: fit-content;
}

.quantity-btn {
  background-color: transparent;
  border: none;
  font-size: 18px;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}

.quantity-btn:hover {
  color: #000;
}

.quantity-input {
  border: none;
  background-color: transparent;
  width: 40px;
  height: 30px;
  text-align: center;
  font-size: 16px;
  color: #000000;
  outline: none;
}

.quantity-wrapper > * {
  margin: 0 2px;
  font-size: 22px;
}

.botao-comprar {
  width: 230px;
  font-size: 15px;
}

.stock-status.in-stock {
  color: green;
}

.stock-status.out-of-stock {
  color: rgb(255, 0, 0);
}

.stock-status.on-order {
  color: orange;
}

.stock-status.pre-order {
  color: purple;
}

.stock-status.default-stock {
  color: black;
}

.form-product-quantity {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 0px;
}

.botao-comprar {
  width: 230px;
  height: 55px;
  font-size: 15px;
  background-color: #f9aa00 !important;
  color: #000000;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.botao-comprar:hover {
  background-color: #333;
}

.cart-content {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: larger;
}

.cart-content img {
  vertical-align: middle;
  margin-right: 5px;
  filter: brightness(0);
}

.rating .fa-stack {
  width: 1.4em;
  position: relative;
  font-size: 12px;
  z-index: 10;
}

.rating {
  position: relative;
  z-index: 10;
}

.rating .star-filled {
  color: #ffd700;
  opacity: 1;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 11;
}

.rating .star-empty {
  color: #ddd;
  opacity: 0.4;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
}

.rating .fa-stack .fa-star-o {
  z-index: 9;
}

.product-images {
  position: relative;
  z-index: 1;
}

.zoom-container {
  position: relative;
  max-width: 400px;
  width: 400px;
  height: 400px;
  margin-bottom: 20px;
  margin: auto auto;
  background-color: white;
}

.zoom img {
  width: 400px;
  height: 400px;
  object-fit: contain;
  display: block;
}

.zoom-container {
  overflow: visible;
}

.js-image-zoom__zoomed-area {
  background: white;
  opacity: 0.4;
  position: absolute;
  width: 100px !important;
  height: 100px !important;
  z-index: 1001;
  top: auto !important;
  left: auto !important;
  border: 1px solid #ccc;
}

.js-image-zoom__zoomed-image {
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  right: -10px;
  transform: translateX(100%);
  width: 400px !important;
  height: 400px !important;
  z-index: 1000;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.image-additional a.active img {
  border-color: #000;
}

.product-description {
  background-color: #fff;
}

.product-description h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.description-content {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.description-content p {
  margin-bottom: 15px;
}

.description-content table {
  border: 0px;
  width: 100% !important;
}

.description-content table tbody tr {
  background-color: #f5f5f5;
}

.description-content table tbody tr:nth-child(even) {
  background-color: #fff;
}

.description-content table tbody tr td {
  border: 0px;
  color: #000;
}

.breadcrumb {
  padding: 8px 0px 8px 0px;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 10px;
  margin-top: 10px;
}

.breadcrumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-color: #f5f5f5;
  z-index: -1;
}

.breadcrumb i {
  font-size: 15px;
}

.breadcrumb > li {
  text-shadow: 0 1px 0 #fff;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
  vertical-align: middle;
  display: inline-block;
}

.breadcrumb > li + li:before {
  content: "";
  padding: 0;
}

.breadcrumb > li:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 26px;
  height: 26px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

html[dir="rtl"] .breadcrumb > li::after {
  top: -3px;
  left: -5px;
  width: 26px;
  height: 26px;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  right: unset;
  border-right: unset;
  border-bottom: unset;
}

#product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.product-price {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #product {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-price {
    margin-bottom: 10px;
  }

  .form-product-quantity {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .quantity-wrapper {
    flex-shrink: 0;
  }

  .botao-comprar {
    flex-grow: 1;
    width: auto;
    max-width: 200px;
  }

  .zoom-container {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    margin: auto auto;
    background-color: white;
    overflow: visible;
  }

  .zoom img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
  }

  .js-image-zoom__zoomed-area,
  .js-image-zoom__zoomed-image {
    display: none !important;
  }

  .image-additional-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  .image-additional {
    margin: 5px;
  }

  .thumbnail img {
    max-width: 80px;
    height: auto;
  }

  .product-description {
    margin-top: 20px;
  }

  .product-description h3 {
    font-size: 20px;
  }

  .description-content {
    font-size: 14px;
  }
}

/* Estilo para o container das opções de cores */
.opcoes-cores {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
}

/* Estilo para o container das opções */
.opcao-container {
  display: flex;
  flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
  gap: 20px;
  justify-content: flex-start; /* Alinha os itens à esquerda */
}

/* Estilo para cada item de cor */
.opcao-cor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto; /* Garante que os itens não encolham */
  border: 1px solid #ccc; /* Corrigido: adicionado 'solid' */
}

/* Estilo para a imagem da cor */
.opcao-cor img {
  width: 169px;
  height: auto;
  border-radius: 4px;
  background-color: #fff;
  transition: border 0.3s ease;
  padding: 15px 15px 0px 15px;
}

/* Estilo para o texto abaixo da imagem */
.opcao-cor span {
  margin-top: 5px;
  font-size: 14px;
  color: #333;
  font-family: Arial, sans-serif;
}

/* Estilo para o título "Opções de cores" */
.opcoes-cores h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}

@media (max-width: 768px) {
  .opcao-cor img {
    width: 100px;
    height: auto;
    padding: 10px 10px 0px 10px;
    border-radius: 4px;
    background-color: #fff;
    transition: border 0.3s ease;
  }

  /* Estilo para o container das opções */
  .opcao-container {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
    gap: 10px;
    justify-content: flex-start; /* Alinha os itens à esquerda */
  }
}

/*area de outras opcoes */

.options-container {
  margin-top: 10px;
}
.options-container div h4 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}
.option-button {
  display: inline-block;
  padding: 10px 10px;
  margin-right: 5px;
  margin-left: 5px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  min-width: 80px;
  color: #000;
}
.option-button:hover {
  background-color: #e8e8e8;
}
.option-button.selected {
  background-color: #d0d0d0;
  border-color: #999;
}

.opcoes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

/* Estilo do container de ícones */
.payment-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px; /* Espaçamento entre os ícones */
  flex-wrap: wrap; /* Permite que os ícones quebrem para a próxima linha em telas pequenas */
}

/* Estilo das imagens */
.payment-container img {
  width: 30px; /* Tamanho padrão das imagens */
  height: auto;
  object-fit: contain;
}

/* Responsividade para telas menores (celulares) */
@media (max-width: 600px) {
  .payment-container {
    gap: 15px; /* Reduz o espaçamento */
    padding: 15px;
  }

  .payment-container img {
    width: 25px; /* Reduz o tamanho das imagens */
  }
}

/* Para telas ainda menores */
@media (max-width: 400px) {
  .payment-container {
    gap: 10px;
    padding: 10px;
  }

  .payment-container img {
    width: 25px;
  }
}

/* --- NOVO LAYOUT DE GRADE COM ROLAGEM VERTICAL --- */

/* Container principal das opções */
.options-main-container {
  width: 100%;
  margin-top: 15px;
}

.options-main-container h4 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  font-family: Arial, sans-serif;
}

/* O container que terá a grade e a rolagem */
.options-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 1. CRIA A GRADE DE 3 COLUNAS */
  gap: 15px; /* Espaçamento entre os cards */

  /* 2. LIMITA A ALTURA E ATIVA A ROLAGEM */
  max-height: 335px; /* Altura máxima para ~2 linhas de cards. (Ajuste se necessário) */
  overflow-y: auto; /* Ativa a rolagem vertical APENAS se o conteúdo ultrapassar a max-height */
  padding-right: 10px; /* Espaço para a barra de rolagem não sobrepor o conteúdo */
}

/* Para telas menores (tablets e celulares), ajustamos para 2 colunas */
/* ESTE É O CÓDIGO NOVO E CORRIGIDO */
@media (max-width: 768px) {
  .options-grid-container {
    grid-template-columns: repeat(2, 1fr); /* Mantém a grade de 2 colunas */

    /* AQUI ESTÁ A CORREÇÃO:
       Definimos uma altura máxima também para a versão mobile.
       Este valor é calculado para mostrar aproximadamente 2 linhas de cards
       (2 cards por linha) antes de a rolagem ser ativada.
    */
    max-height: 335px;
  }
}

/* Estilo para cada item na lista */
.option-item {
  /* Não precisa de 'width' ou 'flex' aqui, a grade cuida de tudo */
}

/* --- ESTILOS DOS CARDS (CONTINUAM OS MESMOS) --- */

.option-card-button {
  display: block;
  width: 100%;
  height: 100%; /* Faz o botão preencher toda a altura do card */
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  cursor: pointer;
  text-align: center;
  padding: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: Arial, sans-serif;
  overflow: hidden;
  display: flex; /* Adicionado para melhor alinhamento interno */
  flex-direction: column; /* Adicionado para alinhar imagem e texto verticalmente */
}

.option-card-button:hover {
  border-color: #f9aa00;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-card-button.selected {
  border-color: #000000;
}

.option-image-wrapper {
  width: 100%;
  height: 100px; /* Levemente ajustado para melhor proporção na grade */
  overflow: hidden;
  background-color: #ffffff;
  padding: 5px;
  box-sizing: border-box;
}

.option-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.option-details {
  padding: 10px;
  flex-grow: 1; /* Faz esta área ocupar o espaço restante */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.option-name {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}

.option-price {
  font-size: 12px;
  color: #888;
}

/* --- (Opcional) ESTILO DA BARRA DE ROLAGEM VERTICAL --- */

.options-grid-container::-webkit-scrollbar {
  width: 8px; /* Largura da barra de rolagem */
}

.options-grid-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.options-grid-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.options-grid-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
