@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --dark: #382721;
  --dark-2: #2c1c17;
  --medium: #7A3E33;
  --rose: #C55C8E;
  --rose-light: #EBC1C6;
  --gold: #D4AF37;
  --gold-soft: #e2c26b;
  --bg: #F7F1EA;
  --card-bg: #ffffff;
  --text: #3B2721;
  --muted: #8a7566;
  --border: #ecdfd3;
  --danger: #a83232;
  --danger-bg: #fbeceb;
  --success: #3f6b4a;
  --success-bg: #eaf3ec;
  --warning: #9a6a1f;
  --warning-bg: #fbf1de;
  --info: #3a6a7c;
  --info-bg: #e8f2f5;
  --app-topbar-h: 58px;
  --app-chips-h: 54px;
  --app-search-h: 60px;

  /* ─── Tokens compartilhados (delivery + admin) ──────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(59,39,33,.08);
  --shadow-md: 0 4px 16px rgba(59,39,33,.10);
  --ease: .15s ease;

  /* ─── Admin: neutros próprios de painel (não usar no delivery) ──────── */
  --admin-bg: #f5f4f2;
  --admin-surface: #ffffff;
  --admin-border: #e4e1dc;
  --admin-text: #2a2420;
  --admin-muted: #756e66;
  --admin-sidebar-bg: #23201d;
  --admin-sidebar-text: #b8b2a9;
  --admin-sidebar-active: #34302b;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: .5px;
}
/* O widget do Mercado Pago (Payment Brick) renderiza títulos como <h1>/<h2>/<h3>
   sem font-family própria — sem isso, "Meios de pagamento" herda a serifada
   do site e destoa do resto do formulário deles, que é sans-serif. */
#cardPaymentBrick h1, #cardPaymentBrick h2, #cardPaymentBrick h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

a { color: var(--dark); text-decoration: none; }

/* ─── Brand / Logo ───────────────────────────────────────────────────── */
/* O logo já traz o nome "GANACHE" e "Confeitaria Artesanal" desenhados na própria
   arte (lockup completo) — por isso é renderizado sozinho, sem moldura circular
   nem texto HTML duplicado ao lado. */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-lockup .brand-logo {
  max-width: 92%;
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.hero .brand-lockup { flex-direction: column; }
.hero .brand-logo { height: 118px; }

.auth-wrap .brand-lockup { flex-direction: column; margin-bottom: 22px; }
.auth-wrap .brand-logo { height: 137px; margin: 0 auto; }

/* ─── Header ─────────────────────────────────────────────────────────── */
header.topbar {
  background: var(--dark);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(212,175,55,.35);
}

header.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.main-nav { gap: 26px !important; }
.main-nav a {
  border: none !important;
  padding: 4px 0 !important;
  color: rgba(255,255,255,.85) !important;
  font-size: .76rem !important;
  letter-spacing: 1.4px !important;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -3px; width: 0; height: 1px;
  background: var(--gold); transition: width .2s;
}
.main-nav a:hover { color: var(--gold-soft) !important; }
.main-nav a:hover::after { width: 100%; }

header.topbar nav a, header.topbar nav button {
  color: var(--rose-light);
  background: none;
  border: 1px solid rgba(212,175,55,.5);
  padding: 8px 16px;
  border-radius: 2px;
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all .2s;
}
header.topbar nav a:hover, header.topbar nav button:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

header.topbar nav a.solid, header.topbar nav button.solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 700;
}

.cart-btn {
  position: relative;
  background: transparent;
  color: var(--gold-soft) !important;
  border: 1px solid var(--gold) !important;
  padding: 9px 16px !important;
  border-radius: 2px !important;
  font-weight: 600;
  cursor: pointer;
  font-size: .78rem !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--rose);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ─── Barra fixa de pedido — colada na borda inferior, estilo iFood (uma
   linha só, sem flutuar/suspender) — some quando a sacola está vazia ──── */
.cart-fab {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  border-radius: 0;
  background: #fff;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--dark);
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  cursor: pointer;
  box-shadow: 0 -4px 16px rgba(59,39,33,.10);
  font-family: 'Montserrat', sans-serif;
}
.cart-fab-info { display: flex; flex-direction: column; gap: 1px; }
.cart-fab-count { color: var(--muted); font-weight: 600; font-size: .72rem; }
.cart-fab-total { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .98rem; color: var(--dark); }
.cart-fab-cta {
  flex-shrink: 0; background: var(--gold); color: var(--dark);
  font-weight: 700; font-size: .84rem; letter-spacing: .3px; text-transform: none;
  border-radius: 8px; padding: 12px 20px;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(160deg, var(--dark), var(--dark-2));
  color: #fff;
  padding: 64px 20px 56px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  color: var(--rose-light);
  font-size: 1rem;
  margin: 18px 0 0;
  letter-spacing: .5px;
}
.hero-rule {
  width: 60px; height: 1px; background: var(--gold); margin: 20px auto 0; opacity: .7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.btn.outline-light { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn.outline-light:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ─── Manifesto ──────────────────────────────────────────────────────── */
.manifesto {
  text-align: center;
  padding: 70px 20px;
  max-width: 640px;
  margin: 0 auto;
}
.manifesto h2 {
  font-size: 1.7rem;
  color: var(--dark);
  margin: 0 0 16px;
}
.manifesto p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}
.manifesto .hero-rule { background: var(--gold); opacity: .8; }

/* ─── Criações ───────────────────────────────────────────────────────── */
.criacoes { background: var(--rose-light); padding: 60px 20px 70px; }
.criacoes-grid {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.criacao-card {
  background: #fff; border-radius: 6px; padding: 34px 22px; text-align: center;
  box-shadow: 0 6px 20px rgba(59,39,33,.08); transition: transform .2s, box-shadow .2s;
  border-bottom: 3px solid transparent;
}
.criacao-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(59,39,33,.14); border-bottom-color: var(--gold); }
.criacao-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center;
  color: var(--medium);
}
.criacao-icon svg { width: 26px; height: 26px; }
.criacao-card h3 { font-family: 'Cinzel', serif; font-size: .98rem; color: var(--dark); margin: 0 0 8px; letter-spacing: .3px; }
.criacao-card p { color: var(--muted); font-size: .84rem; margin: 0; line-height: 1.5; }

.menu-empty { text-align: center; color: var(--muted); padding: 40px 20px; line-height: 1.8; }
.menu-error { text-align: center; color: var(--danger); padding: 40px 20px; }
.menu-error p { margin: 0 0 16px; line-height: 1.6; }

/* ─── CTA banner ─────────────────────────────────────────────────────── */
.cta-banner {
  background:
    radial-gradient(circle at 50% 30%, rgba(212,175,55,.14), transparent 65%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  padding: 70px 20px;
  text-align: center;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.cta-content { max-width: 460px; margin: 0 auto; }
.cta-logo { height: 92px; width: auto; object-fit: contain; margin-bottom: 18px; }
.cta-banner h2 { color: #fff; font-size: 1.5rem; margin: 0 0 26px; }

/* ─── Container ──────────────────────────────────────────────────────── */
.container { max-width: 980px; margin: 0 auto; padding: 40px 18px 90px; }

.category-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin: 40px 0 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}
.category-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 10px auto 0;
}
.category-title.sub { font-size: 1rem; margin: 40px 0 18px; }

/* ─── Lista de produtos: linhas com foto à direita, estilo iFood ────────── */
.items-grid {
  display: flex;
  flex-direction: column;
}

.item-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 2px;
  cursor: pointer;
  transition: background .15s;
}
.item-card:last-child { border-bottom: none; }
.item-card:hover { background: rgba(59,39,33,.03); }

.item-photo-wrap { width: 96px; height: 96px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--border); }
.item-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--rose-light), var(--border));
  display: flex; align-items: center; justify-content: center; color: var(--medium);
}
.item-photo-placeholder svg { width: 28px; height: 28px; }
.item-body { padding: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.item-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .92rem; color: #1a1a1a; letter-spacing: 0; line-height: 1.3; }
.item-desc {
  color: var(--muted); font-size: .76rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.item-price { font-weight: 700; color: #1a1a1a; font-size: .88rem; font-family: 'Montserrat', sans-serif; line-height: 1.3; }
.item-add-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--gold); color: var(--dark); font-size: 1.25rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(212,175,55,.45); transition: background .15s, transform .1s;
}
.item-add-btn:hover { background: var(--gold-soft); }
.item-add-btn:active { transform: scale(.9); }

@media (min-width: 600px) {
  .item-photo-wrap { width: 112px; height: 112px; }
  .item-name { font-size: .96rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  border: 1px solid var(--dark);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover { background: var(--dark-2); border-color: var(--dark-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn.accent { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.btn.accent:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn.outline { background: none; border: 1px solid var(--dark); color: var(--dark); }
.btn.outline:hover { background: var(--dark); color: #fff; }

.btn.ghost { background: none; border-color: transparent; color: var(--medium); }
.btn.ghost:hover { background: var(--bg); }

.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: #8f2b2b; border-color: #8f2b2b; }

.btn.sm { padding: 6px 12px; font-size: .74rem; }
.btn.lg { padding: 15px 34px; font-size: .9rem; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ─── Badges de status (compartilhado: admin + delivery) ─────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; border: none;
  font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; line-height: 1.4; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
button.badge { cursor: pointer; transition: filter var(--ease); }
button.badge:hover { filter: brightness(.95); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--admin-bg); color: var(--admin-muted); }
.badge-gold { background: #fbf3df; color: #8a6d1f; }

.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-control button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-weight: 700; color: var(--dark);
}

/* ─── Itens da sacola (usado no carrinho, revisão e painel desktop) ───────
   Mesma fonte (Montserrat) e proporções compactas da página de seleção de
   sabores — não a serifada/espaçada de antes. */
.cart-items { }
.cart-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }

.cart-item-photo-wrap { position: relative; width: 58px; height: 58px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--border); }
.cart-item-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--medium); background: linear-gradient(135deg, var(--rose-light), var(--border));
}
.cart-item-photo-placeholder svg { width: 18px; height: 18px; }
.cart-item-edit-btn {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; color: var(--dark); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); padding: 0;
}
.cart-item-edit-btn svg { width: 9px; height: 9px; }

.cart-item-main { display: flex; flex: 1; min-width: 0; gap: 8px; justify-content: space-between; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item .name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem; color: var(--dark); }
.cart-item .sub { color: var(--muted); font-size: .7rem; margin-top: 1px; }

.cart-item-flavors-label { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); margin-top: 6px; }
.cart-item-flavors-list { margin-top: 3px; display: flex; flex-direction: column; gap: 3px; }
.cart-item-flavor-row { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text); }
.cart-item-flavor-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--bg); border-radius: 5px; font-size: .64rem; font-weight: 700; color: var(--medium); flex-shrink: 0;
}

.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; gap: 6px; }
.cart-item-price { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #BD6C72; font-size: .8rem; white-space: nowrap; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; }
.cart-item-trash-btn {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: var(--danger); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.cart-item-trash-btn svg { width: 12px; height: 12px; }
.cart-item-controls .qty-control button { width: 22px; height: 22px; font-size: .8rem; }
.cart-item-controls .qty-control span { font-size: .8rem; }
.cart-view-title {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--dark);
  text-transform: none; letter-spacing: 0; margin: 4px 0 10px;
}
/* Observações da sacola — mesma escala compacta do campo de observações da
   página de produto. */
#cartContainer .field { margin-bottom: 8px; }
#cartContainer .field label { font-size: .68rem; text-transform: none; letter-spacing: 0; }
#cartContainer .field textarea { font-size: .8rem; padding: 7px 10px; }

/* ─── Etapas do checkout: título + selo "Etapa N de 3" ─────────────────────
   Mesma fonte (Montserrat) e escala compacta da sacola — não a serifada/maior
   de antes. */
.step-eyebrow {
  font-size: .7rem; font-weight: 700; color: var(--medium);
  text-transform: uppercase; letter-spacing: 1.5px; margin: 4px 0 4px;
}
.step-title {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--dark);
  margin: 0 0 8px; position: relative; padding-bottom: 14px;
}
.step-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }

/* ─── Cards grandes de escolha (entrega/retirada, cartão/pix) ────────────── */
.choice-cards { display: flex; flex-direction: column; gap: 10px; }
.choice-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 14px;
  background: #fff; cursor: pointer; font-family: 'Montserrat', sans-serif; position: relative;
  transition: border-color .15s, background .15s;
}
.choice-card:hover:not(.disabled) { border-color: var(--gold); }
.choice-card.selected { border-color: var(--gold); background: var(--bg); }
.choice-card.disabled { opacity: .55; cursor: not-allowed; }
.choice-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--medium);
}
.choice-card.selected .choice-card-icon { color: var(--gold); }
.choice-card-icon svg { width: 26px; height: 26px; }
.choice-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.choice-card-body strong { color: var(--dark); font-size: .86rem; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.choice-card-body span { color: var(--muted); font-size: .7rem; }
.choice-card-check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--dark);
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
}
.choice-card-check svg { width: 12px; height: 12px; }
.choice-card.selected .choice-card-check { display: flex; }

/* Detalhe embutido no card selecionado (ex: frete calculado dentro do card
   "Entrega") — mesma escala compacta usada nos cartõezinhos de sabor. */
.choice-card-inline {
  width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.choice-card-inline-icon { color: var(--medium); flex-shrink: 0; display: flex; }
.choice-card-inline-icon svg { width: 15px; height: 15px; }
.choice-card-inline-text { flex: 1; min-width: 0; font-size: .74rem; color: var(--dark); font-weight: 600; }
.choice-card-inline-badge {
  background: var(--bg); color: var(--medium); font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px; padding: 4px 9px; border-radius: 20px; flex-shrink: 0;
}

/* ─── Cartão informativo (endereço de entrega / dados da loja) ───────────── */
.info-card {
  margin-top: 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 14px; font-size: .78rem; color: var(--dark); font-family: 'Montserrat', sans-serif;
}
.info-card.warn { background: #fff; border-color: var(--border); border-left: 3px solid var(--rose); }
.info-card.warn .info-card-title { color: var(--medium); }
.info-card-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: .5px; color: var(--medium); margin-bottom: 7px; }
.info-card p { margin: 2px 0; }
.info-card .sub { color: var(--muted); font-size: .7rem; }
.info-card-link { display: inline-block; margin-top: 7px; color: var(--medium); font-size: .72rem; font-weight: 600; text-decoration: underline; }

.address-picker { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.address-picker-item {
  display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fff;
  font-family: 'Montserrat', sans-serif; cursor: pointer; width: 100%;
}
.address-picker-item.selected { border-color: var(--gold); background: var(--bg); }
.address-picker-label { font-weight: 700; font-size: .78rem; color: var(--dark); flex-shrink: 0; }
.address-picker-sub { font-size: .74rem; color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-picker-item svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
body.app-page .btn.outline { border-color: var(--medium); color: var(--medium); }

/* ─── Totais na Revisão (Etapa 3) — mesma escala compacta da sacola ──────── */
.review-totals { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.review-totals-line { display: flex; justify-content: space-between; padding: 3px 0; font-size: .78rem; color: var(--dark); font-family: 'Montserrat', sans-serif; }
.review-totals-line.discount { color: var(--success); }
.review-totals-line.total {
  margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border);
  font-weight: 800; font-size: .95rem; font-family: 'Montserrat', sans-serif; color: #BD6C72;
}
.review-pay-heading { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--dark); font-size: .8rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .4px; }

/* ─── Pix — QR code e copia-e-cola ────────────────────────────────────────── */
.pix-qr-img { display: block; width: 200px; height: 200px; margin: 0 auto 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; background: #fff; }
.pix-instructions { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.pix-copy-row { display: flex; gap: 8px; }
.pix-copy-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .78rem; color: var(--muted); background: #f8f5f3; }
.pix-copy-row .btn { flex-shrink: 0; }

/* ─── Confirmação — celebração premium pós-pedido ────────────────────────── */
/* Regra de UX do Fabricio: telas da experiência do cliente NUNCA rolam
   (só quando houver um "Expandir" explícito) — por isso essa view fica presa
   à altura exata da viewport, sem o padding-bottom de 130px do .app-main
   (reservado pra barra inferior fixa, que nem existe aqui) e com todo o
   conteúdo compactado pra caber em telas pequenas (referência: iPhone SE, 667px). */
.app-view[data-view="confirmation"] .app-main {
  height: calc(100dvh - var(--app-topbar-h));
  padding: 10px 14px;
  display: flex;
  overflow: hidden;
}
.confirmation-view { flex: 1; min-height: 0; display: flex; flex-direction: column; text-align: center; padding: 0; }
.confirmation-check-wrap { position: relative; width: 64px; height: 64px; margin: 2px auto 8px; flex-shrink: 0; }
.confirmation-check {
  width: 56px; height: 56px; margin: 4px; border-radius: 50%;
  background: var(--rose-light); color: var(--dark); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(197,140,142,.14);
}
.confirmation-check svg { width: 26px; height: 26px; stroke: var(--dark); }
.cc-spark { position: absolute; color: var(--gold-soft); font-size: .68rem; }
.cc-spark.s1 { top: 0; left: -4px; font-size: .55rem; }
.cc-spark.s2 { top: 6px; right: -6px; }
.cc-spark.s3 { display: none; }
.cc-spark.s4 { bottom: 2px; right: 0; font-size: .6rem; }
.confirmation-title { font-family: 'Cinzel', serif; font-weight: 700; color: var(--dark); font-size: 1.1rem; margin: 0 0 3px; flex-shrink: 0; }
.confirmation-sub { color: var(--muted); font-size: .76rem; margin: 0 0 8px; flex-shrink: 0; }
.confirmation-order-badge {
  display: inline-flex; flex-direction: row; align-items: baseline; gap: 6px; align-self: center;
  border: 1px solid var(--rose); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; flex-shrink: 0;
}
.confirmation-order-badge span { font-size: .62rem; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.confirmation-order-badge strong { font-family: 'Cinzel', serif; font-size: .98rem; color: var(--dark); }

.confirmation-timeline-card {
  text-align: left; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 10px 12px; margin-bottom: 8px; flex-shrink: 1; overflow: hidden;
}
.c-step { display: flex; gap: 10px; position: relative; padding-bottom: 8px; }
.c-step:last-child { padding-bottom: 0; }
.c-step::before {
  content: ''; position: absolute; left: 12px; top: 26px; bottom: 2px; width: 2px;
  background-image: linear-gradient(var(--border) 60%, transparent 0%); background-size: 2px 5px; background-repeat: repeat-y;
}
.c-step:last-child::before { display: none; }
.c-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); color: var(--muted);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.c-icon svg { width: 12px; height: 12px; }
.c-body { flex: 1; min-width: 0; }
.c-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.c-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.c-time { font-size: .68rem; color: var(--rose); font-weight: 700; flex-shrink: 0; }
.c-desc { font-size: .66rem; color: var(--muted); margin-top: 0; line-height: 1.3; }
.c-step.done .c-icon { background: var(--rose-light); color: var(--dark); }
.c-step.done .c-label { color: var(--dark); }
.c-step.current .c-icon { background: var(--rose); color: #fff; box-shadow: 0 0 0 3px rgba(197,140,142,.25); }
.c-step.current .c-label { color: var(--dark); font-weight: 700; }

.confirmation-pickup-card {
  display: flex; align-items: center; gap: 10px; text-align: left; background: var(--bg);
  border-radius: var(--radius-md); padding: 8px 12px; margin-bottom: 8px; flex-shrink: 0;
}
.cp-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--rose);
  display: flex; align-items: center; justify-content: center;
}
.cp-icon svg { width: 14px; height: 14px; }
.cp-title { font-size: .68rem; font-weight: 700; color: var(--dark); margin-bottom: 0; }
.cp-time { font-size: .82rem; font-weight: 700; color: var(--rose); }
.cp-time-pending { font-size: .7rem; color: var(--muted); font-weight: 600; }
.cp-note { display: none; }

.confirmation-btn-main { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding-top: 11px; padding-bottom: 11px; flex-shrink: 0; }
.confirmation-btn-main svg { width: 15px; height: 15px; }
.confirmation-btn-secondary { width: 100%; text-align: center; margin-top: 6px; padding-top: 9px; padding-bottom: 9px; flex-shrink: 0; }

.confirmation-chat-card {
  display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 8px; text-decoration: none; flex-shrink: 0;
}
.cc-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--rose-light); color: var(--dark); display: flex; align-items: center; justify-content: center; }
.cc-icon svg { width: 13px; height: 13px; }
.confirmation-chat-card .cc-body { flex: 1; display: flex; flex-direction: column; }
.confirmation-chat-card .cc-body strong { font-size: .74rem; color: var(--dark); }
.confirmation-chat-card .cc-body span { font-size: .68rem; color: var(--muted); margin-top: 0; }
.cc-arrow { flex-shrink: 0; color: var(--muted); }
.cc-arrow svg { width: 14px; height: 14px; }

textarea, input:not([type="checkbox"]):not([type="radio"]), select {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .92rem; font-family: 'Montserrat', sans-serif; background: #fff; color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}
textarea:focus, input:not([type="checkbox"]):not([type="radio"]):focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
textarea:disabled, input:disabled, select:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
/* Sem isso, checkbox/radio herdam padding + border-radius pequeno do bloco acima
   e ficam esticados/ovais em vez de circulares — vale pro seletor de Tamanho do
   produto e também vaza pro radio do widget de pagamento do Mercado Pago (ele
   renderiza <input type="radio"> puro, sem Shadow DOM). */
input[type="checkbox"], input[type="radio"] { width: auto; height: auto; padding: 0; border: none; border-radius: 0; background: none; accent-color: #BD6C72; }
select { cursor: pointer; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); }
.field-error-msg { color: var(--danger); font-size: .76rem; margin-top: 4px; }

/* ─── Auth pages ─────────────────────────────────────────────────────── */
.auth-wrap {
  max-width: 400px; margin: 56px auto; background: #fff; border-radius: 6px;
  padding: 40px 38px; box-shadow: 0 6px 28px rgba(59,39,33,.1); border-top: 3px solid var(--gold);
}
.auth-wrap h2 { color: var(--dark); margin-top: 0; text-align: center; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 1.5px; }
.auth-wrap .field { margin-bottom: 15px; }
.auth-wrap label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.auth-wrap .btn { width: 100%; padding: 13px; margin-top: 8px; }
/* .auth-switch (não .switch) para não colidir com o toggle .switch do admin (linha ~1054) */
.auth-wrap .auth-switch { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--muted); }
.msg { padding: 11px 15px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 15px; }
.msg.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f0d0ce; }
.msg.success { background: var(--success-bg); color: var(--success); border: 1px solid #d3e6d8; }
.msg.warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #ecdcb8; }
.msg.info { background: var(--info-bg); color: var(--info); border: 1px solid #cfe1e7; }

/* ─── Login redesign (conceito 27/08) — classes aditivas, só usadas em login.html;
   as outras páginas de auth (cadastro, esqueci/redefinir senha, verificar-email)
   continuam com o .auth-wrap simples de sempre. ────────────────────────────── */
.auth-hero {
  padding: 40px 20px 30px;
  background-image: linear-gradient(rgba(44,28,23,.86), rgba(44,28,23,.86)),
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(160deg, var(--dark), var(--dark-2)), url('/img/pattern-bg.jpg');
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: cover, cover, cover, 170px auto;
}
.auth-hero .brand-logo { height: 169px; }
.auth-wrap.auth-card {
  margin-top: -26px; margin-bottom: 0; border-radius: 22px 22px 6px 6px; border-top: none;
  position: relative; z-index: 1;
}
.rule-heart {
  text-align: center; color: var(--rose); font-size: .8rem; margin: 6px 0 24px; position: relative;
}
.rule-heart::before, .rule-heart::after {
  content: ''; position: absolute; top: 50%; width: 34px; height: 1px; background: var(--gold); opacity: .7;
}
.rule-heart::before { left: calc(50% - 54px); }
.rule-heart::after { right: calc(50% - 54px); }
.field .input-icon-wrap { position: relative; }
.field .input-icon-wrap .input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--rose); pointer-events: none;
}
.field .input-icon-wrap input { padding-left: 42px; }
.field .input-icon-wrap.has-toggle input { padding-right: 42px; }
.input-icon-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px; margin: 0; color: var(--rose);
  cursor: pointer; display: flex; width: auto; height: auto;
}
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 18px; flex-wrap: wrap; }
.auth-options .checkbox-label { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.auth-options a { font-size: .8rem; color: var(--rose); text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-google-btn { width: 100%; padding: 13px; }
.badge-soon {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .3px; font-weight: 700;
  background: var(--bg); color: var(--muted); padding: 3px 8px; border-radius: 20px; margin-left: 6px;
}
.auth-signup-box {
  display: flex; align-items: center; gap: 12px; background: var(--rose-light);
  border-radius: 14px; padding: 14px 16px; margin-top: 24px;
}
.auth-signup-box-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.auth-signup-box-text { font-size: .82rem; color: var(--dark); }
.auth-signup-box-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--medium); }

/* ─── Cadastro redesign (concept 28/08) — ícone em selo ao lado do label,
   em vez do ícone dentro do input usado no login. ──────────────────────── */
.field-icon-row { display: flex; align-items: flex-start; gap: 12px; }
.field-icon-badge {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; margin-top: 2px;
  background: var(--rose-light); color: var(--rose);
  display: flex; align-items: center; justify-content: center;
}
.field-icon-badge svg { width: 22px; height: 22px; }
.field-icon-body { flex: 1; min-width: 0; }
.field-icon-body label { margin-bottom: 8px; }
.pw-input-wrap { position: relative; }
.pw-input-wrap input { padding-right: 42px; }
.auth-security-box {
  display: flex; align-items: flex-start; gap: 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin: 22px 0 20px;
}
.auth-security-box-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--rose);
  display: flex; align-items: center; justify-content: center;
}
.auth-security-box-text strong { display: block; font-size: .86rem; color: var(--dark); margin-bottom: 2px; }
.auth-security-box-text span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.switch-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--medium); }

/* ─── Admin ──────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════
   ADMIN — painel profissional. Paleta neutra própria (--admin-*), tipografia
   sans-serif (Montserrat), sem o tom "boutique" do app de pedidos.
   ══════════════════════════════════════════════════════════════════════ */
body.admin-page { background: var(--admin-bg); color: var(--admin-text); }

.admin-guard-wrap { max-width: 480px; margin: 80px auto; padding: 0 20px; }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 234px; flex-shrink: 0; background: var(--admin-sidebar-bg); color: var(--admin-sidebar-text);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40;
}
.admin-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px; }
.admin-sidebar-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); flex-shrink: 0; }
.admin-sidebar-brand span { font-family: 'Cinzel', serif; font-weight: 600; font-size: .92rem; letter-spacing: .5px; color: #fff; white-space: nowrap; overflow: hidden; }

.admin-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; overflow-y: auto; }
.admin-nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: var(--radius-sm); border: none; background: none;
  color: var(--admin-sidebar-text); font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: background var(--ease), color var(--ease); border-left: 2px solid transparent;
}
.admin-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.admin-nav-item:hover { background: var(--admin-sidebar-active); color: #fff; }
.admin-nav-item.active { background: var(--admin-sidebar-active); color: #fff; border-left-color: var(--gold); }
.admin-nav-item.active svg { opacity: 1; color: var(--gold); }

/* ─── Grupos de navegação (accordion): cabeçalho + sub-itens indentados ── */
.admin-nav-group { display: flex; flex-direction: column; }
.admin-nav-group-header {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: var(--radius-sm); border: none; background: none;
  color: var(--admin-sidebar-text); font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: background var(--ease), color var(--ease); border-left: 2px solid transparent;
}
.admin-nav-group-header svg:not(.chevron) { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.admin-nav-group-header .chevron { width: 12px; height: 12px; margin-left: auto; flex-shrink: 0; opacity: .55; transition: transform var(--ease); }
.admin-nav-group-header:hover { background: var(--admin-sidebar-active); color: #fff; }
.admin-nav-group.open > .admin-nav-group-header .chevron { transform: rotate(90deg); }
.admin-nav-group.has-active > .admin-nav-group-header { color: #fff; }
.admin-nav-group.has-active > .admin-nav-group-header svg:not(.chevron) { opacity: 1; color: var(--gold); }
.admin-nav-subitems { display: none; flex-direction: column; gap: 1px; padding: 2px 0 6px 30px; }
.admin-nav-group.open > .admin-nav-subitems { display: flex; }
.admin-nav-subitem {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 12px;
  border-radius: var(--radius-sm); border: none; background: none; border-left: 2px solid transparent;
  color: var(--admin-sidebar-text); font-family: 'Montserrat', sans-serif; font-size: .78rem; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-nav-subitem:hover { background: var(--admin-sidebar-active); color: #fff; }
.admin-nav-subitem.active { background: var(--admin-sidebar-active); color: #fff; border-left-color: var(--gold); font-weight: 600; }
.admin-nav-subitem .count {
  margin-left: auto; background: rgba(255,255,255,.08); color: var(--admin-sidebar-text); border-radius: 9px;
  padding: 1px 7px; font-size: .66rem; flex-shrink: 0;
}
.admin-nav-subitem.active .count { background: rgba(212,175,55,.25); color: var(--gold); }

/* ─── Rodapé: usuário logado + recolher sidebar ─────────────────────────── */
.admin-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--admin-sidebar-active); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: 'Cinzel', serif; font-weight: 700;
  font-size: .82rem; flex-shrink: 0; border: 1px solid rgba(212,175,55,.4);
}
.admin-sidebar-user-info { min-width: 0; overflow: hidden; }
.admin-sidebar-user-name { font-size: .8rem; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-sidebar-user-role { font-size: .66rem; color: var(--admin-sidebar-text); text-transform: uppercase; letter-spacing: .4px; }

.admin-sidebar-footer { padding: 6px 10px 14px; }
.admin-sidebar-footer-link {
  display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: var(--radius-sm);
  font-size: .78rem; color: var(--admin-sidebar-text);
}
.admin-sidebar-footer-link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.admin-sidebar-footer-link:hover { color: #fff; background: var(--admin-sidebar-active); }

.admin-sidebar-collapse-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 0;
  background: none; border: none; border-top: 1px solid rgba(255,255,255,.08); color: var(--admin-sidebar-text);
  cursor: pointer; font-size: .74rem; font-family: 'Montserrat', sans-serif;
}
.admin-sidebar-collapse-btn:hover { color: #fff; }
.admin-sidebar-collapse-btn svg { width: 14px; height: 14px; transition: transform var(--ease); flex-shrink: 0; }

@media (min-width: 901px) {
  .admin-shell.sidebar-collapsed .admin-sidebar { width: 68px; }
  .admin-shell.sidebar-collapsed .admin-sidebar-brand { justify-content: center; padding: 20px 0; }
  .admin-shell.sidebar-collapsed .admin-sidebar-brand span,
  .admin-shell.sidebar-collapsed .admin-nav-item .label,
  .admin-shell.sidebar-collapsed .admin-nav-group-header .label,
  .admin-shell.sidebar-collapsed .admin-nav-group-header .chevron,
  .admin-shell.sidebar-collapsed .admin-nav-subitems,
  .admin-shell.sidebar-collapsed .admin-sidebar-user-info,
  .admin-shell.sidebar-collapsed .admin-sidebar-collapse-btn span,
  .admin-shell.sidebar-collapsed .admin-sidebar-footer-link span { display: none; }
  .admin-shell.sidebar-collapsed .admin-nav-item,
  .admin-shell.sidebar-collapsed .admin-nav-group-header,
  .admin-shell.sidebar-collapsed .admin-sidebar-footer-link { justify-content: center; padding: 10px; }
  .admin-shell.sidebar-collapsed .admin-sidebar-user { justify-content: center; padding: 12px 0; }
  .admin-shell.sidebar-collapsed .admin-sidebar-collapse-btn svg { transform: rotate(180deg); }
}

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  background: var(--admin-surface); border-bottom: 1px solid var(--admin-border);
  padding: 0 24px; height: 62px;
}
.admin-page-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--admin-text); flex: 1; margin: 0; }
/* #navUser é preenchido por app.js (loadAuthState), compartilhado com o delivery —
   aqui só ajustamos a apresentação e escondemos links de cliente que não fazem
   sentido dentro do admin (Meus Pedidos / Minha Conta). */
.admin-topbar #navUser { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--admin-muted); }
.admin-topbar #navUser a[href="/minha-conta"],
.admin-topbar #navUser a[href="/meus-pedidos"] { display: none; }
.admin-topbar #navUser a { color: var(--admin-muted); }
.admin-topbar #navUser a:hover { color: var(--admin-text); }
.admin-topbar #navUser button {
  padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--admin-border);
  background: none; color: var(--admin-text); font-family: 'Montserrat', sans-serif; font-size: .78rem; cursor: pointer;
}
.admin-topbar #navUser button:hover { border-color: var(--medium); }
.admin-menu-toggle {
  display: none; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--admin-border);
  background: none; align-items: center; justify-content: center; cursor: pointer; color: var(--admin-text); flex-shrink: 0;
}
.admin-content { padding: 24px; max-width: 1200px; width: 100%; margin: 0 auto; }
.admin-sidebar-overlay { display: none; }

@media (max-width: 900px) {
  .admin-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform var(--ease); box-shadow: var(--shadow-md); width: 260px !important; }
  .admin-shell.sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-shell.sidebar-open .admin-sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 39; }
  .admin-menu-toggle { display: flex; }
  .admin-content { padding: 16px 16px 88px; }
  /* Recolher em ícones é recurso só de desktop — no mobile a sidebar é sempre um drawer completo */
  .admin-sidebar-collapse-btn { display: none; }
}

/* ─── Cards de painel (envolvem tabelas/forms, nunca "soltos" no fundo) ── */
.card {
  background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 20px;
}
.admin-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-panel-header h3 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: .95rem; font-weight: 700; color: var(--admin-text); }

.admin-table { width: 100%; border-collapse: collapse; background: var(--admin-surface); font-size: .86rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--admin-border); }
.admin-table th { color: var(--admin-muted); font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; font-size: .7rem; background: var(--admin-bg); }
.admin-table tbody tr { transition: background var(--ease); }
.admin-table tbody tr:hover { background: var(--admin-bg); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table-empty { text-align: center; padding: 48px 20px; color: var(--admin-muted); font-size: .88rem; }

/* ─── Tabela responsiva (empilha em cards no mobile via data-label) ────── */
@media (max-width: 700px) {
  .admin-table.responsive-stack thead { display: none; }
  .admin-table.responsive-stack, .admin-table.responsive-stack tbody, .admin-table.responsive-stack tr, .admin-table.responsive-stack td { display: block; width: 100%; }
  .admin-table.responsive-stack tr { border: 1px solid var(--admin-border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
  .admin-table.responsive-stack tr:last-child { margin-bottom: 0; }
  .admin-table.responsive-stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; border-bottom: 1px dashed var(--admin-border); }
  .admin-table.responsive-stack td:last-child { border-bottom: none; }
  .admin-table.responsive-stack td::before { content: attr(data-label); font-weight: 700; color: var(--admin-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .3px; text-align: left; flex-shrink: 0; }
  .admin-table.responsive-stack td[data-label=""] { justify-content: center; text-align: center; }
  .admin-table.responsive-stack td[data-label=""]::before { content: none; }
  .admin-table.responsive-stack td[colspan] { display: block; text-align: center; }
  .admin-table.responsive-stack td[colspan]::before { content: none; }
}

/* ─── Tabela desktop / lista de cards mobile (Pedidos, Clientes) ────────── */
.admin-cards { display: none; flex-direction: column; gap: 12px; }
@media (max-width: 900px) {
  .admin-table-wrap.has-cards > .admin-table { display: none; }
  .admin-table-wrap.has-cards > .admin-cards { display: flex; }
}
.order-card, .client-card {
  border: 1px solid var(--admin-border); border-radius: var(--radius-md); background: var(--admin-surface);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.order-card-top, .client-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-card-id { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem; color: var(--admin-text); }
.order-card-time { font-size: .72rem; color: var(--admin-muted); white-space: nowrap; flex-shrink: 0; }
.order-card-customer { margin: 6px 0 2px; font-size: .86rem; color: var(--admin-text); font-weight: 600; }
.order-card-meta { font-size: .76rem; color: var(--admin-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order-card-total { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; color: var(--admin-text); margin-top: 8px; }
.order-card-status-row { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card-items { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--admin-border); font-size: .78rem; color: var(--admin-muted); line-height: 1.6; }
.order-card-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.order-card-actions select { flex: 1; min-width: 140px; }

.client-card-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .92rem; color: var(--admin-text); }
.client-card-email { font-size: .78rem; color: var(--admin-muted); margin-top: 2px; }
.client-card-meta { margin-top: 8px; font-size: .76rem; color: var(--admin-muted); }
.client-card-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; flex-shrink: 0; }
.client-card-actions { margin-top: 12px; display: flex; gap: 8px; }
.client-card-actions .btn { flex: 1; }

/* ─── Barra de ferramentas: abas de filtro + busca ──────────────────────── */
.admin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--admin-bg); padding: 4px; border-radius: var(--radius-md); }
.admin-filter-tab {
  padding: 7px 14px; border-radius: var(--radius-sm); border: none; background: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 600; color: var(--admin-muted);
  white-space: nowrap; display: flex; align-items: center; gap: 6px; transition: background var(--ease), color var(--ease);
}
.admin-filter-tab.active { background: var(--admin-surface); color: var(--admin-text); box-shadow: var(--shadow-sm); }
.admin-filter-tab .count { background: var(--admin-border); color: var(--admin-muted); border-radius: 10px; padding: 1px 7px; font-size: .68rem; }
.admin-filter-tab.active .count { background: var(--dark); color: #fff; }
.admin-search-input-wrap { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.admin-search-input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--admin-muted); pointer-events: none; }
.admin-search-input-wrap input { padding-left: 34px; }

/* ─── Cabeçalho de página: breadcrumb + título + descrição + ações ─────── */
.admin-page-header { margin-bottom: 20px; }
.admin-breadcrumb { font-size: .72rem; color: var(--admin-muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .5px; }
.admin-breadcrumb .sep { margin: 0 6px; opacity: .5; }
.admin-page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-page-heading { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--admin-text); }
.admin-page-desc { margin: 6px 0 0; color: var(--admin-muted); font-size: .86rem; max-width: 580px; line-height: 1.55; }
.admin-page-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* ─── Estado vazio de página inteira ("em breve" honesto) ───────────────── */
.admin-empty-page { text-align: center; padding: 56px 24px; max-width: 460px; margin: 0 auto; }
.admin-empty-page svg { width: 42px; height: 42px; color: var(--admin-border); margin-bottom: 16px; }
.admin-empty-page h3 { margin: 0 0 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--admin-text); font-size: 1.05rem; }
.admin-empty-page p { margin: 0 0 20px; color: var(--admin-muted); font-size: .88rem; line-height: 1.6; }
.admin-empty-page .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── Dashboard: KPIs ────────────────────────────────────────────────────── */
.dashboard-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi-card { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.kpi-card-label { font-size: .72rem; color: var(--admin-muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.kpi-card-value { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.55rem; color: var(--admin-text); margin-top: 6px; }
.kpi-card-sub { font-size: .72rem; color: var(--admin-muted); margin-top: 4px; }
.kpi-card.accent .kpi-card-value { color: var(--medium); }
.dashboard-section-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; color: var(--admin-text); margin: 4px 0 12px; }
.dashboard-recent-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--admin-border); cursor: pointer; }
.dashboard-recent-row:last-child { border-bottom: none; }
.dashboard-recent-row:hover { background: var(--admin-bg); }
.dashboard-recent-id { font-weight: 700; font-family: 'Montserrat', sans-serif; font-size: .85rem; color: var(--admin-text); width: 52px; flex-shrink: 0; }
.dashboard-recent-customer { flex: 1; min-width: 0; font-size: .84rem; color: var(--admin-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-recent-total { font-weight: 700; font-size: .84rem; color: var(--admin-text); flex-shrink: 0; }
.dashboard-recent-time { font-size: .72rem; color: var(--admin-muted); flex-shrink: 0; width: 84px; text-align: right; }
@media (max-width: 560px) { .dashboard-recent-time { display: none; } }

/* ─── Pedidos: quadro Kanban ─────────────────────────────────────────────── */
.kanban-board {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start;
  scroll-snap-type: x proximity;
}
.kanban-column {
  flex: 0 0 300px; background: var(--admin-bg); border: 1px solid var(--admin-border); border-radius: var(--radius-md);
  display: flex; flex-direction: column; max-height: calc(100vh - 220px); scroll-snap-align: start;
}
@media (max-width: 900px) { .kanban-column { flex-basis: 84vw; max-height: none; } }
.kanban-column-header {
  padding: 14px 16px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .84rem; color: var(--admin-text);
  border-bottom: 1px solid var(--admin-border); display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.kanban-column-header .count { font-size: .68rem; }
.kanban-column-body { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.kanban-column-empty { text-align: center; padding: 28px 10px; color: var(--admin-muted); font-size: .78rem; }

.kanban-card {
  background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; transition: box-shadow var(--ease), border-color var(--ease);
}
.kanban-card:hover { box-shadow: var(--shadow-md); border-color: var(--medium); }
.kanban-card.cancelled { opacity: .72; }
.kanban-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kanban-card-id { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .88rem; color: var(--admin-text); }
.kanban-card.cancelled .kanban-card-id { text-decoration: line-through; color: var(--admin-muted); }
.kanban-card-time { font-size: .68rem; color: var(--admin-muted); white-space: nowrap; }
.kanban-card-customer { font-size: .82rem; color: var(--admin-text); margin-top: 3px; font-weight: 600; }
.kanban-card-meta { font-size: .72rem; color: var(--admin-muted); margin-top: 4px; }
.kanban-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.kanban-card-total { font-weight: 700; font-size: .84rem; color: var(--admin-text); }
.kanban-card-status { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.kanban-card-status.ok { color: var(--success, #2e7d4f); }
.kanban-card-status.cancel { color: var(--danger); }

/* ─── Página de detalhe do pedido ───────────────────────────────────────── */
.od-back-btn {
  background: none; border: none; padding: 0; margin-bottom: 8px; cursor: pointer;
  color: var(--medium); font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.od-back-btn:hover { color: var(--dark); }
.od-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .od-grid { grid-template-columns: 1fr; } }
.od-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.od-side { display: flex; flex-direction: column; gap: 16px; }
.od-card { padding: 20px; }
.od-section-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--admin-muted); margin: 0 0 12px; }
.od-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--admin-border); font-size: .87rem; color: var(--admin-text); }
.od-line:last-child { border-bottom: none; }
.od-line-sub { font-size: .76rem; color: var(--admin-muted); margin-top: 2px; }
.od-total-row { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--admin-border); font-weight: 700; font-size: 1rem; color: var(--admin-text); }
.od-pin-box { background: var(--admin-bg); border: 1px solid var(--admin-border); border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; font-size: .84rem; color: var(--admin-text); margin-top: 10px; }
.od-pin-box strong { font-size: 1.15rem; letter-spacing: 3px; }
.od-customer-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; color: var(--admin-text); }
.od-customer-line { font-size: .82rem; color: var(--admin-muted); margin-top: 4px; }

/* ─── Alertas sonoros: lista de eventos com toggle + som + testar ───────── */
.notif-event-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--admin-border);
}
.notif-event-row:last-child { border-bottom: none; }
.notif-event-info { flex: 1; min-width: 200px; }
.notif-event-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .86rem; color: var(--admin-text); }
.notif-event-desc { font-size: .78rem; color: var(--admin-muted); margin-top: 2px; line-height: 1.5; max-width: 460px; }
.notif-event-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.notif-event-controls select { width: auto; min-width: 140px; }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; background: var(--admin-border); border-radius: 20px; transition: background var(--ease); pointer-events: none; }
.switch-track::before {
  content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform var(--ease); box-shadow: var(--shadow-sm);
}
.switch input:checked + .switch-track { background: var(--medium); }
.switch input:checked + .switch-track::before { transform: translateX(18px); }

/* ─── Configurações "escondidas" dentro de uma página operacional ───────── */
.admin-inline-settings summary {
  cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .84rem;
  color: var(--admin-muted); list-style: none; display: flex; align-items: center; gap: 6px;
}
.admin-inline-settings summary::-webkit-details-marker { display: none; }
.admin-inline-settings summary::before { content: '▸'; font-size: .7rem; }
.admin-inline-settings[open] summary::before { content: '▾'; }

/* ─── Barra inferior mobile do admin (própria, paleta --admin-*) ────────── */
.admin-bottom-tabbar { display: none; }
@media (max-width: 900px) {
  .admin-bottom-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--admin-sidebar-bg); border-top: 1px solid rgba(255,255,255,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .admin-bottom-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
    background: none; border: none; color: var(--admin-sidebar-text); font-family: 'Montserrat', sans-serif;
    font-size: .62rem; cursor: pointer;
  }
  .admin-bottom-tab svg { width: 19px; height: 19px; }
  .admin-bottom-tab.active { color: var(--gold); }
}

/* ─── Paginação ───────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 14px 4px 2px; font-size: .8rem; color: var(--admin-muted); }
.pagination button {
  padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--admin-border); background: var(--admin-surface);
  cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: .78rem; color: var(--admin-text);
}
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination button:hover:not(:disabled) { border-color: var(--medium); }

/* ─── Loading (spinner simples) ───────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--admin-border); border-top-color: var(--medium);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.admin-loading { display: flex; align-items: center; gap: 10px; padding: 32px; color: var(--admin-muted); font-size: .86rem; justify-content: center; }

/* ─── Upload de arquivo estilizado ────────────────────────────────────── */
.file-input-wrap { display: flex; align-items: center; gap: 10px; }
.file-input-wrap input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input-label {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border); background: var(--bg); color: var(--medium); cursor: pointer;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; flex-shrink: 0;
}
.file-input-label:hover { border-color: var(--medium); }
.file-input-name { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Configurações: sidebar de categorias (desktop) / cards (mobile) ──── */
.settings-layout { display: flex; gap: 28px; align-items: flex-start; }
.settings-nav { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 86px; }
.settings-nav-item {
  display: flex; align-items: center; width: 100%; text-align: left; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm); border: none; background: none;
  cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: .85rem; color: var(--admin-text);
}
.settings-nav-item-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.settings-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.settings-nav-item:hover { background: var(--admin-bg); }
.settings-nav-item.active { background: var(--admin-sidebar-bg); color: #fff; }
.settings-nav-item.active svg { opacity: 1; color: var(--gold); }

.settings-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.settings-category-title { margin: 0 0 4px; font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--admin-text); }
.settings-back-btn { display: none; align-items: center; gap: 6px; background: none; border: none; color: var(--medium); font-size: .85rem; cursor: pointer; padding: 0 0 4px; font-family: 'Montserrat', sans-serif; }

.settings-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.settings-card-header h4 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 700; color: var(--admin-text); }
.settings-card-desc { margin: 4px 0 0; color: var(--admin-muted); font-size: .84rem; line-height: 1.6; }

/* ─── Branding: upload de identidade visual ──────────────────────────── */
.brand-upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 14px; }
.brand-upload-card { border: 1px solid var(--admin-border); border-radius: var(--radius-md); padding: 14px; background: var(--admin-bg); }
.brand-upload-card-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .82rem; color: var(--admin-text); }
.brand-upload-card-desc { margin: 3px 0 10px; color: var(--admin-muted); font-size: .74rem; line-height: 1.5; }
.brand-upload-hint { margin: 8px 0 0; color: var(--admin-muted); font-size: .68rem; line-height: 1.4; }

.brand-upload-zone {
  border: 1.5px dashed var(--admin-border); border-radius: var(--radius-sm); background: var(--admin-surface);
  min-height: 130px; display: flex; align-items: center; justify-content: center; transition: border-color var(--ease), background var(--ease);
}
.brand-upload-zone.dragover { border-color: var(--gold); background: var(--bg); }
.brand-upload-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px;
  cursor: pointer; color: var(--medium); width: 100%; text-align: center;
}
.brand-upload-empty svg { width: 24px; height: 24px; opacity: .7; }
.brand-upload-cta { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.brand-upload-sub { font-size: .7rem; color: var(--admin-muted); }
.brand-upload-loading { display: flex; align-items: center; gap: 8px; color: var(--admin-muted); font-size: .8rem; padding: 20px; }

.brand-upload-filled { width: 100%; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand-upload-thumb {
  width: 88px; height: 88px; border-radius: var(--radius-sm);
  background-color: #fff; border: 1px solid var(--admin-border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.brand-upload-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-upload-actions { display: flex; gap: 8px; }

@media (max-width: 480px) { .brand-upload-sub { display: none; } }

/* ─── Branding: editor de logo (recorte / remover fundo / brilho) ──────── */
.brand-editor-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 3000;
  align-items: center; justify-content: center; padding: 16px;
}
.brand-editor-overlay.active { display: flex; }
.brand-editor-box {
  background: #fff; border-radius: 12px; width: min(95vw, 860px); max-height: 90vh;
  overflow: hidden; display: flex; flex-direction: column;
}
.brand-editor-header {
  padding: 14px 18px; border-bottom: 1px solid var(--admin-border);
  display: flex; justify-content: space-between; align-items: center;
}
.brand-editor-header h3 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: .95rem; color: var(--admin-text); }
.brand-editor-close { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--admin-muted); }
.brand-editor-body { flex: 1; overflow: hidden; padding: 16px; display: flex; gap: 16px; min-height: 0; }
.brand-crop-wrapper { flex: 1; min-width: 0; height: 100%; min-height: 340px; overflow: hidden; background: var(--admin-surface); border-radius: 8px; }
.brand-crop-wrapper img { display: block; max-width: 100%; }
.brand-editor-sidebar { flex: 0 0 240px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.brand-editor-options { display: flex; flex-direction: column; gap: 8px; font-size: .82rem; color: var(--admin-text); }
.brand-editor-options label { display: flex; align-items: center; gap: 8px; font-weight: 400; text-transform: none; letter-spacing: 0; cursor: pointer; }
.brand-threshold-group { display: none; align-items: center; gap: 8px; font-size: .74rem; color: var(--admin-muted); padding-left: 22px; }
.brand-threshold-group.visible { display: flex; }
.brand-threshold-group input[type="range"] { flex: 1; }
.brand-options-sep { height: 1px; background: var(--admin-border); margin: 4px 0; }
.brand-editor-preview-title { font-size: .78rem; font-weight: 700; color: var(--admin-text); margin-bottom: 8px; }
.brand-editor-preview-title span { font-weight: 400; color: var(--gold); margin-left: 6px; font-size: .7rem; }
.brand-prev-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.brand-prev-row span { font-size: .7rem; color: var(--admin-muted); width: 78px; flex-shrink: 0; }
.brand-prev-box { flex: 1; min-height: 46px; border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.brand-prev-box img { max-height: 38px; max-width: 100%; object-fit: contain; }
.brand-prev-box.dark { background: #1a0900; }
.brand-prev-box.light { background: #f5f5f5; border: 1px solid var(--admin-border); }
.brand-prev-box.check {
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.brand-editor-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: auto; }
@media (max-width: 700px) {
  .brand-editor-body { flex-direction: column; overflow-y: auto; }
  .brand-crop-wrapper { min-height: 260px; }
  .brand-editor-sidebar { flex: none; }
}

/* ─── Branding: cores ─────────────────────────────────────────────────── */
.brand-color-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.brand-color-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.brand-color-row label { margin: 0; font-size: .82rem; font-weight: 600; color: var(--admin-text); text-transform: none; letter-spacing: 0; }
.brand-color-inputs { display: flex; align-items: center; gap: 8px; }
.brand-color-inputs input[type="color"] { width: 40px; height: 36px; padding: 3px; cursor: pointer; }
.brand-color-inputs input[type="text"] { width: 100px; font-family: 'Montserrat', monospace; text-transform: uppercase; }

/* ─── Branding: previsualização ao vivo ───────────────────────────────── */
.brand-preview {
  background: var(--pv-bg, var(--bg)); border: 1px solid var(--admin-border); border-radius: var(--radius-md);
  padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: background var(--ease);
}
.brand-preview-logo { height: 64px; width: auto; object-fit: contain; }
.brand-preview-btn {
  background: var(--pv-accent, var(--gold)); color: var(--pv-primary, var(--dark)); border: none; padding: 12px 30px;
  border-radius: var(--radius-sm); font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; cursor: default;
}
.brand-preview-sample-card {
  width: 100%; max-width: 260px; background: #fff; border: 1px solid var(--admin-border);
  border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm);
}
.brand-preview-sample-card-title { font-family: 'Cinzel', serif; font-weight: 600; color: var(--pv-primary, var(--dark)); margin-bottom: 6px; }
.brand-preview-sample-card-text { color: var(--pv-text, var(--text)); font-size: .82rem; opacity: .8; }

/* ─── PWA (Configurações > Aplicativo) ────────────────────────────────── */
.pwa-status-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.pwa-status-item { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--admin-text); }
.pwa-status-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.pwa-status-item.ok svg { color: var(--success); }
.pwa-status-item.missing svg { color: var(--admin-muted); }
.pwa-status-item.missing { color: var(--admin-muted); }

.pwa-preview {
  background: var(--pwa-bg, var(--bg)); border: 1px solid var(--admin-border); border-radius: var(--radius-md);
  padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: background var(--ease);
}
.pwa-preview-icon { width: 72px; height: 72px; border-radius: 20%; object-fit: cover; background: #fff; border: 1px solid var(--admin-border); }
.pwa-preview-name { font-family: 'Cinzel', serif; font-weight: 700; color: var(--pwa-theme, var(--dark)); font-size: 1.1rem; margin-top: 6px; }
.pwa-preview-desc { color: var(--admin-muted); font-size: .8rem; text-align: center; max-width: 240px; }
.pwa-preview-install-btn {
  margin-top: 10px; background: var(--pwa-theme, var(--dark)); color: #fff; border: none; padding: 11px 28px;
  border-radius: var(--radius-sm); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .8px; cursor: default;
}

.pwa-icon-row { display: flex; gap: 24px; margin-top: 12px; }
.pwa-icon-generated { text-align: center; }
.pwa-icon-generated-label { font-size: .7rem; color: var(--admin-muted); margin-bottom: 6px; }
.pwa-icon-generated-thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm); border: 1px solid var(--admin-border);
  background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--admin-muted); font-size: .8rem;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .settings-layout { flex-direction: column; gap: 0; }
  .settings-nav { width: 100%; position: static; }
  .settings-nav-item {
    border: 1px solid var(--admin-border); background: var(--admin-surface);
    padding: 14px 16px; margin-bottom: 8px; border-radius: var(--radius-md);
  }
  .settings-nav-item::after { content: '›'; font-size: 1.3rem; color: var(--admin-muted); line-height: 1; }
  .settings-layout.category-open .settings-nav { display: none; }
  .settings-layout:not(.category-open) .settings-content { display: none; }
  .settings-back-btn { display: inline-flex; }
}

/* ─── Meus Pedidos (cliente) ─────────────────────────────────────────── */
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 8px;
}
.order-card:hover { border-color: var(--gold); }
.order-card-icon {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--rose);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.order-card-icon svg { width: 14px; height: 14px; }
.order-card-body { flex: 1; min-width: 0; }
.order-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; }
.order-card-top strong { font-family: 'Cinzel', serif; color: var(--dark); font-size: .84rem; }
.order-card-items { color: var(--muted); font-size: .7rem; margin-bottom: 4px; line-height: 1.25; }
.order-card-item-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--muted); }
.order-card-bottom strong { color: var(--dark); font-family: 'Cinzel', serif; font-size: .82rem; }
.order-card-reorder {
  display: flex; align-items: center; gap: 3px; margin-top: 3px; padding: 0;
  border: none; background: none; color: var(--rose);
  font-family: 'Montserrat', sans-serif; font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2px; cursor: pointer;
}
.order-card-reorder svg { width: 12px; height: 12px; }
.order-card-reorder:hover { background: var(--bg); }

/* ─── Cabeçalho da Minha Conta (avatar + ações rápidas) ─────────────────── */
.account-hero {
  padding: 14px 16px 12px; border-radius: 0 0 18px 18px;
  background-image: linear-gradient(rgba(44,28,23,.86), rgba(44,28,23,.86)),
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(160deg, var(--dark), var(--dark-2)), url('/img/pattern-bg.jpg');
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: cover, cover, cover, 170px auto;
}
.account-hero .brand-lockup { justify-content: center; margin-bottom: 8px; }
.account-hero .brand-logo { height: 34px; }
.account-hero-profile { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; }
.account-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: var(--rose);
  color: #fff; font-family: 'Cinzel', serif; font-weight: 700; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.account-hero-name { color: #fff; font-family: 'Cinzel', serif; font-weight: 600; font-size: .96rem; }
.account-hero-sub { color: rgba(255,255,255,.75); font-size: .7rem; margin-top: 1px; }
.account-hero-actions { display: flex; gap: 6px; max-width: 560px; margin: 8px auto 0; }
.account-hero-btn {
  flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--gold); border-radius: 8px; padding: 6px 4px; background: transparent;
  color: #fff; font-family: 'Montserrat', sans-serif; font-size: .6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2px; cursor: pointer; text-align: center;
}
.account-hero-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.account-hero-btn:hover { background: rgba(212,175,55,.12); }

/* ─── Cards de resumo (fidelidade / endereço) ───────────────────────────── */
.loyalty-card, .account-summary-card {
  background: #fff; border-radius: 12px; padding: 9px 12px; margin-top: 8px;
  box-shadow: 0 4px 18px rgba(59,39,33,.08);
  display: flex; align-items: flex-start; gap: 11px;
}
.account-summary-card { align-items: center; cursor: default; }
.account-summary-icon, .loyalty-card > .account-summary-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: var(--rose);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.account-summary-icon svg { width: 14px; height: 14px; }
.account-summary-body { flex: 1; min-width: 0; }
.account-summary-body h3 { font-family: 'Cinzel', serif; color: var(--dark); margin: 0 0 2px; font-size: .78rem; }
.account-summary-text { display: flex; flex-direction: column; gap: 0; font-size: .68rem; color: var(--muted); line-height: 1.3; }
.account-summary-text strong { color: var(--dark); font-size: .8rem; }
.account-summary-chevron {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: none; background: none;
  color: var(--rose); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .2s;
}
.account-summary-chevron svg { width: 15px; height: 15px; }
.account-summary-chevron.open { transform: rotate(90deg); }

.account-section-head { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.account-section-head h3 { font-family: 'Cinzel', serif; color: var(--dark); margin: 0; font-size: .92rem; }
.account-section-link {
  display: inline-flex; align-items: center; gap: 2px; color: var(--rose);
  font-size: .74rem; font-weight: 600; text-decoration: none;
}
.account-section-link svg { width: 13px; height: 13px; transition: transform .2s; }
.account-section-link.open svg { transform: rotate(90deg); }
.account-toggle-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--rose); border-radius: 8px; padding: 6px 12px; background: #fff;
  color: var(--rose); font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2px; cursor: pointer;
}
.account-toggle-btn svg { width: 11px; height: 11px; transform: rotate(90deg); transition: transform .2s; }
.account-toggle-btn.open svg { transform: rotate(-90deg); }

/* ─── Endereços: ações do card (editar/excluir/definir padrão) ─────────────── */
.account-actions-col { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; gap: 6px; }
.account-icon-btn {
  flex-shrink: 0; width: 24px; height: 24px; border: none; background: none; padding: 0;
  color: var(--rose); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.account-icon-btn svg { width: 19px; height: 19px; }

.account-add-address-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 8px; padding: 13px; border: 1.5px dashed var(--rose); border-radius: 10px;
  background: rgba(197,140,142,.06); color: var(--rose); font-family: 'Montserrat', sans-serif;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; cursor: pointer;
}
.account-add-address-btn svg { width: 18px; height: 18px; }

/* ─── Configurações da Conta: linhas dentro de um único card ────────────────── */
.account-settings-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(59,39,33,.08); overflow: hidden; }
.account-settings-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; }
.account-settings-divider { height: 1px; background: var(--border); margin: 0 14px; }
.account-pill-btn {
  flex-shrink: 0; border: 1px solid var(--rose); border-radius: 8px; padding: 7px 14px; background: #fff;
  color: var(--rose); font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2px; cursor: pointer; white-space: nowrap;
}
.account-pill-btn.danger { border-color: var(--danger); color: var(--danger); }

.account-new-order-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 6px; padding: 7px; font-size: .74rem;
}
.account-new-order-btn svg { width: 16px; height: 16px; }

/* ─── Selo de status do pedido ──────────────────────────────────────────── */
.status-pill {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2px;
}
.status-pill-success { background: var(--success-bg); color: var(--success); }
.status-pill-warning { background: var(--warning-bg); color: var(--warning); }
.status-pill-danger { background: var(--danger-bg); color: var(--danger); }
.status-pill-info { background: var(--info-bg); color: var(--info); }
/* Usado só pelo admin (o /pedidos não usa modal — telas cheias próprias) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,17,15,.5); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--admin-surface); border-radius: var(--radius-lg); padding: 24px;
  width: 440px; max-width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md);
}
.modal h3 {
  margin: 0 0 18px; color: var(--admin-text); font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .2px;
  padding-bottom: 14px; border-bottom: 1px solid var(--admin-border);
}
.field { margin-bottom: 13px; }
.field label { display: block; margin-bottom: 5px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

footer.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 56px 24px 0;
  font-size: .84rem;
}
.footer-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand-lockup { margin-bottom: 14px; }
.footer-brand p { line-height: 1.7; max-width: 260px; color: rgba(255,255,255,.5); font-size: .82rem; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-family: 'Cinzel', serif; color: var(--gold-soft); font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 6px;
}
.footer-col a, .footer-col span { color: rgba(255,255,255,.65); text-decoration: none; font-size: .84rem; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  text-align: center; padding: 22px 20px; color: rgba(255,255,255,.4);
  font-size: .72rem; letter-spacing: 1px; text-transform: uppercase;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .brand-lockup { justify-content: center; }
  .footer-brand p { margin: 0 auto; }
}

@media (max-width: 640px) {
  .cart-drawer { width: 100vw; }
  header.topbar { flex-direction: column; align-items: center; gap: 10px; padding: 14px 16px; }
  header.topbar nav, .header-actions {
    flex-wrap: wrap; justify-content: center; width: 100%; row-gap: 8px;
  }
  .main-nav { gap: 16px !important; }
  .header-actions { gap: 8px !important; }
  .hero { padding: 48px 16px 40px; }
  .hero .brand-logo { height: 88px; }
  .hero-actions { gap: 12px; }
  .criacoes-grid { grid-template-columns: 1fr; }
  .tracking-card { padding: 20px 16px; }
  .order-stepper .dot { width: 26px; height: 26px; font-size: .76rem; }
}

/* ─── Toast ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 13px 22px;
  border-radius: 30px;
  border: 1px solid var(--gold);
  font-size: .86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold);
  color: var(--dark); display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}

/* ─── Fidelidade ─────────────────────────────────────────────────────── */
.loyalty-card {
  background: #fff; border-radius: 8px; padding: 26px 28px; margin-top: 24px;
  box-shadow: 0 4px 18px rgba(59,39,33,.08); border-top: 3px solid var(--gold);
}
.loyalty-progress-bar {
  width: 100%; height: 8px; background: var(--border); border-radius: 8px; overflow: hidden;
}
.loyalty-progress-bar .fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 8px; transition: width .3s;
}
.loyalty-reward {
  margin-top: 10px; padding: 10px 12px; background: var(--rose-light); border-radius: 6px;
  border: 1px solid var(--rose); font-size: .78rem;
}
.loyalty-reward p { margin: 0; color: var(--dark); }

/* ─── Rastreamento de pedido ─────────────────────────────────────────── */
.tracking-card {
  background: #fff; border-radius: 8px; padding: 28px; margin-top: 20px;
  box-shadow: 0 4px 18px rgba(59,39,33,.08); border-top: 3px solid var(--gold);
}
.tracking-card.cancelled { border-top-color: var(--danger); }
.order-stepper { display: flex; justify-content: space-between; margin: 26px 0 10px; position: relative; }
.order-stepper::before {
  content: ''; position: absolute; top: 15px; left: 5%; right: 5%; height: 2px; background: var(--border); z-index: 0;
}
.order-stepper .step { flex: 1; min-width: 0; text-align: center; position: relative; z-index: 1; }
.order-stepper .dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--border); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: .85rem; font-weight: 700;
  border: 2px solid var(--border); transition: all .2s;
}
.order-stepper .step.done .dot { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.order-stepper .step.current .dot { background: var(--dark); border-color: var(--gold); color: #fff; box-shadow: 0 0 0 4px rgba(212,175,55,.25); }
/* min-width:0 acima + break-word aqui: são um cinto-de-segurança contra o flexbox
   estourar a largura da tela com nomes muito compridos — os rótulos do STEPS em
   pedido.html já foram encurtados (max. ~8 letras) pra caber numa linha só nessa
   coluna estreita; overflow-wrap só entra em ação em nomes fora do padrão. */
.order-stepper .label { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1px; overflow-wrap: break-word; }
.order-stepper .step.done .label, .order-stepper .step.current .label { color: var(--dark); font-weight: 600; }
.tracking-prep {
  text-align: center; margin: 18px 0; padding: 14px; background: var(--rose-light);
  border: 1px solid var(--rose); border-radius: 6px; color: var(--dark); font-weight: 600;
}
.tracking-cancelled-box {
  text-align: center; margin: 18px 0; padding: 16px; background: #fbeceb; border: 1px solid #f0d0ce; border-radius: 6px; color: var(--danger);
}
.tracking-items { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.tracking-items .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; color: var(--dark); }
.tracking-items .line .sub { color: var(--muted); font-size: .78rem; }
.tracking-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--dark); font-family: 'Cinzel', serif; }

/* ─── Banner de prêmio no carrinho ───────────────────────────────────── */
.cart-reward-banner {
  margin: 0 0 14px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--border); border-left: 3px solid var(--rose); border-radius: 6px;
  font-size: .84rem; color: var(--dark);
}
.cart-reward-banner select { margin-top: 8px; }

/* ══════════════════════════════════════════════════════════════════════
   /pedidos — aplicação de pedidos própria (mobile-first, ~390px)
   Cada etapa (catálogo/produto/carrinho/entrega/pagamento/revisão) é uma
   "tela" cheia navegada via History API — nunca uma pilha de modais.
   ══════════════════════════════════════════════════════════════════════ */
body.app-page { padding-bottom: 0; background: #fff; }

.app-topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--app-topbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(59,39,33,.06);
}
.app-icon-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  color: var(--dark); display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
}
.app-icon-btn svg { width: 19px; height: 19px; }
.app-icon-btn.cart-btn .cart-badge { top: -6px; right: -6px; }

.app-topbar-brand {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--dark);
}
.app-topbar-logo { height: 30px; width: 30px; object-fit: contain; flex-shrink: 0; }
.app-topbar-full-logo { height: 40px; width: auto; object-fit: contain; }
.app-topbar-brand span {
  font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.app-topbar #navUser { display: none; }

/* ─── Sistema de telas: só a view ativa é exibida, nunca empilhadas ──── */
.app-view { display: none; }
.app-view.active { display: block; }

/* ─── Header do catálogo: marca, status e busca (só na tela raiz) ────── */
/* Fundo decorativo (selo "G" + coração) igual ao resto da marca — só aqui,
   numa lavosem clara por cima pra não brigar com os ícones/logo. */
.catalog-header {
  padding: 14px 16px 12px; border-bottom: 1px solid var(--border);
  background-image: linear-gradient(rgba(247,241,234,.72), rgba(247,241,234,.72)), url('/img/pattern-bg.jpg');
  background-repeat: repeat;
  background-size: auto, 220px auto;
}
.catalog-header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.catalog-header-top > .app-icon-btn:first-child { justify-self: start; }
.catalog-header-top > .app-icon-btn:last-child { justify-self: end; }
.catalog-header-brand { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.catalog-wordmark { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0; color: #1a1a1a; }
.catalog-logo { height: 44px; width: auto; object-fit: contain; }
.store-status {
  display: flex; align-items: center; gap: 6px; margin-top: 9px;
  font-size: .76rem; font-weight: 600; color: var(--success); letter-spacing: .2px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(63,107,74,.15); flex-shrink: 0; }

/* Busca + abas ficam coladas no topo ao rolar a lista — igual ao iFood.
   O CONTÊINER é o único elemento sticky: os dois filhos são fluxo normal
   dentro dele, então nunca sobra fresta entre um e outro (antes cada um
   tinha seu próprio "top" calculado à mão, e uma pequena diferença de
   altura entre dispositivos abria uma fresta mostrando o conteúdo atrás). */
.catalog-sticky-header { position: sticky; top: 0; z-index: 56; }
.catalog-search-bar { background: #fff; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: #f0f0f0; border: none; border-radius: 24px; padding: 10px 16px;
}
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-box input { border: none; background: none; padding: 0; font-size: .88rem; color: var(--text); }
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--muted); }

/* ─── Chips de categoria (scrollspy, só existe na tela de catálogo) ──── */
.category-chips {
  display: flex; gap: 22px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 0 14px; background: #fff;
  border-bottom: 1px solid var(--border);
}
.category-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 13px 0; border-radius: 0;
  border: none; border-bottom: 2px solid transparent; background: none; color: var(--muted);
  font-size: .84rem; font-weight: 700; letter-spacing: 0; white-space: nowrap;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
}
.chip.active { color: #1a1a1a; border-bottom-color: #1a1a1a; }

.app-main { max-width: 980px; margin: 0 auto; padding: 16px 12px 130px; }
.app-main-narrow { max-width: 640px; }
/* A sacola fixa do catálogo agora é uma barra bem mais baixa (uma linha só) —
   não precisa da folga grande reservada pra antiga barra+abas inferiores. */
.app-main-catalog { padding-bottom: 90px; }
.app-main .menu-loading { text-align: center; color: var(--muted); padding: 60px 20px; }
.category-section { scroll-margin-top: calc(var(--app-search-h) + var(--app-chips-h) + 8px); }
.category-section .category-title.sub {
  text-align: left; margin: 22px 4px 14px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem;
  text-transform: none; letter-spacing: 0; color: #1a1a1a;
}
.category-section .category-title.sub::after { display: none; }
.category-section:first-child .category-title.sub { margin-top: 4px; }

/* ─── Convite de instalação do PWA (discreto, dispensável) ────────────── */
.pwa-install-banner {
  display: none; align-items: center; gap: 12px; margin: 12px 12px 0; padding: 14px 40px 14px 16px;
  background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); position: relative;
}
.pwa-install-text { flex: 1; font-size: .86rem; color: var(--dark); }
.pwa-install-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 1.2rem;
  color: var(--muted); cursor: pointer; line-height: 1; padding: 4px;
}

/* ─── Tela de Produto (substitui o antigo modal de personalização) ───── */
.product-view { max-width: 640px; margin: 0 auto; padding-bottom: 118px; }
/* Proporção medida direto do mockup (866x291px ≈ 2.976:1) — uma faixa bem
   mais baixa/panorâmica que a antiga 4:3, não um retrato quase quadrado.
   Recuada das bordas + cantos arredondados (não é mais banner de ponta a ponta). */
.product-photo {
  width: calc(100% - 32px); margin: 6px 16px 0; aspect-ratio: 2.976/1;
  background: var(--border); border-radius: 16px; overflow: hidden;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-photo-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, var(--rose-light), var(--border));
  display: flex; align-items: center; justify-content: center; color: var(--medium);
}
.product-photo-placeholder svg { width: 56px; height: 56px; }
.product-body { padding: 10px 16px 2px; }
.product-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--dark); margin: 0 0 4px; }
.product-desc { color: var(--muted); font-size: .78rem; line-height: 1.4; margin: 0 0 12px; }

/* "Ver detalhes" sobre a foto — abre a imagem ampliada em tela cheia. */
.product-photo { position: relative; }
.product-photo-expand-btn {
  position: absolute; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); color: var(--dark);
  border: none; border-radius: 20px; padding: 8px 14px;
  font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.product-photo-expand-btn svg { width: 15px; height: 15px; }

.photo-lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(20,12,10,.92); align-items: center; justify-content: center; padding: 24px;
}
.photo-lightbox.active { display: flex; }
.photo-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.photo-lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* Cartão de seção (Sabores, Tamanho, Observações) — selo com ícone + título/legenda. */
.product-option-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 8px; overflow: hidden; }
.product-option-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.product-option-header-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--rose-light); color: var(--rose); display: flex; align-items: center; justify-content: center;
}
.product-option-header-icon svg { width: 13px; height: 13px; }
.product-option-header-text { flex: 1; min-width: 0; }
.product-option-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .82rem; color: var(--dark); }
.product-option-optional { font-weight: 400; color: var(--muted); text-transform: none; }
.product-option-subtitle { font-size: .68rem; color: var(--muted); margin-top: 1px; }
.product-option-body { padding: 0 12px 8px; }

/* Grade de sabores em blocos com foto — 3 colunas, igual ao mockup — "ver
   mais" expande no lugar, sem scroll interno. */
.flavor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.flavor-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 6px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  background: #fff;
}
.flavor-card.is-unavailable { opacity: .55; }
.flavor-card-photo {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--medium); flex-shrink: 0;
}
.flavor-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.flavor-card-placeholder svg { width: 16px; height: 16px; }
.flavor-card-name { font-weight: 700; font-size: .64rem; color: var(--dark); font-family: 'Montserrat', sans-serif; line-height: 1.15; }
.flavor-card-badge {
  background: var(--rose-light); color: var(--rose); font-size: .5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2px; padding: 1px 6px; border-radius: 10px;
}
.flavor-card-realqty { font-size: .56rem; color: var(--danger); font-weight: 600; }
.flavor-card-qty { justify-content: center; margin-top: 1px; gap: 4px; }
.flavor-card-qty button { width: 19px; height: 19px; font-size: .74rem; }
.flavor-card-qty span { font-size: .74rem; min-width: 9px; text-align: center; }

.ver-mais-sabores-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 6px; padding: 7px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg); color: var(--dark); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .72rem;
  cursor: pointer;
}
.ver-mais-sabores-btn svg { width: 13px; height: 13px; }
.ver-mais-chevron { display: flex; transition: transform .2s; }
.ver-mais-chevron.is-up { transform: rotate(180deg); }

/* Tamanho — lista de opções em cartão, mesmo estilo dos demais grupos. */
.size-option-list { display: flex; flex-direction: column; gap: 8px; }
.size-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.size-option.is-selected { border-color: var(--gold); background: var(--bg); }
.size-option input { width: auto; margin: 0; }
.size-option-label { flex: 1; font-size: .88rem; color: var(--dark); }
.size-option-price { font-weight: 700; color: var(--medium); font-size: .86rem; }

.product-notes-input {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px;
  font-family: 'Montserrat', sans-serif; font-size: .8rem; color: var(--text); resize: vertical;
}

/* Rótulo em cima, controle embaixo — nos dois grupos (quantidade e total),
   em vez de lado a lado na mesma linha. */
.product-bottom-qty-group { display: flex; flex-direction: column; gap: 4px; }
.product-bottom-qty-label svg { width: 14px; height: 14px; vertical-align: -3px; margin-right: 3px; }
.product-bottom-total-group { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.product-bottom-total-label { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.product-add-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #BD6C72; border-color: #BD6C72; color: #fff;
  text-transform: none; letter-spacing: 0; font-size: .88rem; padding: 10px 20px;
}
.product-add-btn:hover { background: #a95960; border-color: #a95960; }
.product-add-btn svg { width: 17px; height: 17px; }

@media (min-width: 600px) { .flavor-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── Barra de ação inferior contextual (uma por etapa) ──────────────── */
.app-bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -2px 14px rgba(59,39,33,.08);
}
.bottom-bar-inner { max-width: 640px; margin: 0 auto; }
/* Mesma fonte/escala compacta da sacola em todas as etapas do checkout
   (entrega/retirada, pagamento) — não a serifada/maior de antes. */
.bottom-bar-total { display: flex; justify-content: space-between; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .95rem; color: #BD6C72; }
.bottom-bar-fee { text-align: right; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.cart-bottom-bar .btn.accent, .checkout-bottom-bar .btn.accent { font-size: .82rem; padding: 9px 20px; text-transform: none; letter-spacing: 0; }
/* Rótulo "Total do Pedido" nas etapas de entrega/pagamento — igual ao rótulo do conceito, mesma escala compacta. */
.checkout-bottom-bar .bottom-bar-total span:first-child { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); align-self: center; }
.product-bottom-bar { display: flex; flex-direction: column; gap: 8px; }
.product-bottom-row { display: flex; align-items: center; justify-content: space-between; }
.product-bottom-qty-label { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.product-bottom-price { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; color: #BD6C72; text-align: right; }

/* ─── Revisão do pedido — mesma escala compacta da sacola ─────────────── */
.review-section { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.review-section:last-of-type { border-bottom: none; }
.review-section h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--medium); font-size: .66rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .5px; }
.review-section p { margin: 0; color: var(--dark); font-size: .8rem; font-family: 'Montserrat', sans-serif; }
.review-section .sub { color: var(--muted); font-size: .7rem; margin-top: 3px; }

/* ─── Estado vazio (carrinho sem itens) ──────────────────────────────── */
.empty-state { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-state p { margin: 0 0 20px; }

/* ─── Painel de carrinho no desktop (nunca no mobile) ────────────────── */
.desktop-cart-panel { display: none; }

@media (min-width: 780px) {
  .app-topbar { padding: 0 26px; height: 66px; }
  .app-main { padding-top: 24px; }
  .app-topbar #navUser {
    display: flex; align-items: center; gap: 10px;
  }
  .app-topbar #navUser a, .app-topbar #navUser button {
    color: var(--dark); background: none; border: 1px solid var(--border);
    padding: 7px 15px; border-radius: 20px; font-size: .74rem; letter-spacing: .5px;
    text-transform: uppercase; cursor: pointer; font-family: 'Montserrat', sans-serif;
  }
  .app-topbar #navUser a:hover, .app-topbar #navUser button:hover { border-color: var(--gold); }
  .app-topbar #navUser a.solid { background: var(--gold); border-color: var(--gold); color: var(--dark); font-weight: 700; }
}

@media (min-width: 1024px) {
  /* Catálogo ganha uma coluna lateral fixa com a sacola — SÓ no desktop. */
  .app-main-catalog { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
  .desktop-cart-panel {
    display: block; position: sticky; top: calc(var(--app-topbar-h) + 24px);
    background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px;
    box-shadow: 0 4px 18px rgba(59,39,33,.06);
    max-height: calc(100vh - var(--app-topbar-h) - 48px); overflow-y: auto;
  }
  .desktop-cart-panel .cart-item { padding: 10px 0; }
  .desktop-cart-title { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; font-size: 1rem; text-transform: none; letter-spacing: 0; }
  .empty-state-sm { color: var(--muted); font-size: .85rem; margin: 0; }
  /* A sacola já vive fixa na coluna lateral — a barra flutuante fica redundante. */
  body.app-page .cart-fab { display: none !important; }
  .app-main-narrow, .product-view { max-width: 720px; }
}

@media (max-width: 400px) {
  .app-topbar-brand span { font-size: .86rem; }
  .chip { padding: 7px 13px; font-size: .74rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   GESTOR DE PEDIDOS — tela operacional dedicada do lojista (sem sidebar).
   Usa a paleta de marca (--dark/--medium/--rose/--gold), não a neutra do
   admin geral, porque é uma ferramenta de operação com identidade Ganache.
   ══════════════════════════════════════════════════════════════════════ */
body.gestor-page { background: var(--bg); color: var(--text); }
.gestor-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.gestor-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--border);
  flex-shrink: 0; z-index: 5;
}
.gestor-header-brand { display: flex; align-items: center; gap: 14px; }
.gestor-header-logo { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); object-fit: cover; }
.gestor-header-brand h1 { margin: 0; font-family: 'Cinzel', serif; font-size: 1.15rem; color: var(--dark); font-weight: 600; }
.gestor-header-brand p { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }

.gestor-header-actions { display: flex; align-items: center; gap: 10px; }
.gestor-header-date {
  font-size: .8rem; color: var(--medium); background: var(--rose-light); border-radius: var(--radius-sm);
  padding: 7px 13px; font-weight: 600; white-space: nowrap;
}
.gestor-header-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text);
  font-size: .82rem; font-weight: 600; cursor: pointer; font-family: 'Montserrat', sans-serif; text-decoration: none;
}
.gestor-header-btn:hover { border-color: var(--gold); color: var(--medium); }
.gestor-header-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.gestor-badge-count {
  position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-size: .66rem;
  font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; padding: 0 4px;
}
.gestor-header-store { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: var(--radius-sm); background: var(--bg); }
.gestor-store-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.gestor-store-name { font-size: .8rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.gestor-store-status { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.gestor-header-back { color: var(--muted); display: inline-flex; padding: 8px; border-radius: var(--radius-sm); }
.gestor-header-back:hover { color: var(--medium); background: var(--bg); }

.gestor-body { flex: 1; display: flex; overflow: hidden; min-height: 0; }
.gestor-board {
  flex: 1; display: flex; gap: 8px; padding: 16px 16px 12px; overflow-x: auto; min-width: 0;
  transition: flex-basis .25s ease;
}
.gestor-column { flex: 1 1 136px; min-width: 136px; max-width: 260px; display: flex; flex-direction: column; min-height: 0; }
.gestor-column-header {
  display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px;
  border-bottom: 2px solid var(--col-color, var(--border)); margin-bottom: 12px; flex-shrink: 0;
}
.gestor-column-title { font-size: .74rem; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .2px; display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gestor-column-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--col-color, var(--muted)); }
.gestor-column-count {
  background: var(--col-color, var(--muted)); color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
.gestor-column-body {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; min-height: 60px;
  border-radius: var(--radius-md); transition: background .15s;
}
.gestor-column-body.drag-over { background: var(--rose-light); }
.gestor-column-empty { color: var(--muted); font-size: .78rem; text-align: center; padding: 24px 10px; border: 1.5px dashed var(--border); border-radius: var(--radius-md); }
.gestor-column-viewall { text-align: center; font-size: .78rem; font-weight: 700; color: var(--medium); background: none; border: none; cursor: pointer; padding: 8px; font-family: 'Montserrat', sans-serif; }
.gestor-column-viewall:hover { text-decoration: underline; }

.gestor-card {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 10px 11px;
  border-left: 3px solid var(--col-color, var(--border)); cursor: pointer; transition: box-shadow .15s, transform .1s; min-width: 0;
}
.gestor-card:hover { box-shadow: var(--shadow-md); }
.gestor-card.selected { outline: 2px solid var(--gold); outline-offset: -1px; }
.gestor-card.dragging { opacity: .4; }
.gestor-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gestor-card-id { font-weight: 700; color: var(--dark); font-size: .88rem; }
.gestor-card-time { font-size: .72rem; color: var(--muted); }
.gestor-card-customer { font-weight: 600; font-size: .82rem; color: var(--text); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gestor-card-reward { font-size: .72rem; }
.gestor-card-meta { font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.gestor-card-alert { font-size: .7rem; font-weight: 700; color: var(--danger); background: var(--danger-bg); border-radius: var(--radius-sm); padding: 4px 8px; margin-bottom: 8px; display: inline-block; }
.gestor-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gestor-card-total { font-weight: 700; color: var(--dark); font-size: .88rem; }
.gestor-card-action {
  width: 100%; padding: 8px 10px; border-radius: var(--radius-sm); border: none; font-weight: 700;
  font-size: .76rem; cursor: pointer; font-family: 'Montserrat', sans-serif;
}
.gestor-card-action.primary { background: var(--dark); color: #fff; }
.gestor-card-action.primary:hover { background: var(--medium); }
.gestor-card-action.outline { background: #fff; border: 1px solid var(--border); color: var(--medium); }
.gestor-card-action.outline:hover { border-color: var(--gold); }
.gestor-card-action:disabled { opacity: .5; cursor: default; }

/* Painel de detalhe — "espreme" o board, não flutua por cima (padrão iFood) */
.gestor-panel {
  flex-basis: 0; width: 0; overflow: hidden; background: #fff; border-left: 1px solid var(--border);
  transition: flex-basis .25s ease, width .25s ease; flex-shrink: 0;
}
.gestor-panel.open { flex-basis: 360px; width: 360px; }
.gestor-panel-inner { width: 360px; height: 100%; overflow-y: auto; padding: 18px 20px 32px; }
.gestor-panel-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.gestor-panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.gestor-panel-close { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 50%; }
.gestor-panel-close:hover { background: var(--bg); color: var(--text); }
.gestor-panel-meta { font-size: .78rem; color: var(--muted); margin: 6px 0 18px; line-height: 1.6; }
.gestor-panel-section { margin-bottom: 18px; }
.gestor-panel-section-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--medium); margin-bottom: 8px; }
.gestor-panel-line { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; padding: 5px 0; }
.gestor-panel-line-sub { font-size: .74rem; color: var(--muted); margin-top: 1px; }
.gestor-panel-total { display: flex; justify-content: space-between; font-weight: 700; color: var(--dark); font-size: .95rem; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.gestor-panel-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.gestor-panel-btn { padding: 11px; border-radius: var(--radius-sm); font-weight: 700; font-size: .85rem; cursor: pointer; font-family: 'Montserrat', sans-serif; border: none; }
.gestor-panel-btn.primary { background: var(--dark); color: #fff; }
.gestor-panel-btn.primary:hover { background: var(--medium); }
.gestor-panel-btn.danger { background: #fff; border: 1px solid var(--danger); color: var(--danger); }
.gestor-panel-btn.danger:hover { background: var(--danger-bg); }
.gestor-panel-btn.outline { background: #fff; border: 1px solid var(--border); color: var(--text); }

.gestor-chat-thread { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.gestor-chat-row { display: flex; gap: 8px; }
.gestor-chat-input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .82rem; font-family: 'Montserrat', sans-serif; }
.gestor-chat-send { padding: 9px 14px; border-radius: var(--radius-sm); border: none; background: var(--dark); color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; }

.gestor-drag-hint { text-align: center; padding: 8px; font-size: .74rem; color: var(--muted); background: #fff; border-top: 1px solid var(--border); flex-shrink: 0; }

.gestor-mobile-block { display: none; }
@media (max-width: 767px) {
  .gestor-shell > .gestor-header, .gestor-shell > .gestor-body, .gestor-shell > .gestor-drag-hint { display: none !important; }
  .gestor-mobile-block {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    height: 100vh; padding: 32px; gap: 14px;
  }
  .gestor-mobile-block img { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); }
  .gestor-mobile-block h2 { font-family: 'Cinzel', serif; color: var(--dark); margin: 0; font-size: 1.1rem; }
  .gestor-mobile-block p { color: var(--muted); font-size: .88rem; max-width: 320px; margin: 0; }
  .gestor-mobile-block a { color: var(--medium); font-weight: 700; font-size: .85rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gestor-header { padding: 12px 16px; flex-wrap: wrap; }
  .gestor-board { padding: 14px 14px 10px; gap: 6px; }
  .gestor-column { min-width: 118px; max-width: 220px; }
  .gestor-panel.open { flex-basis: 320px; width: 320px; }
  .gestor-panel-inner { width: 320px; }
}

/* ─── Modal "Iniciar preparo" — mostra o pedido inteiro antes de pedir o tempo,
   pra loja saber o que vai fazer antes de estimar quanto tempo leva ────────── */
.gestor-prep-modal-backdrop {
  position: fixed; inset: 0; background: rgba(56,39,33,.55); display: none;
  align-items: center; justify-content: center; z-index: 300; padding: 20px;
}
.gestor-prep-modal-backdrop.show { display: flex; }
.gestor-prep-modal {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  width: 560px; max-width: 100%; max-height: 88vh; overflow-y: auto; padding: 22px 24px 26px;
}
.gestor-prep-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.gestor-prep-modal-title { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.gestor-prep-modal-customer { font-size: .82rem; color: var(--muted); margin: 4px 0 18px; }
.gestor-prep-modal-time { margin: 18px 0 16px; }
.gestor-prep-modal-time label {
  display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--medium); margin-bottom: 6px;
}
.gestor-prep-modal-time input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1.1rem; font-weight: 700; color: var(--dark); font-family: 'Montserrat', sans-serif;
}
.gestor-prep-modal-time input:focus { outline: none; border-color: var(--rose); }

/* ─── Página inicial Ganache ───────────────────────────────────────────── */
.home-page { background: #fffaf7; color: var(--dark); }
.home-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.home-page .home-header { min-height: 72px; padding: 10px 5vw; background: rgba(56,39,33,.98); }
.home-page .home-header .brand-logo { height: 49px; max-width: 142px; }
.nav-toggle, .nav-toggle-label { display: none; }
.home-page .nav-panel { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.home-page .main-nav { display: flex; align-items: center; gap: 24px !important; }
.home-page .main-nav a { font-size: .72rem !important; font-weight: 600; letter-spacing: 1.15px !important; }
.home-page .user-nav { display: flex; align-items: center; gap: 8px; }
.home-page .order-btn { margin-left: 20px; flex-shrink: 0; padding: 11px 18px; }

.home-page .hero { position: relative; isolation: isolate; min-height: 610px; display: grid; place-items: center; overflow: hidden; padding: 78px 20px 68px; background: linear-gradient(115deg, rgba(56,39,33,.96), rgba(56,39,33,.82)), url('/img/pattern-bg.jpg'); background-size: cover, 280px auto; background-position: center; border-bottom: 2px solid var(--gold); }
.home-page .hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 50% 25%, rgba(212,175,55,.25), transparent 34%), linear-gradient(0deg, rgba(56,39,33,.25), transparent 50%); }
.hero-content { width: min(100%, 730px); text-align: center; }
.hero-eyebrow, .section-kicker { margin: 0 0 14px; color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.hero-logo { display: block; width: min(88%, 395px); height: auto; max-height: 178px; object-fit: contain; margin: 0 auto 20px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.22)); }
.home-page .hero-tagline { font-family: 'Cinzel', serif; font-style: normal; font-size: clamp(1.5rem, 4.5vw, 2.6rem); font-weight: 600; line-height: 1.28; color: #fff8f1; letter-spacing: .3px; margin: 0; }
.home-page .hero-rule { width: 76px; height: 2px; margin: 22px auto; background: var(--gold); opacity: 1; }
.hero-intro { max-width: 570px; margin: 0 auto; color: rgba(255,248,241,.88); font-size: .98rem; line-height: 1.8; }
.home-page .hero-actions { margin-top: 30px; gap: 12px; }
.home-page .hero-actions .btn { min-width: 190px; }
.home-page .hero-actions .btn.accent { box-shadow: 0 8px 22px rgba(212,175,55,.28); }
.hero-seal { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 9px 15px; border: 1px solid rgba(212,175,55,.6); color: var(--rose-light); font-size: .69rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.hero-seal span { color: var(--gold); }

.home-page .manifesto { max-width: 760px; padding: 88px 24px; }
.home-page .manifesto h2 { font-size: clamp(1.7rem, 4vw, 2.35rem); margin: 0 0 18px; color: var(--dark); }
.home-page .manifesto p:not(.section-kicker) { color: #5c453d; font-size: 1rem; line-height: 1.9; }
.home-page .manifesto .hero-rule { margin-top: 26px; }
.section-heading { text-align: center; margin-bottom: 34px; }
.home-page .section-heading .section-kicker { color: var(--medium); }
.home-page .category-title, .home-page .trust-section h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); color: var(--dark); text-transform: none; letter-spacing: .4px; }
.home-page .category-title::after { width: 54px; margin-top: 14px; }
.home-page .criacoes { padding: 76px 5vw 84px; background: linear-gradient(135deg, #f6d9dc, var(--rose-light)); }
.home-page .criacoes-grid { max-width: 1120px; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-page .criacao-card { overflow: hidden; padding: 0; text-align: left; border: 1px solid rgba(122,62,51,.12); border-bottom: 3px solid var(--gold); border-radius: 4px; box-shadow: 0 10px 24px rgba(56,39,33,.11); }
.home-page .criacao-card:hover { border-bottom-color: var(--medium); }
.criacao-image-placeholder { min-height: 170px; display: grid; place-items: center; color: var(--dark); background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.5), transparent 35%), linear-gradient(135deg, #e9aac1, #eac875); }
.criacao-image-placeholder svg { width: 54px; height: 54px; padding: 13px; color: var(--medium); background: rgba(255,250,247,.75); border: 1px solid rgba(212,175,55,.8); border-radius: 50%; }
.criacao-body { padding: 22px 20px 20px; }
.home-page .criacao-card h3 { font-size: 1rem; margin: 0 0 9px; }
.home-page .criacao-card p { min-height: 42px; color: #684f46; font-size: .82rem; line-height: 1.55; }
.criacao-price { display: block; margin-top: 16px; color: var(--medium); font-size: .76rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }

.trust-section { padding: 76px 5vw; background: #fffaf7; }
.trust-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(122,62,51,.18); border: 1px solid rgba(122,62,51,.18); }
.trust-item { padding: 30px 24px; text-align: center; background: #fffaf7; }
.trust-icon { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 14px; color: var(--medium); border: 1px solid var(--gold); border-radius: 50%; }
.trust-icon svg { width: 19px; height: 19px; }
.trust-item h3 { margin: 0 0 8px; color: var(--dark); font-size: .94rem; }
.trust-item p { max-width: 235px; margin: 0 auto; color: #674d44; font-size: .8rem; line-height: 1.65; }
.trust-item strong { color: var(--medium); }
.home-page .cta-banner { padding: 82px 20px; background: linear-gradient(115deg, rgba(56,39,33,.95), rgba(56,39,33,.88)), url('/img/pattern-bg.jpg'); background-size: cover, 240px auto; }
.home-page .cta-banner h2 { color: #fff8f1; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.45; }
.home-page .site-footer { padding: 56px 5vw 0; background: var(--dark); color: var(--rose-light); }
.home-page .footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px; padding-bottom: 42px; }
.home-page .footer-brand .brand-logo { height: 68px; max-width: 190px; }
.home-page .footer-brand p, .home-page .footer-col span, .home-page .footer-col a { display: block; color: rgba(235,193,198,.82); font-size: .78rem; line-height: 1.75; }
.home-page .footer-col h4 { margin: 0 0 12px; color: var(--gold); font-family: 'Cinzel', serif; font-size: .78rem; letter-spacing: 1px; }
.home-page .footer-col a:hover { color: #fff; }
.home-page .footer-bottom { padding: 18px 0; border-top: 1px solid rgba(235,193,198,.18); color: rgba(235,193,198,.55); text-align: center; font-size: .68rem; }
.mobile-order-cta { display: none; }

@media (max-width: 760px) {
  .home-page { padding-bottom: 64px; }
  .home-page .home-header { min-height: 62px; padding: 7px 16px; }
  .home-page .home-header .brand-logo { height: 43px; max-width: 118px; }
  .home-page .order-btn { margin-left: auto; padding: 9px 11px; font-size: .65rem; }
  .nav-toggle-label { order: 3; display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; margin-left: 8px; padding: 8px; cursor: pointer; }
  .nav-toggle-label > span:not(.sr-only) { display: block; height: 1px; background: var(--gold); transition: transform .2s, opacity .2s; }
  .nav-toggle:checked + .nav-toggle-label > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label > span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-toggle-label > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .home-page .nav-panel { display: none; position: absolute; top: 62px; right: 0; left: 0; padding: 20px 24px 24px; background: var(--dark); border-top: 1px solid rgba(212,175,55,.35); box-shadow: 0 12px 20px rgba(0,0,0,.22); }
  .nav-toggle:checked ~ .nav-panel { display: block; }
  .home-page .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0 !important; }
  .home-page .main-nav a { padding: 13px 0 !important; border-bottom: 1px solid rgba(235,193,198,.14) !important; font-size: .76rem !important; }
  .home-page .user-nav { margin-top: 16px; }
  .home-page .hero { min-height: 570px; padding: 58px 20px; }
  .hero-logo { max-height: 145px; }
  .hero-intro { font-size: .88rem; line-height: 1.7; }
  .home-page .hero-actions { flex-direction: column; align-items: stretch; }
  .home-page .hero-actions .btn { width: 100%; }
  .hero-seal { font-size: .59rem; line-height: 1.5; }
  .home-page .manifesto, .home-page .criacoes, .trust-section { padding-top: 62px; padding-bottom: 62px; }
  .home-page .criacoes-grid, .trust-grid { grid-template-columns: 1fr; }
  .criacao-image-placeholder { min-height: 150px; }
  .home-page .criacao-card p { min-height: 0; }
  .trust-grid { gap: 1px; }
  .home-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .home-page .footer-brand { grid-column: 1 / -1; }
  .mobile-order-cta { position: fixed; z-index: 60; right: 14px; bottom: 12px; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; background: var(--gold); color: var(--dark); box-shadow: 0 6px 20px rgba(56,39,33,.3); font-size: .72rem; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
}
@media (min-width: 761px) and (max-width: 980px) { .home-page .criacoes-grid { grid-template-columns: repeat(2, 1fr); } .home-page .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Homepage refatorada: editorial, conversão e tokens do Branding ─── */
.home-page { background: var(--bg); }
.home-page h1, .home-page h2 { font-weight: 500; }
.home-page h1 em, .home-page h2 em { color: var(--rose); font-style: normal; }
.home-page .home-header { min-height: 76px; padding: 12px clamp(20px, 5vw, 76px); }
.home-page .home-header .brand-logo { height: 52px; max-width: 158px; }
.home-page .hero { min-height: 650px; padding: 76px clamp(22px, 7vw, 110px) 48px; text-align: left; display: flex; align-items: center; border: 0; background: var(--dark); overflow: hidden; }
.home-page .hero::before { background: radial-gradient(circle at 76% 42%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 28%), radial-gradient(circle at 15% 85%, color-mix(in srgb, var(--rose) 20%, transparent), transparent 30%), linear-gradient(120deg, rgba(20,10,7,.35), transparent); }
.home-page .hero-content { max-width: 1160px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr); align-items: center; gap: clamp(32px, 8vw, 120px); }
.home-page .hero-copy { max-width: 600px; }
.hero-eyebrow { letter-spacing: 2.5px; }
.home-page .hero h1 { margin: 0; color: #fff8f1; font-family: 'Cinzel', serif; font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: 1.12; letter-spacing: -.4px; }
.home-page .hero-intro { margin: 26px 0 0; max-width: 500px; color: rgba(255,248,241,.76); font-size: 1rem; line-height: 1.85; }
.home-page .hero-actions { justify-content: flex-start; align-items: center; margin-top: 34px; }
.home-page .hero-actions .btn { min-width: 0; }
.text-link { color: var(--rose-light); font-size: .75rem; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.text-link span, .section-link span, .criacao-body b { color: var(--gold); margin-left: 7px; }
.hero-brand-stage { position: relative; min-height: 410px; display: grid; place-items: center; text-align: center; }
.hero-brand-stage::before { content: ''; position: absolute; width: min(30vw, 350px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--rose-light) 8%, transparent); box-shadow: 0 0 80px color-mix(in srgb, var(--gold) 12%, transparent); }
.hero-logo { position: relative; width: min(100%, 410px); max-height: none; margin: 0; filter: drop-shadow(0 15px 20px rgba(0,0,0,.3)); }
.hero-brand-stage p { position: absolute; bottom: 4px; margin: 0; color: var(--gold-soft); font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase; }
.hero-orbit { position: absolute; border: 1px solid rgba(212,175,55,.38); border-radius: 50%; transform: rotate(-28deg); }
.hero-orbit-one { width: 108%; height: 62%; }.hero-orbit-two { width: 86%; height: 78%; transform: rotate(38deg); border-color: rgba(235,193,198,.2); }
.hero-scroll { display: flex; position: absolute; bottom: 25px; left: clamp(22px, 7vw, 110px); align-items: center; gap: 10px; color: rgba(255,248,241,.5); font-size: .62rem; letter-spacing: 1.3px; text-transform: uppercase; }
.hero-scroll span { display: block; width: 34px; height: 1px; background: var(--gold); }
.home-page .manifesto { max-width: 700px; padding: 108px 24px 112px; }
.home-page .manifesto h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; margin-bottom: 22px; }
.home-page .manifesto p:not(.section-kicker) { color: var(--muted); font-size: 1rem; line-height: 1.9; }
.manifesto-signature { margin-top: 28px; color: var(--gold); font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: 1.5px; text-transform: uppercase; }
.home-page .criacoes { padding: 94px clamp(20px, 7vw, 110px) 108px; background: color-mix(in srgb, var(--rose-light) 54%, var(--bg)); }
.home-page .section-heading { max-width: 1160px; margin: 0 auto 40px; display: flex; align-items: end; justify-content: space-between; text-align: left; }
.home-page .section-heading .section-kicker { color: var(--medium); }.home-page .section-heading h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; }
.home-page .section-link { color: var(--dark); font-size: .7rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.home-page .section-link span { color: var(--medium); }
.home-page .criacoes-grid { max-width: 1160px; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-page .criacao-card { border: 1px solid rgba(122,62,51,.12); border-bottom: 3px solid var(--gold); border-radius: 2px; box-shadow: 0 12px 28px rgba(56,39,33,.09); }
.home-page .criacao-card:hover { transform: translateY(-6px); border-bottom-color: var(--medium); }
.criacao-image-placeholder { position: relative; min-height: 205px; background: radial-gradient(circle at 75% 20%, rgba(255,255,255,.6), transparent 30%), linear-gradient(135deg, #e8a9be, #e7c273); }
.criacao-image-placeholder.cake { background: radial-gradient(circle at 25% 30%, rgba(255,255,255,.55), transparent 30%), linear-gradient(135deg, #d89aa8, #dcb07e); }.criacao-image-placeholder.share { background: radial-gradient(circle at 70% 15%, rgba(255,255,255,.5), transparent 28%), linear-gradient(135deg, #c8919e, #e9c994); }
.criacao-image-placeholder > span { position: absolute; top: 15px; left: 17px; color: rgba(59,39,33,.55); font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: 1px; }.criacao-image-placeholder svg { width: 62px; height: 62px; padding: 16px; }
.home-page .criacao-body { padding: 22px 22px 24px; }.home-page .criacao-card h3 { font-size: 1.06rem; }.home-page .criacao-card p { min-height: 0; margin-bottom: 18px; }.criacao-body span { color: var(--medium); font-size: .66rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.trust-section { display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; gap: clamp(38px, 8vw, 120px); max-width: 1160px; margin: 0 auto; padding: 108px 24px; background: var(--bg); }
.trust-intro h2 { margin: 0 0 18px; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; }.trust-intro > p:not(.section-kicker) { color: var(--muted); font-size: .9rem; line-height: 1.8; }.outline-dark { margin-top: 20px; border: 1px solid var(--medium); color: var(--dark); }.outline-dark:hover { background: var(--medium); color: #fff; }
.trust-grid { align-self: center; display: grid; grid-template-columns: 1fr; gap: 0; border: 0; background: transparent; }.trust-item { padding: 24px 0; text-align: left; background: transparent; border-top: 1px solid var(--border); }.trust-index { color: var(--gold); font-family: 'Cinzel', serif; font-size: .7rem; }.trust-item h3 { margin: 7px 0 5px; font-size: 1rem; }.trust-item p { max-width: 360px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.home-page .cta-banner { padding: 96px 20px; border: 0; }.home-page .cta-content { max-width: 560px; }.home-page .cta-logo { height: 96px; }.home-page .cta-banner .section-kicker { margin-top: 18px; }.home-page .cta-banner h2 { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 3rem); }
@media (max-width: 760px) { .home-page .home-header { min-height: 64px; }.home-page .hero { min-height: 700px; padding: 58px 22px 70px; }.home-page .hero-content { display: flex; flex-direction: column; gap: 22px; text-align: center; }.home-page .hero-copy { max-width: 500px; }.home-page .hero h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); }.home-page .hero-intro { font-size: .88rem; }.home-page .hero-actions { justify-content: center; flex-direction: column; }.home-page .hero-actions .btn { width: 100%; }.hero-brand-stage { min-height: 260px; width: 100%; }.hero-logo { width: min(78vw, 300px); }.hero-brand-stage::before { width: 250px; }.hero-orbit-one { width: 96%; }.hero-scroll { display: none; }.home-page .section-heading { display: block; }.home-page .section-link { display: inline-block; margin-top: 20px; }.home-page .criacoes-grid { grid-template-columns: 1fr; }.trust-section { display: block; padding: 76px 24px; }.trust-grid { margin-top: 38px; }.home-page .footer-grid { grid-template-columns: 1fr 1fr; }.home-page .footer-brand { grid-column: 1 / -1; } }

/* Acabamento premium: formas orgânicas e CTAs com aparência de convite. */
.home-page .btn { border-radius: 999px; padding: 13px 24px; letter-spacing: .55px; box-shadow: none; }
.home-page .btn.lg { padding: 16px 30px; }
.home-page .btn.accent { box-shadow: 0 8px 24px color-mix(in srgb, var(--gold) 24%, transparent); }
.home-page .home-header .order-btn { padding: 11px 20px; }
.home-page .criacao-card { border-radius: 18px; border-bottom: 1px solid rgba(122,62,51,.12); }
.home-page .criacao-card:hover { border-bottom-color: var(--gold); box-shadow: 0 18px 34px rgba(56,39,33,.14); }
.home-page .criacao-image-placeholder { border-radius: 17px 17px 0 0; }
.home-page .trust-intro .btn { border-radius: 999px; }
.home-page .mobile-order-cta { border-radius: 999px; }
.home-page .cta-banner { background: radial-gradient(circle at 50% 15%, color-mix(in srgb, var(--rose) 22%, transparent), transparent 32%), var(--dark); }
@media (max-width: 760px) { .home-page .hero-actions .btn { width: auto; min-width: 210px; }.home-page .hero-actions { align-items: center; }.home-page .home-header .order-btn { border-radius: 999px; } }

/* ─── Catálogo desktop: composição própria, sem alterar o mobile ────── */
@media (min-width: 1024px) {
  body.app-page { background: #faf9f7; }
  .catalog-header { padding: 18px 36px 14px; background-image: none; background: #fff; }
  .catalog-header-top { max-width: 1180px; margin: 0 auto; }
  .catalog-logo { height: 52px; }
  .catalog-wordmark { font-family: 'Cinzel', serif; font-size: 1.35rem; letter-spacing: 2px; }
  .store-status { max-width: 1180px; margin: 10px auto 0; }
  .catalog-search-bar { padding: 16px 36px; background: #faf9f7; border-bottom: 0; }
  .search-box { max-width: 1180px; margin: 0 auto; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(59,39,33,.04); }
  .category-chips { justify-content: center; gap: 30px; padding: 0 36px; }
  .chip { padding: 14px 0; font-size: .78rem; }
  .pwa-install-banner { max-width: 1180px; margin: 14px auto 0; }
  .app-main-catalog { max-width: 1180px; grid-template-columns: minmax(0, 1fr) 350px; gap: 44px; padding: 28px 36px 110px; }
  .app-main-catalog #menuContainer { min-width: 0; }
  .category-section .category-title.sub { margin: 10px 0 12px; font-size: 1.15rem; }
  .category-section + .category-section { margin-top: 22px; }
  .items-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .item-card { min-height: 132px; padding: 14px; gap: 14px; align-items: stretch; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 3px 12px rgba(59,39,33,.04); }
  .item-card:last-child { border-bottom: 1px solid var(--border); }
  .item-card:hover { background: #fff; border-color: var(--rose-light); box-shadow: 0 8px 18px rgba(59,39,33,.09); }
  .item-photo-wrap { width: 102px; height: 102px; align-self: center; border-radius: 12px; order: 2; }
  .item-body { order: 1; }
  .item-name { font-size: .86rem; }
  .item-desc { font-size: .7rem; }
  .item-price { font-size: .8rem; }
  .item-add-btn { width: 28px; height: 28px; font-size: 1.1rem; }
  .desktop-cart-panel { top: 148px; border-radius: 16px; padding: 22px; box-shadow: 0 6px 22px rgba(59,39,33,.07); }
}

/* ─── Produto desktop: ocupa o canvas disponível, mobile preservado ──── */
@media (min-width: 1024px) {
  .product-view { max-width: 920px; padding: 26px 24px 140px; }
  .product-photo { width: 100%; margin: 0; aspect-ratio: 2.65 / 1; border-radius: 18px; }
  .product-body { padding: 16px 2px 8px; }
  .product-title { font-size: 1.35rem; }
  .product-desc { font-size: .84rem; }
  .product-option-card { border-radius: 16px; margin-bottom: 12px; }
  .product-option-header { padding: 12px 16px; }
  .product-option-body { padding: 0 16px 14px; }
  .size-option-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .size-option { padding: 13px 14px; }
  .flavor-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .flavor-card { padding: 10px 6px; border-radius: 12px; gap: 5px; }
  .flavor-card-photo { width: 48px; height: 48px; }
  .flavor-card-name { font-size: .7rem; }
  .app-bottom-bar .bottom-bar-inner { max-width: 920px; }
  .product-bottom-bar { padding: 0 24px; }
}

/* Produto desktop compacto: prioriza informação acima da dobra.
   Todas as regras são >=1024px; a composição mobile permanece intacta. */
@media (min-width: 1024px) {
  .product-view { max-width: 760px; padding: 12px 16px 118px; }
  .product-photo { aspect-ratio: 3.65 / 1; border-radius: 14px; }
  .product-body { padding: 9px 2px 5px; }
  .product-title { font-size: 1.16rem; margin-bottom: 2px; }
  .product-desc { font-size: .75rem; margin-bottom: 7px; }
  .product-option-card { margin-bottom: 8px; border-radius: 13px; }
  .product-option-header { padding: 8px 12px; }
  .product-option-body { padding: 0 12px 9px; }
  .size-option-list { gap: 7px; }
  .size-option { padding: 9px 11px; }
  .flavor-grid { gap: 7px; }
  .flavor-card { padding: 7px 4px; gap: 3px; }
  .flavor-card-photo { width: 38px; height: 38px; }
  .flavor-card-name { font-size: .64rem; }
  .app-bottom-bar .bottom-bar-inner { max-width: 760px; }
}

/* Direção de arte aprovada para a homepage: marrom apenas como detalhe,
   fundo marfim e rosa queimado como convite. Sem gradientes ou ornamentos
   geométricos competindo com a marca. */
.home-page { --home-ink: #292321; --home-paper: #fbf8f4; --home-blush: #b87982; --home-line: #e8ddd5; background: var(--home-paper); color: var(--home-ink); }
.home-page .home-header { background: rgba(251,248,244,.98); color: var(--home-ink); border-bottom: 1px solid var(--home-line); box-shadow: 0 4px 18px rgba(41,35,33,.05); }
.home-page .main-nav a { color: var(--home-ink) !important; }
.home-page .main-nav a:hover { color: var(--home-blush) !important; }
.home-page .home-header .order-btn { background: var(--home-blush); border-color: var(--home-blush); color: #fff; }
.home-page .home-header .order-btn:hover { background: #9f626b; border-color: #9f626b; }
.home-page .user-nav { gap: 13px; }
.home-page .user-nav span { display: none; }
.home-page .user-nav a, .home-page .user-nav button { padding: 4px 0 !important; border: 0 !important; color: #6d5b55 !important; font-size: .66rem !important; letter-spacing: .7px !important; background: none !important; }
.home-page .user-nav a:hover, .home-page .user-nav button:hover { color: var(--home-blush) !important; }
.home-page .user-nav a.solid { color: var(--home-blush) !important; font-weight: 700; }
.home-page .hero { min-height: 610px; background: var(--home-paper); color: var(--home-ink); border-bottom: 1px solid var(--home-line); }
.home-page .hero::before { display: none; }
.home-page .hero h1 { color: var(--home-ink); }
.home-page .hero h1 em { color: var(--home-blush); }
.home-page .hero-eyebrow { color: var(--home-blush); }
.home-page .hero-intro { color: #776963; }
.home-page .hero-brand-stage::before { width: min(29vw, 350px); background: #f4e8e7; box-shadow: none; }
.home-page .hero-orbit { display: none; }
.home-page .hero-brand-stage p { color: var(--home-blush); }
.home-page .hero-scroll { color: #8b7870; }.home-page .hero-scroll span { background: var(--home-blush); }
.home-page .hero-actions .btn.accent { background: var(--home-blush); border-color: var(--home-blush); box-shadow: 0 10px 22px rgba(184,121,130,.2); color: #fff; }
.home-page .hero-actions .btn.accent:hover { background: #9f626b; border-color: #9f626b; }
.home-page .text-link { color: var(--home-ink); }.home-page .text-link span { color: var(--home-blush); }
.home-page .manifesto, .home-page .trust-section { background: var(--home-paper); }.home-page .manifesto h2, .home-page .trust-intro h2 { color: var(--home-ink); }.home-page .manifesto h2 em, .home-page .trust-intro h2 em { color: var(--home-blush); }
.home-page .criacoes { background: #f2e2e1; }.home-page .section-heading .section-kicker { color: var(--home-blush); }.home-page .section-heading h2 { color: var(--home-ink); }.home-page .section-heading h2 em { color: var(--home-blush); }
.home-page .criacao-card { border-color: rgba(80,55,49,.1); background: var(--home-paper); box-shadow: 0 8px 20px rgba(80,55,49,.06); }.home-page .criacao-card:hover { box-shadow: 0 14px 28px rgba(80,55,49,.11); }
.home-page .criacao-image-placeholder, .home-page .criacao-image-placeholder.cake, .home-page .criacao-image-placeholder.share { background: #ead3d1; }.home-page .criacao-image-placeholder.cake { background: #e5d1c5; }.home-page .criacao-image-placeholder.share { background: #e6d8c6; }
.home-page .criacao-image-placeholder svg { color: var(--home-blush); background: rgba(251,248,244,.62); border-color: rgba(184,121,130,.45); }.home-page .criacao-body span { color: var(--home-blush); }
.home-page .outline-dark { border-color: var(--home-blush); color: var(--home-blush); }.home-page .outline-dark:hover { background: var(--home-blush); border-color: var(--home-blush); color: #fff; }
.home-page .cta-banner { background: var(--home-ink); }.home-page .cta-banner .section-kicker { color: var(--gold-soft); }.home-page .cta-banner h2 em { color: #dfa3a9; }
.home-page .site-footer { background: var(--home-ink); }
