:root{
  --vinho: #6b0f3c;         /* cor principal */
  --cinza-fundo: #efefef;   /* fundo geral */
  --cinza-icone: #d7d7d7;   /* caixa do ícone */
  --texto: #222;
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  color: var(--texto);
  background: var(--cinza-fundo);
}

/* TOPO */
.topo-sistema{
  background: var(--vinho);
  color: #fff;
  padding: 14px 0;
}

.topo-logo{
  height: 36px;
  width: auto;
  object-fit: contain;
}

.topo-separador{
  width: 2px;
  height: 28px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
}

.topo-titulo{
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .2px;
}

.topo-data{
  font-size: 13px;
  font-weight: 600;
  opacity: .95;
  white-space: nowrap;
}

.btn-suporte{
  background: #fff;
  color: var(--vinho);
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 18px;
  border: 0;
}

.btn-suporte:hover{
  background: #f4f4f4;
  color: var(--vinho);
}

/* TELA LOGIN */
.tela-login{
  min-height: calc(100vh - 74px - 86px); /* topo + rodapé */
  display: flex;
  align-items: center;
  padding: 30px 0;
}

.login-box{
  margin: 0 auto;
  max-width: 360px;
}

.login-titulo{
  color: var(--vinho);
  font-weight: 800;
  font-size: 28px;
}

/* input com ícone (igual print) */
.input-icone .icone-caixa{
  background: var(--cinza-icone);
  border: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.input-icone .campo{
  border: 0;
  height: 44px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  background: #fff;
  box-shadow: none !important;
}

.input-icone .campo::placeholder{
  color: #bdbdbd;
  font-weight: 600;
}

.btn-entrar{
  background: var(--vinho);
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 8px;
  height: 42px;
}

.btn-entrar:hover{
  filter: brightness(1.05);
  color: #fff;
}

.link-esqueceu{
  font-size: 12px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.link-esqueceu:hover{
  text-decoration: underline;
}

.iframe-retorno{
  border: none;
  width: 100%;
  height: 50px;
  margin-top: 10px;
}

/* RODAPÉ */
.rodape-sistema{
  background: #e9e9e9;
  padding: 12px 0;
}

.rodape-linha{
  height: 1px;
  background: #d0d0d0;
}

.rodape-texto{
  font-size: 10px;
  color: #7a0037;
  font-weight: 700;
  line-height: 1.3;
}

/* Responsivo */
@media (max-width: 576px){
  .topo-data{
    width: 100%;
    text-align: left !important;
    margin-top: 6px;
    white-space: normal;
  }
}











/* =========================
   DASHBOARD
========================= */

.tela-dashboard{
  min-height: calc(100vh - 74px - 86px); /* topo + rodapé (mesma lógica do login) */
  display: flex;
  align-items: center;
  background: var(--vinho);
  padding: 40px 0;
}

.dashboard-centro{
  color: #fff;
}

.dash-titulo{
  font-weight: 900;
  font-size: 44px;
  margin-bottom: 6px;
}

.dash-subtitulo{
  font-weight: 700;
  font-size: 14px;
  opacity: .9;
  margin: 0;
}

.dash-card-link{
  text-decoration: none;
}

.dash-card{
  background: #fff;
  border-radius: 18px;
  padding: 26px 18px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.dash-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
}

.dash-icon{
  width: 74px;
  height: 74px;
  border-radius: 16px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vinho);
  font-size: 38px;
}

.dash-texto{
  color: #111;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.05;
}

/* Header: usuário (lado direito) */
.topo-user-icone{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.topo-user-texto{
  line-height: 1.05;
}

.topo-user-nome{
  font-weight: 900;
  font-size: 14px;
}

.topo-user-tipo{
  font-weight: 700;
  font-size: 11px;
  opacity: .85;
}

.topo-power{
  color: #fff;
  font-size: 26px;
  text-decoration: none;
  opacity: .95;
}

.topo-power:hover{
  opacity: 1;
  filter: brightness(1.05);
}

/* Responsivo dashboard */
@media (max-width: 576px){
  .dash-titulo{ font-size: 30px; }
  .dash-card{ height: 150px; }
}







/* =========================
   PDV - MENU (Consumir na Loja)
========================= */

.tela-pdv{
  min-height: calc(100vh - 74px - 86px);
  display: flex;
  align-items: center;
  background: var(--cinza-fundo); /* igual print */
  padding: 40px 0;
}

.pdv-box{
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.pdv-titulo{
  color: #111;
  font-weight: 900;
  font-size: 44px;
  margin: 0 0 26px;
}

.pdv-botoes{
  display: grid;
  gap: 16px;
  max-width: 360px;
  margin: 0 auto;
}

/* Botão estilo print */
.pdv-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 52px;
  border-radius: 6px;

  background: #fff;
  border: 2px solid #d0d0d0;

  color: var(--vinho);
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;

  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.pdv-btn:hover{
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  color: var(--vinho);
}

.pdv-btn i{
  font-size: 18px;
}

/* ajuste fino pra bater com o print */
@media (max-width: 576px){
  .pdv-titulo{ font-size: 30px; }
  .pdv-botoes{ max-width: 320px; }
  .pdv-btn{ height: 50px; font-size: 16px; }
}











/* =========================
   CLIENTES (PDV)
========================= */

.tela-cliente{
  min-height: calc(100vh - 74px - 86px);
  background: var(--cinza-fundo);
  padding: 22px 0 30px;
}

.cliente-grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* metade / metade */
  gap: 16px;
  align-items: stretch;
}
.cliente-card{
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-radius: 16px;
  padding: 14px;
}

.cliente-card-right{
  background: #f6f6f6;
}

.cliente-titulo{
  font-weight: 900;
  font-size: 28px;
  color: #111;
  margin-bottom: 8px;
}

.cliente-label{
  font-weight: 800;
  font-size: 14px;
  color: #111;
  margin-bottom: 4px;
}

.cliente-input{
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  box-shadow: none !important;
}

.cliente-input::placeholder{
  color: #bdbdbd;
  font-weight: 600;
}

.cliente-btn{
  background: #fff;
  border: 2px solid #d0d0d0;
  color: #111;
  font-weight: 900;
  border-radius: 8px;
  height: 40px;
}

.cliente-btn:hover{
  filter: brightness(.98);
}

.cliente-btn-sec{
  background: #fff;
  border: 2px solid #d0d0d0;
  color: #111;
  font-weight: 900;
  border-radius: 8px;
  height: 40px;
}

.cliente-topo-right{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cliente-busca{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 360px;
  max-width: 100%;
}

.cliente-btn-mini{
  background: #fff;
  border: 2px solid #d0d0d0;
  color: #111;
  font-weight: 900;
  border-radius: 10px;
  height: 38px;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cliente-lista{
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 10px;
  min-height: 420px;
}

.cliente-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-bottom: 1px solid #ededed;
}

.cliente-item:last-child{
  border-bottom: 0;
}

.cliente-item-nome{
  font-weight: 900;
  color: #111;
  font-size: 16px;
}

.cliente-item-sub{
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-top: 2px;
}

.cliente-btn-pedido{
  background: var(--vinho);
  color: #fff;
  font-weight: 900;
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
  border: 2px #6b0f3c;
}

.cliente-btn-pedido:hover{
  color: var(--vinho);
  background-color: #fff;
  filter: brightness(1.05);
}

/* responsivo */
@media (max-width: 992px){
  .cliente-grid{
    grid-template-columns: 1fr;
  }
  .cliente-busca{
    width: 100%;
  }
}









/* =========================
   PEDIDO (PDV)
========================= */

.tela-pedido{
  min-height: calc(100vh - 74px - 86px);
  background: var(--cinza-fundo);
  padding: 16px 0 26px;
}

.pedido-topo{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 12px;
}

.pedido-cliente{
  font-weight: 900;
  color:#111;
}
.pedido-cliente-sub{
  font-weight: 700;
  color:#555;
  margin-left: 8px;
}

.pedido-grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: stretch;
}

.pedido-card{
  background:#f6f6f6;
  border:1px solid #d8d8d8;
  border-radius: 16px;
  padding: 12px;
}

.pedido-card-right{
  background:#f6f6f6;
}

.pedido-card-titulo{
  font-weight: 900;
  font-size: 26px;
  color:#111;
  margin-bottom: 10px;
}

.pedido-filtros{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pedido-label{
  font-size: 13px;
  font-weight: 900;
  color:#111;
  margin-bottom: 4px;
}

.pedido-input{
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  box-shadow:none!important;
}

.pedido-filtro-linha{
  display:flex;
  gap:8px;
  align-items:center;
}

.pedido-btn-mini{
  background:#fff;
  border:2px solid #d0d0d0;
  height:38px;
  width:44px;
  border-radius: 10px;
  font-weight:900;
}

.pedido-produtos{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow:auto;
  padding-right: 6px;
}

.produto-card{
  background:#fff;
  border:1px solid #dedede;
  border-radius: 16px;
  padding: 10px;
  text-decoration:none;
  color:#111;
  display:flex;
  flex-direction: column;
  gap: 6px;
  align-items:center;
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
  transition: transform .12s ease, box-shadow .12s ease;
}
.produto-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(0,0,0,.14);
}

.produto-img{
  width: 86px;
  height: 86px;
  border-radius: 14px;
  background:#f1f1f1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.produto-img img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.produto-nome{
  font-weight: 900;
  font-size: 12px;
  text-align:center;
  min-height: 30px;
}

.produto-preco{
  font-weight: 900;
  color: var(--vinho);
}

.pedido-lista{
  background:#fff;
  border:1px solid #dedede;
  border-radius: 14px;
  padding: 10px;
  max-height: 320px;
  overflow:auto;
}

.pedido-item{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap:10px;
  padding:10px 8px;
  border-bottom:1px solid #eee;
}
.pedido-item:last-child{ border-bottom:0; }

.pedido-item-titulo{
  font-weight: 900;
  color:#111;
}
.pedido-item-preco{
  float:right;
  font-weight: 900;
  color:#111;
  margin-left: 10px;
}
.pedido-item-comp{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color:#555;
}

.pedido-totais{
  margin-top: 10px;
}
.pedido-totais .linha{
  display:flex;
  justify-content: space-between;
  font-weight: 900;
  color:#111;
  padding: 6px 2px;
}
.pedido-totais .total{
  margin-top: 8px;
  background: var(--vinho);
  color:#fff;
  border-radius: 10px;
  padding: 10px 12px;
  display:flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 18px;
}

.pedido-acoes{
  margin-top: 12px;
  display:grid;
  gap: 8px;
}
.pedido-btn-ok{
  background:#35a600;
  color:#fff;
  font-weight: 900;
  border-radius: 10px;
  border:0;
}
.pedido-btn-desc{
  background:#fff;
  border:2px solid #d0d0d0;
  color:#f0a000;
  font-weight: 900;
  border-radius: 10px;
}
.pedido-btn-cancel{
  background:#fff;
  border:2px solid #d0d0d0;
  color:#d03030;
  font-weight: 900;
  border-radius: 10px;
}

.produto-add-box{
  background:#fff;
  border:1px solid #dedede;
  border-radius: 16px;
  padding: 14px;
  min-height: 520px;
  position: relative;
}

.produto-add-img{
  width: 120px;
  height: 120px;
  border-radius: 18px;
  background:#f1f1f1;
  overflow:hidden;
  margin: 0 auto;
}
.produto-add-img img{ width:100%; height:100%; object-fit:cover; }

.produto-add-nome{
  text-align:center;
  font-weight: 900;
  margin-top: 10px;
}
.produto-add-preco{
  text-align:center;
  font-weight: 900;
  color: var(--vinho);
  margin-bottom: 8px;
}

.qtd-linha{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  margin: 10px 0 12px;
}

.qtd-btn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background:#fff;
  font-weight: 900;
}
.qtd-input{
  width: 54px;
  text-align:center;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  height: 34px;
  font-weight: 900;
}

.comp-lista{
  max-height: 260px;
  overflow:auto;
  padding-right: 6px;
  margin-bottom: 10px;
}

.comp-item{
  display:flex;
  justify-content: space-between;
  align-items:center;
  border-bottom: 1px solid #eee;
  padding: 10px 2px;
}
.comp-item:last-child{ border-bottom:0; }

.comp-nome{
  font-weight: 900;
  color:#111;
}
.comp-preco{
  display:inline-block;
  margin-left: 8px;
  color: var(--vinho);
}

.comp-qtd{
  display:flex;
  align-items:center;
  gap: 6px;
}

.produto-ok{
  position:absolute;
  right: 14px;
  top: 14px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background:#fff;
  font-weight: 900;
  color: var(--vinho);
}

/* =========================
   PAGAMENTO
========================= */
.tela-pagamento{
  min-height: calc(100vh - 74px - 86px);
  background: var(--cinza-fundo);
  display:flex;
  align-items:center;
  padding: 20px 0;
}

.pag-top{
  text-align:center;
  margin-bottom: 18px;
}
.pag-label{
  font-weight: 900;
  color:#111;
}
.pag-total{
  font-weight: 900;
  font-size: 54px;
  color: var(--vinho);
}

.pag-box{
  max-width: 780px;
  margin: 0 auto;
  background:#efefef;
  border:1px solid #d8d8d8;
  border-radius: 16px;
  padding: 20px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.pag-btn{
  border-radius: 12px;
  height: 54px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  text-decoration:none;
  color:#fff;
}
.pag-btn.vinho{ background: var(--vinho); }
.pag-btn.verde{ background: #35a600; }
.pag-btn.azul{ background: #3a8de0; }

.pag-cancel{
  text-align:right;
  max-width: 780px;
  margin: 12px auto 0;
}

/* modal dinheiro */
.modal-dinheiro{
  max-width: 820px;
  margin: 0 auto;
  background:#fff;
  border:1px solid #d8d8d8;
  border-radius: 40px;
  padding: 26px;
  position: relative;
  text-align:center;
}
.modal-fechar{
  position:absolute;
  right: 22px;
  top: 18px;
  text-decoration:none;
  font-weight: 900;
  color: var(--vinho);
  font-size: 22px;
}

.din-titulo{
  font-weight: 900;
  font-size: 26px;
  color:#111;
  margin: 10px 0 8px;
}

.din-sub{
  font-weight: 800;
  color:#666;
}

.din-input{
  width: 220px;
  margin: 0 auto;
  text-align:center;
  font-weight: 900;
  font-size: 22px;
  border-radius: 10px;
  border:1px solid #d0d0d0;
  height: 44px;
}

.din-troco{
  margin-top: 10px;
  font-size: 26px;
  font-weight: 900;
  color: var(--vinho);
}

.din-confirmar{
  margin-top: 16px;
  width: 100%;
  height: 48px;
  background:#35a600;
  color:#fff;
  border:0;
  border-radius: 10px;
  font-weight: 900;
}

/* responsivo */
@media (max-width: 992px){
  .pedido-grid{ grid-template-columns: 1fr; }
  .pedido-produtos{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pag-box{ grid-template-columns: 1fr; }
}












/* =========================
   MESAS
========================= */
.tela-mesas{
  min-height: calc(100vh - 74px - 86px);
  background: var(--cinza-fundo);
  padding: 20px 0 30px;
}

.mesas-top{
  display:flex;
  gap: 12px;
  margin-bottom: 18px;
}

.mesas-btn.filtro{
  border-radius: 8px;
  font-weight: 900;
  border: 0;
  color:#fff;
  padding: 8px 18px;
}
.mesas-btn.filtro.on{ filter: brightness(1.05); }

.mesas-btn.filtro:nth-child(1){ background:#ff7a00; }
.mesas-btn.filtro:nth-child(2){ background:#35a600; }
.mesas-btn.filtro:nth-child(3){ background:#d80000; }

.mesas-titulo{
  font-weight: 900;
  font-size: 34px;
  color:#111;
  margin-bottom: 14px;
}

.mesas-grid{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
}

.mesa-card{
  width: 190px;
  border-radius: 18px;
  border: 2px solid #111;
  background:#f5f5f5;
  padding: 14px;
  position: relative;
  cursor: pointer;
}

.mesa-num{
  font-weight: 900;
  font-size: 34px;
  color:#cfcfcf;
  line-height: 1;
}

.mesa-nome{
  font-weight: 900;
  font-size: 20px;
  color: var(--vinho);
  margin-top: 4px;
  min-height: 26px;
}

.mesa-total{
  margin-top: 10px;
  border-radius: 0 0 14px 14px;
  padding: 10px 12px;
  color:#fff;
  font-weight: 900;
  font-size: 24px;
  text-align:center;
}

/* cores por status */
.mesa-card.aberta .mesa-total{ background:#ff7a00; }
.mesa-card.final .mesa-total{ background:#35a600; }
.mesa-card.cancel .mesa-total{ background:#d80000; }

.mesa-x{
  position:absolute;
  right: -10px;
  top: -10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:#d80000;
  color:#fff;
  font-weight: 900;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mesa-x:hover{ color:#fff; filter: brightness(1.05); }






.modal-body{
  max-height: 70vh;
  overflow: auto;
}
/* =========================
   GK CAROUSEL (reutilizável)
========================= */
.gk-carousel-wrap{
  position: relative;
  width: 100%;
}

.gk-carousel-track{
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 56px 12px 4px;
  scrollbar-width: none;
}

.gk-carousel-track::-webkit-scrollbar{
  display:none;
}

.gk-carousel-item{
  flex: 0 0 170px;
}


.gk-carousel-multi .gk-carousel-track{
  padding-right: 56px;
}

.gk-carousel-multi .gk-carousel-item{
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 240px;
}

.gk-carousel-multi .gk-carousel-track::before,
.gk-carousel-multi .gk-carousel-track::after {
  content: '';
  margin: auto;
}

.gk-carousel-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid var(--vinho);
  background: #fff;
  color: var(--vinho);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  font-weight: 900;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.gk-carousel-nav.prev{ left: -6px; }
.gk-carousel-nav.next{ right: -6px; }

.gk-carousel-nav:disabled{
  opacity: .45;
  cursor: default;
}

/* =========================
   DELIVERY
========================= */
.tela-delivery,
.tela-delivery-add,
.tela-delivery-finalizar,
.tela-delivery-esteira{
  min-height: calc(100vh - 74px - 86px);
  background: var(--cinza-fundo);
  padding: 18px 0 26px;
}

.delivery-page-title{
  text-align:center;
  font-weight: 900;
  font-size: 34px;
  color:#fff;
  margin: 4px 0 18px;
}

.delivery-hero{
  background: var(--vinho);
  margin: -18px -12px 0;
  padding: 12px 12px 26px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.delivery-search{
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.delivery-search i{
  position:absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color:#111;
  font-size: 19px;
}

.delivery-search input{
  height: 44px;
  border-radius: 999px;
  border:0;
  padding-left: 46px;
  font-weight: 700;
  box-shadow:none!important;
}

.delivery-search input::placeholder{
  color:#bcbcbc;
}

.delivery-content-card{
  background: #efefef;
  border-radius: 0 0 16px 16px;
  padding: 18px 0 0;
}

.delivery-section-title{
  font-size: 20px;
  font-weight: 900;
  color:#111;
  margin: 0 0 10px;
}

.delivery-product-card{
  text-align: center;
  color:#111;
}

.delivery-badge-mini{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f4c400;
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.delivery-product-img{
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.delivery-product-img img{
  max-width:100%;
  max-height:100%;
  object-fit: contain;
}

.delivery-product-name{
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  min-height: 30px;
}

.delivery-product-sub{
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  min-height: 14px;
}

.delivery-btn-pill,
.delivery-btn-outline,
.delivery-btn-success,
.delivery-btn-vinho,
.delivery-btn-light,
.delivery-btn-blue{
  border-radius: 8px;
  font-weight: 900;
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  text-decoration:none;
  transition: .12s ease;
}

.delivery-btn-pill:hover,
.delivery-btn-outline:hover,
.delivery-btn-success:hover,
.delivery-btn-vinho:hover,
.delivery-btn-light:hover,
.delivery-btn-blue:hover{
  filter: brightness(.98);
}

.delivery-btn-pill{
  background:#fff;
  color:var(--vinho);
  border:2px solid var(--vinho);
  height: 28px;
  padding: 0 14px;
}

.delivery-btn-pill.on{
  background: var(--vinho);
  color:#fff;
}

.delivery-btn-outline{
  background:#fff;
  color:#111;
  border:2px solid #111;
  padding: 8px 22px;
  min-height: 36px;
}

.delivery-btn-success{
  background:#59b80f;
  color:#fff;
  padding: 8px 20px;
  min-height: 38px;
}

.delivery-btn-vinho{
  background: var(--vinho);
  color:#fff;
  padding: 8px 18px;
  min-height: 38px;
}

.delivery-btn-light{
  background:#fff;
  color:#111;
  border: 1px solid #d9d9d9;
  padding: 8px 18px;
  min-height: 38px;
}

.delivery-btn-blue{
  background:#4d8fdb;
  color:#fff;
  padding: 8px 16px;
  min-height: 34px;
  font-size: 13px;
}

.delivery-bottom-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 14px;
}

.delivery-cart-indicator{
  background:#fff;
  border:1px solid #d7d7d7;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 900;
  color: var(--vinho);
}

.delivery-stage-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.delivery-stage-grid-3{
  display:grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.delivery-panel{
  background: #f8f8f8;
  border:1px solid #dcdcdc;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.delivery-panel-title{
  text-align:center;
  font-weight: 900;
  font-size: 20px;
  color:#111;
  margin-bottom: 12px;
}


.delivery-panel-carousel{
  overflow: hidden;
}

.delivery-edit-item{
  align-self: stretch;
}

.delivery-editor-card{
  background:#fff;
  border:1px solid #dcdcdc;
  border-radius: 16px;
  padding: 14px 14px 12px;
  min-height: 100%;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.delivery-info-slide{
  padding-top: 12px;
}

.delivery-remove-card{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border:1px solid #e1c4d3;
  background:#fff6fb;
  color: var(--vinho);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  z-index: 2;
}

.delivery-card-tag{
  margin-top: 10px;
  text-align:center;
  font-size: 11px;
  font-weight: 900;
  color: var(--vinho);
}

.delivery-card-tag.saved{
  color:#2e7d32;
}

.delivery-selected-img{
  width: 110px;
  height: 110px;
  margin: 0 auto 8px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.delivery-selected-img img{
  max-width:100%;
  max-height:100%;
  object-fit: contain;
}

.delivery-selected-name{
  text-align:center;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
}

.delivery-selected-sub{
  text-align:center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.delivery-qty-main{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin-bottom: 14px;
}

.delivery-qty-btn,
.delivery-qty-small{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:#fff;
  border: 2px solid #b53f6f;
  color: var(--vinho);
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
}

.delivery-qty-btn{
  width: 34px;
  height: 34px;
}

.delivery-qty-input{
  width: 50px;
  height: 34px;
  border-radius: 10px;
  border:1px solid #d0d0d0;
  text-align:center;
  font-weight: 900;
}

.delivery-comp-list{
  max-height: 360px;
  overflow:auto;
  padding-right: 6px;
}

.delivery-comp-row{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap: 12px;
  padding: 6px 2px;
}

.delivery-comp-name{
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.delivery-comp-controls{
  display:flex;
  align-items:center;
  gap: 6px;
}

.delivery-comp-input{
  width: 34px;
  height: 26px;
  border-radius: 8px;
  border:1px solid #d0d0d0;
  text-align:center;
  font-weight: 900;
  font-size: 12px;
}

.delivery-comp-search{
  border-radius: 12px;
  border:1px solid #d0d0d0;
  margin-bottom: 12px;
}

.delivery-ticket{
  background:#fff;
  border:1px solid #ddd;
  border-radius: 16px;
  padding: 16px 14px;
  min-height: 100%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}

.delivery-ticket-scroll{
  max-height: 500px;
  overflow:auto;
  padding-right: 4px;
}

.delivery-ticket-line{
  border-top: 2px dashed #777;
  margin: 10px 0;
}

.delivery-ticket-title,
.delivery-ticket-subtitle{
  text-align:center;
  font-size: 12px;
  font-weight: 900;
  color:#333;
}

.delivery-ticket-highlight{
  background:#333;
  color:#fff;
  text-align:center;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 8px;
  margin: 6px 0 10px;
}

.delivery-ticket-label{
  font-size: 11px;
  font-weight: 700;
  color:#111;
}

.delivery-ticket-item{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 0;
}

.delivery-ticket-comp{
  padding-left: 16px;
  font-size: 11px;
  color:#444;
  font-weight: 700;
}

.delivery-ticket-total{
  background:#000;
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 900;
}

.delivery-ticket-muted{
  font-size: 11px;
  color:#666;
  font-weight: 700;
}

.delivery-info-form .form-control,
.delivery-info-form .form-select{
  border-radius: 10px;
  border:1px solid #cfcfcf;
  box-shadow:none!important;
  height: 36px;
  font-weight: 700;
}

.delivery-info-form textarea.form-control{
  min-height: 84px;
  height:auto;
}

.delivery-info-group-title{
  font-weight: 900;
  color: var(--vinho);
  font-size: 22px;
  margin-bottom: 10px;
}

.delivery-mode-row,
.delivery-pay-row{
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
}

.delivery-mode-row .delivery-btn-pill,
.delivery-pay-row .delivery-btn-pill{
  min-width: 74px;
  height: 26px;
  font-size: 12px;
}

.delivery-inline-money{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--vinho);
  font-weight: 900;
  margin: 8px 0 6px;
}

.delivery-inline-money .form-control{
  max-width: 120px;
  height: 32px;
}

.delivery-mini-preview-list{
  display:grid;
  gap: 12px;
}

.delivery-mini-preview-card{
  background:#fff;
  border:1px solid #d9d9d9;
  border-radius: 14px;
  padding: 12px;
  text-align:center;
}

.delivery-mini-preview-card img{
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 8px;
}

.delivery-mini-preview-card .delivery-selected-name{
  font-size: 15px;
}

.delivery-mini-preview-card .delivery-selected-sub{
  font-size: 11px;
}

.delivery-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  margin-bottom: 12px;
}

.delivery-toolbar .form-control,
.delivery-toolbar .form-select{
  border-radius: 10px;
  border:1px solid #d0d0d0;
  box-shadow:none!important;
}

.delivery-board{
  display:grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.delivery-sidebar{
  background:#efefef;
  border:1px solid #cfcfcf;
  border-radius: 16px;
  padding: 12px;
  min-height: 620px;
}

.delivery-order-list{
  display:grid;
  gap: 10px;
  max-height: 520px;
  overflow:auto;
  padding-right: 4px;
}

.delivery-order-card{
  display:block;
  background:#fff;
  border:2px solid transparent;
  border-radius: 18px;
  padding: 12px;
  color:#111;
  text-decoration:none;
}

.delivery-order-card.active{
  border-color: var(--vinho);
}

.delivery-order-number{
  font-size: 26px;
  font-weight: 900;
  color:#bfbfbf;
  line-height: 1;
}

.delivery-order-client{
  font-size: 18px;
  font-weight: 900;
  color: var(--vinho);
  line-height: 1;
  margin-bottom: 8px;
}

.delivery-status-pill{
  width: 100%;
  border-radius: 999px;
  padding: 5px 12px;
  text-align:center;
  font-weight: 900;
  font-size: 12px;
  color:#fff;
}

.delivery-status-pill.preparo{ background:#ff6c00; }
.delivery-status-pill.despachado{ background:#32c838; }
.delivery-status-pill.entregue{ background:#3a8de0; }

.delivery-sidebar-footer{
  border-top: 1px solid #cfcfcf;
  margin: 12px -12px -12px;
  padding: 12px;
}

.delivery-resumo-vendas{
  font-size: 13px;
  font-weight: 900;
}

.delivery-board-detail{
  background:#f7f7f7;
  border:1px solid #cfcfcf;
  border-radius: 16px;
  padding: 16px;
  min-height: 620px;
}

.delivery-board-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.delivery-board-title{
  font-size: 18px;
  font-weight: 900;
  color: var(--vinho);
  line-height: 1;
}

.delivery-board-chip{
  border:2px solid #111;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 900;
  background:#fff;
}

.delivery-board-meta{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 900;
  color:#111;
  margin-top: 8px;
}

.delivery-board-statusbar{
  margin: 14px 0;
  border-radius: 10px;
  color:#fff;
  font-size: 16px;
  font-weight: 900;
  padding: 8px 16px;
}

.delivery-board-statusbar.preparo{ background:#ff6c00; }
.delivery-board-statusbar.despachado{ background:#32c838; }
.delivery-board-statusbar.entregue{ background:#3a8de0; }

.delivery-detail-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 10px;
}

.delivery-detail-card .hd{
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  border-bottom: 1px solid #ededed;
}

.delivery-detail-card .bd{
  padding: 12px 14px;
}

.delivery-item-detail{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom:1px solid #f0f0f0;
}

.delivery-item-detail:last-child{ border-bottom:0; }

.delivery-detail-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 14px;
}

.delivery-footer-nav{
  display:flex;
  gap: 8px;
  justify-content:center;
  margin-top: 10px;
}

.delivery-footer-nav a{
  min-width: 130px;
}

.select2-container--default .select2-selection--single{
  height: 36px;
  border-radius: 10px;
  border:1px solid #cfcfcf;
}

.select2-container .select2-selection--single .select2-selection__rendered{
  line-height: 34px;
  font-weight: 700;
}

.select2-container .select2-selection--single .select2-selection__arrow{
  height: 34px;
}

@media (max-width: 1199px){
  .delivery-stage-grid-3{
    grid-template-columns: 1fr 1fr;
  }
  .delivery-stage-grid-3 .delivery-ticket-wrap{
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px){
  .delivery-stage-grid,
  .delivery-stage-grid-3,
  .delivery-board{
    grid-template-columns: 1fr;
  }

  .delivery-hero{
    margin-left: 0;
    margin-right: 0;
  }

  .gk-carousel-item{
    flex-basis: 150px;
  }

  .gk-carousel-multi .gk-carousel-item{
    flex-basis: calc((100% - 18px) / 2);
    min-width: 230px;
  }
}

@media (max-width: 576px){
  .delivery-page-title{ font-size: 28px; }
  .delivery-product-img{ width: 96px; height: 96px; }
  .gk-carousel-item{ flex-basis: 132px; }
  .gk-carousel-multi .gk-carousel-item{
    flex-basis: 100%;
    min-width: 100%;
  }
  .delivery-bottom-actions{ flex-direction: column; align-items: stretch; }
  .delivery-footer-nav{ flex-wrap:wrap; }
  .delivery-footer-nav a{ min-width: auto; flex:1; }
}
