:root {
  --cor-principal: #7f3aed;
  --cor-escura: #32125c;
  --cor-fundo: #faf9fc;
  --cor-texto: #18171c;
  --border: #e6e1ed;
  --muted: #666172;
  --on-brand: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.5;
}
a {
  color: var(--cor-escura);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--cor-texto);
  padding: 10px 17px;
  font-weight: 600;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:hover {
  filter: brightness(0.96);
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c7bfd2;
  border-radius: 10px;
  background: #fff;
  color: var(--cor-texto);
  min-height: 48px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--cor-principal);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
label > span {
  display: block;
}
label input,
label select,
label textarea {
  margin-top: 6px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.3px;
  margin-bottom: 12px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}
h3 {
  font-size: 18px;
  margin-bottom: 7px;
}
.primary {
  background: var(--cor-principal);
  color: var(--on-brand);
  border-color: var(--cor-principal);
}
.wide {
  width: 100%;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 750;
  color: var(--cor-escura);
  margin-bottom: 10px;
}
.brand {
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -1.7px;
  text-decoration: none;
  color: inherit;
}
.brand span {
  color: #b798f5;
  font-size: 12px;
  margin-left: 3px;
}
.store-header {
  background: var(--cor-escura);
  color: white;
  padding: 24px max(20px, calc((100vw - 1080px) / 2)) 38px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff30;
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.topline > span {
  font-size: 10px;
  letter-spacing: 2px;
}
.store-info {
  display: flex;
  gap: 23px;
  align-items: center;
}
.store-info .logo {
  width: 94px;
  height: 94px;
  border: 5px solid #ffffff24;
  border-radius: 24px;
  object-fit: cover;
}
.store-copy {
  max-width: 680px;
}
.store-copy p {
  color: #e9e1f5;
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  border: 1px solid #d6d3d1;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: #44403c;
}
.badge.open {
  color: #166534;
  background: #dcfce7;
  border-color: #b6deb6;
}
.badge.closed {
  color: #991b1b;
  background: #fee2e2;
}
.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.hours {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.9;
  white-space: pre-wrap;
}
.menu-main {
  max-width: 1120px;
  padding: 32px 20px 110px;
  margin: auto;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-title h2 {
  font-size: 28px;
}
.busca {
  margin: 8px 0 20px;
}
.busca label {
  font-weight: 500;
  margin: 0 0 6px;
}
.busca input {
  border-radius: 12px;
  height: 52px;
}
nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 18px;
  position: sticky;
  top: 0;
  background: var(--cor-fundo);
  z-index: 2;
  padding-top: 12px;
}
nav button {
  flex: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 14px;
}
nav button.ativa {
  background: var(--cor-principal);
  color: var(--on-brand);
  border-color: var(--cor-principal);
}
.category-section {
  margin-top: 20px;
  scroll-margin-top: 90px;
}
.category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-heading span {
  font-size: 12px;
  background: #f0ebf8;
  padding: 3px 10px;
  border-radius: 20px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.product-card {
  display: flex;
  text-align: left;
  gap: 18px;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  min-height: 165px;
  box-shadow: 0 3px 10px #32125c04;
  align-items: center;
  font-weight: 400;
}
.product-card:hover {
  border-color: #7f3aed88;
  transform: translateY(-1px);
}
.product-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card h3 {
  font-size: 17px;
}
.price {
  font-size: 16px;
  color: var(--cor-escura);
  font-weight: 750;
}
.product-image {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 13px;
}
.product-thumb {
  position: relative;
  flex: none;
}
.add-dot {
  position: absolute;
  right: -5px;
  bottom: -5px;
  background: var(--cor-principal);
  color: var(--on-brand);
  border: 3px solid white;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 23px;
}
footer {
  text-align: center;
  padding: 28px 5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
  border-top: 1px solid var(--border);
}
.cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--cor-principal);
  color: var(--on-brand);
  border: 0;
  box-shadow: 0 10px 30px #32125c40;
  border-radius: 16px;
  padding: 17px 22px;
  z-index: 4;
}
.cart-bar[hidden] {
  display: none;
}
#cart-count {
  background: #0002;
  border-radius: 8px;
  padding: 3px 10px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 25px;
  width: min(580px, calc(100% - 24px));
  max-height: 90dvh;
  color: var(--cor-texto);
  background: var(--cor-fundo);
}
dialog::backdrop {
  background: #18171c99;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head button {
  border: 0;
  background: transparent;
  font-size: 20px;
}
.hero-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}
.extra-group {
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 14px;
  margin: 18px 0;
}
.extra-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
}
.extra-option span {
  flex: 1;
}
.extra-option small {
  font-weight: 400;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stepper button {
  min-width: 44px;
  padding: 8px;
}
.cart-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cart-item p {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
}
.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.link-button {
  border: 0;
  background: none;
  color: var(--cor-escura);
  text-decoration: underline;
  font-size: 13px;
}
.totals {
  margin: 20px 0;
  padding: 18px;
  background: #f0ebf8;
  border-radius: 12px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0;
}
.total-row:last-child {
  font-weight: 750;
  font-size: 20px;
  padding-top: 10px;
  border-top: 1px solid #d9d0e6;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0;
}
legend {
  font-weight: 750;
  font-size: 18px;
  margin-bottom: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}
.privacy {
  font-size: 12px;
  color: var(--muted);
}
[role="alert"],
.error {
  color: #a12716;
  white-space: pre-wrap;
}
.welcome {
  max-width: 740px;
  margin: 10vh auto;
  padding: 30px;
}
.welcome .brand {
  display: inline-block;
  margin-bottom: 55px;
  color: var(--cor-escura);
}
.welcome h1 {
  font-size: clamp(40px, 6vw, 64px);
}
.welcome > p {
  max-width: 500px;
}
.welcome form {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  max-width: 460px;
}
.welcome form label {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .store-header {
    padding: 18px 20px 28px;
  }
  .store-info {
    gap: 15px;
    align-items: flex-start;
  }
  .store-info .logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .store-copy h1 {
    font-size: 27px;
  }
  .store-copy p {
    font-size: 13px;
  }
  .store-meta {
    gap: 8px;
    font-size: 12px;
  }
  .topline > span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .menu-main {
    padding-top: 26px;
  }
  .section-title > .muted {
    display: none;
  }
  .section-title h2 {
    font-size: 25px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    min-height: 145px;
    padding: 15px;
  }
  .product-image {
    width: 108px;
    height: 108px;
  }
  .cart-bar {
    bottom: 12px;
    padding: 14px 16px;
  }
  .cart-bar span {
    font-size: 14px;
  }
  dialog {
    padding: 20px;
  }
  .hero-image {
    height: 180px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      filter 0.15s,
      transform 0.15s;
  }
}
.whatsapp-link {
  display: block;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  min-height: 48px;
}
.order-message {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 12px;
  background: #fff;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.store-banner {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin: 20px auto;
}
body {
  overflow-wrap: break-word;
}
dialog {
  overflow-wrap: anywhere;
}
