:root {
  --bg: #F3D7A6;
  --ink: #2A221A;
  --muted: #7A6A58;
  --line: #D7C39C;
  --card: #FFFFFF;
  --surface: #F7E8C4;
  --mustard: #E39A33;
  --mustard-700: #C77F21;
  --ketchup: #D7263D;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --elev-trans: 0.25s cubic-bezier(.2,.8,.2,1);
  --soft-trans: 0.2s ease;
  --font-body: "Manrope", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Sora", "Manrope", Inter, system-ui, sans-serif;
}
html,body{height:100%}
body{
  display:flex;
  flex-direction:column;
}
main{flex:1}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  line-height: 1.35;
  letter-spacing: .01em;
}
h1, h2, h3,
.brand,
.card-title h3,
.site-header .brand {
  font-family: var(--font-heading);
  letter-spacing: .01em;
}
.price, .badge, .totals strong, .qty, .status-pill {
  font-variant-numeric: tabular-nums;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }
.brand { font-weight: 800; }
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}
.container.narrow {
  max-width: 520px;
}
.site-header {
  position: sticky;
  top: 0;
  background-color: #1E1B16;
  border-bottom: 1px solid #2A221A;
  z-index: 20;
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--soft-trans);
  margin-left: 20px;
}
.brand:hover { transform: translateY(-1px); }
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}
.lang-switch {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #FFFFFF;
}
.lang-switch select {
  border: 0;
  background-color: transparent;
  outline: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  width: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: transform var(--elev-trans), box-shadow var(--elev-trans);
}
.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.badge {
  background-color: var(--ketchup);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  padding: 3px 7px;
  margin-left: -10px;
}
.cart-btn{
  position: relative;
  margin: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid rgba(215,195,156,.55);
  border-radius: 14px;
  background: linear-gradient(180deg,#FFFFFF,#F6F1E6);
  color: #2A221A;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, border-color .2s ease;
}
.cart-btn i{ font-size: 18px; line-height: 0; }
.cart-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cart-btn:active{ transform: translateY(0); }
.cart-btn.has-items{
  border-color: transparent;
  background: linear-gradient(180deg,#FFD27D,#E39A33);
  color:#111;
  box-shadow: 0 8px 22px rgba(227,154,51,.35);
}
.cart-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: radial-gradient(100% 100% at 30% 30%, #FF5967 0%, #D7263D 100%);
  border-radius: 999px;
  border: 2px solid #1E1B16;
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
}
.cart-badge:empty { display: none; }
@keyframes cart-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.cart-btn.bump { animation: cart-pop .35s ease; }
@keyframes badge-pulse {
  0% { transform: translateZ(0) scale(1); }
  50% { transform: translateZ(0) scale(1.08); }
  100% { transform: translateZ(0) scale(1); }
}
.cart-btn.has-items .cart-badge{
  animation: badge-pulse 1s ease-out 1;
}
.tabs{
  --tabs-pad: 16px;
  --bar-left: 0px;
  --bar-width: 0px;
  --bar-trans: 600ms cubic-bezier(.22,1,.36,1);
  --bar-color-1: #F7C86E;
  --bar-color-2: #E39A33;
  position: relative;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px var(--tabs-pad) 14px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
.tabs::-webkit-scrollbar{ display:none; }
.tabs::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
}
.tabs::after{
  content:"";
  position:absolute;
  left: var(--bar-left);
  width: var(--bar-width);
  bottom: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bar-color-1), var(--bar-color-2));
  box-shadow: 0 6px 18px rgba(227,154,51,.28), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.18);
  transition: left var(--bar-trans), width var(--bar-trans), background var(--bar-trans);
}
.tab{
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: color var(--bar-trans), opacity var(--bar-trans), transform 300ms ease;
  flex: 0 0 auto;
}
.tab span{
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(15px, 2.4vw, 22px);
  letter-spacing: .01em;
}
.tab i{
  font-size: clamp(18px, 5vw, 26px);
  line-height: 0;
  opacity: .9;
  transition: transform 300ms ease, opacity var(--bar-trans), color var(--bar-trans);
}
.tab .combo-icon{
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 3px;
}
.tab .combo-icon i{
  font-size: clamp(18px, 4.6vw, 24px);
}
.tab:hover{ transform: translateY(-1px); opacity: 1; }
.tab:hover i{ transform: translateY(-1px); opacity: 1; }
.tab[aria-selected="true"], .tab.active{ color: var(--mustard); }
.tab[aria-selected="false"]{ color: #e7e7e7; opacity: .75; }
.tab:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(227,154,51,.28);
  border-radius: 14px;
}
@media (max-width: 540px){
  .tabs{ --tabs-pad: 14px; gap: 14px; }
}
@media (max-width: 430px){
  .tabs{ --tabs-pad: 12px; gap: 12px; }
  .tab span{ font-size: 15px; }
  .tab i{ font-size: 20px; }
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px 0 90px 0;
}
.card-item.sr {
  opacity: 0;
  transform: translateY(18px) scale(.98);
  filter: blur(2px);
  will-change: transform, opacity, filter;
}
.card-item.sr-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease, filter .7s ease;
  transition-delay: var(--sr-delay, 0ms);
}
@media (prefers-reduced-motion: reduce){
  .card-item.sr,
  .card-item.sr-in{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
.card-item {
  grid-column: auto / span 1;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--elev-trans), box-shadow var(--elev-trans), border-color var(--soft-trans);
}
.card-item:focus-within {
  border-color: var(--mustard);
  box-shadow: 0 0 0 4px rgba(227,154,51,0.18), var(--shadow);
}
.card-item:hover {
  transform: translateY(-3px);
}
.card-media {
  aspect-ratio: 16 / 9;
  background-image: linear-gradient(120deg, #111111 0%, #222222 60%, #333333 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
}
.badge-time {
  background-color: #111111;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  opacity: 0.9;
}
.card-body {
  padding: 14px 16px 16px 16px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-title h3 {
  margin: 0;
  font-size: 16px;
}
.price {
  font-weight: 800;
}
.card-desc {
  color: var(--muted);
  margin: 8px 0 14px 0;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background-color: #FFFFFF;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--elev-trans), box-shadow var(--elev-trans), background-color var(--soft-trans), border-color var(--soft-trans);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background-color: var(--mustard);
  border-color: var(--mustard);
  color: #FFFFFF;
  font-weight: 700;
}
.btn-primary:hover {
  background-color: var(--mustard-700);
}
.btn-lg {
  padding: 14px 18px;
  border-radius: 14px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  color: var(--ink);
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.link.danger {
  color: var(--ketchup);
}
.link.danger i {
  font-size: 0.95em;
}
.qty-btn {
  height: 44px;
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: transform var(--soft-trans), box-shadow var(--soft-trans);
}
.qty-btn:active {
  transform: scale(0.96);
}
.qty {
  min-width: 26px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
}
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}
.modal.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}
.modal-dialog {
  width: 96%;
  max-width: 680px;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  animation: slideUp 0.25s ease forwards;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
}
.extras{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
.extras label{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
}
.extras label input{
  grid-column:1;
  flex:0 0 auto;
}
.extras label span{
  grid-column:2;
  min-width:0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.extras label strong{
  grid-column:3;
  flex:0 0 auto;
  white-space: nowrap;
}
@media (max-width: 520px){
  .extras{ grid-template-columns: 1fr; }
}
.cart-drawer {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  top: auto;
  width: auto;
  max-height: 70vh;
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--elev-trans), opacity var(--elev-trans);
  display: flex;
  flex-direction: column;
}
.cart-drawer.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.cart-items {
  padding: 10px 16px;
  overflow-y: auto;
}
.cart-item {
  display: grid;
  grid-template-columns: auto 48px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  margin: 0 0 10px 0;
}
.cart-item .thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
}
.cart-item .title {
  font-weight: 700;
}
.cart-item .meta {
  font-size: 12px;
  color: var(--muted);
}
.cart-item .price {
  text-align: right;
  white-space: nowrap;
}
.cart-item .qty-btn {
  height: 36px;
  width: 36px;
  border-radius: 10px;
}
.cart-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 380px){
  .cart-item { grid-template-columns: auto 42px 1fr auto; }
  .cart-item .thumb { width: 42px; height: 42px; }
}
.card {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 14px 0;
}
.list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.progress {
  height: 8px;
  background-color: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background-image: linear-gradient(90deg, var(--mustard), var(--ketchup));
  width: 0%;
  transition: width 0.8s ease;
}
.status-pill {
  background-color: var(--mustard);
  color: #111111;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pay-methods {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 8px 0;
}
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background-color: #FFFFFF;
}
.pay-box {
  margin: 10px 0 0 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pix-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.site-footer {
  color: var(--muted);
  padding: 24px 0 36px 0;
}
@media (min-width: 600px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .container {
    max-width: 1100px;
  }
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(16px);
    opacity: 0.95;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.btn-danger{
  background-color: var(--ketchup);
  border-color: var(--ketchup);
  color:#fff;
  font-weight:700;
}
.btn-danger:hover{
  filter: brightness(.95);
  box-shadow: var(--shadow);
}
.btn-danger:active{
  transform: translateY(0);
  filter: brightness(.9);
}
.btn-danger i{ color: inherit; }
.btn-sm{
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  gap: 6px;
}
/* Centralizar QR code e botão PIX em todas as resoluções */
.pix-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-placeholder{
  width:160px;
  height:160px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px dashed var(--line);
  border-radius:12px;
}
.pix-code textarea{
  width:100%;
  min-height:110px;
  border:1px dashed var(--line);
  border-radius:12px;
  padding:10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  resize:vertical;
}
@media (max-width:520px){
  .qr-placeholder{ width:100%; height:220px; }
}

@media (max-width: 520px) {
  .pix-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}

.pix-cta{
  display:grid;
  justify-items:center;
  gap:10px;
}
.qr-card{
  width:140px;
  height:140px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px dashed var(--line);
  border-radius:12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.qr-card.qr-big {
  width: 240px;
  height: 240px;
  min-height: 140px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

@media (max-width: 520px) {
  .qr-card.qr-big {
    width: 200px;
    height: 200px;
    min-height: 100px;
    margin: 0 auto;
  }

  .qr-card.qr-big img {
    max-width: 200px;
    height: auto;
  }

  #copyPix {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}

.qr-card.qr-big i {
  font-size: 42px;
  color: #111;
  opacity: 0.85;
}
.small{ font-size:12px; }
.visually-hidden{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}
.address-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.address-grid .span-2{ grid-column: 1 / -1; }
.address-box{
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 6px 0 12px 0;
}
.address-box strong{ display:block; margin-bottom:4px; }
.field input[aria-invalid="true"]{
  border-color: var(--ketchup);
  box-shadow: 0 0 0 2px rgba(215,38,61,.14);
}
@media (max-width: 520px){
  .address-grid{ grid-template-columns: 1fr; }
}
.site-header .brand,
.site-header .brand:visited {
  color: #fff;
}
.brand-name{
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(16px, 2.6vw, 22px);
}
.brand{ gap: 10px; }
@media (max-width: 380px){
  .brand-name{ font-size: 15px; max-width: 56vw; }
}
html, body{
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
.tabs{
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  touch-action: pan-y;
}
.tabs::before,
.tabs::after{
  pointer-events: none;
}
.container,
.site-header .container{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.developer-credit {
  text-align: center;
  margin-top: 1rem;
  opacity: 0.6;
  font-size: 0.8rem;
}
.developer-credit a {
  color: #fff;
  text-decoration: underline;
}
.developer-credit a:hover {
  opacity: 1;
}
.site-footer{
  background:#000;
  padding:16px 0;
  width:100%;
}
.developer-credit{
  text-align:center;
  margin-top:0;
}
.developer-credit small{
  color:#fff;
  font-size:.85rem;
  opacity:.9;
}
.developer-credit a{
  color:#f59e0b;
  font-weight:700;
  text-decoration:none;
}
.developer-credit a:hover{
  text-decoration:underline;
  color:#fbbf24;
}

/* Ajustes específicos para o modal de extras com rolagem interna e scrollbar fina */
#itemModal .modal-dialog{
  height: min(86vh, 640px);
  max-height: min(86vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#itemModal .modal-header{ border-bottom: 1px solid var(--line); }
#itemModal .modal-footer{ border-top: 1px solid var(--line); }
#itemModal .modal-body{
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
#itemModal .modal-body{ scrollbar-width: thin; scrollbar-color: var(--mustard-700) #F6F1E6; }
#itemModal .modal-body::-webkit-scrollbar{ width: 10px; }
#itemModal .modal-body::-webkit-scrollbar-track{ background:#F6F1E6; border-radius:999px; }
#itemModal .modal-body::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg,#FFD27D,#E39A33);
  border: 2px solid #F6F1E6;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
#itemModal .modal-body::-webkit-scrollbar-thumb:hover{ filter: brightness(.95); }
#itemModal .pill-row{ flex-wrap: wrap; row-gap: 8px; }

.loader{
  width: 34px; height: 34px;
  border: 3px solid #e5e7eb;
  border-top-color: #111; /* pode trocar para var(--mustard) se quiser */
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.qr-loading{
  display: grid; place-items: center; gap: 8px;
  color: #111; opacity: .85;
}
.qr-error{ color:#b91c1c; text-align:center; }

/* ===== Cupom (versão compacta) ===== */

/* cartão/section */
.coupon-card, .coupon-area{
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f1e7cf;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  padding: 10px 12px;
  max-width: 520px;           /* mantém compacto mesmo em telas grandes */
}

/* título menor */
.coupon-title{
  display:flex; align-items:center; gap:8px;
  margin:0 0 8px; font-weight:800; font-size:1.05rem; color:#222;
}
.coupon-title .ico{
  width:22px; height:22px; border-radius:6px;
  display:grid; place-items:center;
  background:#1d1d1f; color:#ffd166; font-size:.8rem;
}

/* linha: input + botão aplicar */
.coupon-row{
  display:grid; grid-template-columns: 1fr auto; gap:8px;
  align-items:center;
}

/* input pequeno */
#couponCode{
  height: 34px;
  border-radius: 999px;
  border: 1.4px solid #e6dab9;
  background: #fffdfa;
  padding: 0 12px 0 40px;
  font-weight: 800; letter-spacing:.4px; text-transform:uppercase;
  font-size: .92rem; color:#2a2a2a;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
/* “etiqueta” visual à esquerda */
#couponCode{
  background-image:
    linear-gradient(#f2bf4a,#f2bf4a),
    radial-gradient(circle at 12px 50%, #f2bf4a 0 6px, transparent 7px);
  background-size: 2px 16px, 12px 12px;
  background-position: 30px 50%, 16px 50%;
  background-repeat: no-repeat;
}
#couponCode::placeholder{ color:#b5a98d; font-weight:700; }
#couponCode:focus{
  border-color:#f2bf4a; background:#fffef7;
  box-shadow:0 0 0 3px rgba(242,191,74,.22);
}

/* botão aplicar pequeno */
#applyCouponBtn{
  height:34px; padding:0 14px; border:none; border-radius:10px;
  background:#e2a63a; color:#1b1200; font-weight:900; font-size:.92rem;
  cursor:pointer; transition:transform .06s ease, filter .2s;
}
#applyCouponBtn:hover{ filter:brightness(1.05); }
#applyCouponBtn:active{ transform:translateY(1px); }

/* esconder remover */
#removeCouponBtn{ display:none !important; }

/* status discreto */
#couponStatus{
  margin-top:6px; font-size:.82rem; color:#7a7a7a; display:block;
}
#couponStatus.is-ok{ color:#0F9D58; }
#couponStatus.is-error{ color:#c0392b; }
#couponStatus::before{
  content:''; display:inline-block; width:7px; height:7px; margin-right:6px;
  border-radius:50%; background: currentColor; vertical-align:middle;
}

/* em telas bem estreitas vira 2 linhas */
@media (max-width:420px){
  .coupon-row{ grid-template-columns: 1fr; }
  #applyCouponBtn{ width:100%; }
}

#direitosReservados{
    text-align: center;
}
/* backdrop opcional para drawers */
.sheet-mask{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 39;               /* um abaixo do drawer */
}
.sheet-mask.show{
  opacity: 1;
  pointer-events: auto;
}

/* z-index geral dos drawers */
.cart-drawer{
  z-index: 40;               /* acima do header (20) e do conteúdo */
}

/* ===== Drawer de pedidos (FULL-WIDTH no rodapé) ===== */
#ordersDrawer.cart-drawer{
  left: 0;                   /* ocupa toda a largura */
  right: 0;
  top: auto;
  bottom: 12px;              /* troque para 0 se quiser colado mesmo */
  width: auto;
  max-width: none;
  transform: translateY(24px);   /* anima de baixo pra cima */
  border-radius: 16px;           /* ajuste se quiser 0 */
}
#ordersDrawer.cart-drawer.show{
  transform: translateY(0);
}

/* CTA à direita no desktop, embaixo no mobile */
#ordersDrawer .orders-cta{
  min-width: 140px;
  text-align: right;
}
@media (max-width: 560px){
  #ordersDrawer .cart-item{
    grid-template-columns: 1fr;  /* quebra para uma coluna */
    row-gap: 10px;
  }
  #ordersDrawer .orders-cta{
    min-width: 0;
    text-align: left;
  }
  #ordersDrawer .orders-cta .btn{
    width: 100%;
  }
}

/* Pills de status mais claras */
.pill.neutral{
  background: #F5F5F5;
  border-color: #E5E5E5;
  color: #333;
}
.pill.warn{
  background: #FFF4DF;
  border-color: #FFE0AE;
  color: #8A5A00;
}
.pill.paid{
  background: #E8FAF1;
  border-color: #BFE9D6;
  color: #0F9D58;
}

/* Refino do cartão da lista de pedidos */
#ordersDrawer .cart-item{
  border-style: solid;       /* em vez de dashed */
  border-color: #EFE4C8;
}
#ordersDrawer .cart-header{
  border-bottom-color: #EEDFB9;
}
#ordersDrawer .cart-footer{
  border-top-color: #EEDFB9;
}
#ordersDrawer .btn.btn-primary{
  background: var(--mustard);
  border-color: var(--mustard);
}
#ordersDrawer .btn.btn-primary:hover{
  background: var(--mustard-700);
}
