/* AgroHorse Western — bio de links. A página é a etiqueta pendurada na loja. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #17120e;
  --ink-soft: #2a211b;
  --ink-68: #5a524b;
  --cream: #f7f0e4;
  --paper: #fffaf1;
  --sand: #e7d3b5;
  --leather: #7e3f20;
  --leather-dark: #5f2d15;
  --rust: #ad4f22;
  --rust-texto: #96411d; /* ferrugem para texto pequeno sobre o creme */
  --gold: #c79a57;
  --zap: #1a8a4c;
  --linha: rgba(23, 18, 14, 0.16);
  --heading: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --margem: 22px;
  --grao-papel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grao-couro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .03 0 0 0 0 0 0 0 0 .42 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
  scrollbar-color: var(--leather) var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--rust);
  color: var(--paper);
}

h1,
h2,
p,
ul,
dl,
dd,
address {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
address {
  font-style: normal;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- a loja ao fundo ---------- */

.cena {
  position: fixed;
  inset: 0;
  height: 100lvh;
  z-index: -1;
  background: var(--ink);
  overflow: hidden;
}
.cena__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.62;
}
.cena::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 18, 14, 0.28) 0%, rgba(23, 18, 14, 0.56) 55%, rgba(23, 18, 14, 0.66) 100%);
}

/* ---------- barbante e etiqueta ---------- */

.varal {
  overflow-x: hidden;
  overflow-x: clip;
  padding: 54px 14px 0;
}

.pendulo {
  position: relative;
  width: min(100%, 432px);
  margin: 0 auto;
  transform-origin: 50% -150px;
}

.barbante {
  position: absolute;
  left: 50%;
  top: -170px;
  margin-left: -20px;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.barbante--tras {
  z-index: 0;
}
.barbante path {
  fill: none;
  stroke-linecap: round;
}
.barbante__fio {
  stroke: #d8c198;
  stroke-width: 3.2;
}
.barbante__torcao {
  stroke: #8f7448;
  stroke-width: 3.2;
  stroke-dasharray: 2 4.5;
  opacity: 0.75;
}

.etiqueta {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 22px 26px rgba(8, 5, 3, 0.55)) drop-shadow(0 3px 4px rgba(8, 5, 3, 0.35));
}

/* remendo de couro com ilhós */

.couro {
  position: relative;
  min-height: 52px;
  border-radius: 18px 18px 0 0;
  background: var(--grao-couro), radial-gradient(120% 140% at 50% 0%, #93502b 0%, var(--leather) 55%, var(--leather-dark) 100%);
  -webkit-mask: radial-gradient(circle at 50% 26px, transparent 0 6.6px, #000 7.3px);
  mask: radial-gradient(circle at 50% 26px, transparent 0 6.6px, #000 7.3px);
  text-align: center;
}
.couro::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(231, 211, 181, 0.5);
  border-radius: 12px 12px 3px 3px;
  pointer-events: none;
}
.ilhos {
  position: absolute;
  top: 12.5px;
  left: 50%;
  width: 27px;
  height: 27px;
  margin-left: -13.5px;
  filter: drop-shadow(0 1.5px 1.5px rgba(20, 8, 2, 0.55));
}
.ilhos::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #7d5b27, #f3dca4 18%, #a67c3c 38%, #ecd091 58%, #86632d 80%, #7d5b27);
  -webkit-mask: radial-gradient(circle, transparent 0 6.4px, #000 7px);
  mask: radial-gradient(circle, transparent 0 6.4px, #000 7px);
}

/* cartão */

.papel {
  position: relative;
  padding: 14px var(--margem) 30px;
  border-radius: 0 0 16px 16px;
  background: var(--grao-papel), var(--cream);
}
/* picote antes do canhoto */
.papel::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 22px;
  bottom: 7px;
  height: 3px;
  background: radial-gradient(circle, rgba(23, 18, 14, 0.38) 0 1.3px, transparent 1.6px) 0 0 / 9px 3px repeat-x;
}

.cabeca__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 80px;
}
.selo {
  width: 80px;
  height: 80px;
  margin: 0 0 0 -6px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.carimbo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-right: 6px;
  padding: 7px 15px 8px;
  border: 2.5px solid currentColor;
  border-radius: 9px;
  outline: 1px solid currentColor;
  outline-offset: 3px;
  color: var(--rust-texto);
  text-transform: uppercase;
  text-align: center;
  transform: rotate(7deg);
  mix-blend-mode: multiply;
}
.carimbo[hidden] {
  display: none;
}
.carimbo--fechado {
  color: #4b413a;
}
.carimbo__estado {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: 0.09em;
  margin-right: -0.09em;
}
.carimbo__hora {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.marca {
  margin-top: 10px;
  font-family: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.marca__nome {
  display: block;
  font-size: clamp(3.1rem, 16vw, 4.1rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}
.marca__comp {
  display: block;
  margin-top: 9px;
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: 0.44em;
  color: var(--rust-texto);
}
.frase {
  margin-top: 11px;
  font-size: 1.04rem;
  line-height: 1.35;
  color: var(--ink-soft);
  text-wrap: balance;
}
.frase em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32em;
  line-height: 1;
  color: var(--rust-texto);
}

/* aviso: adesivo colado na etiqueta */

.adesivo {
  margin: 24px -6px 0;
  padding: 16px 18px 17px;
  border-radius: 6px;
  background: var(--rust);
  color: var(--paper);
  transform: rotate(-1.2deg);
  box-shadow: 0 10px 16px -10px rgba(49, 30, 18, 0.7);
}
.adesivo__titulo {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.adesivo__texto {
  margin-top: 4px;
  font-size: 0.96rem;
  line-height: 1.45;
}
.adesivo__botao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 700;
  text-underline-offset: 4px;
}
.adesivo__botao svg {
  width: 18px;
  height: 18px;
}
.adesivo :focus-visible {
  outline-color: var(--paper);
}

/* campos da etiqueta */

.campo {
  margin-top: 22px;
}
.campo__titulo {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.campo__dica {
  margin-top: 3px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-68);
  text-wrap: pretty;
}

/* prateleira de categorias */

.prateleira {
  display: flex;
  gap: 11px;
  margin: 6px calc(var(--margem) * -1) 0;
  padding: 6px var(--margem) 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--margem);
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}
.prateleira::-webkit-scrollbar {
  display: none;
}
.prateleira li {
  flex: 0 0 86px;
  scroll-snap-align: start;
}
.prateleira li:last-child {
  flex-basis: 108px;
  padding-right: 22px;
}
.peca {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.peca__foto {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 9px;
  background: var(--sand);
  box-shadow: 0 0 0 0 var(--cream), 0 0 0 0 var(--rust);
  transition: box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.peca__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.peca--sem-foto .peca__foto {
  display: grid;
  place-items: center;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 3.2rem;
  color: var(--leather);
  text-transform: uppercase;
}
.peca__marca {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  transform: scale(0);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.peca__marca svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}
.peca__nome {
  display: block;
  margin-top: 7px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.peca[aria-pressed="true"] .peca__foto {
  box-shadow: 0 0 0 2.5px var(--cream), 0 0 0 5.5px var(--rust);
  transform: scale(0.955);
}
.peca[aria-pressed="true"] .peca__marca {
  transform: scale(1);
}
.peca[aria-pressed="true"] .peca__nome {
  color: var(--rust-texto);
}
.peca:active .peca__foto {
  transform: scale(0.94);
}
.peca:focus-visible {
  outline: none;
}
.peca:focus-visible .peca__foto {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

/* linhas: vendedores e links */

.linhas {
  margin-top: 10px;
  border-bottom: 1px solid var(--linha);
}
.linha {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 11px 0;
  border-top: 1px solid var(--linha);
  text-decoration: none;
  touch-action: manipulation;
}
.linha::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--margem) * -1);
  background: var(--sand);
  opacity: 0;
  transition: opacity 0.18s ease-out;
}
.linha > * {
  position: relative;
}
@media (hover: hover) {
  .linha:hover::before {
    opacity: 0.4;
  }
  .linha:hover .linha__seta {
    transform: translateX(4px);
  }
}
.linha:active::before {
  opacity: 0.7;
}
.linha:focus-visible {
  outline-offset: 0;
}
.linha__texto {
  flex: 1;
  min-width: 0;
}
.linha__nome {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.linha__papel {
  font-size: 0.82rem;
  color: var(--ink-68);
  white-space: nowrap;
}
.linha__recado {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--ink-68);
}
.linha__recado--pronto {
  font-weight: 700;
  color: var(--rust-texto);
}
.zap {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--zap);
  color: #fff;
  box-shadow: 0 6px 10px -5px rgba(14, 82, 44, 0.75);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.linha:active .zap {
  transform: scale(0.93);
}

.linhas--finas .linha {
  min-height: 62px;
  padding: 9px 0;
}
.linha__icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  color: var(--ink);
}
.linha__titulo {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.linha__descricao {
  display: block;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--ink-68);
  overflow-wrap: anywhere;
}
.linha__seta {
  flex: none;
  color: var(--rust-texto);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.linha__seta svg {
  width: 20px;
  height: 20px;
}

/* canhoto destacável em papel kraft: endereço e horário */

.canhoto {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: 16px 16px 18px 18px;
  background: var(--grao-papel), var(--sand);
  color: var(--ink);
}
.canhoto__tesoura {
  position: absolute;
  top: -27px;
  left: 20px;
  color: var(--ink-68);
  transform: rotate(8deg);
}
.canhoto__tesoura svg {
  width: 20px;
  height: 20px;
}
.canhoto__titulo {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.canhoto__endereco {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.5;
}
.horas {
  margin-top: 16px;
  border-bottom: 1px solid rgba(23, 18, 14, 0.2);
  font-variant-numeric: tabular-nums;
}
.horas__linha {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(23, 18, 14, 0.2);
  font-size: 0.95rem;
}
.horas__linha--hoje {
  font-weight: 700;
}
.horas__linha--hoje dt::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--rust);
  vertical-align: 1px;
}
.botao-mapa {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 14px -8px rgba(20, 8, 2, 0.55);
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.16s ease-out;
  touch-action: manipulation;
}
.botao-mapa svg {
  color: var(--gold);
}
@media (hover: hover) {
  .botao-mapa:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
  }
}
.botao-mapa:active {
  transform: translateY(1px) scale(0.99);
}
.canhoto :focus-visible {
  outline-color: var(--rust);
}

.rodape {
  padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.82rem;
  color: rgba(247, 240, 228, 0.78);
}
.rodape__frase {
  margin-bottom: 6px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
}

.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- movimento: a etiqueta balança e o carimbo bate ---------- */

@media (prefers-reduced-motion: no-preference) {
  html:not(.previa) .pendulo {
    animation: balanco 2.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
  }
  html:not(.previa) .carimbo {
    animation: carimbar 0.42s 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes balanco {
    0% {
      transform: rotate(-5.5deg);
    }
    24% {
      transform: rotate(3.2deg);
    }
    46% {
      transform: rotate(-1.8deg);
    }
    66% {
      transform: rotate(0.9deg);
    }
    84% {
      transform: rotate(-0.35deg);
    }
    100% {
      transform: rotate(0deg);
    }
  }
  @keyframes carimbar {
    0% {
      opacity: 0;
      transform: rotate(7deg) scale(2.1);
      filter: blur(3px);
    }
    100% {
      opacity: 1;
      transform: rotate(7deg) scale(1);
      filter: blur(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 359px) {
  :root {
    --margem: 18px;
  }
  .selo {
    width: 70px;
    height: 70px;
  }
  .carimbo__estado {
    font-size: 1.55rem;
  }
}

@media (min-width: 700px) {
  .varal {
    padding-top: 110px;
  }
  .cena__foto {
    object-position: 50% 40%;
    opacity: 0.5;
  }
}
