:root {
  --color-primary: #1a1a1a;
  --color-primary-contrast: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #f7f7f7;
  --color-border: #ebebeb;
  --color-text: #3e3e3e;
  --color-text-secondary: #717171;
  --color-text-light: #adadad;
  --color-success: #21a501;
  --hero-height: 140px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 18px;
}

body {
  font-family: var(--font);
  background: #fff;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ─── SPLASH SCREEN ─────────────────────────────────────────────────────── */

#splash {
  position: fixed;
  inset: 0;
  background: #fff;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  pointer-events: none;
  animation: splashFadeOut 0.5s ease 1.8s forwards;
}

#splashImg {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  animation: splashGrow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#splashImg.logo-round {
  border-radius: 50%;
}

@keyframes splashGrow {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes splashFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ─── STICKY HEADER ────────────────────────────────────────────────────── */

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-110%);
  transition: transform 0.25s ease;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 0;
}

.btn-back svg {
  width: 20px;
  height: 20px;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border-radius: 8px;
  padding: 8px 12px;
}

.search-bar svg {
  width: 15px;
  height: 15px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  color: var(--color-text);
  width: 100%;
}

.search-bar input::placeholder {
  color: var(--color-text-secondary);
}

/* ─── CATEGORY TABS ─────────────────────────────────────────────────────── */

.category-tabs-wrapper {
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
}

.category-tabs {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-secondary);
}

.tab-menu-btn svg {
  width: 18px;
  height: 18px;
}

.category-tab {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.category-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */

.hero-wrapper {
  position: relative;
  height: var(--hero-height);
  background: #ccc;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-controls {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
}

.hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  color: #fff;
}

.hero-btn svg {
  width: 18px;
  height: 18px;
}

.hero-right-btns {
  display: flex;
  gap: 10px;
}

/* ─── INFO CARD ──────────────────────────────────────────────────────────── */

.info-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: -54px;
  position: relative;
  z-index: 10;
  padding: 0 12px;
}

.logo-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  position: relative;
  z-index: 11;
  margin-bottom: -35px;
  margin-left: 26px;
  flex-shrink: 0;
}

.logo-wrapper.logo-round {
  border-radius: 50%;
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  padding: 44px 16px 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

@media (min-width: 400px) {
  .info-card {
    padding: 44px 26px 26px;
  }
}

.info-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.info-card-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--color-text);
}

.ic-fee-top {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: right;
  flex-shrink: 0;
  padding-top: 0px;
  margin-top: -20px;
}

.info-card-sub {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.info-card-divider {
  height: 1px;
  background: var(--color-border);
  margin: 12px 0;
}

.info-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.ic-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ic-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 3px;
}

.availability-badge.open {
  color: var(--color-success);
}
.availability-badge.closed {
  color: var(--color-primary);
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.ic-hours {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.ic-hours::before {
  content: "·";
  margin-right: 8px;
  color: var(--color-text-secondary);
}

.ic-hours-sub {
  font-size: 12px;
  color: var(--color-text-secondary);
}

#infoCardMeta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 16px;
  align-self: stretch;
  margin-top: 8px;
}

.ic-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ic-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.ic-row svg {
  flex-shrink: 0;
  width: 18px;
  opacity: 0.55;
}

.ic-item-sub {
  font-size: 12px;
  color: var(--color-text-secondary);
  padding-left: 21px;
}

.ic-fee-free {
  color: var(--color-success);
  font-weight: 600;
  font-size: 13px;
}

/* ─── IMAGE LIGHTBOX ────────────────────────────────────────────────────── */

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.18s ease;
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.img-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* ─── PRODUCTS AREA ──────────────────────────────────────────────────────── */

.products-wrapper {
  margin-top: 10px;
  padding-bottom: 60px;
}

.product-section {
  background: #fff;
  margin-bottom: 8px;
}

.product-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  padding: 18px 16px 10px;
  letter-spacing: 0.01em;
}

.product-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.1s;
}

.product-item:active {
  background: var(--color-surface);
}

.product-item-info {
  flex: 1;
  min-width: 0;
}

.product-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 3px;
  line-height: 1.35;
}

.product-item-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 7px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-item-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.product-item-price-prefix {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 1px;
}

.product-item-price-original {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-light);
  text-decoration: line-through;
  margin-left: 5px;
}
.price-promo {
  color: var(--color-success);
}

.product-item-image {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-surface);
}

.product-item-image-empty {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
}
.product-item-image-empty svg {
  width: 32px;
  height: 32px;
}

.product-sheet-img--empty::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5c5c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.product-tag {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.product-tag-app {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-success);
  margin-top: 4px;
}

/* ─── CATEGORY BOTTOM SHEET ──────────────────────────────────────────────── */

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sheet-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.category-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 78vh;
  overflow-y: auto;
}

.category-sheet.visible {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 12px auto 4px;
}

.sheet-title {
  font-size: 19px;
  font-weight: 700;
  padding: 12px 20px 10px;
}

.sheet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.1s;
}

.sheet-item:active {
  background: var(--color-surface);
}

.sheet-item-name {
  font-size: 17px;
  color: var(--color-text);
}

.sheet-item.sheet-item-active .sheet-item-name {
  color: var(--color-primary);
  font-weight: 700;
}

.sheet-item-count {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* ─── SKELETON LOADER ────────────────────────────────────────────────────── */

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-block {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ─── PRODUCT SHEET ──────────────────────────────────────────────────────── */

.product-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.product-sheet-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.product-sheet {
  position: fixed;
  inset: 0;
  z-index: 301;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.product-sheet.visible {
  transform: translateY(0);
}

.product-sheet-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-sheet-img {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface);
  position: relative;
  flex-shrink: 0;
}

.product-sheet-back {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.product-sheet-back svg {
  width: 18px;
  height: 18px;
}

.product-sheet-body {
  padding: 18px 16px 16px;
  border-bottom: 8px solid var(--color-surface);
}
.product-sheet-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-sheet-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}
.product-sheet-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}
.product-sheet-price-prefix {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

/* Addon sections */
.addon-section {
  border-bottom: 8px solid var(--color-surface);
}

.addon-section-header {
  padding: 14px 16px;
  background: var(--color-surface);
}
.addon-section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 5px;
}
.addon-section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.addon-section-subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
}
.addon-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}
.addon-badge-required {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.addon-badge-optional {
  background: #fff;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.addon-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.1s;
}
.addon-option:active {
  background: var(--color-surface);
}

.addon-option-info {
  flex: 1;
  min-width: 0;
}
.addon-option-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 2px;
}
.addon-option-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}
.addon-option-price {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.addon-option-img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-surface);
}

/* Radio control */
.addon-radio {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.addon-radio.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.addon-radio.selected::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary-contrast);
}

/* Counter control */
.addon-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.addon-counter-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  color: var(--color-primary);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.addon-counter-btn:disabled {
  color: var(--color-text-light);
  cursor: default;
}
.addon-counter-val {
  font-size: 18px;
  font-weight: 400;
  min-width: 18px;
  text-align: center;
}

/* Observation */
.product-obs-section {
  padding: 16px;
  border-bottom: 8px solid var(--color-surface);
}
.product-obs-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.product-obs-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--color-text);
  resize: none;
  outline: none;
  min-height: 68px;
}
.product-obs-input::placeholder {
  color: var(--color-text-light);
}
.product-obs-input:focus {
  border-color: #aaa;
}

/* Sheet footer */
.product-sheet-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 14px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.ps-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  flex-shrink: 0;
}
.ps-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--color-text);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.ps-qty-btn:disabled {
  color: var(--color-text-light);
  cursor: default;
}
.ps-qty-val {
  font-size: 18px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.ps-add-btn {
  flex: 1;
  background: var(--color-border);
  border: none;
  border-radius: 10px;
  cursor: default;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-light);
  text-align: center;
  padding: 12px 16px;
}
.ps-add-btn:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  cursor: pointer;
}

.ps-total {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.ps-total.active {
  color: var(--color-primary-contrast);
}

/* ─── CART BAR ───────────────────────────────────────────────────────────── */

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  z-index: 90;
  gap: 12px;
}
.cart-bar-qty {
  font-size: 15px;
  color: var(--color-primary-contrast);
  opacity: 0.7;
  flex-shrink: 0;
}
.cart-bar-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary-contrast);
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  text-align: center;
}
.cart-bar-total {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary-contrast);
  flex-shrink: 0;
}

body.has-cart .products-wrapper {
  padding-bottom: 120px;
}

/* ─── ENTRANCE PAGE ──────────────────────────────────────────────────────── */

#entrPage {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#entrContent {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 48px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

#entrLogo {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
#entrLogo.entr-logo-circular {
  border-radius: 50%;
}

#entrDesc {
  font-size: 21px;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
  margin-top: 28px;
}

#entrBtns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 32px;
}

.botoesEntrada {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.botoesEntrada:active {
  opacity: 0.85;
}

#entrFooter {
  font-size: 17px;
  text-align: center;
  margin-top: 32px;
  opacity: 0.9;
  line-height: 1.4;
}

/* inactive restaurant notice (ativo == 0) */
#entrPage.entr-inactive {
  background: #fff !important;
  align-items: center;
  justify-content: center;
}
#entrPage.entr-inactive #entrContent {
  justify-content: center;
}
.entr-inactive-msg {
  font-size: 18px;
  text-align: center;
  color: #555;
  padding: 24px;
  line-height: 1.5;
}

/* ─── CHECKOUT FLOW ──────────────────────────────────────────────────────── */

.co-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.co-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.co-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  z-index: 500;
  animation: co-progress 1.2s ease-in-out infinite;
}
@keyframes co-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.co-sheet {
  position: fixed;
  inset: 0;
  z-index: 401;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
.co-sheet.visible {
  transform: translateY(0);
}

.co-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  height: 54px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.co-hdr-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.co-hdr-btn svg {
  width: 20px;
  height: 20px;
}
.co-hdr-clear {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  padding: 4px 2px;
  flex-shrink: 0;
}

.co-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  flex: 1;
}

#coForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.co-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0);
  min-height: 0;
}

.co-sheet-footer {
  position: relative;
  z-index: 1;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  flex-shrink: 0;
}
.co-sheet-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.13));
  pointer-events: none;
}

/* ── Cart view ───────────────────────────────────────────────────────────── */

.co-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.co-cart-item-info {
  flex: 1;
  min-width: 0;
}

.co-cart-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 3px;
  line-height: 1.35;
}

.co-cart-item-addon {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.co-cart-item-obs {
  font-size: 13px;
  color: var(--color-text-light);
  font-style: italic;
  line-height: 1.4;
}

.co-cart-item-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 6px;
}

.co-cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.co-cart-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  color: var(--color-primary);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.co-cart-qty-btn:disabled {
  color: var(--color-text-light);
  cursor: default;
}

.co-cart-qty-val {
  font-size: 18px;
  font-weight: 400;
  min-width: 18px;
  text-align: center;
}

/* ── Price row ───────────────────────────────────────────────────────────── */

.co-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.co-price-val {
  font-size: 18px;
  font-weight: 700;
}

/* ── Primary button ──────────────────────────────────────────────────────── */

.co-primary-btn {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.co-primary-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.co-primary-btn:active {
  opacity: 0.85;
}

.co-secondary-btn {
  background: none;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-block;
}

.co-link-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  display: inline-block;
  margin-top: 4px;
}

/* ── Method options ──────────────────────────────────────────────────────── */

.co-method-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.1s;
}

.co-method-option:active {
  background: var(--color-surface);
}

.co-method-option--blocked {
  opacity: 0.45;
}
.co-method-option--blocked:active {
  background: #fff;
}

.co-method-icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.co-method-icon svg {
  width: 24px;
  height: 24px;
}
.co-method-icon.co-method-icon--lg svg {
  width: 28px;
  height: 28px;
}

.co-method-name {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
}

.co-method-arrow {
  width: 18px;
  height: 18px;
  color: var(--color-text-light);
  flex-shrink: 0;
}

/* ── Schedule select ─────────────────────────────────────────────────────── */

.co-schedule-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.co-schedule-select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  color: var(--color-text);
  font-family: var(--font);
  padding: 12px 14px;
  height: auto;
  outline: none;
  appearance: auto;
}
.co-schedule-select option {
  padding: 12px 14px;
}

/* ── Form sections ───────────────────────────────────────────────────────── */

.co-section {
  background: #fff;
  padding: 16px;
  margin-bottom: 8px;
}
.co-section:last-of-type {
  margin-bottom: 0;
}

.co-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
}

.co-field {
  margin-bottom: 12px;
}
.co-field:last-child {
  margin-bottom: 0;
}

.co-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 5px;
}

.co-input,
.co-select,
.co-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 17px;
  font-family: var(--font);
  color: var(--color-text);
  background: #fff;
  outline: none;
  box-sizing: border-box;
}
.co-input:focus,
.co-select:focus,
.co-textarea:focus {
  border-color: #aaa;
}
.co-input--error,
.co-select--error {
  border-color: #e53935 !important;
  background: #fff5f5;
  animation: co-shake 0.35s ease;
}
@keyframes co-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(5px);
  }
}
.co-input[readonly] {
  background: var(--color-surface);
  color: var(--color-text-secondary);
}
.co-input::placeholder,
.co-textarea::placeholder {
  color: var(--color-text-light);
}
.co-textarea {
  resize: none;
}
.co-select {
  appearance: none;
  -webkit-appearance: none;
}

.co-field-row {
  display: flex;
  gap: 10px;
}

.co-cep-row {
  display: flex;
  gap: 8px;
}

.co-cep-btn {
  flex-shrink: 0;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Troco ───────────────────────────────────────────────────────────────── */

.co-troco-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.co-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--color-text);
  cursor: pointer;
}

/* ── Coupon ──────────────────────────────────────────────────────────────── */

.co-coupon-row {
  display: flex;
  gap: 8px;
}
.co-coupon-btn {
  flex-shrink: 0;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.co-coupon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.co-coupon-status {
  font-size: 15px;
  padding: 6px 0 0;
}
.co-coupon-ok {
  color: var(--color-success);
}
.co-coupon-error {
  color: var(--color-primary);
}

/* ── Summary ─────────────────────────────────────────────────────────────── */

.co-summary {
  margin-bottom: 12px;
}
.co-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-text);
  padding: 3px 0;
}
.co-summary-total {
  font-size: 18px;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */

.co-loading-msg {
  text-align: center;
  padding: 48px 16px;
  font-size: 16px;
  color: var(--color-text-secondary);
}

.co-notice {
  margin: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--color-surface);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.5;
}
.co-notice-closed {
  background: #ffeaea;
  color: var(--color-primary);
}
.co-notice-info {
  background: #e8f4ff;
  color: #005fa3;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.md-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #222;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 9999;
  pointer-events: none;
}
.md-toast.md-toast-error {
  background: #c0392b;
}
.md-toast.md-toast-success {
  background: var(--color-success);
}
.md-toast.md-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
