/* ============================================================
   Design system — inspirado em apps de delivery, com a paleta
   da marca: branco, AZUL VIVO (no lugar do verde), preto, cinza.
   Tudo via variáveis -> o admin poderá personalizar o tema.
   Responsivo: web (grid multi-coluna + top nav) e mobile (bottom nav).
   ============================================================ */
:root {
  --bg:            #ffffff;
  --surface:       #f4f6fa;   /* cinza muito claro (chips, áreas) */
  --surface-2:     #eef1f7;
  --text:          #121722;   /* preto */
  --muted:         #7b8190;   /* cinza */
  --border:        #e9ecf3;

  --primary:       #1565ff;   /* azul vivo */
  --primary-d:     #0d49d0;
  --primary-l:     #e9f0ff;   /* azul bem claro p/ fundos */
  --primary-soft:  #f1f6ff;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18,23,34,.05);
  --shadow:    0 6px 18px rgba(18,23,34,.07);
  --shadow-lg: 0 12px 32px rgba(18,23,34,.12);

  --maxw: 1180px;
  --appbar-h: 70px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; display: block; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- App bar (topo) ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.appbar__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--appbar-h); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--primary-l); color: var(--primary);
}
.brand__name strong { color: var(--primary); }

.search {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 280px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 10px 16px; color: var(--muted);
}
.search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-size: .95rem; color: var(--text);
}
.appbar__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: .15s ease;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .badge-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700;
  border-radius: var(--r-pill); display: grid; place-items: center; border: 2px solid #fff;
}
.avatar {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-d); }
.btn--primary:disabled { opacity: .5; cursor: not-allowed; }
.btn--light { background: #fff; color: var(--primary); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--block { width: 100%; }

/* ---------- Greeting ---------- */
.greeting { padding: 26px 0 8px; }
.greeting h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.greeting p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Categorias (pills com ícone) ---------- */
.cat-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 16px 2px;
  scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: .92rem; color: var(--text); transition: .15s ease;
}
.cat-pill__icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: #fff; font-size: 1.05rem; box-shadow: var(--shadow-sm);
}
.cat-pill:hover { border-color: #d7deea; }
.cat-pill.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-pill.is-active .cat-pill__icon { background: rgba(255,255,255,.2); }

/* ---------- Banner de promoção ---------- */
.promo {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-d) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 26px 28px; margin: 10px 0 6px;
  box-shadow: var(--shadow); overflow: hidden;
}
.promo__tag {
  display: inline-block; background: rgba(255,255,255,.18); color: #fff;
  padding: 5px 12px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; margin-bottom: 10px;
}
.promo__text h2 { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.15; }
.promo__art { font-size: 3.4rem; line-height: 1; white-space: nowrap; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.section-head h2 { margin: 0; font-size: 1.2rem; }
.section-head a { color: var(--primary); font-weight: 600; font-size: .9rem; }

/* ---------- Grid de produtos ---------- */
.product-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
}
.product-card {
  position: relative;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px; box-shadow: var(--shadow-sm); transition: .18s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card__media {
  height: 120px; border-radius: 14px; margin-bottom: 12px;
  display: grid; place-items: center; font-size: 3rem;
  background: radial-gradient(120% 120% at 50% 20%, var(--primary-soft), var(--surface));
}
.product-card__cat {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700;
}
.product-card__title { margin: 4px 0 2px; font-size: 1rem; line-height: 1.25; }
.product-card__meta { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: 6px; }
.product-card__bottom {
  display: flex; align-items: center; justify-content: space-between; margin-top: 12px;
}
.price { font-size: 1.12rem; font-weight: 800; }
.price small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.add-btn {
  width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto;
  background: var(--primary); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(21,101,255,.35);
  transition: .15s ease;
}
.add-btn:hover { background: var(--primary-d); transform: scale(1.06); }
.add-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.tag-soft {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary-l); color: var(--primary-d);
  padding: 3px 9px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 700;
}
.product-card__fav {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--muted); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 48px; background: var(--surface); color: var(--muted); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 36px; padding-top: 38px; padding-bottom: 30px; }
.footer__logo { height: 38px; width: auto; display: block; margin-bottom: 12px; }
.footer__title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.footer__about { margin: 0 0 16px; max-width: 380px; line-height: 1.55; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc {
  width: 38px; height: 38px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); color: var(--text); transition: .15s ease;
}
.soc:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.soc svg { width: 17px; height: 17px; }
.footer__col h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); font-weight: 700; }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer__list a { transition: color .15s ease; }
.footer__list a:hover { color: var(--primary); }
.footer__addr { margin: 0; line-height: 1.65; }
.footer__bottom { border-top: 1px solid var(--border); }
.footer__bottominner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 16px; font-size: .82rem;
}
.footer__powered strong { color: var(--primary); }

/* ---------- Conta (appbar) ---------- */
.acct {
  display: inline-flex; align-items: center; padding: 9px 18px;
  border-radius: var(--r-pill); font-weight: 600; font-size: .9rem;
  background: var(--primary); color: #fff; transition: .15s ease; white-space: nowrap;
}
.acct:hover { background: var(--primary-d); }

/* ---------- Dropdown da conta ---------- */
.acct-menu { position: relative; }
.acct-menu .avatar { border: 0; cursor: pointer; padding: 0; font: inherit; }
.acct-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 234px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px;
}
.acct-dropdown__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct-dropdown__head strong { display: block; font-size: .92rem; color: var(--text); }
.acct-dropdown__head span { display: block; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-dropdown__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .9rem; font-weight: 500; color: var(--text); transition: .12s ease; }
.acct-dropdown__item > span { width: 18px; text-align: center; }
.acct-dropdown__item:hover { background: var(--surface); color: var(--primary); }
.acct-dropdown__item--out { color: #e5484d; margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0; }
.acct-dropdown__item--out:hover { background: #fdecec; color: #c93b3f; }

/* ---------- Hero ---------- */
.hero { padding: 30px 0 6px; }
.hero__title { margin: 0; font-size: 1.9rem; letter-spacing: -.025em; font-weight: 800; }
.hero__sub { margin: 8px 0 0; color: var(--muted); font-size: 1.02rem; max-width: 660px; }

/* Categorias como <a> (mantém o visual dos pills) */
.cat-pill { text-decoration: none; }

/* ---------- Cabeçalho de resultados ---------- */
.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin: 22px 0 14px; flex-wrap: wrap;
}
.results-head h2 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.results-head .muted { font-weight: 500; font-size: .95rem; }
.results-clear { color: var(--primary); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.results-clear:hover { text-decoration: underline; }

/* ---------- Paginação ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 32px 0 8px; }
.page-btn {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-weight: 600; font-size: .9rem; transition: .15s ease;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.is-disabled { opacity: .45; pointer-events: none; }
.page-info { color: var(--muted); font-size: .9rem; }

/* ---------- Estado vazio ---------- */
.empty { text-align: center; padding: 60px 20px; }
.empty__icon { font-size: 3rem; margin-bottom: 10px; }
.empty h3 { margin: 0 0 6px; font-size: 1.2rem; }
.empty p { margin: 0 0 18px; }

/* ---------- "Seu preço" flag (cards e detalhe) ---------- */
.price-flag {
  display: inline-flex; align-items: center; margin-left: 8px;
  background: var(--primary-l); color: var(--primary-d);
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: var(--r-pill); vertical-align: middle;
}
.price-flag--lg { font-size: .78rem; margin-left: 0; margin-top: 8px; padding: 6px 12px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 22px 0 4px; font-size: .85rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: #c8cfdb; }
.breadcrumb__current { color: var(--text); font-weight: 600; }

/* ---------- Página de produto ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; margin: 14px 0 8px; align-items: start; }
.pd__media {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1;
  display: grid; place-items: center; border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 50% 20%, var(--primary-soft), var(--surface));
}
.pd__media img { width: 100%; height: 100%; object-fit: cover; }
.pd__emoji { font-size: 6rem; }
.pd__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pd__cat {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 5px 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600; transition: .15s ease;
}
.pd__cat:hover { border-color: var(--primary); color: var(--primary); }
.pd__title { margin: 0 0 12px; font-size: 1.9rem; line-height: 1.15; letter-spacing: -.02em; }
.pd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.pd__meta strong { color: var(--text); }
.pd__descr { margin: 0 0 20px; line-height: 1.6; color: #36404f; max-width: 560px; }
.pd__price-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; }
.pd__price-old { display: block; color: var(--muted); text-decoration: line-through; font-size: .95rem; margin-bottom: 2px; }
.pd__price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pd__price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.pd__login-hint { display: inline-block; margin-top: 10px; color: var(--primary); font-weight: 600; font-size: .88rem; }
.pd__login-hint:hover { text-decoration: underline; }
.pd__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Quantidade (stepper) ---------- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-pill); overflow: hidden; background: #fff; }
.qty__btn { width: 38px; height: 40px; border: 0; background: #fff; color: var(--text); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.qty__btn:hover { background: var(--surface); color: var(--primary); }
.qty__input {
  width: 54px; height: 40px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: .95rem; font-weight: 700; color: var(--text); -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd__add { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pd__add-btn { flex: 1 1 auto; }
.pd__back { color: var(--primary); font-weight: 600; font-size: .9rem; align-self: center; }

/* ---------- Carrinho ---------- */
.cart { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; margin-top: 6px; }
.cart__list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid; align-items: center; gap: 14px; padding: 12px 14px;
  grid-template-columns: 64px 1fr auto auto auto;
  grid-template-areas: "media info qty sub del";
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
}
.cart-item__media { grid-area: media; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 1.7rem; background: var(--surface); border: 1px solid var(--border); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { grid-area: info; min-width: 0; }
.cart-item__name { font-weight: 700; display: block; }
.cart-item__name:hover { color: var(--primary); }
.cart-item__unit { color: var(--muted); font-size: .85rem; margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cart-item__qty { grid-area: qty; }
.cart-item__subtotal { grid-area: sub; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.cart-item__del { grid-area: del; }
.cart-item__remove { width: 32px; height: 32px; border-radius: var(--r-pill); border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; }
.cart-item__remove:hover { border-color: #e5484d; color: #e5484d; }

.cart__summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; position: sticky; top: calc(var(--appbar-h) + 14px); }
.cart__summary h3 { margin: 0 0 14px; }
.cart__row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.cart__row--total { color: var(--text); font-size: 1.35rem; font-weight: 800; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
.cart__hint { font-size: .82rem; margin: 8px 0 14px; }
.cart__summary .btn { margin-top: 8px; }
.cart__clear { width: 100%; margin-top: 14px; background: none; border: 0; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; }
.cart__clear:hover { color: #e5484d; }

/* ---------- Coração de favorito ---------- */
.card-wrap { position: relative; display: flex; }
.card-wrap > .product-card { flex: 1 1 auto; width: 100%; }
.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border); color: var(--muted);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: .15s ease;
}
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.fav-btn:hover { color: #e5484d; }
.fav-btn.is-active { color: #e5484d; }
.fav-btn.is-active svg { fill: currentColor; }
.fav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; vertical-align: -3px; margin-right: 5px; }
.fav-toggle.is-active { color: #e5484d; border-color: #f3c2c4; }
.fav-toggle.is-active svg { fill: currentColor; }

/* ---------- Minha conta ---------- */
.flash { padding: 12px 16px; border-radius: 12px; font-size: .9rem; margin-bottom: 16px; }
.flash--ok { background: #e9f7ee; color: #14773b; border: 1px solid #bfe6cd; }
.flash--erro { background: #fdecec; color: #b3261e; border: 1px solid #f6c9c6; }
.conta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.conta-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 22px; }
.conta-card h3 { margin: 0 0 16px; }
.conta-dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0 0 18px; }
.conta-dl dt { color: var(--muted); font-size: .85rem; }
.conta-dl dd { margin: 0; font-weight: 600; }
.conta-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.conta-sair { display: inline-block; color: #e5484d; font-weight: 600; font-size: .9rem; }
.conta-sair:hover { text-decoration: underline; }
.conta-form { display: flex; flex-direction: column; gap: 12px; }
.conta-form label { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--text); }
.conta-form input { padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: .95rem; }
.conta-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }
.conta-form .btn { margin-top: 6px; align-self: flex-start; }

/* ---------- Pedidos ---------- */
.orders { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; transition: .15s ease; }
.order-row:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.order-row__info strong { display: block; }
.order-row__info span { font-size: .85rem; }
.order-row__right { display: flex; align-items: center; gap: 14px; }
.order-total { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.order-status { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.order-status--pendente { background: #fff4e0; color: #a86310; }
.order-status--enviado { background: #e9f7ee; color: #14773b; }
.order-status--erro { background: var(--primary-l); color: var(--primary-d); }
.order-detail { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--r); }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.order-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.order-table .r { text-align: right; }
.order-table a:hover { color: var(--primary); }
.order-table tfoot td { border-bottom: 0; font-size: 1.05rem; padding-top: 14px; }

/* ---------- Toasts (vitrine) ---------- */
#toasts { position: fixed; top: 16px; right: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; }
.toast--erro { background: #e5484d; }
.toast--out { opacity: 0; transform: translateY(-8px); }

/* ============================================================
   MOBILE  (<= 860px): vira "app" com bottom nav flutuante
   ============================================================ */
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .appbar__inner { padding: 10px 0; }
  .appbar .search { order: 3; flex-basis: 100%; }
  .appbar__actions .desktop-only { display: none; }
  .hero { padding: 18px 0 2px; }
  .hero__title { font-size: 1.5rem; }
  .hero__sub { font-size: .95rem; }
  .acct { padding: 8px 14px; }
  .results-head h2 { font-size: 1.08rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .breadcrumb { padding: 14px 0 2px; }
  .pd { grid-template-columns: 1fr; gap: 20px; }
  .pd__title { font-size: 1.5rem; }
  .pd__emoji { font-size: 4.5rem; }
  .pd__price { font-size: 1.7rem; }
  .cart { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 56px 1fr auto; grid-template-areas: "media info del" "media qty sub"; gap: 8px 12px; }
  .cart-item__subtotal { text-align: right; }
  .cart-item__del { justify-self: end; }
  .cart__summary { position: static; }
  .conta { grid-template-columns: 1fr; }

  body { padding-bottom: 88px; }
  .bottom-nav {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px;
    z-index: 40; width: calc(100% - 32px); max-width: 460px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill);
    box-shadow: var(--shadow-lg); padding: 8px; justify-content: space-around; align-items: center;
  }
  .nav-item {
    display: flex; align-items: center; gap: 8px; color: var(--muted);
    padding: 10px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem;
  }
  .nav-item span { display: none; }
  .nav-item.is-active { background: var(--primary); color: #fff; }
  .nav-item.is-active span { display: inline; }
  .footer { margin-top: 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; padding-bottom: 24px; }
}

/* Telas bem pequenas: 1 produto por linha continua confortável a partir de 2 col */
@media (min-width: 861px) {
  .mobile-only { display: none !important; }
}
