/*
 * Casa de Carnes DESTAK — Vitrine
 * style.css — direcao "Acougue Noir"
 */

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body, ul, ol, figure, h1, h2, h3, h4, p { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Selecao e scrollbar --- */
::selection {
  background: var(--accent);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--base); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--radius-full);
  border: 2px solid var(--base);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Foco visivel --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: var(--z-toast);
  background: var(--accent-surface);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  transition: top var(--duration-base) var(--easing-out);
}
.skip-link:focus { top: var(--space-4); }

/* ============================================================
   LAYOUT / CONTAINER
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.section {
  padding-block: var(--space-16);
}
.section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration-slow) var(--easing-out), opacity var(--duration-base) var(--easing-out);
}
body.is-past-hero .header {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 768px) {
  .header { height: var(--header-height-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .header { transition: none; }
}

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}
.brand-logo.is-fallback {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  padding: 2px;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-logo--header {
  width: var(--logo-size-topbar);
  height: var(--logo-size-topbar);
}
.brand-logo--hero {
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: heroFadeUp 700ms var(--easing-out) 100ms forwards;
}
.brand-logo--footer {
  width: 36px;
  height: 36px;
}

.header__logo {
  height: 100%;
  width: 100%;
  border-radius: 50%;
}

.header__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background var(--duration-fast) var(--easing-out);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: var(--cart-badge-min, 20px);
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--duration-base) var(--easing-out);
}
.cart-badge.is-visible { transform: scale(1); }
.cart-badge.is-bump { animation: badgeBump 320ms var(--easing-out); }
@keyframes badgeBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ============================================================
   BARRA DE CATEGORIAS (chips)
   ============================================================ */
.category-bar {
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-category);
  background: var(--base);
  border-block: 1px solid var(--border-subtle);
  padding-block: var(--space-3);
  margin-top: var(--space-10);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .category-bar { top: var(--header-height-lg); }
}

.category-bar__scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-inline: var(--page-padding);
  margin-inline: calc(var(--page-padding) * -1);
}
.category-bar__scroll::-webkit-scrollbar { display: none; }

.chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--chip-radius);
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid transparent;
  transition: background var(--duration-base) var(--easing-out), color var(--duration-base) var(--easing-out);
}
.chip:hover { color: var(--text-primary); }
.chip[aria-pressed="true"] {
  background: var(--chip-bg-active);
  color: var(--chip-text-active);
}

/* ============================================================
   BUSCA
   ============================================================ */
.search {
  margin-top: var(--space-3);
  position: relative;
}
.search input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  border-radius: var(--input-radius);
  padding: 10px 14px 10px 40px;
  font-size: var(--text-base);
  transition: border-color var(--duration-base) var(--easing-out), box-shadow var(--duration-base) var(--easing-out);
}
.search input::placeholder { color: var(--input-placeholder); }
.search input:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
  outline: none;
}
.search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  display: none;
  align-items: center;
  justify-content: center;
}
.search__clear:hover { background: var(--surface-3); }
.search.has-value .search__clear { display: flex; }
.category-reset {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.category-reset:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroZoom 12s var(--easing-out) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; transform: none; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.55) 42%, rgba(13,13,13,0.35) 65%, rgba(13,13,13,0.65) 100%),
    linear-gradient(to right, rgba(13,13,13,0.5) 0%, transparent 45%);
}

.hero__content {
  width: 100%;
  padding-block: var(--space-16) var(--space-10);
}

.hero__logo {
  height: 100%;
  width: 100%;
  border-radius: 50%;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(2.25rem, 9vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 16ch;
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: heroFadeUp 700ms var(--easing-out) 220ms forwards;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  max-width: 46ch;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: heroFadeUp 700ms var(--easing-out) 340ms forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  opacity: 0;
  animation: heroFadeUp 700ms var(--easing-out) 460ms forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo--hero, .hero__title, .hero__subtitle, .hero__actions {
    opacity: 1; animation: none; transform: none;
  }
}

/* ============================================================
   BOTOES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  padding-inline: var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  white-space: nowrap;
  transition: background var(--duration-base) var(--easing-out), transform var(--duration-fast) var(--easing-out), box-shadow var(--duration-base) var(--easing-out), opacity var(--duration-base) var(--easing-out);
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.btn--primary:hover { background: var(--btn-primary-bg-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { background: var(--btn-primary-bg-press); transform: translateY(1px); box-shadow: var(--shadow-sm); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--surface-2); }

.btn--whatsapp {
  background: var(--btn-wpp-bg);
  color: var(--btn-wpp-text);
}
.btn--whatsapp:hover { background: var(--btn-wpp-bg-hover); transform: translateY(-1px); }
.btn--whatsapp:active { background: var(--btn-wpp-bg-press); transform: translateY(1px); }

.btn--block { width: 100%; }
.btn--sm { height: 36px; font-size: var(--text-sm); padding-inline: var(--space-4); }

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-text);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   FAIXA DE PROMOCAO
   ============================================================ */
.promo-strip {
  background: var(--accent-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: var(--space-3);
}
.promo-strip__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.promo-strip__label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  color: var(--promo);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.promo-strip__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================================
   OFERTAS DO DIA
   ============================================================ */
.vitrine-intro {
  margin-bottom: var(--space-10);
}
.vitrine-intro .section-subtitle,
.daily-offers__heading .section-subtitle {
  margin-bottom: 0;
}
.daily-offers {
  margin-bottom: var(--space-16);
}
.daily-offers__heading {
  margin-bottom: var(--space-8);
}
.daily-offers[hidden] {
  display: none;
}
.product-grid--offers {
  padding-bottom: var(--space-2);
}
.product-grid--offers .card[hidden] { display: none; }
.offers-toggle {
  margin-top: var(--space-6);
  width: 100%;
}

/* ============================================================
   GRID DE CATEGORIAS (showcase)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}
@media (min-width: 480px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}

.cat-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--duration-base) var(--easing-out), transform var(--duration-base) var(--easing-out), box-shadow var(--duration-base) var(--easing-out);
}
.cat-card:hover, .cat-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--easing-out);
}
.cat-card:hover img { transform: scale(1.06); }

.cat-card__scrim {
  position: absolute;
  inset: 0;
  background: var(--card-img-gradient);
}
.cat-card__label {
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
}
.cat-card[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

/* ============================================================
   GRID DE PRODUTOS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}
@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color var(--duration-base) var(--easing-out), transform var(--duration-base) var(--easing-out), box-shadow var(--duration-base) var(--easing-out);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card:hover { border-color: var(--card-border-hover); box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }

.card__media {
  position: relative;
  aspect-ratio: var(--img-aspect-card);
  background: var(--surface-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--badge-promo-bg);
  color: var(--badge-promo-text);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--badge-promo-radius);
}

.card__qty-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xs);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.card.in-cart .card__qty-badge { display: flex; }

.card__body {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--text-lg);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-1);
}

.card__desc {
  font-family: var(--desc-font, var(--font-body));
  font-size: var(--desc-size, var(--text-sm));
  color: var(--desc-color, var(--text-secondary));
  line-height: var(--desc-leading, var(--leading-snug));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.card__desc:empty { display: none; }

.card__price-row {
  margin-top: auto;
  margin-bottom: var(--space-3);
}
.card__price-original {
  font-size: var(--price-orig-size);
  color: var(--price-orig-color);
  text-decoration: line-through;
  display: block;
}
.card__price-original .price-de { color: var(--text-muted); font-size: var(--text-xs); text-decoration: none; margin-right: 2px; }

.card__price-promo {
  font-family: var(--price-promo-font);
  font-weight: var(--price-promo-weight);
  font-size: var(--price-promo-size);
  color: var(--price-promo-color);
  line-height: var(--leading-tight);
}
.card__price-unit {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-left: 2px;
}

.card__weight-notice {
  font-size: var(--weight-notice-size, var(--text-xs));
  color: var(--weight-notice-color, var(--text-muted));
  margin-bottom: var(--space-2);
}

.card__controls {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
  min-width: 0;
}

.qty {
  display: flex;
  align-items: center;
  background: var(--qty-bg);
  border: 1px solid var(--qty-border);
  border-radius: var(--qty-radius);
  height: var(--qty-height);
  flex-shrink: 0;
}
.qty__btn {
  width: 32px;
  height: 100%;
  color: var(--qty-btn-color);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--easing-out);
}
.qty__btn:hover { background: var(--accent-subtle); }
.qty__btn:disabled { color: var(--text-muted); cursor: not-allowed; }
.qty__value {
  width: 52px;
  min-width: 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  background: transparent;
  border: 0;
  appearance: textfield;
}
.qty__value::-webkit-inner-spin-button,
.qty__value::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.qty__value:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.card__add {
  flex: 1;
  height: var(--qty-height);
  min-width: 0;
}

@media (max-width: 1199px) {
  .card__controls { flex-direction: column; }
  .qty { width: 100%; }
  .qty__value { flex: 1; width: auto; }
  .card__add { flex: 0 0 var(--qty-height); width: 100%; padding-inline: var(--space-2); }
}

.card--out .card__media img { opacity: var(--out-img-opacity); }
.card--out .card__out-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semibold);
  color: var(--out-text);
  background: rgba(13,13,13,0.3);
}
.card--out .card__controls .btn { background: var(--out-bg); color: var(--out-text); cursor: not-allowed; }

/* ============================================================
   ESTADOS VAZIOS / ERRO
   ============================================================ */
.empty-state {
  text-align: center;
  padding-block: var(--space-16);
  grid-column: 1 / -1;
}
.empty-state__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.empty-state__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

/* ============================================================
   COMO FUNCIONA / PASSOS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding: var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step__num {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-3xl);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.step__title {
  font-weight: var(--fw-semibold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.step__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   CONFIANCA
   ============================================================ */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
}
.trust__block { border-left: 2px solid var(--accent); padding-left: var(--space-4); }
.trust__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.trust__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   RODAPE
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-12) var(--space-8);
  background: var(--surface-1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.footer__heading {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
.footer__text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--easing-out);
}
.footer__link:hover { color: var(--accent); }
.footer__hours-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding-block: var(--space-1);
  border-bottom: 1px solid var(--border-subtle);
}
.footer__hours-row:last-child { border-bottom: none; }
.footer__legal {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer__brand img { height: 36px; width: 36px; border-radius: 50%; }
.footer__brand span {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-lg);
}

/* ============================================================
   BOTAO FLUTUANTE WHATSAPP + CARRINHO (mobile)
   ============================================================ */
.fab-bar {
  position: fixed;
  left: var(--page-padding);
  right: var(--page-padding);
  bottom: var(--space-4);
  z-index: var(--z-drawer);
  display: flex;
  gap: var(--space-3);
  pointer-events: none;
}
.fab-bar > * { pointer-events: auto; }
.fab-cart {
  flex: 1;
  height: 52px;
  background: var(--accent-surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform var(--duration-slow) var(--easing-out), background var(--duration-base) var(--easing-out);
}
.fab-cart.is-visible { transform: translateY(0); }
.fab-cart:hover { background: var(--accent-hover); }
.fab-cart__total {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
}

/* ============================================================
   CARRINHO — DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-mid);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--easing-out);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  max-width: 560px;
  margin-inline: auto;
  max-height: 85vh;
  background: var(--drawer-bg);
  border-radius: var(--drawer-radius);
  box-shadow: var(--drawer-shadow);
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--easing-out);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cart-drawer.is-open { transform: translateY(0); visibility: visible; }

.cart-drawer__handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  margin: var(--space-3) auto var(--space-1);
  flex-shrink: 0;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: var(--z-base);
  background: var(--drawer-bg);
}
.cart-drawer__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-xl);
}

.cart-drawer__body {
  padding: var(--space-4);
  flex: none;
}

.cart-item {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item__meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}
.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
}
.cart-item__subtotal {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-lg);
}
.cart-item__remove {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-item__remove:hover { color: var(--error); }

.cart-empty {
  text-align: center;
  padding-block: var(--space-12);
}
.cart-empty__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.cart-drawer__footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}
.cart-total-row__label {
  font-size: var(--text-base);
  color: var(--text-secondary);
}
.cart-total-row__value {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-2xl);
}
.cart-weight-notice {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}
.fulfillment-field {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin: 0 0 var(--space-4);
}
.fulfillment-field legend {
  padding-inline: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}
.fulfillment-field label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-block: var(--space-1);
  cursor: pointer;
}
.fulfillment-field input { accent-color: var(--accent-surface); }
.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.cart-drawer__actions-row {
  display: flex;
  gap: var(--space-2);
}
.cart-drawer__actions-row .btn { flex: 1; }

.name-field {
  margin-bottom: var(--space-3);
}
.name-field label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.name-field input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  color: var(--input-text);
  padding: 10px 12px;
}
.name-field input:focus { border-color: var(--input-border-focus); box-shadow: var(--input-shadow-focus); outline: none; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-16) + 20px);
  transform: translate(-50%, 12px);
  z-index: var(--z-toast);
  background: var(--surface-2);
  border: 1px solid var(--success);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--easing-out), transform var(--duration-base) var(--easing-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  /* Conteudo essencial permanece visivel antes de qualquer observador rodar. */
  opacity: 1;
  transform: none;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   VISUALLY HIDDEN (a11y)
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Espaco extra no final da pagina p/ nao colidir com fab-bar */
.footer { padding-bottom: calc(var(--space-8) + 64px); }
@media (min-width: 640px) {
  .footer { padding-bottom: var(--space-8); }
  .fab-bar { display: none; }
}
