/* Pizzaria Cardápio — visual moderno, quente e limpo */

.layout-app {
  --gutter: clamp(1rem, 4vw, 1.35rem);
  --bg: #faf8f5;
  --bg-warm: #f3ebe3;
  --surface: #ffffff;
  --surface-soft: #fff9f4;
  --ink: #1f1712;
  --ink-soft: #3d322b;
  --muted: #7a6b5e;
  --muted-light: #a8988a;
  --border: #ebe3da;
  --border-strong: #ddd2c6;
  --accent: #d14e22;
  --accent-hover: #b8421c;
  --accent-soft: #fff0e8;
  --accent-ring: rgba(209, 78, 34, 0.18);
  --wa: #1fa855;
  --wa-hover: #188f48;
  --header-h: 0px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(31, 23, 18, 0.05);
  --shadow-md: 0 12px 36px rgba(31, 23, 18, 0.1);
  --shadow-lg: 0 20px 50px rgba(31, 23, 18, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.layout-app {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 55% at 50% -8%, rgba(209, 78, 34, 0.07), transparent 58%),
    linear-gradient(180deg, #fdfbf8 0%, var(--bg) 32%, #f6f0ea 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.layout-app::after {
  display: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.wrap {
  width: min(720px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 300;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* Banners */
.layout-app .demo-banner {
  margin: 0;
  padding: 0.42rem var(--gutter);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #8f3a18, var(--accent), #8f3a18);
}

.promo-banner {
  margin: 0;
  padding: 0.7rem var(--gutter);
  background: linear-gradient(90deg, #fff4e8, #ffe8d4);
  border-bottom: 1px solid #f0d4b8;
  color: #6b3f1a;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.promo-banner a {
  color: var(--accent-hover);
  font-weight: 700;
  text-decoration: none;
}

.promo-banner a:hover {
  text-decoration: underline;
}

.layout-app .store-closed-banner {
  margin: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: #b83228;
  color: #fff;
}

/* Hero da loja */
.layout-app .shop-hero {
  margin-bottom: 0.5rem;
}

.layout-app .shop-hero__cover {
  position: relative;
  height: clamp(148px, 34vw, 220px);
  overflow: hidden;
}

.layout-app .shop-hero__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 23, 18, 0.12) 0%,
    rgba(31, 23, 18, 0.04) 42%,
    var(--bg) 100%
  );
}

.layout-app .shop-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.layout-app .shop-hero__card {
  position: relative;
  z-index: 1;
  margin-top: -2.75rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-md);
}

.layout-app .shop-hero__head {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  margin-bottom: 1rem;
}

.layout-app .shop-hero__logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.layout-app .shop-card__title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 4.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.layout-app .shop-card__title p {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.layout-app .shop-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.layout-app .shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}

.layout-app .shop-chip--accent {
  background: var(--accent-soft);
  border-color: #f5cdb8;
  color: var(--accent-hover);
}

.layout-app .shop-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fa85a;
  box-shadow: 0 0 0 3px rgba(47, 168, 90, 0.2);
  flex-shrink: 0;
}

.layout-app .shop-hero__links {
  margin: 0;
  padding: 0.85rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.layout-app .shop-hero__links li {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.layout-app .shop-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.45rem;
}

.layout-app .shop-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.layout-app .shop-link:hover {
  text-decoration: underline;
}

.layout-app .shop-link--phone::before {
  content: "📞 ";
  font-size: 0.9em;
}

/* Catálogo */
.layout-app .section--catalog-app {
  padding: 0.25rem 0 2.75rem;
}

.layout-app .catalog-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 0.85rem 0.65rem;
  margin-bottom: 0.75rem;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.layout-app .catalog-sticky__head {
  margin-bottom: 0.7rem;
}

.layout-app .catalog-label {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.layout-app .catalog-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.layout-app .catalog-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.layout-app .catalog-filters::-webkit-scrollbar {
  display: none;
}

.layout-app .filter-btn {
  flex-shrink: 0;
  padding: 0.48rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.layout-app .filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink-soft);
}

.layout-app .filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(209, 78, 34, 0.28);
}

.layout-app .section--catalog-app > .wrap:last-child {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.layout-app .menu-list {
  display: grid;
  gap: 0.75rem;
}

.layout-app .menu-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.layout-app .menu-item:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.layout-app .menu-item__thumb {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.layout-app .menu-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout-app .menu-item__thumb--drink {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  background: linear-gradient(145deg, #fff8f2, #f3e8dc);
}

.layout-app .menu-item__badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
}

.layout-app .menu-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.layout-app .menu-item__body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.layout-app .menu-item__body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.layout-app .menu-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.layout-app .menu-item__price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-hover);
  white-space: nowrap;
}

.layout-app .menu-item__price small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-light);
}

.layout-app .btn-add {
  min-height: 38px;
  padding: 0.42rem 1rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(209, 78, 34, 0.25);
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.layout-app .btn-add:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.layout-app .btn-add:active {
  transform: translateY(0);
}

.layout-app .catalog-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-item.is-soldout {
  opacity: 0.62;
}

.menu-item.is-soldout:hover {
  transform: none;
}

.menu-item__soldout {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b83228;
  text-transform: uppercase;
}

.menu-item.is-highlight {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Combos */
.combo-section {
  margin-bottom: 1rem;
}

.combo-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff8f2 0%, #fff 55%);
  border: 1px solid #f0d4b8;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
}

.combo-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
}

.combo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.combo-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Sacola fixa */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: 0.5rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.cart-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cart-bar__summary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  padding: 0.3rem 0.45rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.cart-bar__count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.cart-bar__total {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.cart-bar__hint {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.cart-bar__btn {
  flex-shrink: 0;
}

/* Botões */
.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(209, 78, 34, 0.28);
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-checkout:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cart-bar__btn.btn-checkout {
  min-height: 46px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn-outline--checkout {
  flex: 1 1 6rem;
  min-height: 48px;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
}

.btn-outline--checkout:hover {
  background: var(--surface-soft);
}

.btn-outline--calc {
  width: 100%;
  margin: 0.35rem 0 0.75rem;
}

.btn-wa--hero {
  border-radius: var(--radius-pill);
  background: var(--wa);
}

.btn-wa--hero:hover {
  background: var(--wa-hover);
}

/* Modais */
.cart-modal,
.builder-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.builder-modal {
  z-index: 180;
}

.cart-modal[hidden],
.builder-modal[hidden] {
  display: none;
}

.cart-modal__backdrop,
.builder-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 23, 18, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cart-modal__panel,
.builder-modal__panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow: auto;
  margin: 0;
  padding: 1.2rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.builder-modal__panel--sm {
  max-height: 50vh;
}

body.cart-open {
  overflow: hidden;
}

.cart-modal__head,
.builder-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cart-modal__head h2,
.builder-modal__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-modal__steps {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.cart-modal__close,
.builder-modal__close {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.cart-modal__close:hover,
.builder-modal__close:hover {
  background: var(--bg-warm);
  color: var(--ink);
}

.checkout-progress {
  height: 4px;
  margin: 0 0 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-warm);
  overflow: hidden;
}

.checkout-progress__bar {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--accent), #e86a3a);
  transition: width 0.35s var(--ease);
}

.checkout-intro,
.cart-modal__hint,
.pickup-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-panel[hidden] {
  display: none;
}

.checkout-notice {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  background: #fdecea;
  color: #8a2a1f;
  border: 1px solid #f5c4be;
}

.checkout-notice.is-ok {
  background: #e8f5e9;
  color: #2e6b34;
  border-color: #b9dfbc;
}

.cart-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-modal__items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.cart-modal__items--editable {
  gap: 0.65rem;
}

.cart-edit-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-edit-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-edit-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cart-edit-item__info strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.cart-edit-item__info span,
.cart-edit-detail {
  font-size: 0.78rem;
  color: var(--muted);
}

.cart-edit-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-edit-item__line {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.cart-edit-item__edit {
  font-size: 0.78rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.cart-empty-msg,
.cart-min-order {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.cart-min-order {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid #f0cdb8;
  color: var(--accent-hover);
}

.cart-summary-title {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-modal__summary {
  padding: 0.85rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.cart-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.cart-line strong {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.cart-line--sub {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.cart-line--total {
  font-size: 0.95rem;
  color: var(--ink);
}

.cart-line--total strong {
  color: var(--accent);
  font-size: 1.05rem;
}

.checkout-footer {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.checkout-footer__totals {
  margin-bottom: 0.85rem;
}

.checkout-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.checkout-next {
  flex: 2 1 10rem;
  min-height: 48px;
  justify-content: center;
}

.layout-app .checkout-footer__actions #checkout-submit,
.layout-app .checkout-footer__actions #checkout-submit[hidden] {
  display: none !important;
}

.layout-app .checkout-footer__actions.is-step-3 #checkout-submit {
  display: inline-flex !important;
  width: 100%;
}

.layout-app .checkout-footer__actions.is-step-3 #checkout-next,
.layout-app .checkout-footer__actions.is-step-3 #checkout-next[hidden] {
  display: none !important;
}

.layout-app .checkout-footer__actions button[hidden] {
  display: none !important;
}

.cart-modal__address[hidden] {
  display: none;
}

.cart-modal__submit {
  width: 100%;
  margin-top: 0.25rem;
}

/* Campos */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field > span,
.field legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.65rem;
}

.field--radio {
  border: none;
  margin: 0;
  padding: 0;
}

.field--radio legend {
  margin-bottom: 0.45rem;
}

.radio-pill {
  display: inline-flex;
  margin-right: 0.5rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  display: inline-block;
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.radio-pill input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.field-hint {
  font-size: 0.72rem;
  color: var(--muted-light);
}

/* Builder */
.builder-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.builder-form__img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  border: 1px solid var(--border);
}

.option-grid,
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.check-pill {
  cursor: pointer;
}

.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-pill span {
  display: inline-block;
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}

.check-pill input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.builder-price {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.builder-price strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.builder-submit {
  width: 100%;
}

.cart-remove {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem 0.55rem;
}

.cart-remove:hover {
  color: #c44;
  border-color: #f0c4be;
  background: #fff5f3;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  overflow: hidden;
}

.cart-qty__btn {
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--bg-warm);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.cart-qty__btn:hover {
  background: var(--border);
}

.cart-qty__n {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
}

/* Entrega */
.delivery-route-status {
  margin: 0 0 0.85rem;
  padding: 0.68rem 0.78rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.45;
}

.delivery-route-status.is-pending {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted);
}

.delivery-route-status.is-loading {
  background: #eef4fc;
  border: 1px solid #c5d8f0;
  color: #3a5578;
}

.delivery-route-status.is-ok {
  background: #edf7ef;
  border: 1px solid #b8dfc0;
  color: #1f5c32;
}

.delivery-route-status.is-error {
  background: #fdf0ee;
  border: 1px solid #e8c4be;
  color: #8f2d22;
}

.delivery-route-status.is-free {
  background: #e8f5e9;
  color: #2e6b34;
  border-color: #b9dfbc;
}

.pix-info {
  margin: 0.75rem 0;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: #eef8f0;
  border: 1px solid #c5e4ca;
}

.pix-info__key {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  margin: 0.35rem 0;
}

.pix-info__hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkout-captcha {
  margin: 0.75rem 0 0.25rem;
  min-height: 65px;
}

.checkout-next:disabled,
.cart-modal__submit:disabled,
.btn-checkout:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

body.layout-app.store-closed .btn-add,
body.layout-app.store-closed .cart-bar__btn,
body.layout-app.store-closed .btn-checkout {
  pointer-events: none;
  opacity: 0.55;
}

/* Rodapé */
.layout-app .footer--app {
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.layout-app .footer-app__inner p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.layout-app .footer-app__inner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.layout-app .footer-app__inner a:hover {
  text-decoration: underline;
}

body.layout-app.has-cart .footer--app {
  padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
}

/* Responsivo */
@media (min-width: 640px) {
  .wrap {
    width: min(760px, 100%);
  }

  .layout-app .menu-item__thumb {
    width: 104px;
    height: 104px;
  }

  .layout-app .menu-item__body h3 {
    font-size: 1.08rem;
  }
}

@media (max-width: 560px) {
  .layout-app .menu-item__foot {
    flex-wrap: wrap;
  }

  .layout-app .btn-add {
    min-height: 40px;
    padding: 0.48rem 1.05rem;
  }

  .layout-app .shop-hero__card {
    margin-top: -2.25rem;
  }
}
