/*
 * Sistema de pedidos (sacola + checkout + WhatsApp), portado do Caliope.
 * As cores e fontes do site ficam no bloco "tema" logo abaixo; o resto é igual nos dois sites.
 */
/* Geist Mono vem de /fonts, declarada em css/fanes.css. */

/* ================= tema: Fanes ================= */
:root {
  --pd-font-sans: 'Bricolage Grotesque', 'Bricolage Grotesque Fallback', system-ui, sans-serif;
  --pd-font-serif: 'Anton', 'Anton Fallback', Impact, sans-serif;
  --pd-font-display: 'Anton', 'Anton Fallback', Impact, sans-serif;
  /* Valores em reais no texto corrido, não na Anton condensada. */
  --pd-font-figures: 'Bricolage Grotesque', 'Bricolage Grotesque Fallback', system-ui, sans-serif;
  --pd-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pd-background: #ffffff;
  --pd-foreground: #222831;
  --pd-popover: #ffffff;
  --pd-card: #fbfbfc;
  --pd-primary: #ffbe33;
  --pd-primary-hover: #ffcd5c;
  --pd-primary-foreground: #222831;
  --pd-secondary: #f1f2f3;
  --pd-secondary-foreground: #222831;
  --pd-muted: #f1f2f3;
  --pd-muted-foreground: #6c717a;
  --pd-accent: #ffbe33;
  --pd-destructive: #d92d20;
  --pd-border: rgba(34, 40, 49, 0.14);
  --pd-ring: rgba(255, 190, 51, 0.55);
  --pd-shadow-floating: 0 10px 30px rgba(34, 40, 49, 0.3);
  --pd-floating-bottom: 16px;
}

/* Cards do cardápio têm o rodapé escuro: o controle "Adicionar ao pedido" acompanha. */
.food_section .box .pd-add {
  --pd-background: #222831;
  --pd-foreground: #ffffff;
  --pd-border: rgba(255, 255, 255, 0.3);
  --pd-muted: rgba(255, 255, 255, 0.1);
  --pd-ring: rgba(255, 190, 51, 0.55);
}

.food_section .box .pd-add .pd-btn--outline:hover {
  border-color: #ffbe33;
  background: #ffbe33;
  color: #222831 !important;
}

/* Selo com a quantidade no ícone de carrinho do topo. */
.user_option .cart_link {
  position: relative;
}

.pd-nav-count {
  position: absolute;
  top: -9px;
  right: -11px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ffbe33;
  color: #222831;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.pd-nav-count[hidden] {
  display: none;
}

/* ================= base ================= */
.pd-sheet,
.pd-add,
.pd-floating {
  font-family: var(--pd-font-sans);
  -webkit-font-smoothing: antialiased;
}

.pd-sheet *,
.pd-sheet *::before,
.pd-sheet *::after,
.pd-add *,
.pd-floating * {
  box-sizing: border-box;
}

.pd-sheet :is(h2, h3, p, ul, fieldset, legend, label) {
  margin: 0;
  padding: 0;
  color: inherit;
  letter-spacing: normal;
}

.pd-sheet ul {
  list-style: none;
}

.pd-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pd-meta {
  font-family: var(--pd-font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pd-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}

.pd-icon--xs {
  width: 14px;
  height: 14px;
}

.pd-icon--inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}

.pd-spin {
  animation: pd-spin 1s linear infinite;
}

.pd-w-full { width: 100%; }
.pd-mt-1 { margin-top: 4px; }
.pd-h-9 { height: 36px !important; }

/* ================= botões (mesmas variantes do Caliope) ================= */
.pd-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  font-family: var(--pd-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  text-transform: none;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.pd-btn:focus-visible {
  border-color: var(--pd-primary);
  box-shadow: 0 0 0 3px var(--pd-ring);
}

.pd-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.pd-btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.pd-btn--default {
  background: var(--pd-primary);
  color: var(--pd-primary-foreground) !important;
}
.pd-btn--default:hover { background: var(--pd-primary-hover); }

.pd-btn--outline {
  border-color: var(--pd-border);
  background: var(--pd-background);
  color: var(--pd-foreground) !important;
}
.pd-btn--outline:hover { background: var(--pd-muted); }

.pd-btn--secondary {
  background: var(--pd-secondary);
  color: var(--pd-secondary-foreground) !important;
}
.pd-btn--secondary:hover { filter: brightness(0.96); }

.pd-btn--ghost {
  background: transparent;
  color: var(--pd-foreground) !important;
}
.pd-btn--ghost:hover { background: var(--pd-muted); }

.pd-size-default { height: 36px; padding: 0 12px; }
.pd-size-sm { height: 32px; padding: 0 12px; gap: 4px; }
.pd-size-lg { height: 48px; padding: 0 24px; gap: 8px; }
.pd-size-icon { width: 36px; height: 36px; padding: 0; }
.pd-size-icon-sm { width: 32px; height: 32px; padding: 0; }

/* ================= gaveta ================= */
.pd-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: pd-fade-in 0.2s ease-out both;
}

.pd-overlay[data-state="closed"] {
  animation: pd-fade-out 0.2s ease-in both;
}

.pd-sheet {
  position: fixed;
  z-index: 100001;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  height: min(44rem, calc(100dvh - 1rem));
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--pd-border);
  border-radius: 2rem;
  background: var(--pd-popover);
  color: var(--pd-foreground);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  outline: none;
  animation: pd-sheet-in-bottom 0.3s ease-out both;
}

.pd-sheet[data-state="closed"] {
  animation: pd-sheet-out-bottom 0.3s ease-in both;
}

@media (min-width: 640px) {
  .pd-sheet {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 100%;
    max-width: 28rem;
    height: 100%;
    border-width: 0 0 0 1px;
    border-radius: 0;
    animation-name: pd-sheet-in-right;
  }

  .pd-sheet[data-state="closed"] {
    animation-name: pd-sheet-out-right;
  }
}

.pd-close {
  position: absolute;
  top: 20px;
  right: 16px;
  z-index: 20;
}

@media (min-width: 640px) {
  .pd-close { top: 16px; }
}

.pd-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  padding: 28px 20px 16px;
  border-bottom: 1px solid var(--pd-border);
}

@media (min-width: 640px) {
  .pd-header { padding: 24px; }
}

.pd-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--pd-foreground);
  opacity: 0.2;
  transform: translateX(-50%);
}

@media (min-width: 640px) {
  .pd-handle { display: none; }
}

.pd-sheet .pd-eyebrow {
  margin-bottom: 8px;
  color: var(--pd-muted-foreground);
  font-size: 10px;
}

.pd-sheet .pd-title {
  padding-right: 48px;
  font-family: var(--pd-font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.pd-sheet .pd-desc {
  margin-top: 8px;
  padding-right: 32px;
  color: var(--pd-muted-foreground);
  font-size: 14px;
  line-height: 1.35;
}

.pd-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.pd-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
}

.pd-scroll--receipt {
  padding: 16px;
}

.pd-footer {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 16px);
  border-top: 1px solid var(--pd-border);
  background: var(--pd-popover);
}

@media (min-width: 640px) {
  .pd-footer { padding: 24px; }
}

.pd-footer--raised {
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.05);
}

.pd-sheet .pd-footer__hint {
  color: var(--pd-muted-foreground);
  font-size: 12px;
  text-align: center;
}

.pd-sum {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.pd-sheet .pd-sum__label {
  color: var(--pd-muted-foreground);
  font-size: 10px;
}

.pd-sheet .pd-sum__value {
  margin-top: 4px;
  font-family: var(--pd-font-figures, var(--pd-font-serif));
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.pd-sheet .pd-sum__note {
  max-width: 128px;
  color: var(--pd-muted-foreground);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.pd-actions {
  display: grid;
  gap: 8px;
}

.pd-actions--roomy {
  gap: 12px;
}

/* ================= comanda vazia ================= */
.pd-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  padding: 40px 28px;
  text-align: center;
  text-wrap: balance;
}

.pd-empty__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 24rem;
}

.pd-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--pd-muted);
  color: var(--pd-foreground);
}

.pd-empty__icon .pd-icon {
  width: 24px;
  height: 24px;
}

.pd-empty__title {
  font-family: var(--pd-font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.pd-empty__desc {
  max-width: 16rem;
  color: var(--pd-muted-foreground);
  font-size: 14px;
  line-height: 1.625;
}

.pd-empty .pd-btn {
  max-width: 24rem;
}

/* ================= itens da comanda ================= */
.pd-sheet .pd-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px;
}

.pd-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 16px;
  row-gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pd-border);
  overflow: hidden;
}

.pd-row:last-child {
  border-bottom: 0;
}

.pd-row--enter {
  animation: pd-fade-in 0.25s ease-out both;
}

.pd-row--exit {
  height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  opacity: 0;
  transition: height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

.pd-row__img {
  position: relative;
  grid-row: span 2;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--pd-muted);
}

.pd-row__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.pd-row__info {
  min-width: 0;
}

.pd-sheet .pd-row__name {
  overflow: hidden;
  font-family: var(--pd-font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pd-sheet .pd-row__each {
  margin-top: 4px;
  color: var(--pd-muted-foreground);
  font-size: 12px;
}

.pd-sheet .pd-row__total {
  flex-shrink: 0;
  font-family: var(--pd-font-mono);
  font-size: 14px;
  font-weight: 500;
}

.pd-qty {
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 2px;
  border: 1px solid var(--pd-border);
  border-radius: 999px;
  background: var(--pd-background);
}

.pd-qty__num {
  width: 32px;
  font-family: var(--pd-font-mono);
  font-size: 14px;
  text-align: center;
}

/* ================= checkout ================= */
.pd-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.pd-sheet .pd-fieldset {
  min-width: 0;
  border: 0;
}

.pd-sheet .pd-legend,
.pd-sheet .pd-subhead {
  width: auto;
  float: none;
  font-family: var(--pd-font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.pd-sheet .pd-subhead {
  margin-top: 32px;
}

.pd-radios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .pd-radios { grid-template-columns: repeat(3, 1fr); }
}

.pd-radio {
  position: relative;
  height: 72px;
}

@media (min-width: 640px) {
  .pd-radio { height: 112px; }
}

.pd-sheet .pd-radio__card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--pd-border);
  border-radius: 16px;
  background: var(--pd-background);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 640px) {
  .pd-sheet .pd-radio__card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.pd-radio__card:hover,
.pd-radio__input:checked + .pd-radio__card {
  background: var(--pd-muted);
}

.pd-radio__input:checked + .pd-radio__card {
  border-color: var(--pd-foreground);
}

.pd-radio__input:focus-visible + .pd-radio__card {
  box-shadow: 0 0 0 3px var(--pd-ring);
}

.pd-radio__dot {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid color-mix(in srgb, var(--pd-foreground) 35%, transparent);
  border-radius: 999px;
}

.pd-radio__dot span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pd-foreground);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pd-radio__input:checked + .pd-radio__card .pd-radio__dot {
  border-color: var(--pd-foreground);
}

.pd-radio__input:checked + .pd-radio__card .pd-radio__dot span {
  opacity: 1;
}

.pd-radio__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pd-radio__label {
  font-family: var(--pd-font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.pd-radio__desc {
  margin-top: 4px;
  color: var(--pd-muted-foreground);
  font-size: 12px;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .pd-radio__text { display: block; }
  .pd-radio__label { display: block; font-size: 16px; line-height: 1.05; }
  .pd-radio__desc { display: block; margin-top: 8px; font-size: 10px; }
}

.pd-sheet .pd-alert {
  margin-top: 16px;
  padding: 12px;
  border-radius: 16px;
  background: var(--pd-muted);
  font-size: 12px;
  text-align: center;
}

.pd-sheet .pd-alert[hidden] {
  display: none;
}

.pd-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.pd-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.pd-sheet .pd-label {
  display: flex;
  width: fit-content;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.pd-sheet .pd-input {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: var(--pd-background);
  color: var(--pd-foreground);
  font-family: var(--pd-font-sans);
  font-size: 16px;
  box-shadow: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 768px) {
  .pd-sheet .pd-input { font-size: 14px; }
}

.pd-sheet .pd-input::placeholder {
  color: var(--pd-muted-foreground);
  opacity: 1;
}

.pd-sheet .pd-input:focus-visible {
  border-color: var(--pd-foreground);
}

.pd-address-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (min-width: 640px) {
  .pd-address-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.pd-sheet .pd-locate {
  width: 100%;
  height: 36px;
}

@media (min-width: 640px) {
  .pd-sheet .pd-locate { width: auto; }
}

.pd-map {
  overflow: hidden;
  border: 1px solid var(--pd-border);
  border-radius: 16px;
  background: var(--pd-muted);
}

.pd-map[hidden] {
  display: none;
}

.pd-map__canvas {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 224px;
  font-family: var(--pd-font-sans);
}

.pd-map__canvas .leaflet-control-zoom a {
  color: var(--pd-foreground);
}

.pd-map__canvas .leaflet-control-attribution {
  color: var(--pd-muted-foreground);
  font-size: 9px;
}

.pd-map__hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--pd-border);
  background: var(--pd-background);
  color: var(--pd-muted-foreground);
  font-size: 12px;
  line-height: 1.625;
}

.pd-map__hint .pd-icon {
  margin-top: 2px;
}

.pd-pin {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--pd-primary-foreground);
  border-radius: 50% 50% 50% 0;
  background: var(--pd-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transform: rotate(-45deg);
}

.pd-pin > span {
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  background: var(--pd-primary-foreground);
}

.pd-sheet .pd-status {
  color: var(--pd-muted-foreground);
  font-size: 12px;
  line-height: 1.625;
}

.pd-sheet .pd-status--error {
  color: var(--pd-destructive);
}

/* ================= cupom ================= */
.pd-receipt {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  transform: rotate(1deg);
}

.pd-receipt__slot {
  position: relative;
  z-index: 10;
  height: 14px;
  border-radius: 999px;
  background-color: var(--pd-foreground);
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 3px, color-mix(in srgb, var(--pd-background) 18%, transparent) 3px, color-mix(in srgb, var(--pd-background) 18%, transparent) 4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.pd-receipt__slot > div {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pd-background) 30%, transparent);
  transform: translateY(-50%);
}

.pd-receipt__window {
  overflow: hidden;
  padding: 0 12px;
}

.pd-receipt__paper-wrap {
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
  animation: pd-print 2.4s linear both;
}

.pd-receipt__paper {
  --tooth: 0.75rem;
  padding: 32px 24px 40px;
  background-color: var(--pd-card);
  background-image: repeating-linear-gradient(0deg, color-mix(in srgb, var(--pd-foreground) 3%, transparent) 0, color-mix(in srgb, var(--pd-foreground) 3%, transparent) 1px, transparent 1px, transparent 4px);
  color: var(--pd-foreground);
  font-family: var(--pd-font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
  -webkit-mask:
    conic-gradient(from 135deg at top, transparent, #000 1deg 89deg, transparent 90deg) top / var(--tooth) 51% repeat-x,
    conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / var(--tooth) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, transparent, #000 1deg 89deg, transparent 90deg) top / var(--tooth) 51% repeat-x,
    conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / var(--tooth) 51% repeat-x;
}

.pd-receipt__head {
  text-align: center;
}

.pd-receipt__logo {
  display: block;
  color: var(--pd-accent);
  font-size: 22px;
  line-height: 1;
}

.pd-sheet .pd-receipt__brand {
  margin-top: 8px;
  font-family: var(--pd-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

.pd-sheet .pd-receipt__number {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.pd-sheet .pd-receipt__block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed color-mix(in srgb, var(--pd-foreground) 30%, transparent);
}

.pd-sheet .pd-receipt__items {
  margin-top: 20px;
}

.pd-receipt__block > li + li {
  margin-top: 8px;
}

.pd-receipt__items > li + li {
  margin-top: 12px;
}

.pd-rline {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pd-rline--item {
  align-items: center;
  gap: 12px;
}

.pd-rline--item img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
}

.pd-rline--total {
  font-weight: 600;
}

.pd-dots {
  flex: 1;
  border-bottom: 1px dotted color-mix(in srgb, var(--pd-foreground) 45%, transparent);
}

.pd-receipt__foot {
  margin-top: 20px !important;
  padding-top: 20px !important;
}

.pd-barcode {
  display: block;
  width: 100%;
  height: 32px;
  color: var(--pd-foreground);
}

.pd-sheet .pd-receipt__foot p {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ================= "adicionar ao pedido" nos cards ================= */
.pd-add {
  display: grid;
  margin-top: 16px;
}

.pd-add .pd-size-lg {
  width: 100%;
}

.pd-add__stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
}

.pd-add__qty {
  color: var(--pd-foreground);
  font-size: 12px;
}

/* Botões que adicionam direto (ícone de carrinho do card). */
.pd-bump {
  animation: pd-bump 0.35s ease-out;
}

/* ================= botão flutuante ================= */
.pd-floating {
  position: fixed;
  z-index: 9980;
  right: 16px;
  bottom: calc(var(--pd-floating-bottom, 16px) + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pd-primary);
  border-radius: 50%;
  background: var(--pd-primary);
  color: var(--pd-primary-foreground);
  box-shadow: var(--pd-shadow-floating);
  cursor: pointer;
  animation: pd-pop-in 0.25s ease-out both;
  transition: scale 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-floating[hidden] {
  display: none;
}

.pd-floating:hover {
  background: var(--pd-primary-hover);
}

.pd-floating:active {
  scale: 0.94;
}

.pd-floating:focus-visible {
  outline: 3px solid var(--pd-ring);
  outline-offset: 3px;
}

.pd-floating__icon {
  width: 25px;
  height: 25px;
}

.pd-floating__count {
  position: absolute;
  top: -5px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding-inline: 6px;
  border: 2px solid var(--pd-background);
  border-radius: 999px;
  background: var(--pd-card);
  color: var(--pd-foreground);
  font-family: var(--pd-font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

@media (min-width: 1024px) {
  .pd-floating { display: none; }
}

/* ================= animações ================= */
@keyframes pd-spin { to { transform: rotate(360deg); } }
@keyframes pd-fade-in { from { opacity: 0; } }
@keyframes pd-fade-out { to { opacity: 0; } }
@keyframes pd-sheet-in-bottom { from { opacity: 0; transform: translateY(2.5rem); } }
@keyframes pd-sheet-out-bottom { to { opacity: 0; transform: translateY(2.5rem); } }
@keyframes pd-sheet-in-right { from { opacity: 0; transform: translateX(2.5rem); } }
@keyframes pd-sheet-out-right { to { opacity: 0; transform: translateX(2.5rem); } }
@keyframes pd-pop-in { from { opacity: 0; transform: scale(0.6); } }
@keyframes pd-bump {
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Cupom saindo da "impressora": desce aos trancos até aparecer inteiro. */
@keyframes pd-print {
  0% { transform: translateY(-105%); }
  16% { transform: translateY(-72%); }
  28% { transform: translateY(-72%); }
  44% { transform: translateY(-44%); }
  56% { transform: translateY(-44%); }
  72% { transform: translateY(-18%); }
  84% { transform: translateY(-18%); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pd-overlay,
  .pd-sheet,
  .pd-row--enter,
  .pd-floating,
  .pd-bump {
    animation-duration: 1ms !important;
  }

  .pd-receipt__paper-wrap {
    animation: pd-fade-in 0.5s ease-out both;
  }

  .pd-row--exit,
  .pd-floating,
  .pd-btn {
    transition: none;
  }
}
