/* Base dos rascunhos: fundo escuro, comida grande e título condensado.
   Cada loja define cor de destaque, tom do fundo e tipografia nas variáveis. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--fundo);
  color: #fff;
  font-family: var(--corpo);
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Comida com cor viva: as fotos e os vídeos ganham saturação e contraste. */
.produto-foto img { filter: saturate(1.25) contrast(1.06); }
.abertura-midia video { filter: var(--vivo-video, saturate(1.3) contrast(1.08)); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }

.aviso-demo {
  padding: 0.375rem 1rem;
  background: #000;
  color: var(--suave);
  font-size: 0.75rem;
  text-align: center;
}

.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1rem;
  background: var(--topo);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.marca {
  color: #fff;
  font-family: var(--titulo);
  font-size: 1.5rem;
  font-weight: var(--peso-titulo);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.marca span { color: var(--titulo-cor, var(--destaque)); }
/* No celular, o nome da loja fica em uma linha para o topo não crescer. */
.marca { white-space: nowrap; }
@media (max-width: 30rem) {
  .marca { font-size: 1.25rem !important; }
}
.topo nav { display: none; gap: 1.75rem; }
.topo nav a { color: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.carrinho {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--linha);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.carrinho svg { width: 1.25rem; height: 1.25rem; }

/* Abertura com vídeo: ele ocupa a largura e se dissolve no fundo. */
.abertura { position: relative; }
/* Luz da cor da loja atrás do texto: tira o aspecto chapado do fundo escuro. */
.abertura::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(70% 60% at 20% 75%, rgb(var(--brilho) / 0.26), transparent 70%);
}
.abertura-midia {
  position: relative;
  height: 26rem;
  overflow: hidden;
  background: var(--fundo);
}
.abertura-midia video { object-position: 50% var(--enquadra-cel, 50%); }
/* O vídeo some aos poucos sobre o fundo e a luz, sem deixar linha visível. */
.abertura-midia {
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent);
  mask-image: linear-gradient(to bottom, #000 68%, transparent);
}
.abertura-texto {
  position: relative;
  z-index: 1;
  margin-top: -3.75rem;
  padding: 0 1rem 1.5rem;
}
h1 {
  font-family: var(--titulo);
  font-size: clamp(3.25rem, 15.5vw, 6rem);
  font-weight: var(--peso-titulo);
  line-height: 1.02;
  text-transform: uppercase;
}
h1 span { display: block; color: var(--titulo-cor, var(--destaque)); }
.abertura-texto p {
  max-width: 30rem;
  margin-top: 0.75rem;
  color: #ececec;
  font-size: 1.0625rem;
}
.botoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-top: 1.25rem;
  max-width: 30rem;
}
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--destaque);
  border-radius: 10px;
  background: var(--destaque);
  color: var(--sobre-destaque);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.botao.contorno { background: none; border-color: #fff; color: #fff; }
.botao:active, .escolher:active { transform: scale(0.97); }

/* O título entra uma única vez, ao abrir a página. */
.abertura-texto > * { animation: subir 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.abertura-texto > p { animation-delay: 0.12s; }
.abertura-texto > .botoes { animation-delay: 0.22s; }
@keyframes subir {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.fatos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-block: 1px solid var(--linha);
  background: var(--linha);
}
.fato {
  display: grid;
  padding: 0.875rem 1rem;
  background: var(--fundo);
  font-size: 0.8125rem;
  color: var(--suave);
}
.fato strong { color: #fff; font-size: 0.9375rem; font-weight: 700; }

.secao { padding: 2.25rem 1rem 3rem; max-width: 76rem; margin: 0 auto; }
h2 {
  font-family: var(--titulo);
  font-size: 2.25rem;
  font-weight: var(--peso-titulo);
  line-height: 1.1;
  text-transform: uppercase;
}
.lista {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.produto {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  overflow: hidden;
  border: 1px solid var(--linha);
  border-radius: 14px;
  background: var(--superficie);
}
.produto-foto { min-height: 9rem; overflow: hidden; }
.produto-info { display: grid; align-content: space-between; gap: 0.5rem; padding: 0.875rem; }
.produto h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.produto p { color: var(--suave); font-size: 0.875rem; line-height: 1.4; }
.produto-pe { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.preco { color: var(--preco); font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.preco small { display: block; color: var(--suave); font-size: 0.6875rem; font-weight: 500; }
.escolher {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--destaque);
  color: var(--sobre-destaque);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s, filter 0.2s;
}
.produto { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.25s; }
.produto-foto img { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s; }
.abertura-midia video { transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.carrinho { transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.carrinho svg { transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.6, 1); }
.topo nav a { position: relative; padding-block: 0.25rem; transition: color 0.2s; }
.topo nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--titulo-cor, var(--destaque));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.marca { transition: letter-spacing 0.25s; }
.fato { transition: background 0.2s; }
.fato strong { transition: color 0.2s; }

/* Só em aparelhos com mouse: no toque, o efeito ficaria preso depois de tocar. */
@media (hover: hover) {
  .botao:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgb(var(--brilho) / 0.55);
  }
  .botao::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.4) 50%, transparent 70%);
    transform: translateX(-120%);
  }
  .botao:hover::after { transform: translateX(120%); transition: transform 0.6s ease; }
  .botao.contorno:hover { background: #fff; border-color: #fff; color: #000; box-shadow: 0 10px 28px rgb(255 255 255 / 0.25); }

  .produto:hover {
    transform: translateY(-6px);
    border-color: var(--titulo-cor, var(--destaque));
    box-shadow: 0 16px 36px rgb(var(--brilho) / 0.35);
  }
  .produto:hover .produto-foto img { transform: scale(1.1); filter: saturate(1.4) contrast(1.08); }
  .produto:hover .escolher { transform: scale(1.06); box-shadow: 0 6px 18px rgb(var(--brilho) / 0.55); }

  .abertura:hover .abertura-midia video { transform: scale(1.04); }
  .topo nav a:hover { color: var(--titulo-cor, var(--destaque)); }
  .topo nav a:hover::after { transform: scaleX(1); }
  .carrinho:hover { border-color: var(--titulo-cor, var(--destaque)); background: rgb(var(--brilho) / 0.18); }
  .carrinho:hover svg { transform: translateX(3px) rotate(-8deg); }
  .marca:hover { letter-spacing: 0.06em; }
  .fato:hover { background: rgb(var(--brilho) / 0.14); }
  .fato:hover strong { color: var(--titulo-cor, var(--destaque)); }
}

@media (min-width: 60rem) {
  .topo { padding: 0.75rem max(1.5rem, calc((100vw - 76rem) / 2)); }
  .topo nav { display: flex; }
  .abertura {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 38rem;
    padding-left: max(1.5rem, calc((100vw - 76rem) / 2));
  }
  .abertura-texto { order: -1; margin: 0; padding: 2rem 2rem 2rem 0; }
  h1 { font-size: clamp(4.5rem, 6.4vw, 6.5rem); }
  .abertura-midia { height: 38rem; }
  .abertura-midia video { object-position: 50% var(--enquadra-pc, 50%); }
  .abertura-midia {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%);
    mask-image: linear-gradient(to right, transparent, #000 22%);
  }
  .fatos { grid-template-columns: repeat(4, 1fr); padding-inline: max(1.5rem, calc((100vw - 76rem) / 2)); background: var(--fundo); }
  .fato { padding-inline: 0; }
  .secao { width: min(76rem, 100% - 3rem); padding-inline: 0; }
  .lista { grid-template-columns: repeat(3, 1fr); }
  .produto { grid-template-columns: 1fr; }
  .produto-foto { height: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
