/* =========================================================
   SOS Guitar Music Shop
   Cores do logo: vermelho, preto e branco
   Tipografia: Anton (o "GUITAR" do logo), Kaushan Script (o "Music Shop"),
   Manrope no texto e IBM Plex Mono para etiquetas de preço e metadados
   ========================================================= */

/* Fontes servidas daqui, não do Google Fonts: sem duas conexões a mais antes do
   primeiro texto. Só o subconjunto latino (cobre o português todo); a Manrope é
   variável, um arquivo para os pesos 400–600. Anton e Manrope têm preload no HTML. */
@font-face {
  font-family: "Anton";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "Kaushan Script";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kaushan-script.woff2") format("woff2");
}

:root {
  /* paleta fixa */
  --black: #0c0c0d;
  --black-deep: #070708;
  --white: #f6f5f3;
  --red: #d22a2a;          /* letras "SOS" do logo: preenchimentos (botão, selos, pontos) */
  --red-bright: #f04848;   /* texto pequeno vermelho sobre o preto (contraste AA) */
  --red-deep: #aa1f1e;     /* fundo do logo: faixas vermelhas */
  --red-dark: #8b1a17;     /* vinheta das faixas vermelhas */

  /* papéis: o tema escuro é o padrão; .theme-light e .theme-red redefinem */
  --bg: var(--black);
  --text: var(--white);
  --muted: #9b9ba0;
  --surface: #18181a;
  --line: #2c2c2f;
  --line-strong: #47474b;
  --accent-text: var(--red-bright);
  --script-color: var(--red-bright);

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-sans: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  /* só o miolo da página de produto: o conteúdo ali é curto e uma coluna de texto
     larga cansa a leitura. Os relacionados seguem na medida do resto do site. */
  --max-pv: 980px;
  --section: clamp(72px, 9vw, 136px);
  --radius-card: 6px;
  --radius-pill: 9999px;
  --header-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px);
  --header-total: calc(var(--header-h) + var(--safe-top));

  --ease: cubic-bezier(.2, .7, .2, 1);
  /* o --ease dispara no começo: ótimo para resposta a clique, ruim para um
     movimento que a pessoa precisa ver acontecer. Este espalha o percurso. */
  --ease-soft: cubic-bezier(.42, .08, .3, 1);
}

.theme-light {
  --bg: #f3f1ee;
  --text: #121213;
  --muted: #5c5c61;
  --surface: #e8e5e1;
  --line: #dad6d1;
  --line-strong: #b4b0aa;
  --accent-text: #c02424;
  --script-color: var(--red);
}
.theme-red {
  --bg: var(--red-deep);
  --text: var(--white);
  --muted: rgba(246, 245, 243, .8);
  --surface: rgba(0, 0, 0, .14);
  --line: rgba(246, 245, 243, .24);
  --line-strong: rgba(246, 245, 243, .45);
  --accent-text: var(--black);
  --script-color: var(--black);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-total); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* grão sutil sobre tudo (papel de pôster). Começa abaixo do header: o Safari do
   iOS 26 pinta a barra de status com a cor do elemento fixo que está no topo da
   tela, e esta camada transparente por cima do header o impedia de achar o preto */
body::after {
  content: "";
  position: fixed;
  inset: var(--header-total) 0 0 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--red); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-pill); text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 0px solid var(--red-bright); outline-offset: 0px; }
.theme-red :focus-visible { outline-color: var(--white); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); background: var(--bg); color: var(--text); }

/* ---------- tipografia ---------- */
.mono, .label, .eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.label, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.label::before, .eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.theme-red .label::before, .theme-red .eyebrow::before { background: var(--black); }

/* títulos: o "GUITAR" do logo — condensado, caixa-alta, apertado */
.display, .hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
/* entrelinha acima de 1: abaixo disso, acentos de caixa-alta (Ó, Ç) batem na linha de cima */
.display { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.04; }
.hero-title { font-size: clamp(40px, 6vw, 78px); line-height: 1.08; }

/* palavra em script: o "Music Shop" do logo. No máximo uma por título */
.script {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: .72em;
  line-height: 1;
  color: var(--script-color);
  transform: rotate(-4deg);
  padding: 0 .08em .06em;
}
.hero-title .script { display: block; margin: .1em 0 .22em; font-size: .62em; }

.section-lead { margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: 16px; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background-color: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-lg { min-height: 52px; padding: 16px 26px; font-size: 15px; }
.btn-red { background-color: var(--red); color: var(--white); }
.btn-red:hover { background-color: var(--white); color: var(--black); }
.theme-light .btn-red:hover { background-color: var(--black); color: var(--white); }
.btn-dark { background-color: var(--black); color: var(--white); }
.btn-dark:hover { background-color: var(--white); color: var(--black); }
.btn-outline { border-color: var(--text); color: var(--text); }
.btn-outline:hover { background-color: var(--text); color: var(--bg); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-outline:disabled:hover { background-color: transparent; color: var(--text); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.arrow-circle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transition: transform .3s var(--ease), background-color .2s, color .2s;
}
.arrow-circle.arrow-dark { background: var(--black); }
.arrow-circle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow-circle:hover { transform: rotate(45deg); background: var(--white); color: var(--black); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.link-underline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--red);
  background: none;
  color: var(--text);
  cursor: pointer;
}
.link-underline:hover { color: var(--accent-text); }

/* botão redondo (setas, fechar) */
.round-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, opacity .2s;
}
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover:not(:disabled) { border-color: var(--red); background: var(--red); color: var(--white); }
/* sobre vermelho, o hover vermelho sumiria */
.theme-red .round-btn:hover:not(:disabled) { border-color: var(--black); background: var(--black); }
.round-btn:disabled { opacity: .35; cursor: default; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-total);
  padding-top: var(--safe-top);
  background: var(--black);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-header .brand img { width: auto; height: 60px; }
/* nome da seção ao lado do logo, no script do "Music Shop" (só na luthieria):
   diz em que página se está e volta ao topo dela */
.brand-tag {
  margin-left: -8px;
  padding: 4px 6px 8px;
  font-family: var(--font-script);
  font-size: 26px;
  line-height: 1;
  color: var(--red-bright);
  text-decoration: none;
  transform: rotate(-4deg);
  transition: color .2s var(--ease);
}
.brand-tag:hover { color: var(--white); }

.main-nav { display: flex; gap: 2px; margin-inline: auto; position: relative; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--white);
  opacity: .78;
  transition: opacity .2s, background-color .2s;
}
.main-nav a:hover { opacity: 1; background: var(--surface); }
.main-nav a[aria-current="page"] { opacity: 1; background: var(--surface); border-radius: var(--radius-pill); }
/* sem JS: usa box-shadow estático; com JS: indicador deslizante assume */
.no-js .main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); border-radius: var(--radius-pill) var(--radius-pill) 4px 4px; }
/* separador antes de Luthieria/Instagram */
.nav-sep { display: block; width: 1px; height: 20px; background: var(--line-strong); align-self: center; margin-inline: 6px; }
/* indicador deslizante */
.nav-indicator { position: absolute; bottom: 0; height: 2px; background: var(--red); border-radius: 1px; pointer-events: none; transition: left .3s var(--ease), width .3s var(--ease), opacity .2s; opacity: 0; }
.main-nav .nav-cta-mobile { display: none; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.cart-btn:hover { background: var(--white); color: var(--black); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.cart-badge.is-bump { animation: badge-bump .45s var(--ease); }
@keyframes badge-bump { 40% { transform: scale(1.35); } }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block;
  width: 18px; height: 1.5px;
  margin-inline: auto;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.is-open .menu-toggle-bars { background: transparent; }
.is-open .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- faixas vermelhas (hero da loja e chamada final) ----------
   o mesmo fundo do logo: vermelho com vinheta, e uma retícula de pôster por cima */
.hero-shop, .cta-band {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 80% 90% at 62% 42%, #b9221f 0%, var(--red-deep) 45%, var(--red-dark) 100%);
  color: var(--text);
}
.hero-shop::before, .cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(0, 0, 0, .22) 1px, transparent 1.6px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}

/* ---------- hero da loja ----------
   no PC o hero inteiro + a faixa preta cabem na primeira tela (mesmo em 1366×768):
   título limitado também pela altura (vh), respiros curtos */
.hero-shop { padding-top: calc(var(--header-total) + clamp(24px, 3.5vw, 48px)); }
.hero-shop .hero-title { font-size: clamp(36px, min(5.4vw, 7.6vh), 68px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-lead { margin: 18px 0 28px; max-width: 52ch; font-size: 17px; color: var(--muted); }
/* ---------- hero: entrada item a item ----------
   Vale para as duas páginas. É sempre acima da dobra, então não precisa de
   observer: anima no carregamento, com atraso crescente. O estado inicial mora
   só no keyframe e o preenchimento é `both` — com movimento reduzido a animação
   é desligada e nada fica invisível, que é o mesmo acordo do logo-in. */
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }

.hero-copy > *,
.hero-facts li,
.hero-photo {
  animation: hero-in .7s var(--ease-soft) both;
}
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .16s; }
.hero-copy > :nth-child(3) { animation-delay: .27s; }
.hero-copy > :nth-child(4) { animation-delay: .38s; }
.hero-photo { animation-delay: .22s; }
/* a régua de fatos fecha a sequência, uma coluna depois da outra */
.hero-facts li:nth-child(1) { animation-delay: .5s; }
.hero-facts li:nth-child(2) { animation-delay: .58s; }
.hero-facts li:nth-child(3) { animation-delay: .66s; }
.hero-facts li:nth-child(4) { animation-delay: .74s; }

/* entrada do logo: percurso largo e devagar, para dar tempo de ver o giro.
   O estado final repete a lista inteira do keyframe (rotate/scale/translate) para
   o navegador interpolar propriedade a propriedade, em vez de matriz. */
.hero-logo img {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  transform: rotate(-3deg) scale(1) translateY(0);
  /* entra junto com a foto da luthieria, logo depois do título */
  animation: logo-in 1.9s var(--ease-soft) .22s both;
}
@keyframes logo-in {
  from { opacity: 0; transform: rotate(-16deg) scale(.78) translateY(26px); }
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(28px, 3.5vw, 44px);
  font-size: 12px;
}
.hero-facts li {
  display: flex;
  gap: 12px;
  padding: 14px 0 26px;
  border-top: 1px solid var(--line-strong);
}
.hero-facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-facts span { color: var(--black); }
/* a luthieria tem 4 passos em vez de 3 fatos */
.hero-facts-4 { grid-template-columns: repeat(4, 1fr); }

/* hero da luthieria: a grade e os tamanhos do hero da loja (.hero-shop), em preto.
   Fundo e retícula são próprios, para poder ajustar sem mexer na loja: pontos
   vermelhos mais suaves e máscara que começa mais à esquerda, para a retícula
   alcançar também a coluna do texto. O que era preto sobre o vermelho (números
   dos fatos) volta às cores do tema escuro. */
.hero-shop.hero-luthieria { background: var(--black); }
.hero-shop.hero-luthieria::before {
  background: radial-gradient(rgb(210 42 42 / 20%) 1px, transparent 1.6px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(115deg, transparent 8%, #000 80%);
  mask-image: linear-gradient(115deg, transparent 8%, #000 80%);
}
.hero-luthieria .hero-facts span { color: var(--red-bright); }
/* no lugar do logo, a foto da oficina, deitada (4:3) para o hero ficar na mesma
   altura do da loja */
.hero-photo { position: relative; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 45%; filter: saturate(.9) contrast(1.03); }

/* faixa preta inclinada, como fita de pôster */
.strip {
  position: relative;
  z-index: 2;
  width: 104%;
  margin: -14px -2% 0;
  background: var(--black);
  border-block: 2px solid var(--red);
  transform: rotate(-1.2deg);
  overflow: hidden;
}
.marquee { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track { display: flex; flex: none; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--white);
}
.marquee-track span::after { content: "✦"; color: var(--red); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- loja ---------- */
.shop { padding-top: 56px; }

/* cabeçalho do catálogo: status + título */
.shop-head {
  padding-bottom: clamp(20px, 2.5vw, 28px);
}
.shop-head .display { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; }
.shop-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}
/* ponto "ao vivo": pulsa quando o catálogo carregou */
.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.is-live .live-dot { background: var(--red-bright); }
.is-live .live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--red-bright);
  animation: live-pulse 2s var(--ease) infinite;
}
@keyframes live-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

/* barra de filtros: gruda embaixo do header ao rolar */
.shop-toolbar {
  position: sticky;
  top: calc(var(--header-total) + -4px);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* search na toolbar */
.toolbar-search { flex: 1 1 160px; }
.toolbar-search input { width: 100%; padding: 0 16px 0 40px; }

.shop-filters { display: flex; flex-direction: column; gap: 4px; }
.filter-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.filter-pill .mono { font-size: 11px; color: var(--muted); }
.filter-pill:hover { border-color: var(--text); }
.filter-pill[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.filter-pill[aria-pressed="true"] .mono { color: var(--white); opacity: .85; }

.shop-tools { display: flex; gap: 8px; }
.shop-search { position: relative; display: flex; align-items: center; }
.shop-search svg {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round;
  pointer-events: none;
}
.shop-search input, .shop-sort select {
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background-color: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* ≥16px evita zoom automático no iOS ao focar */
  transition: border-color .2s;
}
.shop-search input::placeholder { color: var(--muted); }
.shop-search input:focus, .shop-sort select:focus { border-color: var(--text); }
.shop-sort select {
  appearance: none;
  padding: 0 38px 0 16px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ba0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.shop-sort option { background: var(--black); color: var(--white); }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.sort-prefix { font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.shop-count { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.shop-count:empty { display: none; }
.product-grid { margin-top: 24px; }

/* card de produto */
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
/* hover só em dispositivos com ponteiro preciso (mouse/trackpad) — evita piscar no touch */
@media (hover: hover) {
  .product:hover { border-color: var(--line-strong); background: var(--surface); }
  .product:hover .product-photo img { transform: scale(1.04); }
  .product-name button:hover { color: var(--accent-text); }
}
.product-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
}
/* foto de produto sem filtro: a embalagem aparece como é */
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product.is-out .product-photo img { filter: grayscale(1); opacity: .5; }
/* selo: adesivo vermelho torto */
.product-badge {
  position: absolute;
  left: 10px; top: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 500;
  transform: rotate(-6deg);
}
.product-badge.is-out { background: var(--black); border: 1px solid var(--line-strong); }
.product-info { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 12px 12px 0; }
.product-cat { font-size: 10.5px; color: var(--muted); }
.product-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.product-name button { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; transition: color .2s; }
.product-variant { font-size: 10.5px; color: var(--muted); }
/* preço como etiqueta de loja: Anton */
.product-price { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.product-price strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.product-price s { order: -1; flex-basis: 100%; font-size: 12px; color: var(--muted); }
.product-price span { flex-basis: 100%; font-size: 10.5px; color: var(--muted); }
.product-actions { padding: 12px; }
/* no card, o controle com borda vermelha = "está no pedido" */
.product-actions .stepper { border-color: var(--red); }

/* quantidade: − [número digitável] + */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}
.stepper button {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s;
}
.stepper button:hover:not(:disabled) { background: var(--red); color: var(--white); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.stepper-input {
  flex: 1;
  width: 40px;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-size: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.stepper-input:focus { background: var(--surface); outline: none; }
.stepper-input:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 0; }
/* tamanho grande: página do produto */
.stepper-sm { min-height: 44px; padding: 3px; width: 140px; }
.stepper-sm button { width: 36px; height: 36px; }
.stepper-sm svg { width: 16px; height: 16px; }
.stepper-sm .stepper-input { height: 36px; font-size: 18px; }
.stepper-lg { min-height: 56px; padding: 4px; width: 172px; }
.stepper-lg button { width: 46px; height: 46px; }
.stepper-lg svg { width: 18px; height: 18px; }
.stepper-lg .stepper-input { height: 46px; font-size: 24px; }

.product.is-skeleton { pointer-events: none; }
.product.is-skeleton .product-photo { animation: skeleton 1.4s ease-in-out infinite; }
.sk-line { display: block; height: 12px; margin: 16px 16px 0; border-radius: 3px; background: var(--surface); animation: skeleton 1.4s ease-in-out infinite; }
.sk-line.is-short { width: 40%; margin-bottom: 24px; }
@keyframes skeleton { 50% { opacity: .45; } }

.shop-empty { padding: 56px 0; text-align: center; color: var(--muted); border-block: 1px solid var(--line); }
.shop-fallback { max-width: 640px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-card); }
.shop-fallback h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; }
.shop-fallback p:not(.label) { margin: 12px 0 28px; color: var(--muted); }
.shop-note { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.shop-note a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--red); }
.shop-note a:hover { color: var(--accent-text); }

/* barra do pedido no celular */
.cart-bar { display: none; }

/* ---------- página do produto (tela cheia, link #produto/<id>) ---------- */
@keyframes fade-in { from { opacity: 0; } }
.pv {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--black);
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* só opacidade: um transform aqui faria o aviso (position: fixed) andar junto durante a animação */
.pv[open] { animation: fade-in .3s var(--ease); }
.pv::backdrop { background: var(--black); }

.pv-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 var(--gutter);
  background: rgba(12, 12, 13, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) { .pv-bar { background: rgba(12, 12, 13, .8); backdrop-filter: blur(10px); } }
.pv-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.pv-back:hover { border-color: var(--white); }
.pv-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-crumb { flex: 1; min-width: 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pv-main {
  width: 100%;
  max-width: var(--max-pv);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.pv-media { position: sticky; top: 88px; }
.pv-photo {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.pv-photo img { width: 100%; height: 100%; object-fit: cover; }
.pv-photo .product-badge { left: 14px; top: 16px; font-size: 12px; padding: 8px 12px; }
.pv-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pv-thumb {
  flex: none;
  width: 60px; height: 60px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumb:hover, .pv-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--red); }

.pv-photo img { cursor: zoom-in; }
.pv-zoom {
  position: absolute;
  right: 10px; bottom: 10px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(0 0 0 / .55);
  color: var(--white);
  cursor: zoom-in;
  transition: background-color .2s, border-color .2s;
}
.pv-zoom:hover { background: var(--red); border-color: var(--red); }
.pv-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.photo-full {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / .94);
}
.photo-full::backdrop { background: rgb(0 0 0 / .94); }
.photo-full img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.photo-full-close { position: absolute; right: 16px; top: 16px; z-index: 1; }

.pv-info { display: flex; flex-direction: column; gap: 14px; }
.pv-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pv-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: .7; }
.pv-stock.is-low { color: var(--red-bright); }
.pv-stock.is-low::before { background: var(--red-bright); opacity: 1; }
.pv-stock.is-out::before { background: var(--line-strong); }
.pv-info h2 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.pv-price { margin: 0; padding: 0; gap: 4px 12px; }
.pv .pv-price strong { font-size: clamp(30px, 3.2vw, 42px); }
.pv-price s { font-size: 14px; }
.pv-price span { font-size: 12px; }
.pv-desc { color: var(--muted); font-size: 15px; white-space: pre-line; max-width: 56ch; }

/* comprar: quantidade → adicionar / perguntar */
.pv-buy {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.pv-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pv-label { font-size: 12px; color: var(--muted); min-width: 92px; }
.pv-max { font-size: 11px; color: var(--red-bright); }
.pv-incart { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--white); }
.pv-incart-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pv-buttons { display: grid; gap: 10px; }
.pv-buttons .btn { width: 100%; }
.pv-buttons .btn-red { min-height: 52px; font-size: 15px; }
/* "Já está no pedido": estado neutro, não um vermelho apagado */
.pv-buttons .btn-red:disabled { opacity: 1; background: transparent; border-color: var(--line-strong); color: var(--muted); }
.pv-buttons .btn svg { flex: none; width: 18px; height: 18px; }
.pv-remove { justify-self: start; font-size: 12px; }

/* numa coluna estreita, três lado a lado quebravam toda linha ("Galeria / Oscar, /
   Joinville"). Empilhados, cada um cabe numa linha só. */
.pv-perks { display: grid; gap: 6px; }
.pv-perks li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.pv-perks svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--red-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-perks span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.pv-perks strong { font-size: 13px; font-weight: 600; color: var(--white); }
.pv-code { font-size: 11px; color: var(--muted); }

/* relacionados */
.pv-related {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.pv-related h3 { margin-bottom: 20px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.05; }
.related-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.related {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.related:hover { border-color: var(--line-strong); background: var(--surface); }
.related-photo { display: block; aspect-ratio: 1; background: var(--surface); border-bottom: 1px solid var(--line); }
.related-photo img { width: 100%; height: 100%; object-fit: cover; }
.related-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  min-height: 2.6em;
}
.related-price { padding: 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1; }

/* aviso rápido ("adicionado ao pedido") */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-pill);
  background: #18181a;
  color: var(--white);
  font-size: 14px;
  transform: translateX(-50%);
}
.toast.is-in { animation: toast-in .35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-action {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.toast-action:hover { background: var(--white); color: var(--black); }

/* ---------- gaveta do pedido ---------- */
.cart-drawer {
  width: min(460px, 100%);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
}
.cart-drawer[open] { animation: drawer-in .35s var(--ease); }
.cart-drawer::backdrop { background: rgba(7, 7, 8, .7); }
@keyframes drawer-in { from { transform: translateX(48px); opacity: 0; } }
.cart-inner { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px var(--gutter) 18px;
  border-bottom: 1px solid var(--line);
}
.cart-kicker { font-size: 11px; color: var(--muted); }
.cart-head h2 { margin-top: 4px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1; }
.cart-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gutter) 32px; }
.cart-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-card);
  font-size: 14px;
}
.cart-empty { padding: 56px 0; text-align: center; color: var(--muted); }
.cart-empty .link-underline { margin-top: 16px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img, .cart-item-ph {
  width: 64px; height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  object-fit: cover;
}
.cart-item-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.cart-item-unit { margin: 4px 0 10px; font-size: 11px; color: var(--muted); }
.cart-item .stepper { width: 124px; min-height: 38px; }
.cart-item .stepper button { width: 30px; height: 30px; }
.cart-item .stepper-input { height: 30px; font-size: 17px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cart-item-side strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-remove {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.cart-remove:hover { color: var(--white); border-color: var(--red); }
.cart-remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-total dt { font-size: 12px; color: var(--muted); }
.cart-total dd { font-family: var(--font-display); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-label { font-size: 11px; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 16px; /* 16px evita o zoom automático do iPhone */
  transition: border-color .2s;
}
.field input { min-height: 46px; padding: 0 14px; border-radius: var(--radius-pill); }
.field textarea { padding: 12px 16px; border-radius: var(--radius-card); resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--white); }
.field textarea::placeholder { color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--red-bright); }
.field-error { display: none; font-size: 13px; color: var(--red-bright); }
.field-error.is-visible { display: block; }
.field input::placeholder { color: var(--muted); opacity: .6; }
.field-label em { font-style: normal; opacity: .7; }
.field-hint { font-size: 13px; color: var(--muted); }
.field-hint:empty { display: none; }

/* entrega ou retirada: dois cartões lado a lado, o marcado ganha borda vermelha */
.receive { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.receive legend { padding: 0; margin-bottom: 10px; }
.receive-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.receive-option { position: relative; cursor: pointer; }
.receive-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.receive-card {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  transition: border-color .2s, background-color .2s;
}
.receive-card strong { font-size: 15px; font-weight: 600; }
.receive-card span { font-size: 13px; color: var(--muted); }
.receive-option:hover .receive-card { border-color: var(--white); }
.receive-option input:checked + .receive-card { border-color: var(--red-bright); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--red-bright); }
.receive-option input:focus-visible + .receive-card { outline: 2px solid var(--white); outline-offset: 2px; }


/* etapa 1: subtotal e o aviso de que o frete sai do CEP */
.cart-frete-note { margin: 14px 0 18px; font-size: 13px; color: var(--muted); }
.frete-link { font-size: 11px; }

.cart-sum { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cart-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cart-sum dt { font-size: 14px; color: var(--muted); }
.cart-sum dt span { font-size: 12px; color: var(--white); }
.cart-sum dd { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.cart-sum .is-pending dd { font-weight: 400; font-size: 13px; color: var(--muted); }
.cart-sum + .cart-total { padding-top: 12px; }

/* etapa 2: nome e endereço */
.checkout-back { margin-top: 20px; font-size: 11px; }
.checkout-title { margin-top: 16px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1; }
.checkout-title:focus { outline: none; }
.checkout-step[data-checkout-step="2"] .receive { margin: 18px 0 22px; }

/* pagamento: três cartões menores; dinheiro abre o "troco para" */
.pay-options { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-options .receive-card { padding: 8px; gap: 2px; justify-content: center; align-items: center;}
.pay-options .receive-card span { font-size: 12px; }
.pay > .field-error { margin-top: 8px; }
.troco { margin-top: 14px; }
.troco[hidden] { display: none; }
.troco .field { margin-bottom: 10px; }
.troco-input { position: relative; display: block; }
.troco-input .mono { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.field .troco-input input { width: 100%; padding-left: 46px; font-variant-numeric: tabular-nums; }
.troco-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.troco-chips:empty { display: none; }
.troco-chip { min-height: 36px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: none; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .2s; }
.troco-chip:hover { border-color: var(--white); }
.troco-chip[aria-pressed="true"] { border-color: var(--red-bright); box-shadow: inset 0 0 0 1px var(--red-bright); }

/* resumo do pedido: logo acima do botão, para conferir antes de enviar */
.order-summary { margin: 6px 0 14px; padding: 0px 18px 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: rgba(255, 255, 255, .03); }
.order-items { display: grid; gap: 8px; margin-top: 12px; }
.order-items li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.order-items span { min-width: 0; overflow-wrap: anywhere; }
.order-items strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-summary .cart-total { border-bottom: 0; padding: 14px 0 16px; }
.order-summary .cart-total dd { font-size: 28px; }

.address[hidden] { display: none; }
.address-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 10px; align-items: start; }
.address-cep { grid-column: 1; }
.address-bairro { grid-column: 2 / -1; }
/* bairro só leitura: vem do CEP e decide o frete */
.address-bairro input { background: rgba(255, 255, 255, .05); border-style: dashed; color: var(--white); cursor: default; }
.address-bairro input:focus { border-color: var(--line-strong); }
.address-rua { grid-column: 1 / 3; }
.address-numero { grid-column: 3; }
.address-complemento, .address-referencia { grid-column: 1 / -1; }
/* por equando PONTO DE REFERENCIA VAI FICAR OCULTO */
.address-referencia { display: none; }
/* frete calculado: aparece assim que o CEP traz o bairro */
.frete-result { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: -4px 0 6px; padding: 12px 16px; border-left: 2px solid var(--line-strong); background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); }
.frete-result[hidden] { display: none; }
.frete-result.is-ok { border-left-color: var(--red-bright); color: var(--white); font-size: 14px; }
.frete-result strong { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.address-warn { margin: 0 0 14px; padding: 10px 14px; border-left: 2px solid var(--red-bright); font-size: 13px; }
.checkout-submit { width: 100%; margin-top: 8px; }
.checkout-submit svg { width: 18px; height: 18px; }
.checkout-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* limpar carrinho: discreto e separado do finalizar, para não competir com ele
   nem ser clicado por engano a caminho do botão vermelho */
.cart-clear {
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--white);
  font-size: 14px;
}
.cart-clear:hover { color: var(--red-bright); }

/* confirmação: abre por cima do carrinho */
.confirm {
  width: min(380px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
}
.confirm::backdrop { background: rgb(0 0 0 / .6); }
.confirm[open] { animation: fade-in .2s var(--ease); }
.confirm-inner { padding: 28px 24px 24px; }
.confirm-inner h3 { font-size: 20px; line-height: 1.25; }
.confirm-inner p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.confirm-actions .btn { width: 100%; }

.cart-sent { padding: 40px 0; }
.cart-stamp {
  display: inline-block;
  margin-bottom: 24px;
  padding: 10px 12px;
  border: 1.5px solid var(--red);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
  color: var(--red-bright);
  transform: rotate(-6deg);
}
.cart-sent h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.cart-sent h3:focus { outline: none; }
.cart-sent p { margin: 12px 0 24px; color: var(--muted); }
.cart-sent p a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--red); }

/* ---------- chamada da luthieria (home) ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: center;
}
.teaser-photo { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.teaser-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.9) contrast(1.03); }
.teaser-photo figcaption, .hero-photo figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 7, 8, .82);
  color: var(--white);
  font-size: 11px;
}
.teaser-copy .display { font-size: clamp(30px, 3.6vw, 46px); }
.teaser-copy .script { display: block; margin: .14em 0 .2em; }
.teaser-copy .tags { margin: 24px 0 32px; }

/* ---------- entrega em casa (home) ---------- */
.delivery-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.delivery-photo img { object-position: center 15%; }
.delivery-steps { display: grid; gap: 0; margin: 28px 0 20px; border-top: 1px solid var(--line); }
.delivery-steps li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.delivery-steps li span { font-size: 11px; color: var(--accent-text); }
.delivery-from { margin-bottom: 28px; font-size: 12px; color: var(--muted); }
.delivery-from strong { margin-left: 4px; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--white); vertical-align: -3px; }
.pv-perk-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pv-perk-link:hover { color: var(--accent-text); }

/* tabela de frete: abre por cima de tudo, montada a partir do entrega.json */
.frete-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--white);
  overflow: auto;
  overscroll-behavior: contain;
}
.frete-dialog::backdrop { background: rgb(0 0 0 / .7); }
.frete-dialog[open] { animation: fade-in .2s var(--ease); }
.frete-inner { padding: 24px clamp(18px, 3vw, 32px) 28px; }
.frete-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.frete-head h2 { margin-top: 4px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 4vw, 44px); line-height: 1; }
.frete-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.frete-zona { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.frete-zona h3 { padding: 10px 16px; background: var(--red); font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; }
.frete-zona ul { padding: 4px 16px 8px; }
.frete-zona li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.frete-zona li:last-child { border-bottom: 0; }
.frete-zona strong { font-size: 13px; font-weight: 500; color: var(--red-bright); white-space: nowrap; }
.frete-loading { grid-column: 1 / -1; color: var(--muted); }
.frete-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.frete-note a { color: var(--white); border-bottom: 1px solid var(--red); text-decoration: none; }
@media (max-width: 920px) { .frete-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .frete-cols { grid-template-columns: 1fr; } }

/* ---------- visite a loja ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 0 clamp(32px, 4.5vw, 72px);
  align-items: start;
}
.visit-cta { grid-column: 1; grid-row: 1; }
.visit-how { grid-column: 2; grid-row: 1 / span 2; }
.visit-grid .contact-info { grid-column: 1; grid-row: 2; }
.visit-cta .cta-row { margin-top: 32px; }

/* o logo entra no lugar da palavra em script, então acompanha a linha do título */
.visit-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.visit-logo {
  width: clamp(130px, 16vw, 200px);
  height: auto;
  transform: rotate(-3deg);
}

/* como chegar: duas fotos numeradas, porque a entrada não é pela fachada */
.visit-how { display: grid; gap: clamp(16px, 2vw, 24px); }
.visit-shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}
.visit-shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.visit-shot figcaption strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
}

#loja {
  padding-bottom: 54px;
}

#entrega {
  padding-top: 78px;
  background: #181818;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.contact-info > div { display: grid; gap: 8px; align-content: start; }
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-info a:hover { color: var(--accent-text); border-color: var(--red); }

/* ícone + texto num link só: o sublinhado fica no texto, senão ele correria por
   baixo do ícone. Especificidade dupla para vencer o .contact-info a acima. */
.contact-info .contact-link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 0; }
.contact-link svg {
  flex: none;
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-link span { border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.contact-link:hover span { border-color: var(--red); }

/* A marca do WhatsApp é preenchida, ao contrário dos outros ícones do site, que são
   de traço. As regras de contexto (.btn svg, .pv-perks svg, .contact-link svg) têm
   peso maior que uma classe solta, por isso cada contexto aparece na lista; o
   .icon-wa no fim cobre onde nenhuma delas alcança. */
.btn .icon-wa,
.pv-perks .icon-wa,
.contact-link .icon-wa,
.icon-wa {
  fill: currentColor;
  stroke: none;
}

/* ---------- luthieria: serviços ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #faf9f7;
  transition: border-color .25s var(--ease);
}
.service-card:hover { border-color: var(--line-strong); }
.service-num { font-size: 12px; color: var(--accent-text); }
.service-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 25px; line-height: 1; letter-spacing: .01em; }
.service-card p { font-size: 14.5px; color: var(--muted); }
.service-card .tags { margin-top: auto; padding-top: 8px; }
.service-card-cta { background: var(--red); border-color: var(--red); color: var(--white); }
.service-card-cta:hover { border-color: var(--red); }
.service-card-cta .service-num, .service-card-cta p { color: rgba(246, 245, 243, .85); }
.service-card-cta .btn { margin-top: auto; align-self: flex-start; }

/* ---------- luthieria: galeria ---------- */
/* fundo: a parede de instrumentos da oficina, bem escurecida e parada na tela
   enquanto o conteúdo rola por cima. Embaixo o véu fecha no preto da página, para
   a seção emendar na "Visite" sem degrau.
   A foto é um ::before com position: fixed, recortado pela seção com clip-path —
   e não background-attachment: fixed, que o Safari do iPhone ignora. O véu vai num
   ::after por cima dela, rolando junto com a seção. */
.workshop {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
  background: var(--black);
}
.workshop::before,
.workshop::after {
  content: "";
  z-index: -1;
  pointer-events: none;
}
.workshop::before {
  position: fixed;
  inset: 0;
  background: url("../img/oficina/04-parede-de-instrumentos.webp") center / cover;
}
/* o véu passa 2px da borda de baixo (o clip-path corta o excesso): com a foto fixa
   por trás, o arredondamento de subpixel deixava uma linha da foto no rodapé */
.workshop::after {
  position: absolute;
  inset: 0 0 -2px;
  background: linear-gradient(180deg, rgb(12 12 13 / 97%) 0%, rgba(12, 12, 13, .9) 88%, var(--black) 100%);
}
.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.gallery-intro { color: var(--muted); font-size: 17px; max-width: 46ch; }

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.gallery-strip .carousel-head { border-bottom: 0; margin-bottom: 0; }
.carousel-title { font-size: 12px; color: var(--muted); }
.carousel-controls { display: flex; align-items: center; gap: 8px; }
.carousel-count { font-size: 12px; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* trilho sai do container e vai até a borda da tela, alinhado ao conteúdo */
.gallery-strip { --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.gallery {
  --gallery-h: clamp(300px, 34vw, 440px);
  display: flex;
  gap: 14px;
  height: var(--gallery-h);
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  counter-reset: foto;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -2px; }
.gallery-item { flex: none; height: 100%; scroll-snap-align: start; counter-increment: foto; }
.gallery-open {
  position: relative;
  display: block;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery-open img, .gallery-open video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.03);
  transition: transform 1.2s var(--ease);
}
/* todos os cards no mesmo formato: a foto é recortada (object-fit) para caber */
.gallery-open { aspect-ratio: 4 / 5; }
.gallery-play {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 7, 8, .6);
  pointer-events: none;
}
.gallery-play svg { width: 16px; height: 16px; fill: var(--white); margin-left: 2px; }
.gallery-cap {
  position: absolute;
  left: 12px; bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 7, 8, .82);
  color: var(--white);
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-cap::before { content: counter(foto, decimal-leading-zero) " — "; color: var(--red-bright); }
.gallery-open::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background:
    linear-gradient(var(--white), var(--white)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 1.5px 12px no-repeat,
    var(--red);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-open:hover img, .gallery-open:focus-visible img,
.gallery-open:hover video, .gallery-open:focus-visible video { transform: scale(1.04); }
.gallery-open:hover .gallery-cap, .gallery-open:focus-visible .gallery-cap,
.gallery-open:hover::after, .gallery-open:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .gallery-cap { opacity: 1; transform: none; } }

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(7, 7, 8, .97);
  color: var(--white);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: fade-in .3s var(--ease); }
.lightbox::backdrop { background: rgba(7, 7, 8, .9); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.lightbox-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox-figure {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(16px, 8vw, 104px) 28px;
}
.lightbox-figure video { max-width: 100%; max-height: 100%; border-radius: var(--radius-card); background: #000; }
.lightbox-figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-card); transition: opacity .25s var(--ease); }
.lightbox-figure img.is-loading { opacity: 0; }
.lightbox-figure figcaption { font-size: 12px; text-align: center; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: clamp(12px, 3vw, 40px); }
.lightbox-next { right: clamp(12px, 3vw, 40px); }

/* ---------- chamada final (vermelho) ---------- */
.cta-band { padding-block: clamp(64px, 8vw, 112px); }
.cta-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
}
.cta-band .display { font-size: clamp(30px, 4vw, 52px); }
.cta-band-lead { margin-top: 18px; max-width: 46ch; font-size: 17px; color: var(--muted); }
.cta-band-side { display: grid; gap: 18px; justify-items: start; }
.cta-band-side .mono { font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--black-deep); border-top: 1px solid var(--surface); padding-block: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer .brand img { width: auto; height: 48px; }
.footer-note { font-size: 11px; color: var(--muted); }
.footer-note a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--red); }
.footer-note a:hover { color: var(--red-bright); }
.footer-legal { font-size: 12px; color: var(--muted); }

/* ---------- responsivo ---------- */
@media (max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding-inline: 10px; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .site-header .brand img { height: 46px; }
  .brand-tag { margin-left: -12px; font-size: 21px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .cart-btn { margin-left: auto; }
  .main-nav {
    position: fixed;
    inset: var(--header-total) 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .is-open .main-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .main-nav a { padding: 16px 0; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--surface); opacity: 1; }
  .main-nav a:hover { background: none; color: var(--red-bright); }
  .main-nav a[aria-current="page"] { background: none; box-shadow: none; border-radius: 0; color: var(--red-bright); }
  .main-nav .nav-cta-mobile { display: inline-flex; margin-top: 20px; border: 0; border-radius: var(--radius-pill); font-size: 15px; padding: 16px 24px; }
  .main-nav .nav-cta-mobile:hover { color: var(--black); }
  .nav-sep { display: none; }
  .nav-indicator { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 420px; }
  .hero-photo { max-width: 560px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { padding: 14px 0; }
  .hero-facts li + li { padding-left: 0; border-left: 0; }
  .shop-head, .teaser-grid, .visit-grid, .gallery-head, .cta-band-grid { grid-template-columns: 1fr; }
  .visit-grid { gap: 0; }
  .visit-cta, .visit-how, .visit-grid .contact-info { grid-column: 1; grid-row: auto; }
  /* 75% da tela, não do container: o container já desconta a margem lateral */
  .visit-how { width: min(75vw, 100%); margin-inline: auto; margin-top: clamp(28px, 5vw, 40px); }
  .visit-shot img { aspect-ratio: 16 / 9; }
  .teaser-photo { max-width: 440px; }

  .shop-sort select { min-width: 100px; }
  .cart-bar:not([hidden]) {
    position: fixed;
    left: var(--gutter); right: var(--gutter); bottom: 0px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 8px 0 20px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--red);
    color: var(--white);
    cursor: pointer;
    animation: cart-bar-in .35s var(--ease);
  }
  .cart-bar .mono { font-size: 11px; opacity: .85; }
  .cart-bar strong { font-family: var(--font-display); font-weight: 400; font-size: 19px; font-variant-numeric: tabular-nums; }
  .cart-bar-cta { margin-left: auto; padding: 7px 16px; border-radius: var(--radius-pill); background: var(--black); color: var(--white); font-size: 14px; font-weight: 600; }
  .page-loja .site-footer { padding-bottom: 104px; }

  /* página do produto: foto em cima, compra embaixo; relacionados em faixa de arrastar */
  .pv-main { grid-template-columns: 1fr; }
  .pv-media { position: static; }
  .pv-photo { max-width: 560px; }
  .related-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 40%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .related-row li { scroll-snap-align: start; }
  /* o aviso sobe para não cobrir a barra do pedido */
  .toast { bottom: 88px; }
  .pv .toast { bottom: 16px; }
}
@keyframes cart-bar-in { from { transform: translateY(24px); opacity: 0; } }

@media (max-width: 680px) {
}

@media (max-width: 560px) {
  .cart-btn-label { display: none; }
  .cart-btn { padding: 0 12px; }
  .hero-lead { font-size: 16px; }
  .hero-shop .cta-row .btn-outline { display: none; }
  .marquee-track span { font-size: 18px; padding: 12px 20px; gap: 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* cards levemente menores no mobile: foto ligeiramente mais curta, preço menor */
  .page-loja .product-photo { aspect-ratio: 5/4; }
  .page-loja .product-price strong { font-size: 18px; }
  .product-actions .btn { padding-inline: 12px; }
  .pv-label { min-width: 0; }
  .pv-back span { display: none; }
  .pv-back { padding: 0 10px; }
  /* luthieria enxuta no celular: cards curtos, sem tags */
  .service-grid { grid-template-columns: 1fr; gap: 8px; }
  .service-card { padding: 16px 18px; gap: 6px; }
  .service-card h3 { font-size: 22px; }
  .service-card .tags { display: none; }
  .service-card-cta .btn { margin-top: 8px; }
  .gallery { --gallery-h: 280px; gap: 10px; }
  .gallery-open::after { display: none; }
  .carousel-title { display: none; }
  .carousel-head { justify-content: flex-end; }
  .lightbox-figure { padding: 16px 16px 88px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 52px); }
  .lightbox-next { right: calc(50% - 52px); }
  .contact-info { grid-template-columns: 1fr; gap: 20px; }
  .cart-head h2 { font-size: 32px; }
}

/* ---------- entrada ao rolar ----------
   Só esconde quando há JS para revelar de volta (o main.js tira o .no-js logo de
   cara): sem script, a página continua inteira e legível. O observer põe .is-in. */
html:not(.no-js) [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html:not(.no-js) [data-reveal].is-in { opacity: 1; transform: none; transition-delay: var(--reveal-delay, 0s); }

/* lista que entra em cascata: cada filho sai um pouco depois do anterior */
html:not(.no-js) [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html:not(.no-js) [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
/* --reveal-delay: quando começa; --stagger: intervalo entre um filho e o próximo */
html:not(.no-js) [data-reveal-stagger].is-in > * { transition-delay: calc(var(--reveal-delay, 0s) + var(--stagger, .09s) * 7); }
html:not(.no-js) [data-reveal-stagger].is-in > :nth-child(1) { transition-delay: var(--reveal-delay, 0s); }
html:not(.no-js) [data-reveal-stagger].is-in > :nth-child(2) { transition-delay: calc(var(--reveal-delay, 0s) + var(--stagger, .09s)); }
html:not(.no-js) [data-reveal-stagger].is-in > :nth-child(3) { transition-delay: calc(var(--reveal-delay, 0s) + var(--stagger, .09s) * 2); }
html:not(.no-js) [data-reveal-stagger].is-in > :nth-child(4) { transition-delay: calc(var(--reveal-delay, 0s) + var(--stagger, .09s) * 3); }
html:not(.no-js) [data-reveal-stagger].is-in > :nth-child(5) { transition-delay: calc(var(--reveal-delay, 0s) + var(--stagger, .09s) * 4); }
html:not(.no-js) [data-reveal-stagger].is-in > :nth-child(6) { transition-delay: calc(var(--reveal-delay, 0s) + var(--stagger, .09s) * 5); }
html:not(.no-js) [data-reveal-stagger].is-in > :nth-child(7) { transition-delay: calc(var(--reveal-delay, 0s) + var(--stagger, .09s) * 6); }

/* entrega e luthieria na home: o texto entra um item por vez, no ritmo de leitura,
   e a foto entra na sua vez — depois do texto na entrega (que vem à direita),
   antes dele na luthieria (que vem à esquerda) */
.delivery .teaser-copy, .luthier-teaser .teaser-copy { --stagger: .14s; }
.delivery .teaser-photo { --reveal-delay: .75s; }
.luthier-teaser .teaser-copy { --reveal-delay: .25s; }

/* cards do catálogo: entram escalonados a cada render (trocar de categoria também) */
.product.is-entering { animation: card-in .5s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* sem transição, o estado inicial não sairia sozinho: nada fica escondido */
  html:not(.no-js) [data-reveal],
  html:not(.no-js) [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* ---------- dropdown "Produtos" no nav ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  opacity: .78;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, background-color .2s;
}
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { opacity: 1; background: var(--surface); }
.nav-drop-chevron {
  flex: none;
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.nav-drop-btn[aria-expanded="true"] .nav-drop-chevron { transform: rotate(180deg); }

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  min-width: 220px;
  padding: 6px;
  background: #18181a;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 28px rgb(0 0 0 / .5);
  animation: nav-drop-in .18s var(--ease);
}
@keyframes nav-drop-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }

.nav-drop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s;
}
.nav-drop-item:hover { background: var(--surface); }
.nav-drop-item .mono { font-size: 11px; color: var(--muted); }
.nav-drop-item.is-active { color: var(--red-bright); }

/* mobile: dropdown expande inline no menu */
@media (max-width: 920px) {
  .nav-drop { display: contents; }
  .nav-drop-btn { padding: 16px 0; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--surface); opacity: 1; width: 100%; justify-content: space-between; }
  .nav-drop-btn:hover { background: none; color: var(--red-bright); }
  .nav-drop-btn[aria-expanded="true"] { color: var(--red-bright); background: none; }
  .nav-drop-chevron { width: 18px; height: 18px; }
  .nav-drop-panel {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }
  .nav-drop-panel .nav-drop-item {
    padding: 12px 0 12px 32px;
    font-size: 15px;
    border-bottom: 1px solid var(--surface);
    border-radius: 0;
    color: var(--white);
    opacity: .9;
  }
  .nav-drop-panel .nav-drop-item:hover { background: none; color: var(--red-bright); }
}

/* ---------- seletor de categoria na toolbar ---------- */
.cat-pick { position: relative; flex: none; }

.cat-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.cat-pick-btn:hover { border-color: var(--text); }
.cat-pick-btn[aria-expanded="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.cat-pick-btn svg {
  flex: none;
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.cat-pick-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cat-pick-prefix {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
  flex: none;
}
.cat-pick-btn[aria-expanded="true"] .cat-pick-prefix { color: rgba(255,255,255,.7); }

/* celular: categoria na linha de cima, inteira; embaixo, busca (65%) e
   ordenar (35%) lado a lado */
@media (max-width: 560px) {
  .shop-toolbar { display: grid; grid-template-columns: 65fr 35fr; gap: 10px; padding: 12px 0; }
  .cat-pick { grid-column: 1 / -1; min-width: 0; }
  .cat-pick-btn { width: 100%; min-height: 48px; padding: 0 18px; gap: 12px; }
  .cat-pick-prefix { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
  [data-cat-pick-label] { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
  .cat-pick-panel { right: 0; }

  .toolbar-search { min-width: 0; }
  .toolbar-search input { min-height: 48px; font-size: 14px;}
  .shop-tools, .shop-sort { min-width: 0; }
  .shop-sort { width: 100%; }
  .sort-prefix { display: none; }
  /* ordenar: ícone de setas à esquerda no lugar da seta de lista */
  .shop-sort select {
    width: 100%;
    font-size: 14px;
    min-width: 0;
    min-height: 48px;
    padding: 0 4px 0 22px;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4v16M8 4 4.5 7.5M8 4l3.5 3.5M16 20V4M16 20l-3.5-3.5M16 20l3.5-3.5'/%3E%3C/svg%3E");
    background-position: left 4px center;
    background-size: 15px;
  }
}

.cat-pick-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  background: #18181a;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgb(0 0 0 / .45);
  scrollbar-width: thin;
}
.cat-pick-panel .filter-pill {
  width: 100%;
  justify-content: space-between;
  border-radius: 4px;
  min-height: 38px;
  padding: 0 12px;
}

/* ---------- paginação ---------- */
.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0 8px;
}
.pag-btn { min-height: 40px; padding: 0 16px; gap: 6px; font-size: 14px; }
.pag-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pag-info { font-size: 12px; color: var(--muted); min-width: 100px; text-align: center; }
