:root {
    --cor-1: #E4153B;
    --cor-2: #7e7e7e;
    --cor-3: #ffffff;
    --cor-4: #3d3d3d;
    --cor-erro: #e83c2c;
}

.img-grade{
    margin: auto;
}

@media (min-width: 1200px){
    .img-grade{
        height: 320px !important;        
        width: auto;
    } 
}

@media (max-width: 767px) and (orientation:landscape){
    .img-grade{
        height: 260px !important;    
        width: auto;
    } 
}


.flex-tamanhos{
    display: flex; 
    flex-wrap: wrap;
}

.flex-tamanho-item{
    display: flex; 
    flex-direction: column; 
    align-items: center;
    width: 70px; 
    margin: 0 15px 15px 15px;
}

.flex-tamanho-row{
    align-self: stretch; 
    text-align: center;
}

.flex-tamanho-estoque{
    display: flex; 
    justify-content: space-around; 
    font-size: 0.9em;
}

.row-cor-grade{
    margin: 10px 1px;
    padding: 10px 0 20px 0;
    box-shadow: 0px 0px 2px 2px var(--cor-2);
}

.coluna-tamanho-grade input.erro, .input-grade-carrinho.erro, .input-grade.erro, .input-catalogo.erro{
    border: 1.5px solid var(--cor-erro);
    color: var(--cor-erro);
}

.input-grade{
    font-size: 120%;
    text-align: center;
}

.input-grade[disabled]{
    cursor: not-allowed; 
    background-color: #efefef;
    opacity: 1;
}

.linha-cor{
    box-shadow: 0px 0px 2px 2px var(--cor-2); 
    margin: 30px 0;
}

.cab-produto-grade{
    display: flex; 
    height: 40px; 
    align-items: center;
    margin: 16px 0px;
}

.cab-produto-grade.with-image{
    display: flex; 
    height: 80px; 
    align-items: center;
    margin: 16px 0px;
}

.div-img-produto-grade{
    flex-basis: 60px;
    /* flex-basis: 14%; */
}

.div-desc-produto-grade{
    padding-left: 10px;
    /* width: 65%; */
}

.div-quantidade-produto-grade{
    margin-left: auto;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.div-quantidade-produto-valor{
    /* margin-left: auto; */
    display: flex; 
    /* flex-direction: column;  */
    align-items: center;
}

.div-quantidade-estoque-cor{
    margin-left: auto;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.div-left-grade{
    flex-wrap: wrap; 
    flex-direction: row; 
    align-items: center;
    /* margin-left: auto; */
    /* width: 20%; */
}

.div-left-grade div{
    padding: 0 10px;
}

.div-right-grade{
    display: flex; 
    flex-wrap: wrap; 
    flex-direction: row; 
    margin-left: auto; 
    align-items: end;
    justify-content: flex-end;
    width: 20%;
}


.flags-grade {
    font-size: 12px;
    /* display: flex; */
    /* width: 10%; */
}

.flags-grade > div {
    padding: 8px;
    border-radius: 16px;
}

.tamanhos-grade {
    display: flex;
}

@media (min-width: 768px) {    
    .div-expande-card-grade .btn-expande-card-grade-lg{
        display: block;
    }
    .div-expande-card-grade .btn-expande-card-grade-xs{
        display: none;
    }
    .div-left-grade{
        display: flex;
    }
    .div-left-grade div{
        padding: 0 16px;
    }
}

@media (max-width: 767px) {    
    .div-expande-card-grade .btn-expande-card-grade-lg{
        display: none;
    }
    .div-expande-card-grade .btn-expande-card-grade-xs{
        display: block;
    }
    .div-left-grade{
        display: block;
    }
    .div-left-grade div{
        padding: 0 4px;
    }
}

.div-expande-card-grade button[aria-expanded="true"] .icone-abrir-grade:before{
    content: "\f077"
}

@media (max-width: 767px) {
    .cab-produto-grade.with-image {
        height: 140px;
    }
    .div-right-grade{
        flex-direction: column;
    }
}

.container-pack-grade {
    display: flex;
}

.container-pack-grade .pack-select {
    width: 250px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .input-quantidade-pack {
        width: 80px !important;
    }
}
.container-pack-grade div:not(:first-child) {
    padding-right: 10px;
}


/* para quando tiver um list-group dentro de outro list-group */
.list-group-item .list-group-item {
    margin-bottom: -2px;
    cursor: pointer;
  }
  
  #list-group-filtro .list-group-item.active {
    background-image: linear-gradient(to bottom, var(--cor-4) 0%, #303030 100%);
    background-image: -webkit-linear-gradient(top, var(--cor-4) 0%, #303030 100%);
    background-image: -webkit-gradient(
      linear,
      left top,
      left bottom,
      from(var(--cor-4)),
      to(#303030)
    );
    border-color: var(--cor-4) !important;
  }
  
  .img-modal {
    margin: auto;
    object-fit: contain;
    height: 372px;
    width: 100%;
    display: flex;
  }
  
  .carousel-indicators-modal .carousel-control {
    color: #000 !important;
    background-image: -webkit-linear-gradient(
      left,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
    background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.0001) 0%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
    background-repeat: repeat-x;
  }
  
  .carousel-indicators-modal.carousel-control:hover {
    color: #363636 !important;
    background-image: -webkit-linear-gradient(
      left,
      rgba(0, 0, 0, 0.002) 0%,
      rgba(0, 0, 0, 0.01) 100%
    ) !important;
    background-image: -webkit-linear-gradient(
      to right,
      rgba(0, 0, 0, 0.002) 0%,
      rgba(0, 0, 0, 0.01) 100%
    ) !important;
    background-repeat: repeat-x;
  }
  
  .carousel-indicators-modal .carousel-indicators .active {
    width: 10px;
    height: 10px;
    background-color: #000000 !important;
  }
  
  .carousel-indicators-modal .carousel-indicators li {
    margin: 1px;
    width: 10px;
    height: 10px;
    border: 1px solid rgb(0, 0, 0) !important;
  }
  
  .carousel-indicators-modal .carousel-indicators li {
    width: 12px !important;
    height: 12px !important;
    margin: 2px !important;
  }
  
  .carousel-indicators-modal .setas-carrosel {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-block;
    margin-top: -15px;
    margin-left: -15px;
    cursor: pointer;
  }
  
  .input-aling {
    display: flex;
    justify-content: center;
  }
  
  .col-grid-catalogo.opacity-item-catalogo {
    opacity: 0.4;
    -webkit-transition: opacity 0.1s ease-in-out;
    -moz-transition: opacity 0.1s ease-in-out;
    -ms-transition: opacity 0.1s ease-in-out;
    -o-transition: opacity 0.1s ease-in-out;
    transition: opacity 0.1s ease-in-out;
  }
  
  .flag-processo-add {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    flex-direction: column-reverse;
    align-items: center;
  }

  
  /* Container geral do bloco */
  .pedido-produto-det {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  /* Nome e código do produto */
  .pedido-produto-det h5 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
  }
  
  /* Grupo / Subgrupo — informação secundária */
  .flags-modal-catalogo {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
  
  .badgs-modal-catalogo {
    background-color: #f1f1f1;
    color: #666;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    display: inline-block;
  }
  
  .classif-catalogo-texto {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Fornecedor — mais destaque */
  .pedido-produto-det span.badge-fornecedor {
    /* background-color: #e0e0e0; */
    color: #333;
    font-weight: 600;
    /* border-radius: 4px; */
    /* padding: 4px 10px; */
    font-size: 13px;
    display: inline-block;
    margin-bottom: 10px;
  }
  
  /* Preço — bem evidente */
  .preco-modal-catalogo {
    text-align: center;
    font-size: 18px;
    color: #111;
    margin: 8% 0%;
    margin-bottom: 6px;
  }
  
  .preco-modal-catalogo span {
    color: #2b2b2b;
    font-weight: 700;
    font-size: 22px;
  }
  
  .preco-modal-catalogo p {
    color: #2b2b2b;
    font-size: 14px;
  }
  
  .video-thumbnail {
    position: relative;
    width: 80px; 
    height: 60px; 
    overflow: hidden; 
    background-color: #f0f0f0; 
  } 
  
  .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza o ícone */
    font-size: 24px; /* Tamanho fixo para o ícone */
    color: white; /* Cor do ícone */
    background: rgba(0, 0, 0, 0.5); /* Fundo semitransparente */
    padding: 10px;
    border-radius: 50%; /* Ícone redondo */
    z-index: 1; /* Garante que o ícone fique sobre a imagem */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .play-icon i {
    margin: 0; /* Remove margens ou estilos indesejados */
    line-height: 1; /* Garante que o ícone não se estique */
  }
  
  .img-wrapper {
      width: 100%;
      height: 396px; /* Ajuste conforme o layout desejado */
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      overflow: hidden;
  }
  
  /* Imagem principal */
  .img-grade {
      width: 100%;
      height: 100%;
      object-fit: contain !important;
      object-position: center;
      background: #fff;
  }
  
  /* Se for vídeo dentro do carrossel */
  .plyr__video-embed, 
  .plyr__video-embed iframe {
      width: 100%;
      height: 100%;
  }
  
  /* Thumbnails */
  .thumbs-grade {
    padding: 0px 8px;
    margin-top: 16px;
  }
  
  .thumbs-grade img,
  .thumbnail-wrapper-img {
      width: 80px;
      height: 60px;
      object-fit: contain;
  }
  
  
  .thumbs-grade li{
      display: inline-block;
      flex-basis: 80px;    
      vertical-align: top;
    }
    
    /* Seleção da thumbnail */
    .thumbs-grade > li.active a {
        border: 1.5px solid var(--cor-1);
    }

    .thumbs-grade > li > a{
        border: 1px solid var(--cor-2); 
        display: block;
    }

@media (max-width: 650px){
    .thumbs-grade li{
        width: 90px; 
        height: 70px;
    }
    .thumbs-grade img,
    .thumbnail-wrapper-img {
        width: 90px;
        height: 70px;
    }
    .video-thumbnail {
        width: 90px; 
        height: 70px; 
      } 
}

.flag-modal-produto-heart {
  color: var(--cor-1);
}