/* Exemplo de customização para o template padrão */

body {
  background: #f4f5f7;
}

.w-full {
  width: 100%;
}

.h-40 {
  height: 7rem;
}

.h-20{
  height: 3.5rem;
}

.fs-7rem {
  font-size: 0.7rem !important;
}

.fs-9rem {
  font-size: 0.9rem !important;
}

.logo_topo {
  width: 170px;
  height: 170px;
  background-color: #e7e7e7;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  border-radius: 0.4rem;
  margin-top: -5rem;
  padding: 0.25rem;
  flex-shrink: 0;
}

.logo_container {
  width: 100%;
  height: 100%;
  border-radius: 0.4rem;
  overflow: hidden;
}

.dados_empresa{
    font-family: "Poppins", sans-serif;
    padding-left: 3rem;
}

.dados_empresa h1{
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.aberto-agora {
  display: inline-block;
  margin-right: 6px;
  animation: pulse-dot 1.5s infinite ease-in-out;
  font-size: 1.2rem;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}


.section-search input{
   border-radius: 1rem !important; 
}

.section-search input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.menu-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  /*margin-top: 6px;*/
  position: relative;
}

/* Visibilidade da barra */
.menu-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.menu-scroll-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.menu-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.menu-scroll-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #ccc #f0f0f0;
}

.container-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem 0 0.50rem; /* espaço extra no topo */
  overflow: visible; /* permite que o botão ampliado apareça fora */
  scroll-behavior: smooth;
}

.category-pill {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #f4f5f7, #ffffff);
  color: #555;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
  transform-origin: center center;
}

.category-pill:hover {
  background: linear-gradient(145deg, #e9ecef, #fff);
  color: #000;
  transform: scale(1.05);
  cursor: pointer;
}

.category-pill.active {
  background: #000;
  color: #fff;
  border: none;
  /*transform: scale(1.1);*/
}

.menu-scroll-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff; /* ou cor do seu layout */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hover */
.produto-card:hover {
  transform: scale(1.02);
}

.produto-card img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  display: block;
}
/* Estilo do card do produto */
.produto-card {
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  /*height: auto;*/
  height: 100%;
  padding: 0;
  background-color: #fff;
  border-radius: 1rem;
}

/* Corpo do card mais compacto */
.produto-card .card-body {
  padding: 0.5rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

/* Título mais fino */
.produto-card .card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.2em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  max-height: calc(1.2em * 2);
}

/* Preço menor e elegante */
.preco-produto {
  font-size: 1rem;
  font-weight: 500;
  color: #27ae60;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

@media (max-width: 768px) {
  .container-header{
    background-color: #fff;
    border-radius: 1rem;
    margin-top: -13px;
    padding-bottom: 0.6rem !important;
  }
  .logo_topo {
    width: 110px;
    height: 110px;
    margin-top: -6rem;
    border-radius: 50%;
     padding: 2px; /* bem fino */
  }

  .logo_container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .dados_empresa{
    padding: 0;
  }

  .dados_empresa h1{
    text-align: center;
    padding-left: 0rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  
}




@media (max-width: 375px) {
  .produto-card img {
    height: 155px;
  }
}

@media (max-width: 576px) {
  .produto-card img {
    height: 182px;
  }
}

/* Centralizar no desktop */
@media (min-width: 768px) {
  .container-menu {
    justify-content: center;
  }
}

/*------------------CORES DO THEMA------------------------*/

.bg-my-primary{
  background: #000;
}

.btn-light {
  background-color: #fff;
}

.bg-my-gray{
  background: #f3f4f6;
}

.text-success {
    --bs-text-opacity: 1;
    color: rgb(14 202 65) !important;
}

.btn-primary{
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #000000 !important;
    --bs-btn-border-color: #0b0b0b !important;
}

.btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: #4b4b4b;
    border-color: #4d4d4d;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: var(--bs-btn-active-color);
    background-color: #2b2b2b !important;
    border-color: #353535 !important;
}

.text-color-preco{
  color: #000;
}

.text-p-color-diferenca{
  color: #374151;
}

.color-my-gray{
  color: #636363;
}

.barra-fixa-app{
  background: #fff;
  border-top: 1px solid #ddd;
}



/*------------------- Swal ------------------------------*/
.swal2-container {
  z-index: 99999;
}

/*------------------- Swipper ------------------------------*/

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem !important; 
}

/*--------- toolbar-----------------------*/

.barra-fixa-app {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  /*background: #fff;*/
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9997;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.barra-fixa-app .item-barra {
  text-align: center;
  font-size: 0.75rem;
  color: #9f9f9fe0;
  text-decoration: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.barra-fixa-app .item-barra i {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.barra-fixa-app .item-barra:hover {
  color: #000;
}

.barra-fixa-app .item-barra:focus {
  color: #000;
}

.icone-com-badge {
  position: relative;
}

a.badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  border: 1px solid #000;
}

.icone-com-badge {
  position: relative;
}

.badge-numero {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: red;
  color: white;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
  z-index: 1;
}

/* Pulso externo */
.badge-numero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.3);
  z-index: -1;
  animation: pulse-glow 1.5s infinite;
}

/* Animação do brilho pulsante */
@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}



/******MODAL PRODUTOS DETALHES*******/
#modalProdutoDetalhes{
  z-index: 9999 !important;
}

.btn-close {
  background-color: #dddddd;
  border-radius: 50%;
}

#modalProdutoDetalhes .modal-header {
  background-color: transparent !important;
  border: none;
  z-index: 1;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#modalProdutoDetalhes .modal-title {
  display: none;
}

#modalProdutoDetalhes .modal-body {
  margin-top: -32px !important;
  transition: margin-top 0.3s ease;
}

#modalProdutoDetalhes.header-ativo .modal-header {
  background-color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#modalProdutoDetalhes.header-ativo .modal-title {
  display: block;
}

#modalProdutoDetalhes.header-ativo .modal-body {
  margin-top: 0px !important;
}


.produtoEspecifico {
  font-family: "Poppins", sans-serif;
}

#areaBuscaModalEspecifica {
  transition: all 0.3s ease;
}


#areaBuscaModalEspecifica .rounded-pill{
  border-radius: 1rem !important; 
}

.vlr_opcional_adicional{
  font-family: "Poppins", sans-serif;
  color: #000;
  font-size: 12px;
}

.my_radio_modal.form-check-input:checked {
  background-color: #000000;
  border-color: #000000;
}

.my_radio_modal.form-check-input:focus {
  border-color: #575757;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(102, 102, 102, 0.25);
}

.my_checkbox_modal .form-check-input:checked {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.form-check-input:checked {
  background-color: #000000;
  border-color: #000000;
}

.form-check-input:focus {
  border-color: #575757;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(102, 102, 102, 0.25);
}

.my_checkbox_modal .form-check-input:focus {
  border-color: #575757 !important;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(102, 102, 102, 0.25) !important;
}

#observacaoModal .form-control:focus {
  border-color: #5b5b5b !important;
  box-shadow: 0 0 0 .25rem rgb(93 93 93 / 25%)!important;
}

#modalProdutoDetalhes .modal-footer {
  display: inline;
}

#modalProdutoDetalhes .form-check-input{
  --bs-form-check-bg: #efefef !important;
}

.btn-add p{
  font-size: 14px;
}

.quantidade-selector {
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  padding: 4px 10px;
  /*min-width: 100px;*/
  height: 40px;
}

.btn-qtd {
  color: #6b7280;
  font-size: 1.4rem;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  padding: 0 6px;
  transition: color 0.2s ease;
}

.btn-qtd:hover {
  color: #111827;
}

.qtd-valor {
  color: #111827;
  font-size: 1rem;
  font-weight: 400;
  min-width: 20px;
  text-align: center;
}

/******MODAL SACOLA DETALHES*******/
#modalSacola{
  z-index: 9999 !important;
}

#modalSacola .modal-body{
  font-family: "Poppins", sans-serif;
  background: #f4f5f7;
}

#listaMinhasSacola .opcionais_adicionais{
  font-size: 0.9rem !important;
}

#modalSacola .topo-sacola p{
  font-size: 0.9rem !important;
}

#modalSacola .desc-topo-sacola{
  font-size: 0.8rem !important;
}

#listaSugestao .card-title{
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.2em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  max-height: calc(1.2em * 2);
}

#modalSacola .modal-footer{
  font-family: "Poppins", sans-serif;
}

#modalSacola  .modal-footer {
  display: initial;
}

#modalSacola .form-control{
  border-radius: 0.8rem !important;
}

#modalSacola .form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: #00000096;
  outline: 0;
  box-shadow: 0 0 0 .25rem #16161636;
}

#modalSacola .form-select:focus {
  border-color: #00000096;
  outline: 0;
  box-shadow: 0 0 0 .25rem #00000096;
}

#modalSacola .form-check-input:checked {
    background-color: #000000;
    border-color: #000000;
}

#modalSacola .form-check-input{
  --bs-form-check-bg: #efefef !important;
}

#modalSacola .form-check-input:focus {
  box-shadow: 0 0 0 .25rem rgba(61, 61, 61, 0.25);
}

#modalSacola .forma-entrega-option{
  border-radius: 1rem !important;
}


#modalSacola #retirada{
  font-size: 0.8rem !important;
}


#modalSacola .forma-pagamento-option{
  border-radius: 1rem !important;
}

/******MODAL SOBRE EMPRESA*******/
#informacoes_empresa{
  z-index: 9999 !important;
  font-family: "Poppins", sans-serif !important;
}

.letter-spacing {
  letter-spacing: 1px;
}

/******MODAL PESQUISA*******/
#pesquisa_produtos{
  z-index: 9998 !important;
  font-family: "Poppins", sans-serif !important;
}

#pesquisa_produtos .modal-body{
  background-color: #f0f0f0;;
}

#pesquisa_produtos .form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgb(13 110 253 / 0%) !important;
}

#pesquisa_produtos .card-title{
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
}

#pesquisa_produtos .preco-produto{
  font-size: 1rem;
  font-weight: 500;
  color: #27ae60;
  font-family: "Poppins", sans-serif;
}


/******ANIMAÇÂO**********/

.collapse {
    transition: height 0.3s ease;
}

/* Exemplo de animação simples */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classe para ativar a animação */
.animated {
  animation-duration: 0.6s;
  animation-fill-mode: both;
  animation-name: fadeInUp;
  animation-timing-function: ease-out;
}

/* No seu arquivo CSS */
@keyframes pulse-green {
    0% { background-color: #28a745; box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { background-color: #28a745; box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { background-color: #28a745; box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes pulse-red {
    0% { background-color: #dc3545; box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { background-color: #dc3545; box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { background-color: #dc3545; box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle; /* Para alinhar com o texto */
}

.status-dot.open {
    background-color: #28a745; /* green */
    animation: pulse-green 1.5s infinite;
}

.status-dot.closed {
    background-color: #dc3545; /* red */
    animation: pulse-red 1.5s infinite;
}

input.input-sem-estilo {
    all: unset;
    padding: 0;
    width: 20px;
    text-align: center;
    display: inline;
    margin: 0;
    pointer-events: none;
    user-select: none;
}