/* =====================================================
   POINT DO PASTEL — Cardápio Digital
   Paleta e tipografia inspiradas no cardápio impresso
   ===================================================== */

:root {
  --orange: #f4611a;
  --orange-light: #ff7d33;
  --orange-dark: #cf4408;
  --yellow: #ffc61a;
  --cream: #fdf1de;
  --cream-soft: #fff8ee;
  --paper: #fffdf9;
  --ink: #141414;
  --ink-soft: #5c5045;
  --line: #ecd9bf;
  --green: #25d366;
  --green-dark: #1eb457;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(70, 40, 10, .07);
  --shadow-md: 0 10px 26px rgba(70, 40, 10, .12);
  --shadow-lg: 0 22px 50px rgba(40, 20, 5, .22);
  --toolbar-h: 118px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  /* padrão de doodles de comida, como no cardápio impresso */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190' viewBox='0 0 190 190'%3E%3Cg fill='none' stroke='%23edcfa6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 24h26l-4 26H22z'/%3E%3Cpath d='M24 30v14M31 30v14M38 30v14'/%3E%3Ccircle cx='96' cy='30' r='13'/%3E%3Ccircle cx='96' cy='30' r='4.5'/%3E%3Cpath d='M146 22c8 0 14 5 14 10h-28c0-5 6-10 14-10zM130 38h32M132 46h28'/%3E%3Cpath d='M28 88l24-10 6 14-24 10z'/%3E%3Cpath d='M84 76h26l-5 30H89z'/%3E%3Cpath d='M86 84h22'/%3E%3Cpath d='M140 74l18 10-18 10z'/%3E%3Cpath d='M22 136c0-7 7-12 16-12s16 5 16 12z'/%3E%3Cpath d='M18 144h44M20 152h40'/%3E%3Ccircle cx='96' cy='142' r='12'/%3E%3Cpath d='M88 142h16'/%3E%3Cpath d='M132 130h30l-6 28h-18z'/%3E%3Cpath d='M138 138h18'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  padding-bottom: 96px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* =====================================================
   HERO
   ===================================================== */
.hero { position: relative; padding: 2.6rem 1rem 0; overflow: hidden; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

/* Marca */
.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: .4rem;
  position: relative;
}

.brand-logo {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
  font-weight: 800;
  line-height: .92;
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-areas: "p pin int do" "pastel pastel pastel pastel";
  align-items: center;
  justify-items: center;
  font-size: clamp(2.7rem, 11vw, 4.6rem);
  letter-spacing: -1px;
  text-transform: uppercase;
}

.wm { position: relative; color: var(--orange); z-index: 1; }
.wm::before {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  -webkit-text-stroke: .19em var(--ink);
  color: var(--ink);
  z-index: -1;
}
.wm-p { grid-area: p; }
.wm-big {
  grid-area: pastel;
  color: var(--yellow);
  font-size: .93em;
  letter-spacing: 1px;
  margin-top: -.06em;
}

.pin {
  grid-area: pin;
  width: .64em; height: .64em;
  background: var(--ink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  margin: 0 .05em .06em;
  box-shadow: 0 0 0 .09em #fffdf9;
}
.pin::after {
  content: '';
  width: .26em; height: .26em;
  background: var(--paper);
  border-radius: 50%;
}

.brand-do {
  grid-area: do;
  font-size: .34em;
  color: var(--ink);
  transform: rotate(-8deg);
  background: var(--paper);
  border: .12em solid var(--ink);
  border-radius: .6em;
  padding: 0 .35em;
  margin-left: .1em;
  align-self: center;
}

.mascot { width: clamp(58px, 15vw, 84px); margin-bottom: .3rem; }

/* Faixa "Cardápio" */
.ribbon {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 700;
  color: var(--paper);
  background: var(--orange);
  display: inline-block;
  padding: .05em 1.6em;
  margin-top: .9rem;
  transform: rotate(-1deg);
  clip-path: polygon(4% 0, 96% 6%, 100% 88%, 2% 100%);
  box-shadow: var(--shadow-sm);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.1rem;
}

.meta-chip, .status {
  font-size: .78rem;
  font-weight: 600;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .38rem .85rem;
  box-shadow: var(--shadow-sm);
}

.status { display: inline-flex; align-items: center; gap: .45rem; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.status.open { border-color: #b6e6c4; color: #17703c; background: #f0fbf3; }
.status.open .dot { background: var(--green-dark); box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); }
.status.closed { border-color: #f3c7bd; color: #a3341a; background: #fef2ef; }
.status.closed .dot { background: #d9482a; }

.hero-slogan {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.5rem, 5.4vw, 2rem);
  color: var(--orange-dark);
  font-weight: 700;
  margin: 1.1rem 0 2.4rem;
}

.hero-wave {
  position: absolute;
  left: -5%; right: -5%; bottom: 0;
  height: 90px;
  background: var(--orange);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: .12;
  z-index: 1;
}

/* =====================================================
   STATUS DO PEDIDO
   ===================================================== */
.order-status-bar {
  background: var(--ink);
  color: #fff;
  padding: .8rem 1rem;
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
}

.order-status-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-status-icon {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.order-status-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.order-status-info {
  flex: 1;
  min-width: 120px;
}

.order-status-title {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .6;
}

.order-status-text {
  display: block;
  font-size: .9rem;
  font-weight: 700;
}

.order-status-progress {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: 2px solid rgba(255, 255, 255, .3);
  transition: all .3s;
}

.status-step.active .step-dot {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 97, 26, .3);
}

.status-step.done .step-dot {
  background: var(--green);
  border-color: var(--green);
}

.step-label {
  font-size: .55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  opacity: .5;
  white-space: nowrap;
}

.status-step.active .step-label,
.status-step.done .step-label {
  opacity: 1;
}

.status-line {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, .2);
  margin: 0 .2rem;
  margin-bottom: 1rem;
  transition: background .3s;
}

.status-line.active {
  background: var(--green);
}

/* =====================================================
   TOOLBAR (busca + categorias)
   ===================================================== */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 241, 222, .93);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.toolbar-inner { max-width: 900px; margin: 0 auto; padding: .8rem 1rem .6rem; }

.search {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: .5rem .9rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--orange); }
.search svg { width: 19px; fill: var(--orange); flex-shrink: 0; }
.search input { flex: 1; border: none; outline: none; background: none; font-size: .92rem; min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { font-size: 1.3rem; line-height: 1; color: var(--ink-soft); padding: 0 .2rem; }

.cats {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cats::-webkit-scrollbar { display: none; }

.cat {
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 700;
  color: var(--orange-dark);
  background: var(--paper);
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: .42rem 1rem;
  transition: background .18s, color .18s, transform .12s;
}
.cat:hover { transform: translateY(-1px); }
.cat.active { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(244, 97, 26, .3); }

/* =====================================================
   CARDÁPIO
   ===================================================== */
.container { max-width: 900px; margin: 0 auto; padding: 1.6rem 1rem 0; }

.section { margin-bottom: 2.4rem; scroll-margin-top: calc(var(--toolbar-h) + 12px); }

.section-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  display: inline-block;
  position: relative;
  padding: .06em .8em .12em;
  margin-bottom: 1rem;
  z-index: 1;
}
.section-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  clip-path: polygon(1% 8%, 99% 0, 100% 90%, 0 100%);
  transform: rotate(-.7deg);
  z-index: -1;
}
.section-note {
  font-size: .82rem;
  color: var(--ink-soft);
  background: #fdeacf;
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: .6rem .85rem;
  margin: .9rem 0 0;
}
.section-note strong { color: var(--ink); }

.items { display: flex; flex-direction: column; gap: .6rem; }

.item {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  transition: transform .15s, box-shadow .15s;
}
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.item-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.item-main { flex: 1; min-width: 0; }
.item-line { display: flex; align-items: baseline; gap: .35rem; }
.item-name {
  font-size: .97rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.leader { flex: 1; border-bottom: 2px dotted #cbb69a; min-width: 14px; transform: translateY(-4px); }
.item-price { font-size: 1.06rem; font-weight: 800; white-space: nowrap; }
.item-desc { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; margin-top: .18rem; }
.item-tag {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  padding: .1rem .4rem;
  margin-left: .35rem;
  vertical-align: middle;
}

.item-add {
  position: relative;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(244, 97, 26, .32);
  transition: transform .12s, background .18s;
}
.item-add:hover { background: var(--orange-dark); transform: scale(1.07); }
.item-add:active { transform: scale(.94); }
.item-add .qty-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--paper);
}

/* Painel laranja — Nossos Pastéis */
.section--featured {
  background: var(--orange);
  border-radius: 26px;
  padding: 1.5rem 1.2rem 1.7rem;
  box-shadow: var(--shadow-md);
  clip-path: polygon(0 1.5%, 100% 0, 99.4% 98.5%, .6% 100%);
}
.section--featured .section-title { color: #fff; font-size: clamp(2rem, 8vw, 2.8rem); }
.section--featured .section-title::before { display: none; }
.section--featured .section-title .title-script {
  display: block;
  font-size: .58em;
  color: var(--ink);
  transform: rotate(-2deg);
  margin-bottom: -.15em;
}
.section--featured .section-title .title-strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: .78em;
  letter-spacing: -1px;
  color: var(--ink);
  text-transform: uppercase;
}
.section--featured .item {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: .3rem .1rem;
  border-radius: 10px;
}
.section--featured .item:hover { transform: none; background: rgba(255, 255, 255, .14); }
.section--featured .item-img { border: 2px solid rgba(20, 20, 20, .25); }
.section--featured .item-name,
.section--featured .item-price { color: var(--ink); }
.section--featured .item-desc { color: #4a1c07; }
.section--featured .leader { border-bottom-color: rgba(20, 20, 20, .45); }
.section--featured .item-add { background: var(--ink); box-shadow: none; }
.section--featured .item-add:hover { background: #000; }
.section--featured .item-add .qty-badge { background: var(--paper); color: var(--ink); border-color: var(--orange); }

.empty-search { text-align: center; color: var(--ink-soft); padding: 2rem 1rem 3rem; }

/* =====================================================
   ADICIONAIS (starburst) + fecho
   ===================================================== */
.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0 3rem;
}

.burst { position: relative; display: grid; place-items: center; padding: 22px; }
.burst::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--orange) 0deg 4deg, transparent 4deg 13deg);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .burst::before { animation: none; } }

.burst-card {
  position: relative;
  background: var(--paper);
  border-radius: 50%;
  width: 168px; height: 168px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.burst-card h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .3rem;
}
.burst-card ul { list-style: none; font-size: .87rem; font-weight: 700; line-height: 1.6; }
.burst-card ul span { color: var(--orange-dark); }

.closing-slogan {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.05;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--orange);
  color: #fff;
  font-size: .85rem;
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}
.footer-logo { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.4rem; text-transform: uppercase; }
.footer-small { opacity: .8; font-size: .75rem; margin-top: .6rem; }

/* =====================================================
   FAB
   ===================================================== */
.fab {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--ink);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: .9rem;
  transition: transform .18s, background .2s;
}
.fab:hover { background: #000; transform: translateX(-50%) translateY(-2px); }
.fab svg { width: 20px; fill: var(--yellow); }
.fab-total {
  background: var(--orange);
  border-radius: 999px;
  padding: .16rem .6rem;
  font-size: .85rem;
  font-weight: 800;
}
.fab-count {
  position: absolute;
  top: -6px; right: -4px;
  min-width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
}

/* =====================================================
   OVERLAY / SHEET / DRAWER
   ===================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(25, 12, 4, .55);
  backdrop-filter: blur(3px);
  display: flex;
  opacity: 0;
  transition: opacity .25s ease;
}
.overlay[hidden] { display: none; }
.overlay.show { opacity: 1; }

/* Modal de item */
#item-overlay { align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--paper);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
}
.overlay.show .sheet { transform: translateY(0); }

.sheet-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.3rem 1.3rem .9rem;
  border-bottom: 1.5px dashed var(--line);
}
.sheet-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); }
.sheet-head h2 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; margin-top: .1rem; }
.sheet-desc { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; line-height: 1.4; }

.sheet-body { padding: 1.1rem 1.3rem; overflow-y: auto; display: grid; gap: 1.1rem; }
.opt-group h4 {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: .5rem;
}
.opt-group h4 small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.opt {
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .65rem .8rem;
  margin-bottom: .45rem;
  cursor: pointer;
  font-size: .89rem;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--orange-light); }
.opt input { accent-color: var(--orange); width: 18px; height: 18px; }
.opt.checked { border-color: var(--orange); background: #fff4ec; }
.opt-name { flex: 1; font-weight: 600; }
.opt-price { font-weight: 800; color: var(--orange-dark); font-size: .85rem; }

.field label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: .3rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .7rem .85rem;
  font-size: .9rem;
  outline: none;
  transition: border-color .18s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.field input.invalid { border-color: #e05a3c; background: #fff6f4; }

/* Modal Pix */
.pix-sheet { max-width: 400px; }
.pix-body { text-align: center; }
.pix-info {
  background: var(--cream);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.pix-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--line);
}
.pix-field:last-child { border-bottom: none; }
.pix-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.pix-value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}
.pix-chave {
  background: var(--orange);
  color: #fff;
  padding: .25rem .6rem;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: .5px;
}
.pix-obs {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.sheet-foot {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: 1rem 1.3rem 1.2rem;
  border-top: 1.5px solid var(--line);
  background: var(--cream-soft);
  border-radius: 0 0 22px 22px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: .1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: .18rem;
  flex-shrink: 0;
}
.stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange-dark);
  display: grid;
  place-items: center;
}
.stepper button:hover { background: #fdece2; }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; font-size: .95rem; }

.btn-primary {
  flex: 1;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: .82rem 1rem;
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 6px 16px rgba(244, 97, 26, .32);
  transition: background .2s;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary span { font-weight: 800; }

.btn-icon { font-size: 1.7rem; line-height: 1; color: var(--ink-soft); padding: 0 .2rem; }
.btn-icon:hover { color: var(--ink); }

/* Carrinho */
#cart-overlay { justify-content: flex-end; }
.drawer {
  background: var(--paper);
  width: 100%;
  max-width: 430px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(24px);
  transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
}
.overlay.show .drawer { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  background: var(--orange);
  color: #fff;
}
.drawer-head h2 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.drawer-head .btn-icon { color: rgba(255, 255, 255, .85); }
.drawer-head .btn-icon:hover { color: #fff; }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.3rem; }

.cart-line {
  display: flex;
  gap: .8rem;
  padding-bottom: .9rem;
  margin-bottom: .9rem;
  border-bottom: 1.5px dashed var(--line);
}
.cart-line-main { flex: 1; min-width: 0; }
.cart-line h4 { font-size: .92rem; font-weight: 700; }
.cart-line .extras { font-size: .76rem; color: var(--ink-soft); margin-top: .2rem; line-height: 1.35; }
.cart-line .note { font-size: .76rem; color: var(--orange-dark); font-style: italic; margin-top: .15rem; }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.cart-line .price { font-weight: 800; font-size: .92rem; white-space: nowrap; }
.cart-line .stepper button { width: 28px; height: 28px; font-size: 1rem; }
.cart-line .stepper span { min-width: 20px; font-size: .85rem; }

.cart-empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }
.cart-empty svg { width: 54px; margin: 0 auto .8rem; fill: var(--line); }
.cart-empty strong { display: block; color: var(--ink); margin-bottom: .25rem; }

.cart-form { display: grid; gap: .8rem; margin-top: .4rem; }
.segmented { display: flex; background: var(--cream); border-radius: 999px; padding: .22rem; }
.seg {
  flex: 1;
  border-radius: 999px;
  padding: .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.seg.active { background: var(--paper); color: var(--orange-dark); box-shadow: var(--shadow-sm); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.grid-2 .span-2 { grid-column: 1 / -1; }

.drawer-foot { padding: 1rem 1.3rem 1.2rem; border-top: 1.5px solid var(--line); background: var(--cream-soft); }
.totals { font-size: .86rem; margin-bottom: .8rem; }
.totals > div { display: flex; justify-content: space-between; padding: .16rem 0; color: var(--ink-soft); }
.totals dd { font-weight: 700; color: var(--ink); }
.totals .grand { font-size: 1.1rem; font-weight: 800; color: var(--ink); border-top: 1.5px dashed var(--line); margin-top: .4rem; padding-top: .5rem; }
.totals .grand dd { color: var(--orange-dark); font-weight: 800; }

.btn-whats {
  width: 100%;
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  padding: .9rem;
  font-weight: 700;
  font-size: .93rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .3);
  transition: background .2s;
}
.btn-whats:hover { background: var(--green-dark); }
.btn-whats svg { width: 21px; fill: #fff; }
.btn-whats:disabled { background: #c9c9c9; box-shadow: none; cursor: not-allowed; }

.btn-ghost {
  width: 100%;
  margin-top: .5rem;
  padding: .55rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 10px;
}
.btn-ghost:hover { color: #b83a1c; background: #fdece7; }

/* =====================================================
   TOASTS
   ===================================================== */

/* Loja fechada: desabilitar botões de adicionar */
.store-closed .item-add {
  opacity: .35;
  pointer-events: none;
}
.store-closed .fab {
  opacity: .35;
  pointer-events: none;
}
.toasts {
  position: fixed;
  bottom: 88px; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}
.toast {
  background: var(--ink);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  animation: toast-in .25s ease both;
}
.toast.err { background: #b83a1c; }
.toast.out { animation: toast-out .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (min-width: 600px) {
  .fab { left: auto; right: 24px; bottom: 24px; transform: none; }
  .fab:hover { transform: translateY(-2px); }
  .toasts { left: auto; right: 24px; transform: none; align-items: flex-end; }
  #item-overlay { align-items: center; }
  .sheet { border-radius: 22px; }
  .sheet-foot { border-radius: 0 0 22px 22px; }
}

@media (max-width: 420px) {
  .item { padding: .75rem .85rem; gap: .6rem; }
  .item-name { font-size: .9rem; }
  .item-img { width: 50px; height: 50px; }
  .closing { gap: 1.2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .fab-label { display: none; }
}

@media print {
  .toolbar, .fab, .overlay, .toasts, .item-add, .search { display: none !important; }
  body { background: #fff; padding: 0; }
  .section { break-inside: avoid; }
}
