.pro-qty {
  border-radius: 10px;
  background: #ffffff;
}
#quantidade-produto {
  background: #ffffff;
}
.produto {
  width: 100%;
  border-radius: 16px;
  display: flex;
  gap: 20px;
  padding: 5px;
}

.imagem-principal {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center; /* Centraliza imagem */
  min-height: 450px; /* Altura flexível */
}

.imagem-principal img {
  max-width: 100%;
  max-height: 450px; /* Limite máximo */
  width: auto;
  height: auto;
  object-fit: contain; /* NÃO corta - mostra inteira */
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carrossel {
  width: 115px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
}

.track {
  padding: 8px;
  gap: 12px;
  height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -ms-overflow-style: none; /* IE / Edge antigo */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );

  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.track img {
  width: 90px;
  height: 90px;

  object-fit: contain;
  background: #fff;

  padding: 6px;

  border: 2px solid #dcdcdc;
  border-radius: 10px;

  cursor: pointer;

  transition: 0.25s;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  opacity: 1;
}

.track img:hover {
  transform: scale(1.06);

  border-color: #3470f3;

  box-shadow: 0 8px 20px rgba(52, 112, 243, 0.25);
}

.track img.ativo {
  border: 3px solid #3470f3;

  box-shadow: 0 0 0 4px rgba(52, 112, 243, 0.18);

  transform: scale(1.04);
}

/* Responsivo */

/*---------------------------------------------------------------------------------------------*/

/* Popup container - can be anything you want */
#marca_1 {
  position: relative;
  width: 90px;
  height: 50px;
  margin: 0px 0px 0px 0px;
}

/*----------------------------------------------------------------------------------*/

.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select {
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  padding: 0 40px 0 12px;
  line-height: 44px;
  font-size: 14px;
  color: #333;
}

.custom-select::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  pointer-events: none;
}

.custom-select:focus-within {
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.selected-option {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.options-list {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-top: none;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.custom-select:focus-within .options-list {
  opacity: 1;
  visibility: visible;
}

.options-list li {
  padding: 10px 12px;
  cursor: pointer;
}

.options-list li:hover {
  background: #f8f9fa;
}

.options-list li[data-selected] {
  background: #3470f3;
  color: #fff;
}

/*-------------------------*/
/* BLOCO PRINCIPAL */
.frete-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}

/* TÍTULO */
.frete-titulo {
  text-align: center;
  margin-bottom: 8px;
}

.frete-titulo b {
  font-size: 18px;
}

/* FORMULÁRIO */
.frete-form {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* BOTÃO */
.btn-calcular {
  margin-top: -23px;
  padding: 12px 16px;
  background: #3470f3;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

/* RESULTADO */
.frete-resultado {
  margin-top: -10px;
  text-align: center;
  font-size: 16px;
  min-height: 40px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
}
/*-------------------------*/
#btn-add-car {
  background: rgba(65, 123, 248, 1) !important;
  color: #e6e5e5ff !important;
  border-radius: 8px;
  width: 99%;
  height: 60px;
  font-weight: bold;
  font-size: 19px;
  text-align: center;
  border: solid 2px rgba(173, 173, 173, 1);
}

#btn-add-car:hover {
  background: rgb(52, 112, 243) !important;
  color: #ffffff !important;
}

#msg-tipo-envio {
  font-size: 20px;
}
/*/////////////////////////*/
#bloco_correios {
  height: 236px;
  width: 100%;
  border-radius: 10px;
  padding: 10px;
  background: #ffffffff;
  margin-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/*----------------------------------------CARROCEL--------------------------------------------------------*/
/* ===============================
   BASE
================================ */

/* ===============================
   CONTAINER DO CARROSSEL
================================ */
.carousel-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.carousel-area {
  position: relative;
}

/* ===============================
   ÁREA VISÍVEL (viewport)
================================ */
.carousel-wrapper {
  width: 1120px; /* 4 cards no desktop */
  overflow: hidden;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===============================
   TRILHA DOS PRODUTOS
================================ */
.products-track {
  display: flex;
  gap: 25px;
  transition: transform 0.4s ease;
}

/* ===============================
   CARD DO PRODUTO
================================ */
.product-card {
  width: 260px;
  min-width: 260px;
  max-width: 260px;

  background: #fff;
  border-radius: 14px;
  padding: 20px 20px 40px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===============================
   TÍTULO (2 LINHAS)
================================ */
.product-title {
  font-weight: bold;
  font-size: 18px;
  line-height: 1.2;
  height: 2.4em;
  margin-bottom: 12px;
  overflow: hidden;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===============================
   IMAGEM
================================ */
.product-image {
  position: relative;
}

.product-image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

/* ===============================
   BADGE DESCONTO
================================ */
.price-badge {
  position: absolute;
  top: 10px;
  right: 10px;

  background: #ff4d4d;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ===============================
   PREÇOS
================================ */
.old-price {
  display: block;
  margin-top: 10px;
  color: #999;
  text-decoration: line-through;
}

.promo-price {
  display: block;
  margin-bottom: 10px;
  color: #000;
  font-weight: bold;
}

/* ===============================
   BOTÃO
================================ */
.btn-comprar {
  padding: 5px 25px;
  background: linear-gradient(135deg, #3470f3, #2458d6);
  color: #fff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #ccc;

  display: inline-block;
  margin: 0 auto;
  white-space: nowrap;
}

.btn-comprar:hover {
  background: #1557f0;
  border-color: #7c7c7c;
}

/* ===============================
   SETAS
================================ */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
}

.arrow-left {
  left: -25px;
}
.arrow-right {
  right: -25px;
}

.arrow-btn:hover {
  background: #fff;
  color: #000;
}

.arrow-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ======================================================
   RESPONSIVIDADE (BOOTSTRAP BREAKPOINTS)
====================================================== */
/*---------modal------------------*/
/* ===== MODAL AVISO LOGIN PADRÃO LOJA ===== */

#modal_1 {
  max-width: 420px;
}

#bloco_modal {
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  height: auto;
  width: 100%;
  top: 0;
  margin: auto;
}

/* TÍTULO */
#palavra_aviso {
  position: static;
  display: block;
  text-align: center;
  font-size: 28px;
  font-family: inherit;
  color: #3470f3;
  margin-top: 15px;
}

/* TEXTO */
#texto_aviso {
  position: static;
  text-align: center;
  font-size: 15px;
  color: #555;
  padding: 10px 30px 0 30px;
  margin: 0;
}

/* HEADER */
#bloco_modal .modal-header {
  border: none;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 0;
}

/* FOOTER */
#bloco_modal .modal-footer {
  border: none;
  display: block;
  padding: 20px 35px 30px 35px;
}

/* BOTÕES */
#bloco_modal .btn-primary {
  background: linear-gradient(135deg, #3470f3, #2458d6);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 11px;
}

#bloco_modal .btn-secondary {
  background: #fff;
  border: 2px solid #3470f3;
  border-radius: 8px;
  font-weight: 600;
  padding: 11px;
  color: #3470f3;
  transition: all 0.3s ease;
}

/*--------------------------------*/
/* Abas do produto */

/* =====================================
   ABAS DO PRODUTO
===================================== */

#bloco_descricao {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

  margin: 40px 0 30px;
  padding: 0;
  list-style: none;
}

/* NOVO */
#bloco_descricao .nav-item {
  margin: 0;
}

#bloco_descricao .nav-link {
  background: #ffffff;
  color: #666;
  border: none;
  border-radius: 10px;
  min-width: 340px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

#bloco_descricao .nav-link:hover {
  background: #f5f5f5;
  color: #000000;
  transform: translateY(-2px);
}

#bloco_descricao .nav-link.active {
  background: #3470f3;
  color: #fff;
  box-shadow: 0 6px 18px rgba(191, 191, 192, 0.35);
}

/*--------------------------------*/

/* NOTEBOOK / TABLET GRANDE → 3 cards */
@media (max-width: 1200px) {
  .carousel-wrapper {
    width: 840px;
  }
  .arrow-left {
    left: 5px;
  }
  .arrow-right {
    right: 5px;
  }

  #imgPrincipal {
    /*border: solid 1px black;*/
    min-width: 100%;
    max-width: 50%;
  }
}

/* TABLET → 2 cards */
@media (max-width: 992px) {
  .carousel-wrapper {
    width: 560px;
  }

  #imgPrincipal {
    /*border: solid 1px rgb(202, 59, 59);*/
    min-width: 400px;
    max-width: 50%;
  }
  #bloco_descricao{
    display:flex;
    flex-direction:column;
    align-items:center;   /* centraliza os itens */
    gap:10px;
    padding:0;
    margin:0 auto;
}

#bloco_descricao .nav-item{
    width:100%;
    margin:0;
    list-style:none;
    padding: 10px;
}

#bloco_descricao .nav-link{
    width:100%;
    min-width:0 !important;
    max-width:none;
    display:flex;
    justify-content:center;
    align-items:center;
 
}

}

/* CELULAR → 1 card */
/* CELULAR → 1 CARD */
/*==================================================
CELULAR
==================================================*/
/*==================================================
CELULAR
==================================================*/
@media (max-width: 610px) {
  /*----------------------------------------
    GALERIA
    ----------------------------------------*/

  .produto {
    display: flex;
    align-items: stretch; /* ambos terão a mesma altura */
    gap: 10px;
  }

  /*----------------------------------------
    CARROSSEL
    ----------------------------------------*/

  .carrossel {
    width: 82px;

    display: flex;

    align-self: stretch;

    overflow: hidden;

    flex-shrink: 0;
  }

  .track {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 8px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
  }

  .track::-webkit-scrollbar {
    display: none;
  }

  .track img {
    width: 68px;
    height: 68px;

    object-fit: cover;

    border-radius: 8px;

    cursor: pointer;

    flex-shrink: 0;
  }

  /*----------------------------------------
    IMAGEM PRINCIPAL
    ----------------------------------------*/

  .imagem-principal {
    flex: 1;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 0;
    margin: 0;
  }

  #imgPrincipal {
    width: 100%;
    max-width: 100%;

    height: auto;

    max-height: 420px;

    object-fit: contain;

    display: block;
  }

  /*----------------------------------------
    PRODUTOS RELACIONADOS
    ----------------------------------------*/

  .carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 0;
  }

  .products-track {
    display: flex;
    gap: 0;
    transition: transform 0.4s ease;
  }

  .product-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 18px;
    margin: 0;
  }

  .arrow-btn {
    display: flex;
    z-index: 20;
  }

  .arrow-left {
    left: 8px;
  }

  .arrow-right {
    right: 8px;
  }

  /*----------------------------------------
    FRETE
    ----------------------------------------*/

  #bloco_correios {
    min-height: 300px;
    height: auto;
  }
  
}
@media (max-width: 533px) {
  /*==================================================
CELULAR
==================================================*/

  /*----------------------------------------
    BLOCO DA GALERIA
    ----------------------------------------*/

  .produto {
    display: flex;
    align-items: flex-start; /* alinha pelo topo */
    gap: 10px;
  }

  /*----------------------------------------
    CARROSSEL
    ----------------------------------------*/

  .carrossel {
    width: 82px;
    height: 60vw;
    max-height: 400px;
    min-height: 170px;
  }

  .track {
   
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: none;
  }

  .track::-webkit-scrollbar {
    display: none;
  }

  .track img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
  }

  /*----------------------------------------
    IMAGEM PRINCIPAL
    ----------------------------------------*/

  .imagem-principal {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 260px;
    padding-top: 0;
    margin-top: 0;
   
  }

  #imgPrincipal {
    width: 100%;
    max-width: 100%;

    min-width: 0;

    height: auto;

    object-fit: contain;
  }

  /*----------------------------------------
    PRODUTOS RELACIONADOS
    ----------------------------------------*/

  .carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 0;
  }

  .products-track {
    display: flex;
    gap: 0;
    transition: transform 0.4s ease;
  }

  .product-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 18px 18px 30px;
    margin: 0;
  }

  .arrow-btn {
    display: flex;
    z-index: 20;
  }

  .arrow-left {
    left: 8px;
  }

  .arrow-right {
    right: 8px;
  }

  /*----------------------------------------
    FRETE
    ----------------------------------------*/

  #bloco_correios {
    min-height: 300px;
    height: auto;
  }
  
}

/*==================================================
CELULARES PEQUENOS
==================================================*/

@media (max-width:380px){

    .frete-form{

        display:flex;

        flex-direction:column;

        gap:12px;

    }

    .frete-form .col-lg-8{

        width:100%;
        max-width:100%;
        flex:0 0 100%;

        padding:0;
        margin:0;

    }

    .btn-calcular{

        width:100%;

        margin-top:0;

    }
  
#bloco_descricao{
    display:flex;
    flex-direction:column;
    align-items:center;   /* centraliza os itens */
    gap:10px;
    padding:0;
    margin:0 auto;
}

#bloco_descricao .nav-item{
    width:100%;
    margin:0;
    list-style:none;
    padding: 10px;
}

#bloco_descricao .nav-link{
    width:100%;
    min-width:0 !important;
    max-width:none;
    display:flex;
    justify-content:center;
    align-items:center;
 
}
 .tabela-descricao td{
        font-size:12px;
        
    }

    .tabela-descricao th{
        font-size:14px;
        
    }

    

}
