/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #E85A4F;
  --accent-d:  #c94840;
  --bg:        #0a0a0a;
  --bg2:       #141414;
  --bg3:       #1e1e1e;
  --border:    #2a2a2a;
  --text:      #f0f0f0;
  --muted:     #888;
  --header-h:  52px;
  --cats-h:    76px;
  --fab-h:     56px;
  --radius:    16px;
}

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

img { display: block; width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; border: none; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   CEP MODAL — CENTRADO
============================================================ */
.cep-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cep-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.cep-modal__icon { font-size: 2.4rem; }

.cep-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.cep-modal__sub {
  font-size: .83rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.cep-gps-btn {
  width: 100%;
  background: rgba(232,90,79,.12);
  border: 1.5px solid rgba(232,90,79,.3);
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}
.cep-gps-btn:active { background: rgba(232,90,79,.22); }

.cep-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .75rem;
}
.cep-divider::before,
.cep-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.cep-input-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.cep-input {
  flex: 1;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: .95rem;
  color: var(--text);
  letter-spacing: 1px;
  transition: border-color .2s;
}
.cep-input:focus { border-color: var(--accent); }

.cep-btn {
  background: var(--accent);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px 18px;
  white-space: nowrap;
  transition: background .2s;
}
.cep-btn:active { background: var(--accent-d); }
.cep-btn:disabled { opacity: .5; }

.cep-result {
  width: 100%;
  font-size: .82rem;
  text-align: center;
  line-height: 1.55;
  min-height: 0;
}
.cep-result--ok {
  background: rgba(0,180,80,.1);
  border: 1px solid rgba(0,180,80,.25);
  color: #4cde8a;
  border-radius: 12px;
  padding: 12px 16px;
}
.cep-result--err {
  background: rgba(232,90,79,.1);
  border: 1px solid rgba(232,90,79,.25);
  color: var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
}

.cep-confirm-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 14px;
  padding: 15px;
  transition: background .2s;
}
.cep-confirm-btn:active { background: var(--accent-d); }

.cep-skip {
  background: none;
  color: var(--muted);
  font-size: .78rem;
  padding: 4px;
  text-decoration: underline;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  height: 100%;
}

.header__brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.header__logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.header__logo-fallback { font-size: 1.3rem; }

.header__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.3px;
}

.header__cart-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: .9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  border-radius: 20px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  margin-top: var(--header-h);
  background: var(--bg3);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.72) 100%);
}
.hero__content {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 1;
}
.hero__eyebrow {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}
.hero__title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.hero__sub {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin-top: 5px;
}

/* ============================================================
   TICKER
============================================================ */
.ticker {
  background: var(--accent);
  padding: 9px 16px;
  text-align: center;
  overflow: hidden;
}
.ticker__phrase {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
  transition: opacity .35s;
  display: inline-block;
}

/* ============================================================
   LOCATION BAR
============================================================ */
.location-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.location-bar__pin { font-size: .9rem; flex-shrink: 0; }
.location-bar__text {
  font-size: .8rem;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.location-bar__spacer { flex: 1; }
.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,.1); }
}
.status-label {
  font-size: .75rem;
  font-weight: 700;
  color: #22c55e;
  flex-shrink: 0;
}

/* ============================================================
   SEARCH SECTION
============================================================ */
.search-section {
  padding: 10px 16px;
  background: var(--bg);
  position: relative;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box__icon { font-size: .9rem; flex-shrink: 0; color: var(--muted); }
.search-box__input {
  flex: 1;
  background: none;
  font-size: .9rem;
  color: var(--text);
  min-width: 0;
}
.search-box__input::placeholder { color: var(--muted); }
.search-box__clear {
  background: none;
  color: var(--muted);
  font-size: .85rem;
  flex-shrink: 0;
  padding: 2px 4px;
}
.suggestions {
  display: none;
  position: absolute;
  left: 16px; right: 16px;
  top: calc(100% - 6px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  z-index: 98;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
}
.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:active { background: var(--bg3); }
.suggestion-item__name { font-size: .85rem; font-weight: 600; flex: 1; }
.suggestion-item__price { font-size: .8rem; color: var(--accent); font-weight: 700; margin-left: 8px; flex-shrink: 0; }

/* ============================================================
   DESTAQUES / COMBO ESPECIAL
============================================================ */
.destaques-section { padding-bottom: 12px; }

.destaques-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
}
.destaques-head__fire { font-size: 1.4rem; }
.destaques-head__title { font-size: 1rem; font-weight: 800; }
.destaques-head__sub { font-size: .72rem; color: var(--muted); margin-top: 1px; }

.destaques-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.destaques-scroll::-webkit-scrollbar { display: none; }

.destaque-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s;
}
.destaque-card:active { border-color: var(--accent); }

.destaque-card__img-wrap {
  position: relative;
  height: 108px;
  overflow: hidden;
  background: var(--bg3);
}
.destaque-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.destaque-card:active .destaque-card__img-wrap img { transform: scale(1.05); }

.destaque-card__tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.destaque-card__body { padding: 10px; }
.destaque-card__name {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.destaque-card__from {
  font-size: .68rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: 4px;
}
.destaque-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.destaque-card__price {
  font-size: .88rem;
  font-weight: 800;
  color: var(--accent);
}
.destaque-card__add {
  width: 26px; height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, transform .1s;
  line-height: 1;
}
.destaque-card__add:active { background: var(--accent-d); transform: scale(.88); }

/* ============================================================
   CATEGORIES BAR
============================================================ */
.cats-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.cats-scroll {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: var(--bg3);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 6px 10px;
  min-width: 62px;
  transition: all .18s;
  -webkit-tap-highlight-color: transparent;
}
.cat-btn.active {
  border-color: var(--accent);
  background: rgba(232,90,79,.1);
}
.cat-btn__img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.cat-btn__emoji { font-size: 1.5rem; line-height: 1; }
.cat-btn__label {
  font-size: .6rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-btn.active .cat-btn__label { color: var(--accent); }

/* ============================================================
   MAIN
============================================================ */
.main {
  padding-bottom: calc(var(--fab-h) + 32px);
}

.cat-section { padding-bottom: 8px; }

.cat-section__title {
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 16px 10px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

/* ============================================================
   PRODUCT CARD
============================================================ */
.card {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg2);
  cursor: pointer;
  min-height: 96px;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.card:active { background: var(--bg3); }

.card__badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}

.card__img-wrap {
  width: 96px;
  min-width: 96px;
  height: 96px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.card:active .card__img { transform: scale(1.04); }

.card__body {
  flex: 1;
  padding: 12px 12px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card__name {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

.card__desc {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.card__price {
  font-size: .9rem;
  font-weight: 800;
  color: var(--accent);
}

.card__add {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  font-size: 1.15rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s, transform .1s;
  line-height: 1;
}
.card__add:active { background: var(--accent-d); transform: scale(.88); }

/* ============================================================
   NO RESULTS
============================================================ */
.no-results {
  display: none;
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: .9rem;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 28px 16px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer__logo { font-size: 1rem; font-weight: 700; }
.footer__payments {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.footer__payments img {
  height: 22px;
  width: auto;
  object-fit: contain;
  filter: brightness(.7);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}
.footer__nav a {
  font-size: .75rem;
  color: var(--muted);
  text-decoration: underline;
}
.footer__copy { font-size: .72rem; color: #555; }

/* ============================================================
   OVERLAY
============================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* ============================================================
   CART DRAWER
============================================================ */
.drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 201;
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
}
.drawer.open { transform: translateY(0); }

.drawer__bar {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer__title { font-size: 1rem; font-weight: 700; }
.drawer__close {
  background: var(--bg3); border-radius: 50%;
  width: 30px; height: 30px;
  font-size: .85rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}

.drawer__items {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: none;
}
.drawer__items::-webkit-scrollbar { display: none; }

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

.cart-item {
  display: flex; align-items: center;
  gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item__img {
  width: 52px; height: 52px;
  border-radius: 10px; object-fit: cover;
  flex-shrink: 0; background: var(--bg3);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-size: .82rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item__price { font-size: .8rem; color: var(--accent); font-weight: 700; margin-top: 2px; }
.cart-item__controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qty-btn {
  width: 28px; height: 28px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.qty-num { font-size: .85rem; font-weight: 700; min-width: 18px; text-align: center; }

/* ============================================================
   UPSELL
============================================================ */
.upsell {
  border-top: 1px solid var(--border);
  padding: 12px 0 4px;
  flex-shrink: 0;
  display: none;
}
.upsell__label { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 0 16px 8px; }
.upsell__row {
  display: flex; gap: 10px;
  padding: 0 16px 8px;
  overflow-x: auto; scrollbar-width: none;
}
.upsell__row::-webkit-scrollbar { display: none; }

.upsell-card {
  flex-shrink: 0; width: 120px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s;
}
.upsell-card:active { border-color: var(--accent); }
.upsell-card__img { width: 100%; height: 70px; object-fit: cover; }
.upsell-card__info { padding: 6px 8px 8px; }
.upsell-card__name {
  font-size: .68rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 4px;
}
.upsell-card__price { font-size: .72rem; font-weight: 700; color: var(--accent); }

/* ============================================================
   DRAWER FOOTER
============================================================ */
.drawer__foot {
  border-top: 1px solid var(--border);
  padding: 14px 16px 28px;
  display: none;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.drawer__total-row {
  display: flex; justify-content: space-between;
  align-items: center; font-size: .9rem; font-weight: 600;
}
.drawer__total { color: var(--accent); font-size: 1.05rem; font-weight: 800; }
.checkout-btn {
  width: 100%; background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 700; border-radius: 14px; padding: 16px;
  transition: background .2s;
}
.checkout-btn:active { background: var(--accent-d); }

/* ============================================================
   FAB
============================================================ */
.fab {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  z-index: 150; background: var(--accent); color: #fff;
  border-radius: 16px; height: var(--fab-h);
  display: none; align-items: center; justify-content: center;
  gap: 8px; font-size: .9rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 8px 24px rgba(232,90,79,.4);
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   COOKIE BANNER
============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .8rem; color: var(--muted); flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  font-size: .8rem; font-weight: 700;
  border-radius: 10px; padding: 9px 16px;
  transition: all .18s;
}
.cookie-btn--reject { background: var(--bg3); color: var(--muted); border: 1px solid var(--border); }
.cookie-btn--accept { background: var(--accent); color: #fff; }

/* ============================================================
   TOAST
============================================================ */
.toast {
  position: fixed; bottom: 88px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 20px;
  border-radius: 50px; font-size: .8rem; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none;
  z-index: 400; transition: all .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   FILTER
============================================================ */
.cat-section.hidden { display: none; }

/* ============================================================
   STATIC PAGES
============================================================ */
.page-wrap {
  min-height: 100vh;
  padding: 80px 20px 40px;
  max-width: 640px;
  margin: 0 auto;
}
.page-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,10,10,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); z-index: 100;
}
.page-header__back {
  background: none; color: var(--text); font-size: 1.1rem;
}
.page-header__title { font-size: 1rem; font-weight: 700; }
.page-header__logo { font-size: .9rem; font-weight: 800; color: var(--accent); }

.page-section { margin-top: 32px; }
.page-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.page-section p  { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.page-section ul { padding-left: 18px; }
.page-section li { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-bottom: 4px; }

/* ============================================================
   CHECKOUT
============================================================ */
.checkout-wrap {
  min-height: 100vh;
  padding: 80px 16px 40px;
  max-width: 500px;
  margin: 0 auto;
}
.checkout-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.form-group input, .form-group select {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 13px 16px;
  font-size: .9rem; color: var(--text);
  transition: border-color .2s; width: 100%;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.form-group select option { background: var(--bg3); }

.payment-methods { display: flex; gap: 10px; margin-bottom: 24px; }
.pay-option {
  flex: 1; padding: 16px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--bg2);
  cursor: pointer; text-align: center; transition: all .18s;
}
.pay-option.selected { border-color: var(--accent); background: rgba(232,90,79,.1); }
.pay-option__icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.pay-option__label { font-size: .82rem; font-weight: 700; }

.checkout-summary {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; margin-bottom: 24px;
}
.checkout-summary__title { font-size: .85rem; font-weight: 700; margin-bottom: 12px; }
.checkout-item {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--muted);
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-total {
  display: flex; justify-content: space-between;
  font-size: .95rem; font-weight: 800;
  margin-top: 12px; color: var(--accent);
}
.submit-btn {
  width: 100%; background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 700; border-radius: 14px;
  padding: 17px; transition: background .2s;
}
.submit-btn:active { background: var(--accent-d); }
.pix-qr {
  display: none; text-align: center; padding: 20px 0;
}
.pix-qr__box {
  background: #fff; border-radius: 16px;
  padding: 20px; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 4rem; margin-bottom: 12px;
}
.pix-qr p { font-size: .82rem; color: var(--muted); }

/* ============================================================
   ADICIONAR MODAL (extras)
============================================================ */
.add-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
  z-index: 600;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.add-modal-backdrop.show { display: flex; }

.add-modal {
  width: 100%; max-width: 500px;
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex; flex-direction: column;
  animation: slideUp .3s cubic-bezier(.32,.72,0,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.add-modal__topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px; flex-shrink: 0;
}
.add-modal__topbar-title { font-size: .9rem; font-weight: 700; }
.add-modal__close {
  background: var(--bg3); border-radius: 50%;
  width: 30px; height: 30px; color: var(--muted); font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.add-modal__product {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 16px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.add-modal__product-img {
  width: 68px; height: 68px; border-radius: 12px; object-fit: cover;
  flex-shrink: 0; background: var(--bg3);
}
.add-modal__product-name { font-size: .88rem; font-weight: 700; flex: 1; line-height: 1.35; }
.add-modal__product-price { font-size: .9rem; font-weight: 800; color: var(--accent); margin-top: 4px; }
.add-modal__extras-wrap {
  flex: 1; overflow-y: auto; padding: 14px 16px; scrollbar-width: none;
}
.add-modal__extras-wrap::-webkit-scrollbar { display: none; }
.add-modal__extras-title {
  font-size: .82rem; font-weight: 700; margin-bottom: 10px;
}
.add-modal__extras-title span { color: var(--muted); font-weight: 400; }
.add-modal__extras-list { display: flex; flex-direction: column; gap: 8px; }

.extra-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg3);
  border: 1.5px solid transparent; border-radius: 12px; cursor: pointer;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.extra-item.selected { border-color: var(--accent); background: rgba(232,90,79,.08); }
.extra-item__img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg2); }
.extra-item__info { flex: 1; }
.extra-item__name { font-size: .8rem; font-weight: 600; }
.extra-item__price { font-size: .75rem; color: var(--accent); font-weight: 700; margin-top: 1px; }
.extra-item__check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: #fff; transition: all .15s;
}
.extra-item.selected .extra-item__check { background: var(--accent); border-color: var(--accent); }

.add-modal__footer {
  padding: 12px 16px 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.add-modal__qty-row { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.add-modal__qty-btn {
  width: 32px; height: 32px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; font-size: 1.1rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.add-modal__qty-num { font-size: .95rem; font-weight: 700; min-width: 20px; text-align: center; }
.add-modal__confirm {
  flex: 1; background: var(--accent); color: #fff;
  font-size: .9rem; font-weight: 700; border-radius: 14px; padding: 14px;
  transition: background .18s;
}
.add-modal__confirm:active { background: var(--accent-d); }

/* PIX icon in checkout */
.pay-option__icon-img { width: 36px; height: 36px; object-fit: contain; display: block; margin: 0 auto 6px; }

/* ============================================================
   CARDS GRID (category pages)
============================================================ */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}
.cards-grid .card {
  background: var(--bg2);
}

/* Fix: images inside card img-wrap need object-fit */
.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.card:active .card__img-wrap img { transform: scale(1.04); }

/* ============================================================
   CATEGORY LINKS GRID (index page)
============================================================ */
.cat-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
}

.cat-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 6px;
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s;
  overflow: hidden;
}
.cat-link-card:active {
  border-color: var(--accent);
  background: rgba(232,90,79,.08);
}
.cat-link-card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.cat-link-card span {
  font-size: .62rem;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ============================================================
   FOOTER EXTRA INFO
============================================================ */
.footer__cnpj {
  font-size: .72rem;
  color: var(--muted);
}
.footer__address {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   CAT SECTION TITLE — enhanced
============================================================ */
.cat-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 4px;
}

/* ============================================================
   SECTION SEPARATOR
============================================================ */
.section-sep {
  height: 8px;
  background: var(--bg);
}

/* ============================================================
   RESPONSIVE — wider screens
============================================================ */
@media (min-width: 600px) {
  .cat-links-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 720px) {
  .cat-links-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .destaque-card { width: 180px; }
  .add-modal { max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   VISUAL POLISH — beautiful site upgrades
============================================================ */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* ── Cards — larger images + left accent strip ── */
.card { border-left: 3px solid transparent; transition: background .12s, border-color .12s; }
.card:active { border-left-color: var(--accent); background: #191919; }
.card__img-wrap { width: 104px; min-width: 104px; height: 104px; }
.card__body { padding: 14px 14px 12px; }
.card__name { font-size: .9rem; letter-spacing: -.15px; }
.card__price { text-shadow: 0 0 18px rgba(232,90,79,.3); }
.card__add { box-shadow: 0 2px 8px rgba(232,90,79,.4); border-radius: 10px; width: 32px; height: 32px; }

/* ── Category bar active state ── */
.cat-btn.active { box-shadow: 0 2px 14px rgba(232,90,79,.22); }
.cat-btn.active .cat-btn__label { font-weight: 700; }

/* ── Section titles ── */
.cat-section__title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.3px; }

/* ── Search box ── */
.search-box { border-radius: 16px; padding: 12px 14px; }

/* ── FAB — subtle pulse ── */
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(232,90,79,.4); }
  50%       { box-shadow: 0 8px 36px rgba(232,90,79,.65), 0 0 0 6px rgba(232,90,79,.07); }
}
.fab { animation: fabPulse 2.8s ease-in-out infinite; }

/* ── Header shadow ── */
.header { box-shadow: 0 2px 28px rgba(0,0,0,.55); }

/* ── Toast ── */
.toast { background: rgba(18,18,18,.98); box-shadow: 0 8px 30px rgba(0,0,0,.65); font-size: .85rem; }

/* ── Add modal product gradient ── */
.add-modal__product { background: linear-gradient(135deg, rgba(232,90,79,.06) 0%, transparent 60%); }
.add-modal { border-top: 1px solid rgba(255,255,255,.07); }

/* ── Upsell label ── */
.upsell__label { color: var(--text); font-weight: 800; }

/* ── Checkout enhancements ── */
.pay-option.selected { box-shadow: 0 0 0 1px var(--accent), 0 4px 18px rgba(232,90,79,.15); }
.submit-btn { box-shadow: 0 4px 22px rgba(232,90,79,.38); letter-spacing: .1px; }
.submit-btn:active { box-shadow: none; }
.pay-option__icon-img { width: 40px; height: 40px; }

/* ── Product count badge (category pages) ── */
.cat-count { font-size: .72rem; color: var(--muted); padding: 0 16px 10px; margin-top: -4px; }

/* ── Category link cards — bigger images ── */
.cat-link-card { border-radius: 16px; }
.cat-link-card img { width: 54px; height: 54px; border-radius: 12px; }

/* ── Destaque cards — taller image ── */
.destaque-card__img-wrap { height: 116px; }

/* ── Drawer drag bar ── */
.drawer__bar { background: rgba(255,255,255,.14); width: 40px; }

/* ── Cart item image ── */
.cart-item__img { border-radius: 12px; }

/* ── CEP modal button ── */
.cep-confirm-btn { box-shadow: 0 4px 18px rgba(232,90,79,.3); }

/* ── Desktop hover states ── */
@media (hover: hover) {
  .card:hover { background: rgba(255,255,255,.025); border-left-color: rgba(232,90,79,.28); }
  .card:hover .card__img-wrap img { transform: scale(1.04); }
  .cat-btn:hover { border-color: rgba(232,90,79,.35); }
  .cat-link-card:hover { border-color: var(--accent); background: rgba(232,90,79,.07); transform: translateY(-1px); }
  .destaque-card:hover { border-color: rgba(232,90,79,.5); transform: translateY(-1px); }
  .checkout-btn:hover { background: var(--accent-d); }
  .submit-btn:hover { background: var(--accent-d); }
  .cep-gps-btn:hover { background: rgba(232,90,79,.18); }
  .upsell-card:hover { border-color: rgba(232,90,79,.4); }
}

/* ── Tablet+ layout improvements ── */
@media (min-width: 540px) {
  .card__img-wrap { width: 112px; min-width: 112px; height: 112px; }
  .card__name { font-size: .95rem; }
}

@media (min-width: 720px) {
  .cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
  .cards-grid .card { border-left: none; border-top: none; }
  .cat-section__title { font-size: 1.15rem; }
  .checkout-wrap { padding-top: 88px; }
}
