:root {
  --bg: #f2f2f2;
  --bg-deep: #e8e8e8;
  --surface: #ffffff;
  --ink: #222;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --brand: #b91c1c;
  --brand-deep: #8f1414;
  --brand-soft: #dc2626;
  --gold: #d4a017;
  --gold-soft: #f0d78c;
  --ok: #1f7a45;
  --danger: #b42318;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --nav-h: 72px;
  --fab-h: 64px;
  --top-nav-h: 56px;
  --side-w: 340px;
  --page-max: 1180px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}


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

button,
select,
textarea,
input {
  font: inherit;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Top nav — desktop Moriá */
.top-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--top-nav-h);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.top-nav__inner {
  width: min(var(--page-max), calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.top-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.top-nav__item.is-active,
.top-nav__item:hover {
  background: #fff;
  color: var(--brand);
}

.top-nav__item .cart-badge {
  position: static;
  margin-left: 2px;
}

.page {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding-bottom: calc(var(--nav-h) + var(--fab-h) + 24px);
  background: transparent;
}

/* Cover wide banner */
.cover {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 0;
  background: #222;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Store band: logo left + info (Moriá) */
.store-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: end;
  margin: -36px 14px 0;
  padding: 0 0 12px;
}

.store-band__logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-soft), var(--brand-deep));
  color: #fff;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.store-band__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-band__info {
  min-width: 0;
  padding-bottom: 2px;
}

.store-band h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.store-band__meta {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.store-band__status {
  font-weight: 700;
}

.store-band__status.is-open { color: var(--ok); }
.store-band__status.is-closed { color: var(--danger); }

.linkish {
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.layout {
  display: block;
  margin: 0 14px;
}

.layout__main {
  min-width: 0;
}

.side-cart {
  display: none;
}

.action-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding: 14px;
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.action-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: var(--brand);
}

.action-row__text strong {
  display: block;
  font-size: .95rem;
}

.action-row__text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
}

.action-row__chev {
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
}

.loyalty-teaser {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 10px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.loyalty-teaser--side {
  margin: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.loyalty-teaser__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe8a3, #f0c14b);
  color: #7a4d00;
  font-weight: 800;
}

.loyalty-teaser strong {
  display: block;
  font-size: .95rem;
  color: var(--ink);
}

.loyalty-teaser p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.pay-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-pills span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
}

/* Carrossel de banners */
.promo-carousel {
  margin-top: 14px;
  position: relative;
}

.promo-carousel__viewport {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.promo-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.promo-banner {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 160px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #222;
}

.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-banner__copy {
  position: absolute;
  inset: auto 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  display: grid;
  gap: 6px;
}

.promo-banner__copy strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.promo-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.promo-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.promo-carousel__dot.is-active {
  width: 22px;
  background: var(--brand);
}

/* Side cart (desktop) */
.side-cart__card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.side-cart__delivery {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.side-cart__delivery strong {
  display: block;
  font-size: 0.92rem;
}

.side-cart__delivery p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.side-cart__delivery a,
.side-cart__delivery .linkish {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
}

.side-cart__bag {
  flex: 1;
  padding: 18px 16px;
  min-height: 180px;
}

.side-cart__empty {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  padding: 28px 8px;
}

.side-cart__empty[hidden],
[data-side-items][hidden] {
  display: none !important;
}

.side-cart__bag-icon {
  font-size: 2.4rem;
  opacity: 0.55;
}

.side-cart__empty p {
  margin: 0;
  font-weight: 700;
}

.side-line {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-remove {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.cart-remove:hover,
.cart-remove:focus-visible {
  color: var(--danger);
  background: #fef2f2;
  outline: none;
}

.cart-remove svg {
  width: 18px;
  height: 18px;
  display: block;
}

.side-line img,
.side-line__ph {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
}

.side-line h3 {
  margin: 0;
  font-size: 0.86rem;
}

.side-line p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.side-line__price {
  font-weight: 800;
  font-size: 0.86rem;
}

.side-cart__foot {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.side-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.btn-primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary.is-disabled,
.btn-primary:disabled {
  background: #f3a6a6;
  color: #fff;
  cursor: not-allowed;
}

.store-info-body {
  padding: 8px 18px 22px;
  display: grid;
  gap: 10px;
}

.store-info-body p { margin: 0; color: var(--muted); }
.store-info-body strong { color: var(--ink); }

.store-info-payments {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.store-info-payments h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.store-info-whatsapp {
  margin-top: 6px;
  background: var(--brand) !important;
  color: #fff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__panel--store-info {
  width: min(440px, calc(100% - 28px));
}

/* legacy store-card kept for safety */
.store-card {
  display: none;
}

.store-card__status {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.store-card__status.is-open { color: var(--ok); }
.store-card__status.is-closed { color: var(--danger); }

.info-row {
  display: grid;
  gap: 10px;
  margin: 14px 16px 0;
}

.info-chip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 14px;
  text-align: left;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(28, 18, 16, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.info-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(28, 18, 16, 0.08);
}

.info-chip strong {
  display: block;
  font-size: 0.95rem;
}

.info-chip small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.info-chip__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(92, 16, 24, 0.08);
  color: var(--brand);
  flex-shrink: 0;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
}

.sticky-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 0 8px;
  background: linear-gradient(180deg, rgba(242, 242, 242, 0.97), rgba(242, 242, 242, 0.88));
  backdrop-filter: blur(10px);
}

.category-select {
  flex: 0 0 auto;
  width: min(220px, 46%);
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.search-btn {
  flex: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
}

.search-btn__label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.section-head {
  margin: 18px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.promotions {
  margin: 18px 16px 8px;
}

.promotions__list {
  display: grid;
  gap: 12px;
}

.promo-card {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.promo-card__img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #2a1216;
}

.promo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-card__img .product-badge {
  top: 14px;
  left: 6px;
}

.promo-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.promo-card__body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.coupon-box {
  margin: 8px 0 4px;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.coupon-row input {
  text-transform: uppercase;
}

.coupon-msg {
  margin: 8px 0 0;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ok);
}

.coupon-msg.is-error {
  color: var(--danger);
}

.checkout-breakdown {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  font-size: .9rem;
  color: var(--muted);
}

.checkout-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-breakdown .is-discount {
  color: var(--ok);
  font-weight: 700;
}

.loyalty-box {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff8f2;
}

.loyalty-balance {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: .95rem;
}

.loyalty-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.loyalty-box .muted {
  margin: 8px 0 0;
  font-size: .84rem;
}

.featured {
  margin-top: 18px;
}

.featured__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78%);
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.featured__rail::-webkit-scrollbar { display: none; }

.featured-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.featured-card:active {
  transform: scale(0.985);
}

.featured-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-deep);
}

.featured-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card__body {
  padding: 12px 14px 16px;
}

.featured-card__body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.featured-card__body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffd84d 0%, #f5c400 100%);
  color: #1a1408;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-18deg);
  transform-origin: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.product-badge--sm {
  top: 8px;
  left: 2px;
  padding: 5px 8px;
  font-size: 0.58rem;
  border-radius: 6px;
}

.product-badge--pulse {
  animation: product-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes product-badge-pulse {
  0%, 100% {
    transform: rotate(-18deg) scale(1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
  50% {
    transform: rotate(-18deg) scale(1.1);
    box-shadow: 0 4px 14px rgba(245, 196, 0, 0.55), 0 0 0 7px rgba(245, 196, 0, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-badge--pulse {
    animation: none;
  }
}

/* compat legado */
.pill {
  position: absolute;
  top: 12px;
  left: 4px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffd84d 0%, #f5c400 100%);
  color: #1a1408;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(-18deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.pill--sm {
  top: 8px;
  left: 2px;
  padding: 5px 8px;
  font-size: 0.58rem;
}

.menu {
  margin-top: 10px;
}

.menu-section {
  padding-top: 18px;
  scroll-margin-top: 88px;
}

.product-list {
  display: grid;
  gap: 10px;
  padding: 0;
}

.product {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product:hover {
  box-shadow: 0 10px 24px rgba(28, 18, 16, 0.08);
}

.product__content h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.product__content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.price-row strong {
  color: var(--ok);
  font-size: 1.02rem;
}

.price-row s {
  color: #9a8a83;
  font-size: 0.86rem;
}

.discount {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f6ee;
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 800;
}

.product__media {
  position: relative;
}

.product__media img,
.product__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(160deg, #efe4d8, #dccbb8);
}

.product__placeholder {
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.add-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(92, 16, 24, 0.35);
}

.product.is-unavailable,
.featured-card.is-unavailable {
  opacity: 0.72;
  cursor: default;
}

.product.is-unavailable:hover {
  box-shadow: none;
  transform: none;
}

.product-unavailable-note,
.category-hours-note {
  margin: 8px 0 0;
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-badge--soldout,
.product-badge--hours {
  background: #7c2d12;
  color: #fff;
}

.modal__panel--addons {
  max-width: 420px;
}

.addon-modal__body {
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
}

.addon-modal__list {
  display: grid;
  gap: 8px;
}

.addon-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.addon-option input {
  margin-right: 8px;
}

.addon-option__left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.addon-modal__total {
  margin: 0;
  font-size: 0.95rem;
}

.cart-line__extras {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.search-hit.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.site-footer {
  margin: 28px 0 0;
  padding: 22px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0 0 4px; }
.site-footer a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

/* Bottom nav + FAB */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  transform: translateX(-50%);
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: var(--nav-h);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.bottom-nav__item {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #8b776f;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav__item.is-active,
.bottom-nav__item:hover {
  color: var(--brand);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--brand-deep);
  font-size: 0.68rem;
  line-height: 18px;
  font-weight: 800;
}

.alert-badge {
  background: #fff;
  color: var(--brand);
  animation: alert-pulse 1.6s ease-in-out infinite;
}

@keyframes alert-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.alerts-list {
  display: grid;
  gap: 10px;
}

.alerts-empty {
  margin: 18px 4px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.alert-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.alert-card.is-unread {
  border-color: rgba(185, 28, 28, 0.35);
  background: #fff8f7;
}

.alert-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.alert-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.alert-card__status--confirmado,
.alert-card__status--preparando {
  background: #fff7ed;
  color: #c2410c;
}

.alert-card__status--saiu_entrega {
  background: #eff6ff;
  color: #1d4ed8;
}

.alert-card__status--concluido {
  background: #ecfdf5;
  color: #047857;
}

.alert-card__status--cancelado {
  background: #fef2f2;
  color: #b91c1c;
}

.alert-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.alert-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.alerts-toast-host {
  position: fixed;
  top: calc(var(--top-nav-h, 0px) + 12px);
  left: 50%;
  z-index: 80;
  width: min(420px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.alerts-toast {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1f2937;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.alerts-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.alerts-toast strong {
  font-size: 0.86rem;
}

.alerts-toast span {
  font-size: 0.84rem;
  opacity: 0.92;
}

.checkout-eta {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f1ea;
}

.success-eta {
  margin: 8px 0 0;
  color: var(--ink);
}

.cart-fab {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 10px);
  z-index: 45;
  transform: translateX(-50%) translateY(12px);
  width: min(688px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(92, 16, 24, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Drawers / modal */
.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.drawer__backdrop,
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 8, 0.48);
}

.drawer__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100% - 24px));
  max-height: min(92vh, 780px);
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: pop-center 0.28s ease;
  overflow: hidden;
}

.drawer__panel--search {
  max-height: min(70vh, 560px);
}

.drawer__head,
.modal__panel .drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h2 {
  margin: 0;
  flex: 1;
  font-size: 1.15rem;
}

.checkout-step {
  padding-bottom: 8px;
}

.step-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.pay-options {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.pay-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.pay-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.pay-option strong {
  display: block;
  font-size: 0.98rem;
}

.pay-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.customer-summary {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f1ea;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}

.order-success {
  text-align: left;
  padding: 8px 0 16px;
  display: grid;
  gap: 10px;
}

.order-success > p {
  margin: 0;
}

.success-badge {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f6ee;
  color: var(--ok);
  font-weight: 800;
  font-size: 0.82rem;
}

.success-items {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.success-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.success-items li strong {
  display: block;
}

.success-items li small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

.success-items li span {
  font-weight: 800;
  white-space: nowrap;
  color: var(--ok);
}

.success-summary {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.success-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.success-summary__total {
  margin-top: 4px;
  font-size: 1.05rem;
}

.pix-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f7f1ea;
  display: grid;
  gap: 10px;
}

.pix-box code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  word-break: break-all;
  font-size: 0.86rem;
}

.mp-box {
  background: linear-gradient(160deg, #fff8ef 0%, #f3ebe2 100%);
}

.btn-mp-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: #009ee3;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-mp-pay:hover {
  filter: brightness(1.05);
}

.checkout-grid.two {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.checkout-grid.two .field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 0;
  width: 100%;
}

.checkout-grid.two .field > span {
  display: block;
  min-height: 1.15em;
  line-height: 1.15;
  margin: 0;
}

.checkout-grid.two .field > input {
  margin: 0;
  width: 100%;
}

.muted {
  color: var(--muted);
}

.modal__panel--range,
.modal__panel--fee {
  width: min(420px, calc(100% - 32px));
}

.fee-modal__body {
  padding: 8px 18px 22px;
  display: grid;
  gap: 12px;
}

.fee-modal__intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.fee-modal__table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fee-modal__table > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}

.fee-modal__table span {
  color: var(--muted);
  font-size: 0.78rem;
}

.fee-modal__table strong {
  color: var(--ok);
  font-size: 1rem;
}

.fee-field {
  display: grid;
  gap: 6px;
}

.fee-field span {
  font-size: 0.84rem;
  font-weight: 700;
}

.fee-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.fee-modal__or {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fee-modal__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  color: var(--danger);
  font-size: 0.88rem;
}

.fee-modal__error[hidden],
.fee-modal__result[hidden] {
  display: none !important;
}

.fee-modal__result {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: #e8f6ee;
  text-align: center;
}

.fee-modal__result strong {
  font-size: 1.55rem;
  color: var(--ok);
}

.fee-modal__result p {
  margin: 0;
  font-size: 0.88rem;
}

.side-cart__delivery .linkish {
  font-size: 0.9rem;
}

.range-modal__body {
  padding: 8px 18px 22px;
  display: grid;
  gap: 12px;
}

.range-modal__body > p {
  margin: 0;
  line-height: 1.45;
}

.range-modal__hint {
  font-weight: 700;
  color: var(--brand-deep);
}

.range-modal__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  border-radius: 14px;
}

.range-modal__url {
  font-size: 0.78rem;
  word-break: break-all;
  margin: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 16px 28px;
}

.drawer__foot {
  flex: 0 0 auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  z-index: 2;
}

/* Espaço extra no fim do formulário de endereço para não cobrir o último campo */
.fav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.fav-chip {
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  color: var(--ink, #222);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.fav-chip.is-active {
  border-color: var(--brand, #b91c1c);
  background: #fff7f7;
  color: var(--brand, #b91c1c);
}

.fav-chips--payment {
  margin-bottom: 10px;
}

.checkout-step[data-step="address"] {
  padding-bottom: 12px;
}

.geo-box {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.geo-box__btn {
  width: 100%;
  min-height: 44px;
}

.geo-box__hint {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.geo-box__map {
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e8e8;
}

.geo-box__map[hidden] {
  display: none !important;
}

.geo-box__map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

.checkout-step[data-step="address"] .field:last-child,
.checkout-step[data-step="address"] .checkout-grid:last-child {
  margin-bottom: 8px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.field textarea,
.field select,
.field input,
.search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.delivery-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(92, 16, 24, 0.08);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.checkout-grid .field {
  margin-bottom: 0;
}

.btn-secondary-cart {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.customer-status {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ok);
}

.customer-status.is-error {
  color: var(--danger);
}

.customer-fields {
  display: grid;
  gap: 0;
  margin-bottom: 4px;
}

.customer-fields .checkout-grid {
  grid-template-columns: 1fr 1fr;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.btn-primary {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, #1fa855, #128c45);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.empty-cart {
  margin: 28px 0;
  text-align: center;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 10px 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line .cart-remove {
  margin-top: -2px;
}

.cart-line img,
.cart-line__ph {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-deep);
}

.cart-line__ph {
  display: grid;
  place-items: center;
}

.cart-line h3 {
  margin: 0;
  font-size: 0.95rem;
}

.cart-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.cart-line__price {
  font-weight: 800;
  color: var(--ok);
  white-space: nowrap;
  padding-top: 2px;
}

.cart-line__note {
  grid-column: 1 / -1;
}

.cart-line__note textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  font: inherit;
  font-size: 0.86rem;
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.search-hit {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: modal-in 0.22s ease;
}

.payments-list {
  margin: 0;
  padding: 8px 18px 22px;
  list-style: none;
}

.payments-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.payments-list li:last-child {
  border-bottom: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { transform: translate(-50%, 24px); opacity: 0.6; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes pop-center {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (min-width: 900px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: initial; }

  .top-nav { display: block; }

  body {
    background: #ececec;
  }

  .page {
    width: min(var(--page-max), calc(100% - 40px));
    padding: 0 0 28px;
    margin-top: 18px;
    margin-bottom: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: visible;
  }

  .cover {
    height: 280px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  .cover img {
    object-position: center 42%;
  }

  .store-band {
    grid-template-columns: 108px 1fr;
    gap: 18px;
    margin: -54px 24px 0;
    padding: 0 0 18px;
    align-items: end;
  }

  .store-band__logo {
    width: 108px;
    height: 108px;
    border-radius: 16px;
    font-size: 2rem;
    border-width: 4px;
  }

  .store-band h1 {
    font-size: 1.65rem;
  }

  .store-band__meta {
    font-size: 0.95rem;
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--side-w);
    gap: 20px;
    margin: 0 24px;
    align-items: start;
  }

  .layout__main {
    background: transparent;
  }

  .side-cart {
    display: block;
    position: sticky;
    top: calc(var(--top-nav-h) + 16px);
  }

  .side-cart__card {
    min-height: 560px;
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .sticky-toolbar {
    top: var(--top-nav-h);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
  }

  .promo-banner {
    height: 200px;
  }

  .featured__rail {
    grid-auto-columns: minmax(240px, 36%);
    padding-left: 0;
    padding-right: 0;
  }

  .product {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 46%);
    gap: 18px;
    align-items: stretch;
  }

  .product__media {
    align-self: stretch;
  }

  .product__media img,
  .product__placeholder {
    height: 100%;
    min-height: 168px;
    aspect-ratio: 4 / 3;
  }

  .bottom-nav,
  .cart-fab {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  .cover {
    height: 320px;
  }

  .promo-banner {
    height: 220px;
  }

  .product {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 48%);
  }

  .product__media img,
  .product__placeholder {
    min-height: 188px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer__panel,
  .modal__panel,
  .cart-fab,
  .promo-carousel__track {
    animation: none !important;
    transition: none !important;
  }
}
