/* vapessmsul — site público
   Preto e branco puros; a cor vem só dos sabores. Uma família (Archivo) a variar na largura. */
:root {
  --black: #000;
  --white: #fff;
  --smoke: #9a9a9a;     /* texto secundário */
  --ash: #161616;       /* superfícies */
  --line: #2e2e2e;      /* contornos discretos */
  --chalk: #e8e8e8;     /* texto principal em fundo preto */
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 22px;
  --radius-sm: 999px;
  --font: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--chalk);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 99; background: var(--white); color: var(--black); padding: 8px 14px; border-radius: 8px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; font-variation-settings: "wdth" 108;
  border: 2px solid var(--white); background: transparent; color: var(--white);
  transition: background .15s, color .15s, transform .1s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--white); color: var(--black); }
.btn--line:hover { background: var(--white); color: var(--black); }
.btn--ghost { border-color: var(--line); color: var(--smoke); }
.btn--wide { width: 100%; min-height: 54px; font-size: 16px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 16px; }

/* ---------- barra ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px var(--gutter);
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__brand {
  opacity: 0; transition: opacity .2s;
  color: var(--white); text-decoration: none;
  font-weight: 900; font-size: 18px; letter-spacing: -.02em;
  font-variation-settings: "wdth" 125;
}
.bar.show-brand .bar__brand, .bar__brand:focus-visible { opacity: 1; }
.bar__cart {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 8px 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: none;
  font-weight: 600;
}
.bar__count {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--ash); font-weight: 800; font-size: 14px;
}
.bar__cart.has-items { border-color: var(--white); }
.bar__cart.has-items .bar__count { background: var(--white); color: var(--black); }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) var(--gutter) 0; max-width: 1280px; margin: 0 auto; }
.wordmark {
  margin: 0;
  color: var(--white);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.045em;
  line-height: .82;
  white-space: nowrap;
  font-size: 13vw; /* ajustado por JS para encher a largura */
}
.wordmark span { display: inline-block; }

/* A prateleira: uma caixa por produto, largura conforme o stock. */
.shelf {
  display: flex; gap: 3px;
  height: clamp(22px, 3.4vw, 40px);
  margin-top: clamp(14px, 2.4vw, 26px);
}
.shelf__box {
  flex: var(--g) 1 0;
  min-width: 6px;
  background: var(--c);
  border-radius: 4px;
  transform-origin: bottom;
}
.shelf__box.is-out {
  background: repeating-linear-gradient(135deg, #2a2a2a 0 4px, #000 4px 8px);
  flex-grow: .6;
}
.ready .shelf__box { animation: stack .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes stack { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px;
  margin-top: 18px; padding-bottom: clamp(28px, 5vw, 56px);
}
.hero__tagline { margin: 0; max-width: 34ch; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.3; color: var(--white); font-weight: 500; }
.hero__area { margin: 0; color: var(--smoke); }

/* ---------- como funciona ---------- */
.how { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how__steps {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1280px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
.how__steps li {
  counter-increment: step;
  padding: 22px 20px 24px 0;
  display: grid; gap: 4px; align-content: start;
}
.how__steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.how__steps strong {
  color: var(--white); font-size: 19px; font-weight: 800; font-variation-settings: "wdth" 112;
}
.how__steps strong::before { content: counter(step) ". "; color: var(--smoke); font-weight: 600; }
.how__steps span { color: var(--smoke); font-size: 15px; max-width: 32ch; }

/* ---------- catálogo ---------- */
.catalog { max-width: 1280px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 40px; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.catalog__head h2 {
  margin: 0; color: var(--white);
  font-size: clamp(34px, 5vw, 56px); line-height: 1; font-weight: 900;
  font-variation-settings: "wdth" 125; letter-spacing: -.03em;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .catalog__head { display: block; }
  .catalog__head h2 { margin-bottom: 14px; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: none; color: var(--smoke); font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--black); }

.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 900px) { .list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

.item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.item__swatch {
  position: relative;
  width: 104px; height: 120px; border-radius: 16px;
  background: var(--c);
  display: grid; place-items: center; overflow: hidden;
}
.item__swatch img { width: 100%; height: 100%; object-fit: contain; padding: 8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.item__swatch svg { width: 64%; }
.item__name {
  margin: 0; color: var(--white);
  font-size: 19px; line-height: 1.15; font-weight: 800;
  font-variation-settings: "wdth" 112; letter-spacing: -.01em;
}
.item__flavor { margin: 2px 0 0; color: var(--chalk); font-size: 15px; }
.item__desc { margin: 4px 0 0; color: var(--smoke); font-size: 14px; max-width: 46ch; }
.item__specs { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.item__specs span {
  font-size: 12.5px; font-weight: 600; color: var(--smoke);
  padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.item__specs .stock { color: var(--chalk); }
.item__specs .stock.low { background: var(--white); color: var(--black); border-color: var(--white); }
.item__specs .stock.out { text-decoration: line-through; }
.item__buy { display: grid; justify-items: end; gap: 10px; }
.item__price {
  margin: 0; color: var(--white);
  font-size: 22px; font-weight: 900; font-variation-settings: "wdth" 118; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.item__soldout { color: var(--smoke); font-size: 14px; }
.item.is-out .item__swatch { filter: grayscale(1) brightness(.45); }
.item.is-out .item__name, .item.is-out .item__price { color: var(--smoke); }

@media (max-width: 560px) {
  .item { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "s b" "s p"; column-gap: 14px; row-gap: 10px; align-items: start; }
  .item__swatch { grid-area: s; width: 84px; height: 104px; border-radius: 14px; }
  .item__body { grid-area: b; }
  .item__buy { grid-area: p; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
  .item .add { padding: 0 18px; }
  .how__steps { grid-template-columns: 1fr; }
  .how__steps li, .how__steps li + li { padding: 16px 0; border-left: 0; }
  .how__steps li + li { border-top: 1px solid var(--line); }
}

.empty { color: var(--smoke); padding: 30px 0; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom)); max-width: 1280px; margin: 0 auto; }
.foot__social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.foot__social a {
  display: inline-flex; flex-direction: column; gap: 0;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 14px;
  color: var(--white); text-decoration: none; font-weight: 700;
}
.foot__social a span { color: var(--smoke); font-size: 12px; font-weight: 500; }
.foot__social a:hover { border-color: var(--white); }
.foot__note { margin: 0 0 8px; color: var(--chalk); max-width: 60ch; }
.foot__warn { margin: 0 0 18px; color: var(--smoke); font-size: 14px; max-width: 60ch; }
.foot__small { margin: 0; color: var(--smoke); font-size: 13px; }

/* ---------- idade ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: var(--black);
  display: grid; place-items: center; padding: var(--gutter);
}
.gate__box { max-width: 440px; width: 100%; }
.gate__brand { margin: 0 0 28px; font-weight: 900; font-size: 22px; font-variation-settings: "wdth" 125; letter-spacing: -.03em; color: var(--white); }
.gate__q { margin: 0; color: var(--white); font-size: clamp(36px, 9vw, 52px); line-height: 1; font-weight: 900; font-variation-settings: "wdth" 112; letter-spacing: -.03em; }
.gate__why { color: var(--smoke); margin: 16px 0 28px; }
.gate__actions { display: grid; gap: 10px; }
.gate__actions .btn { min-height: 54px; }
.gate__denied { color: var(--white); font-weight: 600; }

/* ---------- cesto ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; max-height: 88dvh; overflow: auto;
  background: var(--ash); border-top: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 720px) {
  .sheet__panel { left: auto; top: 0; width: 440px; max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); transform: translateX(100%); }
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sheet__head h2 { margin: 0; color: var(--white); font-size: 26px; font-weight: 900; font-variation-settings: "wdth" 118; letter-spacing: -.02em; }
.sheet__items { list-style: none; margin: 0; padding: 0; }
.sheet__empty { color: var(--smoke); }
.line { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__dot { width: 14px; height: 36px; border-radius: 4px; background: var(--c); }
.line__txt { display: grid; }
.line__txt strong { color: var(--white); font-weight: 700; }
.line__txt span { color: var(--smoke); font-size: 13.5px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.item .stepper { border-color: var(--white); }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet__form { display: grid; gap: 14px; margin-top: 18px; }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; }
.sheet__total span { color: var(--smoke); }
.sheet__total strong { color: var(--white); font-size: 28px; font-weight: 900; font-variation-settings: "wdth" 118; }
.sheet__form label { display: grid; gap: 6px; color: var(--smoke); font-size: 14px; }
.sheet__form input {
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--black); color: var(--white); font: inherit;
}
.sheet__form input:focus { border-color: var(--white); outline: none; }
#send {
  position: sticky; bottom: calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 18px var(--ash);
}
.sheet__hint { margin: 0; color: var(--smoke); font-size: 13px; text-align: center; }

/* ---------- aviso ---------- */
.toast {
  position: fixed; left: 50%; top: 72px; z-index: 60;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none; white-space: nowrap;
  background: var(--white); color: var(--black); font-weight: 700;
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
