:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #341c21;
  background: #fff9f1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 22px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ecdcd0;
  background: #fffdf9;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #6e1731;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
}
.brand small {
  display: block;
  letter-spacing: 3px;
  font-size: 10px;
  margin-top: 5px;
}
.mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #871e39;
  color: #fff;
  border-radius: 50%;
  font-size: 21px;
}
.tag {
  font-size: 13px;
  color: #85594f;
}
main {
  max-width: 1200px;
  margin: 38px auto;
  min-height: 65vh;
  padding: 0 24px;
}
h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 16px 0;
}
h2 {
  font-size: 25px;
  margin-top: 0;
}
p {
  line-height: 1.6;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9b3535;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
  align-items: center;
}
.hero aside {
  padding: 32px;
  background: #761c32;
  color: #fff9f1;
  border-radius: 22px;
}
.hero aside p {
  color: #efcfc0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}
.card {
  padding: 24px;
  border: 1px solid #ead8ca;
  background: #fffefa;
  border-radius: 16px;
}
.card h3 {
  margin-top: 0;
}
.price {
  font-size: 24px;
  font-weight: 800;
  color: #931f39;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  background: #f6e4d3;
  color: #773724;
  border-radius: 99px;
  font-size: 12px;
}
.muted,
small {
  color: #86695e;
}
.notice {
  background: #f6e7d8;
  border-left: 4px solid #c35b2f;
  border-radius: 6px;
  padding: 18px;
  margin: 18px 0;
}
.actions,
nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
button,
.button {
  cursor: pointer;
  border: 0;
  background: #8d243e;
  color: white;
  border-radius: 9px;
  padding: 12px 17px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
button.secondary {
  background: #f0e2d6;
  color: #66243a;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 11px;
  margin: 7px 0 16px;
  border: 1px solid #cdb8aa;
  background: #fff;
  border-radius: 7px;
  font: inherit;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
}
label {
  font-size: 14px;
}
form {
  max-width: 680px;
}
.error {
  color: #a21829;
}
.success {
  color: #276143;
}
.order {
  margin: 15px 0;
}
.order ul {
  padding-left: 20px;
  line-height: 1.8;
}
.split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.metrics .card {
  min-width: 180px;
}
.metrics strong {
  font-size: 26px;
  display: block;
}
.timeline {
  border-left: 2px solid #cf8d76;
  padding-left: 24px;
  line-height: 2;
}
footer {
  font-size: 12px;
  line-height: 1.8;
  padding: 28px 6%;
  border-top: 1px solid #ead8ca;
  color: #86695e;
}
footer a {
  color: inherit;
}
.login {
  max-width: 420px;
  margin: 60px auto;
}
.empty {
  padding: 40px;
  text-align: center;
  border: 1px dashed #cdb8aa;
  border-radius: 15px;
}
.loading {
  opacity: 0.6;
}
@media (max-width: 650px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .tag {
    display: none;
  }
  main {
    padding: 0 16px;
  }
  header {
    padding: 16px;
  }
  .brand {
    font-size: 20px;
  }
  .split {
    display: block;
  }
}
@media print {
  header,
  footer,
  nav,
  button,
  .actions,
  .metrics,
  #filters {
    display: none;
  }
  main {
    margin: 0;
  }
  .card {
    break-inside: avoid;
  }
  .order {
    border: 1px solid black;
  }
  .notice {
    display: none;
  }
}
.hero aside .eyebrow {
  color: #f2c6af;
}

code {
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
.section-heading {
  margin: 30px 0 22px;
}
.section-heading h2 {
  font-size: 32px;
  margin: 10px 0;
}
.wa-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}
.wa-layout .card {
  min-width: 0;
}
.wa-layout .card h3 {
  margin-top: 0;
}
.wa-controls {
  gap: 8px;
}
.wa-controls button {
  padding: 11px 13px;
  font-size: 14px;
}
.qr-box {
  margin: 20px auto;
  max-width: 320px;
  background: white;
  border: 1px solid #ead8ca;
  border-radius: 12px;
}
.qr-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.qr-placeholder {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  background: #faf4eb;
  border: 1px dashed #dac2b4;
  border-radius: 12px;
  margin-top: 20px;
}
.qr-symbol {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px dashed #c29b8f;
  border-radius: 12px;
  font-size: 26px;
  color: #9d786a;
  margin-bottom: 20px;
}
.qr-placeholder p {
  max-width: 320px;
  color: #86695e;
}
.badge.connected {
  background: #e5f3e8;
  color: #1d693e;
}
.connection-ready {
  text-align: center;
  padding: 70px 20px;
  background: #eff8f1;
  border-radius: 12px;
  margin: 22px 0;
}
.connection-ready strong {
  display: block;
  font-size: 25px;
  margin-top: 12px;
}
.status-dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #278752;
}
.danger {
  color: #a21d35 !important;
}
.compact {
  font-size: 13px;
  padding: 16px;
}
.compact p {
  line-height: 1.5;
}
.compact label {
  font-size: 13px;
}
#wa-feedback {
  min-height: 25px;
  font-weight: 600;
}
#wa-metrics .card {
  flex: 1;
  min-width: 200px;
}
.catalog-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.product-editor .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.product-editor label {
  line-height: 1.5;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details form {
  margin-top: 20px;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
input[readonly] {
  background: #f6efe7;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cb9673;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .wa-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Rastreamento de entrega 0.5.0 */
.live-map {
  grid-column: 1 / -1;
}
.live-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 14px;
  margin: 18px 0 12px;
  background: #f5eee6;
}
.map-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  border: 1px dashed #cdb8aa;
  border-radius: 14px;
  background: #faf4eb;
}
.courier-card {
  max-width: 760px;
}
.courier-card h2 {
  line-height: 1.35;
}
.button-link {
  display: inline-block;
  background: #98203d;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 9px;
}
.order-address {
  max-width: 720px;
  line-height: 1.45;
}
@media (max-width: 650px) {
  .live-map iframe { height: 320px; }
  .courier-card .actions button { width: 100%; }
}


/* 0.5.1 - acesso do motoboy no card do pedido */
.delivery-access-box {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #ead2c3;
  border-radius: 14px;
  background: #fffaf5;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.delivery-access-box p { margin: 6px 0 0; }
.delivery-access-content { width: 100%; }
.delivery-access-content label { display: block; margin-top: 10px; }
.delivery-access-content input { width: 100%; margin-top: 6px; }
@media (max-width: 720px) {
  .delivery-access-box { flex-direction: column; }
  .delivery-access-content .actions button { width: 100%; }
}


/* Rastreamento 0.5.3 */
.leaflet-delivery-map {
  width: 100%;
  height: 390px;
  border-radius: 18px;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid var(--line, #ead7c7);
  background: #f4eee7;
}
.tracking-marker {
  background: transparent;
  border: 0;
}
.tracking-marker span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffaf5;
  border: 3px solid #8f1d3b;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  font-size: 23px;
  line-height: 1;
}
.tracking-marker-courier span {
  width: 48px;
  height: 48px;
  font-size: 27px;
  border-width: 4px;
}
.tracking-marker-start span { border-color: #9a6a31; }
.tracking-marker-destination span { border-color: #2c7a55; }
.tracking-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 14px;
}
.tracking-legend span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f7eee6;
  font-size: .9rem;
}
.customer-location {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #ead7c7);
}
.customer-location p { margin: 6px 0 12px; }
#destination-feedback { display: inline-block; margin-left: 8px; }
@media (max-width: 640px) {
  .leaflet-delivery-map { height: 330px; border-radius: 14px; }
  .tracking-marker span { width: 38px; height: 38px; font-size: 21px; }
  .tracking-marker-courier span { width: 44px; height: 44px; font-size: 25px; }
}

/* 0.6.0 - cardapio e pedidos pelo site */
.storefront-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: -10px 0 30px;
}
.storefront-nav a {
  color: #6e1731;
  text-decoration: none;
  font-weight: 700;
}
.storefront-nav a:hover { text-decoration: underline; }
.storefront-primary { padding: 14px 22px; }
.secondary-link {
  background: #f0e2d6;
  color: #66243a;
}
.storefront-section { margin: 44px 0; }
.category-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.category-tile {
  min-height: 110px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #ead8ca;
  background: linear-gradient(145deg, #fffefa, #f8eadf);
  color: #6e1731;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  font-weight: 800;
}
.category-tile small { font-weight: 500; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  border: 1px solid #ead8ca;
  background: #fffefa;
  border-radius: 18px;
  overflow: hidden;
}
.product-card > div:last-child { padding: 18px; }

.product-photo {
  height: 170px;
  background: #f0e2d6;
  overflow: hidden;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-photo.compact {
  width: 116px;
  height: 92px;
  border-radius: 14px;
  flex: 0 0 auto;
}
.product-photo.compact img { border-radius: inherit; }

.product-art {
  height: 120px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0d6c7, #8d243e);
  color: #fff;
  font-weight: 900;
  font-size: 38px;
}
.product-art.compact {
  width: 92px;
  height: 78px;
  border-radius: 14px;
  font-size: 28px;
}
.menu-head,
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.menu-head h1,
.checkout-head h1 { margin-bottom: 8px; }
.store-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.menu-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0 14px;
  background: rgba(255,249,241,.96);
  backdrop-filter: blur(10px);
}
.menu-toolbar input { margin-bottom: 10px; }
.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.chip {
  white-space: nowrap;
  background: #f0e2d6;
  color: #66243a;
  padding: 9px 13px;
  border-radius: 999px;
}
.chip.active { background: #8d243e; color: #fff; }
.menu-products {
  display: grid;
  gap: 14px;
  padding-bottom: 120px;
}
.menu-product {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ead8ca;
  background: #fffefa;
  border-radius: 18px;
  padding: 18px;
}
.menu-product-copy h3 { margin: 4px 0 6px; }
.menu-product-copy p { margin: 5px 0; }
.menu-price { display: block; margin-top: 10px; color: #8d243e; font-size: 20px; }
.menu-product-action {
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.web-cart {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 24px));
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(70,24,35,.20);
  background: #fffefa;
  border: 1px solid #e2cabb;
  padding: 14px 16px;
}
.web-cart > div:first-child { display: flex; flex-direction: column; }
.web-cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.web-cart-summary > div { display: flex; flex-direction: column; gap: 2px; }
.cart-detail {
  max-height: 65vh;
  overflow-y: auto;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ead8ca;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1e4da;
}
.cart-line small { display: block; margin-top: 3px; }
.cart-line input { margin: 8px 0 0; }
.qty-control { display: flex; align-items: center; gap: 9px; }
.qty-control button { padding: 7px 11px; }
.cart-total,
.checkout-grand {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 18px;
}
.checkout-button { width: 100%; text-align: center; }
.disabled-link { opacity: .55; pointer-events: none; }
.checkout-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.checkout-steps span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0e2d6;
  color: #795748;
  font-size: 12px;
}
.checkout-steps .active { background: #8d243e; color: #fff; }
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 22px;
  align-items: start;
}
.checkout-form { max-width: none; }
.checkout-block { margin-bottom: 16px; }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.choice-card {
  border: 1px solid #dbc6b7;
  border-radius: 14px;
  padding: 14px;
  background: #fffdf9;
}
.choice-card input { display: inline; width: auto; margin: 0 8px 0 0; }
.choice-card small { display: block; margin: 8px 0 0 24px; }
.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.address-grid .wide { grid-column: 1 / -1; }
.payment-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.payment-list label {
  border: 1px solid #dbc6b7;
  border-radius: 12px;
  padding: 12px;
  background: #fffdf9;
}
.payment-list input { display: inline; width: auto; margin: 0 7px 0 0; }
.checkout-submit { width: 100%; font-size: 17px; padding: 15px; }
.checkout-summary { position: sticky; top: 20px; }
.checkout-summary hr { border: 0; border-top: 1px solid #ead8ca; }
.order-success { text-align: center; max-width: 720px; margin: 10px auto 34px; }
.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2c7a55;
  color: white;
  font-size: 36px;
  font-weight: 900;
}
.orders-history { display: grid; gap: 14px; }
.pix-success input { font-weight: 700; }

@media (max-width: 760px) {
  main { margin-top: 22px; padding: 0 14px; }
  .storefront-nav { overflow-x: auto; white-space: nowrap; margin-bottom: 20px; }
  .storefront-hero { grid-template-columns: 1fr; gap: 18px; }
  .storefront-hero aside { padding: 22px; }
  .menu-head, .checkout-head { align-items: flex-start; flex-direction: column; }
  .store-status { align-items: flex-start; }
  .menu-product { padding: 14px; }
  .product-art.compact { width: 76px; height: 68px; }
  .product-photo.compact { width: 92px; height: 76px; }
  .web-cart { bottom: 10px; }
  .cart-line { grid-template-columns: 1fr; }
  .qty-control { justify-content: flex-start; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .choice-grid, .payment-list, .address-grid { grid-template-columns: 1fr; }
  .address-grid .wide { grid-column: auto; }
}

.image-credits-note { margin: -90px 0 120px; font-size: 13px; color: #7f655e; }
.image-credits-note a { color: #8d243e; }


/* 0.6.2 - Pagamentos e zonas de entrega */
.settings-form hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line, #ddd); }
.payment-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0 22px; }
.payment-admin-grid label { display: flex; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line, #ddd); border-radius: 12px; }
.delivery-zone-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr .7fr auto auto; gap: 10px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line, #ddd); }
.delivery-zone-row label { margin: 0; }
.zone-active { min-width: 86px; padding-bottom: 10px; }
.notice.compact.success { border-color: #5e8f67; }
.notice.compact.error { border-color: #b55353; }
@media (max-width: 900px) { .delivery-zone-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .delivery-zone-row { grid-template-columns: 1fr; } }
