@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6efe4;
  --forest: #6b2a38;
  --forest-soft: #8a3d4c;
  --gold: #c9a24a;
  --text: #231714;
  --muted: #6d5c54;
  --err: #c04545;
  --surface: #fffdf8;
  --line: rgba(35, 23, 20, 0.12);
  --font: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body.loja-body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(201, 162, 74, 0.16), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}

.loja-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 239, 228, 0.88);
  backdrop-filter: blur(10px);
}

.pill {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--forest);
  border: 1px solid rgba(107, 42, 56, 0.28);
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
}

.loja-main {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hint {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0;
}

.central { margin: 1rem 0 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.err { color: var(--err); }
.ok { color: var(--forest-soft); }

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

select, input {
  font-size: 1.05rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

input {
  font-size: 1.15rem;
  text-align: left;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 1rem;
  margin-top: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--forest); color: #fbf6ed; }
.btn-ghost {
  background: transparent;
  border-color: rgba(107, 42, 56, 0.3);
  color: var(--forest);
}

.qr-panel { text-align: center; }
.valor-big { font-size: 2.4rem; margin: 0.5rem 0 0; font-weight: 700; color: var(--forest); }
.qr-img {
  margin: 1rem auto;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--line);
}

textarea {
  width: 100%;
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0.5rem;
  font-size: 0.75rem;
}

.pedido-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.75rem 0;
}

.pedido-card p { margin: 0.35rem 0; }
.pedido-card .btn-primary { margin-top: 0.75rem; }
.pedido-card .pedido-cliente {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--forest);
}

/* PWA install (loja) */
.pwa-install-banner {
  display: none;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.18), rgba(107, 42, 56, 0.06));
}
.pwa-install-banner.is-visible,
.pwa-install-banner:not([hidden]) { display: block; }
.pwa-install-banner[hidden] { display: none !important; }
.pwa-install-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}
.pwa-install-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text);
}
.pwa-install-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}
.pwa-install-banner__btn {
  border: 0;
  border-radius: 0.35rem;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--forest);
  color: #fbf6ed;
  flex: 1;
}
.pwa-install-banner__link {
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.35rem;
}
.pwa-install-banner__dismiss {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}
.pwa-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  pointer-events: none;
}
.pwa-install-sheet.is-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}
.pwa-install-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 23, 20, 0.55);
  z-index: 0;
}
.pwa-install-sheet__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  max-height: min(85dvh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 0;
  box-sizing: border-box;
  pointer-events: auto;
}
.pwa-install-sheet__block[hidden] { display: none !important; }
.pwa-install-sheet__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.pwa-install-sheet__header h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--forest);
  padding-right: 0.25rem;
}
.pwa-install-sheet__close {
  border: 0;
  background: #f3ebe3;
  color: var(--forest);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 4;
  -webkit-tap-highlight-color: transparent;
}
.pwa-install-sheet__body {
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.pwa-install-sheet__block { margin-bottom: 0.9rem; }
.pwa-install-sheet__block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
}
.pwa-install-sheet__block p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}
.pwa-install-sheet__note {
  margin: 0.5rem 0 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}
.pwa-install-sheet__done {
  width: 100%;
  margin: 0;
}
@media (min-width: 480px) {
  .pwa-install-sheet.is-open {
    align-items: center;
    padding: 0.75rem;
  }
  .pwa-install-sheet__panel {
    width: min(420px, 100%);
    border-radius: 16px;
  }
}


