/* ═══════════════════════════════════════════════════
   CARDÁPIO DIGITAL — style.css  v4
   Mobile-first · Dark Luxury Street Food
   + Fix desktop layout · Complementos · Bairros · Impressão
═══════════════════════════════════════════════════ */

/* ═══ 0. RESET & VARIÁVEIS ═══ */
:root {
  --brand: #fdfdf1;
  --brand-d: #d92b1e;
  --brand-glow: #fdfdf19c;
  --bg: #2b323f;
  --bg2: #131318;
  --surface: #1A1A22;
  --surface2: #22222C;
  --border: rgba(255, 255, 255, 0.07);
  --text: #F2EDE8;
  --muted: #7A7585;
  --dim: #3A3545;
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.25);

    --font-titlee: 'Syne', sans-serif;
   --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 40px;

  --header-h: 58px;
  --cats-h: 54px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 960px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

textarea {
  font-family: inherit;
  resize: none;
}

input,
select {
  font-family: inherit;
}

/* ═══ 1. LOADER ═══ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity .55s var(--ease), visibility .55s;
}

.loader.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-txt {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.loader-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.loader-ring {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--surface2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══ 2. HEADER ═══ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: rgba(12, 12, 15, .8);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.header.solid {
  background: var(--bg);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  display: flex;
  gap: 2px;
}

.logo-fallback span {
  color: var(--brand);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search,
.header-track {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--brand);
  transition: background .2s, color .2s;
}

.header-search:hover,
.header-search.active,
.header-track:hover {
  background: var(--brand);
  color: var(--bg);
}

/* Search bar — agora em wrapper separado para centralizar corretamente */
.search-bar-wrap {
  display: none;
  padding-bottom: 10px;
  border-top: 1px solid var(--border);
  background: inherit;
}

.search-bar-wrap.open {
  display: block;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.search-bar>i {
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  color: var(--text);
  padding: 9px 14px;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
}

.search-bar input:focus {
  border-color: var(--brand);
}

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

#btnSearchClose {
  color: var(--muted);
  font-size: 1.1rem;
}

#btnSearchClose:hover {
  color: var(--text);
}

/* ═══ 3. HERO ═══ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url("/img/background/founder.png");
  background-size:cover;
  background-position: center;
  will-change: transform;
  transform-origin: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #2b323f00 0%, #2b323f38 30%, #2b323fa4 65%, #2b323f 100%);
}

.hero-body {
    /* display: flex; */
    position: relative;
    z-index: 2;
    padding:36px;
    max-width: 600px;
    /* align-items: center;
    justify-content: center;
    flex-direction: column;
    align-content: space-around; */

}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-d);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-titlee);
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: 10px;
}

.hero-title strong {
  /* font-style: italic; */
  color: var(--brand-d);
  font-weight: 800;
}

.hero-sub {
  font-size: .88rem;
  color: rgba(242, 237, 232, .65);
  margin-bottom: 22px;
  letter-spacing: .02em;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--bg);
  font-weight: 700;
  font-size: .88rem;
  padding: 13px 22px;
  border-radius: var(--r-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: background .2s, transform .25s var(--ease), box-shadow .25s;
}

.hero-btn:hover {
  background: var(--brand);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--brand-glow);
}

.hero-price-tag {
  position: absolute;
  top: calc(var(--header-h) + 18px);
  right: 18px;
  z-index: 3;
  background: rgba(12, 12, 15, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  text-align: right;
  animation: fadeDown .7s .4s var(--ease) both;
}

.hero-price-tag span {
  font-size: .7rem;
  color: var(--muted);
  display: block;
}

.hero-price-tag strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
}

/* ═══ 4. CATEGORIAS ═══ */
.cats-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 300;
  background: var(--brand);
  border-bottom: 1px solid var(--border);
}

.cats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.cats-track {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cats-track::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--surface);
  border: 1.5px solid transparent;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all .25s var(--ease);
  cursor: pointer;
}

.cat-pill i {
  font-size: .95rem;
}

.cat-pill:hover {
  color: var(--text);
  border-color: var(--border);
}

.cat-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
  box-shadow: 0 4px 16px var(--brand-glow);
}

/* ═══ 5. MAIN / PRODUTOS ═══ */
.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 20px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-label h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.count-badge {
  background: var(--surface2);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

/* ═══ 6. CARDS DE PRODUTO (mobile: horizontal) ═══ */
.products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pcard {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .25s, box-shadow .3s var(--ease);
}

.pcard.visible {
  opacity: 1;
  transform: translateY(0);
}

.pcard:hover,
.pcard:active {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

.pcard-img {
  width: 110px;
  min-width: 110px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.pcard-img img {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
  transition: transform .6s var(--ease);
  display: block;
}

.pcard:hover .pcard-img img {
  transform: scale(1.07);
}

.pcard-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand);
  color: var(--bg);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.pcard-badge.badge-promo {
  background: #f59e0b;
}

.pcard-badge.badge-popular {
  background: var(--brand);
}

.pcard-badge.badge-novo {
  background: var(--green);
  color: var(--brand);
}

.pcard-body {
  flex: 1;
  padding: 14px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.pcard-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-desc {
  font-size: .77rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.pcard-popular {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}

.pcard-popular i {
  font-size: .75rem;
}

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pcard-prices {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pcard-old {
  font-size: .72rem;
  color: var(--dim);
  text-decoration: line-through;
  line-height: 1;
}

.pcard-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.02em;
}

.btn-plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
  line-height: 1;
  padding-bottom: 1px;
}

.btn-plus:hover {
  background: var(--bg);
  transform: scale(1.12);
  color: var(--brand);
}

.btn-plus:active {
  transform: scale(.9);
}

.btn-plus.pop {
  animation: pop .4s var(--ease);
}

@keyframes pop {
  0% {
    transform: scale(1)
  }

  35% {
    transform: scale(1.4)
  }

  65% {
    transform: scale(.88)
  }

  85% {
    transform: scale(1.07)
  }

  100% {
    transform: scale(1)
  }
}

/* ═══ 7. BARRA INFERIOR DO CARRINHO ═══ */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 350;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--bg2);
  border-top: 1px solid var(--border);
  animation: slideUp .35s var(--ease);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

.cart-bar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--brand);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 14px 20px;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 6px 24px var(--brand-glow);
  transition: background .2s, transform .2s var(--ease);
}

.cart-bar-btn:active {
  transform: scale(.97);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-bar-left i {
  font-size: 1.15rem;
}

.cart-bar-badge {
  background: rgba(255, 255, 255, .25);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: .75rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.cart-bar-total {
  font-size: .9rem;
  opacity: .9;
}

/* ═══ 8. BOTTOM SHEET ═══ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}

.sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 700;
  background: var(--bg2);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: 90svh;
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  overflow: hidden;
}

.sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--surface2);
  border-radius: 4px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sheet-head h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-head h3 i {
  color: var(--brand);
}

.sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .25s var(--ease);
}

.sheet-close:hover {
  background: var(--surface);
  color: var(--text);
  transform: rotate(90deg);
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}

.sheet-body::-webkit-scrollbar {
  display: none;
}

.sheet-empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sheet-empty i {
  font-size: 2.6rem;
  color: var(--dim);
}

.sheet-empty p {
  font-family: var(--font-title);
  font-size: .95rem;
}

.sheet-empty span {
  font-size: .8rem;
  color: var(--dim);
}

.sitem {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 10px;
  border: 1px solid var(--border);
  animation: itemIn .35s var(--ease);
  transition: opacity .3s, transform .3s var(--ease);
}

.sitem.out {
  opacity: 0;
  transform: translateX(30px);
}

@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.97)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.sitem-img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sitem-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sitem-name {
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sitem-price {
  font-size: .8rem;
  color: var(--brand);
  font-weight: 700;
}

.sitem-comps {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}

.sitem-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border-radius: 30px;
  padding: 4px 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  transition: background .18s, transform .18s;
}

.qty-btn:hover {
  background: var(--surface);
}

.qty-btn.minus:hover {
  background: var(--brand-glow);
  color: var(--brand);
}

.qty-btn.plus:hover {
  background: var(--brand-glow);
  color: var(--brand);
}

.qty-btn:active {
  transform: scale(.85);
}

.qty-n {
  font-size: .88rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  user-select: none;
}

.sheet-foot {
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  background: var(--bg2);
}

.cart-obs {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: .82rem;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}

.cart-obs:focus {
  border-color: var(--brand);
}

.cart-obs::placeholder {
  color: var(--muted);
}

.sheet-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--muted);
}

.sheet-total-row strong {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
}

.btn-wpp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--brand);
  color: var(--bg);
  font-weight: 700;
  font-size: .95rem;
  padding: 16px;
  border-radius: var(--r-xl);
  width: 100%;
  box-shadow: 0 6px 22px var(--green-glow);
  transition: background .2s, transform .25s var(--ease), box-shadow .25s;
}

.btn-wpp i {
  font-size: 1.2rem;
}

.btn-wpp:hover {
  background: var(--bg);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--green-glow);
}

.btn-wpp:active {
  transform: scale(.97);
}

/* ═══ 9. WHATSAPP FLOAT ═══ */
.wpp-float {
  position: fixed;
  bottom: 100px;
  right: 18px;
  z-index: 360;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 6px 22px rgba(34, 197, 94, .4);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.wpp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #22c55e;
  opacity: .35;
  animation: wppPulse 2.4s ease-out infinite;
}

@keyframes wppPulse {
  0% {
    transform: scale(1);
    opacity: .35
  }

  70% {
    transform: scale(1.8);
    opacity: 0
  }

  100% {
    transform: scale(1.8);
    opacity: 0
  }
}

.wpp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 32px rgba(34, 197, 94, .55);
}

/* ═══ 10. TOAST ═══ */
.toast {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 40px;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}

.toast i {
  color: var(--brand);
  font-size: 1rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══ 11. RODAPÉ ═══ */
.footer {
  background: var(--brand);
  border-top: 1px solid var(--bg2);
  color: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 30px;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}

.footer-slogan {
  font-size: .82rem;
  color: var(--bg);
  font-style: italic;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .82rem;
  color: var(--bg);
}

.footer-list i {
  color: var(--bg);
  font-size: .95rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.footer-copy {
  font-size: .72rem;
  color: var(--bg);
}

/* ═══ 12. CHECKOUT MODAL ═══ */
.co-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 750;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}

.co-overlay.open {
  opacity: 1;
  visibility: visible;
}

.co-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 760;
  background: var(--bg2);
  border-radius: 28px 28px 0 0;
  border-top: 1px solid var(--border);
  max-height: 92svh;
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.co-modal::-webkit-scrollbar {
  display: none;
}

.co-modal.open {
  transform: translateY(0);
}

.co-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

.co-back,
.co-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.co-back:hover,
.co-close-btn:hover {
  background: var(--brand);
  color: var(--bg);
}

.co-steps-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.co-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface2);
  transition: all .3s var(--ease);
}

.co-dot.active {
  background: var(--brand);
  width: 22px;
  border-radius: 4px;
}

.co-panel {
  padding: 24px 20px 32px;
}

.co-panel.hidden {
  display: none;
}

.co-panel-head {
  margin-bottom: 24px;
}

.co-panel-head h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}

.co-panel-head h2 span {
  font-size: 1.3rem;
}

.co-panel-head p {
  font-size: .85rem;
  color: var(--muted);
}

.co-field {
  margin-bottom: 14px;
}

.co-field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.co-field input,
.co-select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  padding: 13px 16px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}

.co-field input:focus,
.co-select:focus {
  border-color: var(--brand);
}

.co-field input::placeholder {
  color: var(--dim);
}

.co-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%237A7585' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.co-select option {
  background: var(--surface2);
}

.co-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.co-radio-group.vertical {
  grid-template-columns: 1fr;
}

.co-radio {
  display: flex;
}

.co-radio input {
  display: none;
}

.co-radio span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s var(--ease);
}

.co-radio span i {
  font-size: 1rem;
}

.co-radio input:checked~span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}

.co-fee-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-top: 4px;
  font-size: .85rem;
  color: var(--muted);
}

.co-fee-box strong {
  color: var(--text);
  font-weight: 700;
}

.co-retirada-msg {
  text-align: center;
  padding: 24px 0;
}

.co-retirada-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-glow);
  color: var(--brand);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.co-retirada-msg h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.co-retirada-msg p {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.co-address-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 14px;
  font-size: .8rem;
  color: var(--muted);
}

.co-address-chip i {
  color: var(--brand);
}

/* Bairro: link falar com loja */
.co-talk-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: .82rem;
  color: var(--green);
  font-weight: 600;
  transition: opacity .2s;
}

.co-talk-link:hover {
  opacity: .8;
}

/* Pagamento na entrega */
.co-entrega-pay {
  margin-top: 16px;
}

.co-entrega-pay-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.co-troco-box {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}

.co-troco-result {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: .85rem;
  color: var(--green);
  margin-top: 8px;
}

.co-troco-result strong {
  font-weight: 800;
}

.co-cartao-box {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}

/* PIX box */
.co-pix-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-top: 16px;
}

.co-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.co-qr-wrap>div {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
}

.co-pix-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.co-pix-label {
  font-size: .68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 2px;
}

.co-pix-key-row strong {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.co-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.co-copy-btn:hover {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}

.co-pix-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.co-pix-total-row strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

/* Comprovante PIX */
.co-comprovante-wrap {
  margin-bottom: 14px;
}

.co-comprovante-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.co-comprovante-label:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.co-comprovante-label i {
  font-size: 1.2rem;
}

.co-comprovante-preview {
  margin-top: 8px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.co-comprovante-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}

.co-btn-pago {
  width: 100%;
  background: var(--green);
  color: #fff;
  padding: 16px;
  border-radius: var(--r-xl);
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 6px 20px var(--green-glow);
  transition: background .2s, transform .25s var(--ease);
}

.co-btn-pago:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.co-btn-primary {
  width: 100%;
  background: var(--brand);
  color: var(--bg);
  padding: 16px;
  border-radius: var(--r-xl);
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 6px 20px var(--brand);
  transition: background .2s, transform .25s var(--ease);
  margin-top: 20px;
}

.co-btn-primary:hover {
  background: var(--bg);
  color: var(--brand);
  transform: translateY(-1px);
}

/* Step 4: Sucesso */
.co-success-wrap {
  text-align: center;
  padding: 8px 0;
}

.co-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .12);
  color: var(--green);
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: successPop .6s var(--ease);
}

@keyframes successPop {
  from {
    transform: scale(0) rotate(-20deg);
    opacity: 0
  }

  to {
    transform: scale(1) rotate(0);
    opacity: 1
  }
}

.co-success-wrap h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.co-success-wrap>p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.co-order-id-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.co-order-id-box span {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.co-order-id-box strong {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .04em;
}

.co-copy-id-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 7px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
  margin-top: 4px;
}

.co-copy-id-btn:hover {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}

.co-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.co-time-chip i {
  color: var(--brand);
}

.co-wpp-btn {
  margin-bottom: 10px;
}

.co-btn-track {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 14px;
  border-radius: var(--r-xl);
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all .2s;
  margin-bottom: 10px;
}

.co-btn-track:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.co-btn-ghost {
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  padding: 8px;
  width: 100%;
  transition: color .2s;
}

.co-btn-ghost:hover {
  color: var(--text);
}

/* ═══ 13. PRODUCT DETAIL MODAL ═══ */
.prod-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 770;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}

.prod-overlay.open {
  opacity: 1;
  visibility: visible;
}

.prod-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 780;
  background: var(--bg2);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border);
  max-height: 90svh;
  transform: translateY(100%);
  transition: transform .45s var(--ease), opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.prod-modal::-webkit-scrollbar {
  display: none;
}

.prod-modal.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.prod-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 12, 15, .7);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.prod-close:hover {
  background: var(--brand);
}

.prod-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-modal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand);
  color: var(--bg);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 20px;
}

.prod-modal-body {
  padding: 18px 18px 100px;
}

.prod-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.prod-modal-head h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.prod-popular {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-glow);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}

.prod-modal-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.prod-ingredients {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 14px;
}

.prod-ingredients h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prod-ingredients p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
}

.prod-combo-opts {
  margin-bottom: 14px;
}

.combo-group {
  margin-bottom: 14px;
}

.combo-group-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.combo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .2s;
  margin-bottom: 6px;
}

.combo-option input {
  display: none;
}

.combo-option input:checked~.combo-option-dot {
  border-color: var(--brand);
  background: var(--brand);
}

.combo-option input:checked~.combo-option-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.combo-option:has(input:checked) {
  border-color: var(--brand);
}

.combo-option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.combo-option-name {
  font-size: .88rem;
  font-weight: 600;
  flex: 1;
}

.combo-option-extra {
  font-size: .8rem;
  color: var(--brand);
  font-weight: 600;
}

.combo-option input:checked~.combo-option-name {
  color: var(--brand);
}

.prod-modal-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prod-modal-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prod-old-price {
  font-size: .78rem;
  color: var(--dim);
  text-decoration: line-through;
}

.prod-main-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
}

.prod-old-price.hidden {
  display: none;
}

.prod-add-btn {
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  border-radius: 50%;
}

/* ═══ COMPLEMENTOS MODAL ═══ */
.comp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  z-index: 790;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}

.comp-overlay.open {
  opacity: 1;
  visibility: visible;
}

.comp-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--bg2);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border);
  max-height: 85svh;
  transform: translateY(100%);
  transition: transform .45s var(--ease), opacity .35s var(--ease), visibility .35s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.comp-modal.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.comp-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
}

.comp-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.comp-close:hover {
  background: var(--brand);
  color: var(--bg);
}

.comp-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  scrollbar-width: none;
}

.comp-body::-webkit-scrollbar {
  display: none;
}

.comp-product-name {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.comp-item.selected {
  border-color: var(--brand);
  background: var(--brand-glow);
}

.comp-item-img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.comp-item-img-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

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

.comp-item-name {
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 2px;
}

.comp-item-price {
  font-size: .8rem;
  color: var(--brand);
  font-weight: 700;
}

.comp-item-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: .85rem;
  transition: all .2s;
  flex-shrink: 0;
}

.comp-item.selected .comp-item-check {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}

.comp-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--muted);
  font-size: .85rem;
}

.comp-footer {
  padding: 14px 18px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}

.comp-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.comp-total-row strong {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

/* ═══ 14. TRACKING MODAL ═══ */
.track-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 700;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}

.track-overlay.open {
  opacity: 1;
  visibility: visible;
}

.track-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 710;
  background: var(--bg2);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border);
  max-height: 88svh;
  transform: translateY(100%);
  transition: transform .45s var(--ease), opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.track-modal::-webkit-scrollbar {
  display: none;
}

.track-modal.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.track-header h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-header h3 i {
  color: var(--brand);
}

.track-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.track-close:hover {
  background: var(--brand);
  color: var(--bg);
}

.track-body {
  padding: 20px 18px 32px;
}

.track-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.track-search-row input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  color: var(--text);
  padding: 13px 18px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.track-search-row input:focus {
  border-color: var(--brand);
}

.track-search-row input::placeholder {
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0;
}

#btnTrackSearch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand);
  color: var(--bg);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: background .2s, transform .2s;
}

#btnTrackSearch:hover {
  background: var(--bg);
  color: var(--brand);
  transform: scale(1.08);
}

.track-result {
  animation: fadeDown .4s var(--ease);
}

.track-not-found {
  text-align: center;
  color: var(--muted);
  padding: 30px 0;
  font-size: .88rem;
}

.track-order-id {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}

.track-order-name {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.track-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.track-step {
  display: flex;
  gap: 14px;
}

.track-step-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.track-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--dim);
  transition: all .3s var(--ease);
}

.track-step-dot.done {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}

.track-step-dot.current {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.track-step-connector {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: var(--border);
  margin: 3px 0;
}

.track-step-connector.done {
  background: var(--green);
}

.track-step-body {
  padding-bottom: 20px;
}

.track-step-label {
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--dim);
}

.track-step-label.done {
  color: var(--text);
}

.track-step-label.current {
  color: var(--brand);
}

.track-step-sub {
  font-size: .76rem;
  color: var(--dim);
}

.track-step-sub.current {
  color: var(--muted);
}

.track-items {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}

.track-items h4 {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.track-item-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.track-item-row:last-child {
  border-bottom: none;
}

.track-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: .95rem;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ═══ 15. STORE CLOSED BANNER ═══ */
.store-closed-banner {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
}

.store-closed-banner.hidden {
  display: none;
}

.store-closed-banner i {
  font-size: 4rem;
  color: var(--dim);
}

.store-closed-banner h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
}

.store-closed-banner p {
  font-size: .9rem;
  color: var(--muted);
}

/* ═══ 16. ANIMAÇÕES & PARTÍCULA ═══ */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.particle {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  pointer-events: none;
  z-index: 900;
  box-shadow: 0 0 8px var(--brand-glow);
}

.hidden {
  display: none !important;
}

/* Admin hidden corner */
#adminHiddenCorner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 32px;
  z-index: 9000;
  cursor: default;
  opacity: 0;
}

/* Área de impressão */
.print-area {
  display: none;
}

/* ═══ 17. DESKTOP (≥768px) ═══ */
@media (min-width: 768px) {
  :root {
    --header-h: 64px;
  }

  /* Products: cards verticais no desktop — visual muito melhor */
  .products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pcard {
    flex-direction: column;
  }

  .pcard-img {
    width: 100%;
    min-width: unset;
    height: 200px;
  }

  .pcard-img img {
    min-height: 200px;
    height: 200px;
  }

  .pcard-body {
    padding: 16px;
  }

  .pcard-name {
    font-size: 1.05rem;
  }

  .pcard-desc {
    -webkit-line-clamp: 3;
  }

  /* Cart bar: canto inferior direito */
  .cart-bar {
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 340px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
    background: var(--bg2);
    border-top: none;
  }

  /* Sheet: lateral direita */
  .sheet {
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(420px, 90vw);
    max-height: 100vh;
    border-radius: 0;
    border-left: 1px solid var(--border);
    border-top: none;
    transform: translateX(100%);
  }

  .sheet.open {
    transform: translateX(0);
  }

  .sheet-handle {
    display: none;
  }

  /* WPP float: acima da cart bar */
  .wpp-float {
    bottom: 100px;
    right: 28px;
  }

  /* Footer */
  .footer-inner {
    padding: 50px 32px 36px;
  }

  /* Checkout: sidebar direita */
  .co-modal {
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(440px, 90vw);
    max-height: 100vh;
    border-radius: 0;
    border-left: 1px solid var(--border);
    border-top: none;
    transform: translateX(100%);
    overflow-y: auto;
  }

  .co-modal.open {
    transform: translateX(0);
  }

  /* Product modal: centralizado */
  .prod-modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -44%) scale(0.95);
    max-width: 500px;
    width: 100%;
    max-height: 86vh;
    border-radius: 24px;
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .prod-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Complementos modal: centralizado */
  .comp-modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -44%) scale(0.95);
    max-width: 480px;
    width: 100%;
    max-height: 86vh;
    border-radius: 24px;
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .comp-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Tracking: centralizado */
  .track-modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -44%) scale(0.95);
    max-width: 480px;
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .track-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (min-width: 1024px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══ 18. IMPRESSÃO (cupom térmico) ═══ */
@media print {
  body>*:not(#printArea) {
    display: none !important;
  }

  #printArea {
    display: block !important;
  }

  .print-area {
    width: 80mm;
    max-width: 80mm;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--bg);
    background: var(--brand);
    padding: 8px;
  }

  .print-logo {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
  }

  .print-divider {
    border-top: 1px dashed var(--bg);
    margin: 6px 0;
  }

  .print-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin: 2px 0;
  }

  .print-row-bold {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 12px;
    margin: 2px 0;
  }

  .print-center {
    text-align: center;
    font-size: 11px;
  }

  .print-section-title {
    font-weight: bold;
    font-size: 11px;
    margin: 6px 0 2px;
    text-transform: uppercase;
  }

  .print-comp {
    font-size: 10px;
    color: #555;
    padding-left: 8px;
  }
}

/* ═══ PIX PENDENTE MODAL ═══ */
.pix-pending-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(8px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(0.22, 1, 0.36, 1), visibility .35s;
}

.pix-pending-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pix-pending-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: scale(0.92);
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pix-pending-overlay.open .pix-pending-modal {
  transform: scale(1);
}

.pix-pending-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pix-pending-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pix-pending-sub {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pix-pending-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pix-pending-btn-sim {
  background: var(--brand);
  color: var(--bg);
  padding: 14px;
  border-radius: 40px;
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--brand-glow);
  transition: background .2s, transform .2s;
}

.pix-pending-btn-sim:hover {
  background: var(--bg);
  color: var(--brand);
  transform: translateY(-1px);
}

.pix-pending-btn-nao {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 14px;
  border-radius: 40px;
  font-weight: 700;
  font-size: .88rem;
  transition: all .2s;
}

.pix-pending-btn-nao:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ═══ Complementos — header "Adicionar complementos?" ═══ */
.comp-ask-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.comp-ask-header>i {
  font-size: 1.4rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.comp-ask-title {
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.comp-ask-sub {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}

.brand-dev {
  opacity: 0.7;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}