/************ LAYOUT GRID CATEGORIAS ************/

#menuGridCategories {
  padding: 20px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* número de colunas dinâmico com quadros com min 100px */
  gap: 14px; 
}

.categoryGrid{
  box-sizing: border-box; /* Garante que padding/bordas sejam inclusos na largura total */
  text-align: center;
  cursor: pointer;
}

.categoryGrid img{
  border-radius: 15px;
  width: 100%;
}

p.categoryName{
  font-family: Lato;
  color: #444;
  font-size: 16px;
  padding: 0;
  margin: 8px 0;
  vertical-align: baseline;
  text-transform: capitalize;
  line-height: initial;
  font-weight: 500;
}

.inputQuantityProduct{
  background-color: transparent;
  border: none;
}

@media (max-width: 768px) {
  #menu-grid-categories {
    gap: 12px; /* Reduz o espaçamento em telas menores */
  }
}

@media (max-width: 480px) {
  #menu-grid-categories {
    gap: 10px; /* Espaçamento ainda menor para dispositivos móveis */
  }
}

@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices */ 

  .qtd_txt{
    width: 30px!important;
    line-height: 30px!important;
  }

  .btn_qtd_card{
    width: 116px!important;
  }

  .btn_qtd_pedido{
    width: 98px!important;
  }
}

/************ ORDER AGAIN ************/

#order_again{
  padding: 18px 14px 6px;
  display: none;
}

.order_again_section{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order_again_title{
  margin: 0;
  font-family: Lato;
  font-size: 1.5rem;
  line-height: 1.05;
  font-weight: 700;
  color: #111;
}

.order_again_card{
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
}

.order_again_card.executandofnc{
  opacity: .75;
  pointer-events: none;
}

.order_again_media{
  width: 128px;
  min-width: 128px;
  height: 156px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid #ececec;
}

.order_again_media--double{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.order_again_media--single{
  display: block;
}

.order_again_image{
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.order_again_media--double .order_again_image + .order_again_image{
  border-left: 1px solid rgba(255, 255, 255, .7);
}

.order_again_media--placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
}

.order_again_placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4f4f4 0%, #e9e9e9 100%);
  color: #b6b6b6;
}

.order_again_placeholder i{
  font-size: 2.2rem;
}

.order_again_body{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.order_again_lines{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order_again_line{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order_again_qty{
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f4f4f4;
  color: #222;
  font-family: Lato;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.order_again_qty--ghost{
  background: transparent;
  color: transparent;
}

.order_again_text{
  color: #111;
  font-family: Lato;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.order_again_text--more{
  color: #666;
}

.order_again_total{
  margin-top: 18px;
  color: #111;
  font-family: Lato;
  font-size: 1.2rem;
  line-height: 1.05;
  font-weight: 700;
}

.order_again_cta{
  margin-top: 18px;
  align-self: flex-start;
  color: #fff;
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 50px;
  padding: 0 18px !important;
  box-shadow: none;
}

.order_again_cta.executandofnc{
  opacity: .75;
  pointer-events: none;
}

.order_again_cta i{
  color: #fff!important;
}

.repetirpedido_skipped_box{
  margin-top: 14px;
  text-align: left;
  border-top: 1px solid #dedede;
  padding-top: 12px;
}

.repetirpedido_item_skip{
  margin-top: 10px;
  font-size: .95rem;
}

@media (max-width: 420px) {
  .order_again_card{
    gap: 12px;
    padding: 12px;
  }

  .order_again_media{
    width: 112px;
    min-width: 112px;
    height: 146px;
  }

  .order_again_text{
    font-size: 1rem;
  }
}
