/* =========================================
   BREWZIN — CARDÁPIO DIGITAL
   JAZZ EDITION
   ========================================= */

:root {
  --paper: #f2e5cc;
  --ink: #1b1917;
  --black: #171615;
  --orange: #d45b25;
  --cream: #fff0d6;
  --muted: #62594f;
  --rule: #c7b79e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.wrap {
  max-width: 740px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 30px 48px;
  background: var(--paper);
}

/* =========================================
   CABEÇALHO
   ========================================= */

header {
  position: relative;
  margin: 0 -30px;
  padding: 25px 30px 29px;
  background: var(--black);
  color: var(--cream);
  text-align: left;
  overflow: hidden;
  border-bottom: 9px solid var(--orange);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 12px;
  background: var(--orange);
}

header::after {
  content: "";
  position: absolute;
  bottom: 25px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-right: 5px solid var(--orange);
  border-bottom: 5px solid var(--orange);
  pointer-events: none;
}

.eyebrow {
  display: block;
  color: var(--orange);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .23em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.seal {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 0 16px;
}

.strap {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #c8bca9;
}

h1 {
  font-family: Impact, "Arial Narrow",
    "Arial Black", Arial, sans-serif;
  font-stretch: condensed;
  font-size: clamp(54px, 12vw, 88px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
  text-transform: uppercase;
  margin: 14px 0 0;
  color: var(--cream);
  overflow-wrap: anywhere;
}

/* =========================================
   NAVEGAÇÃO
   ========================================= */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 13px 0;
  background: var(--paper);
  border-bottom: 3px solid var(--black);
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--paper);
}

nav button {
  flex: 0 0 auto;
  border: 2px solid var(--black);
  border-radius: 0;
  padding: 11px 14px;
  background: transparent;
  color: var(--black);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}

nav button.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

nav button:hover:not(.active) {
  background: var(--black);
  color: var(--cream);
}

/* =========================================
   TÍTULOS DAS CATEGORIAS
   ========================================= */

h2 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 27px 0 24px;
  padding: 9px 16px 11px;
  background: var(--black);
  color: var(--cream);
  font-family: Impact, "Arial Narrow",
    "Arial Black", Arial, sans-serif;
  font-size: clamp(33px, 7vw, 49px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  box-shadow: 7px 7px 0 var(--orange);
}

/* =========================================
   SUBCATEGORIAS
   ========================================= */

h3 {
  margin: 34px 0 12px;
  padding: 9px 12px;
  background: var(--orange);
  color: #fffaf1;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* =========================================
   PRODUTOS
   ========================================= */

article {
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}

article .line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

article strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.3;
  color: var(--black);
}

article .price {
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--orange);
  white-space: nowrap;
  text-align: right;
}

article p {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

article .extra {
  color: #a54722;
  font-weight: 700;
}

.soldout {
  opacity: .55;
}

.soldout-label {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 7px;
  background: var(--black);
  color: var(--cream);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.note {
  margin: 0 0 17px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================================
   RODAPÉ
   ========================================= */

footer {
  margin-top: 48px;
  padding: 22px 0 12px;
  border-top: 5px solid var(--black);
  text-align: left;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .06em;
}

footer::before {
  content: "";
  display: block;
  width: 72px;
  height: 7px;
  background: var(--orange);
  margin-bottom: 18px;
}

.error {
  color: #a42f22;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* =========================================
   TABLETS E CELULARES
   ========================================= */

@media (max-width: 480px) {
  .wrap {
    padding: 0 19px 36px;
  }

  header {
    margin: 0 -19px;
    padding: 21px 19px 25px;
  }

  header::after {
    right: 19px;
    bottom: 22px;
    width: 28px;
    height: 28px;
  }

  .seal {
    width: 96px;
    height: 96px;
    margin-bottom: 13px;
  }

  h1 {
    font-size: clamp(47px, 11.5vw, 66px);
  }

  nav {
    margin: 0 -19px;
    padding: 12px 19px;
  }

  nav button {
    padding: 10px 12px;
    font-size: 11px;
  }

  h2 {
    margin-top: 25px;
    font-size: clamp(32px, 8vw, 43px);
  }

  article strong {
    font-size: 16px;
  }

  article .price {
    font-size: 15px;
  }
}

@media (max-width: 350px) {
  article .line {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  article .price {
    text-align: left;
  }

  h1 {
    font-size: 44px;
  }
}

/* Respeita preferência por movimento reduzido */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  nav button {
    transition: none;
  }
}
