/* ============================================================
   Setor XI — catálogo
   Paleta: preto (base) · branco (contraste) · verde (destaque)
   ============================================================ */

:root {
  --black: #0a0a0a;
  --surface: #121212;
  --surface-2: #191919;
  --border: #262626;
  --border-strong: #333333;
  --white: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #1fdd6d;
  --accent-hover: #17b957;
  --accent-ink: #05130b;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1160px;
  --font: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --step-1: 0.78rem;
  --step0: 0.95rem;
  --step1: 1.05rem;
  --step2: clamp(1.9rem, 4vw, 2.7rem);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--step0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Fundo por categoria ---------- */

/* fica dentro do hero — não passa por trás das camisas */
.category-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.category-bg.is-visible {
  opacity: 1;
}

.category-bg.is-paused .category-bg__layer {
  animation-play-state: paused;
}

.category-bg__layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 12%;
  opacity: 0;
  transition: opacity 1s ease;
  animation: bg-drift 46s ease-in-out infinite alternate;
  will-change: transform;
}

.category-bg__layer.is-top {
  opacity: 1;
}

@keyframes bg-drift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12) translate(-1.2%, -1%);
  }
}

.category-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.86) 0%,
      rgba(10, 10, 10, 0.5) 52%,
      rgba(10, 10, 10, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.5) 0%,
      rgba(10, 10, 10, 0.28) 45%,
      rgba(10, 10, 10, 0.9) 100%
    ),
    /* vinheta: escurece os cantos, como uma lente de cinema */
      radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 45%,
        rgba(0, 0, 0, 0.55) 100%
      );
}

/* grão de filme sutil sobre o hero — textura, não ruído chamativo */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: 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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* barras estilo widescreen — moldura de cinema no topo/base do hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--letterbox);
  background: var(--black);
  z-index: 2;
  pointer-events: none;
}

.hero::before {
  top: 0;
}

.hero::after {
  bottom: 0;
}

.site-header,
.catalog-nav,
.hero,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.92);
}

@media (min-width: 768px) {
  .site-header,
  .catalog-nav {
    backdrop-filter: blur(8px);
  }

  .modal__backdrop {
    backdrop-filter: blur(3px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand__logo {
  height: 62px;
  width: auto;
  display: block;
}

.site-header__tag {
  font-size: var(--step-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  --letterbox: clamp(10px, 3vh, 28px);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 0 88px;
  border-bottom: 1px solid var(--border);
  background: var(--black);
}

/* "porta de entrada": scroll travado até clicar em "Ver o catálogo" */
html.hero-locked,
body.hero-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* abertura em cascata, tipo cartela de título de filme */
@keyframes title-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__kicker,
.hero__title,
.hero__lead,
.hero__cta {
  animation: title-card-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__kicker {
  animation-delay: 0.05s;
}

.hero__title {
  animation-delay: 0.16s;
}

.hero__lead {
  animation-delay: 0.32s;
}

.hero__cta {
  animation-delay: 0.46s;
}

.hero__kicker {
  margin: 0;
  font-size: var(--step-1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  color: var(--accent);
}

.hero__lead {
  margin: 2px 0 0;
  max-width: 38ch;
  font-size: var(--step1);
  color: var(--white);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.hero__cta:hover {
  background: var(--accent-hover);
}

.hero__scroll {
  position: absolute;
  bottom: calc(var(--letterbox) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}

.hero__scroll span {
  display: block;
  animation: hero-bounce 1.8s ease-in-out infinite;
}

@keyframes hero-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ---------- Navegação de categorias ---------- */

.catalog-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.94);
  position: sticky;
  top: 0;
  z-index: 9;
}

.catalog-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
}

.filter-chip {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--step-1);
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-chip:hover {
  border-color: var(--muted);
  color: var(--white);
}

.filter-chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.search-input {
  flex: 0 1 170px;
  min-width: 140px;
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--white);
  font: inherit;
  font-size: var(--step-1);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.catalog-nav__count {
  margin: 0;
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Grid de produtos ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 32px 0 80px;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.grid--leaving {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card--enter {
  animation: card-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
  /* pula render/layout dos cards fora da tela (grade longa em mobile) */
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__media img {
  transform: scale(1.07);
}

/* leve sombra no rodapé da foto — mesma linguagem escura do hero */
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 65%,
    rgba(0, 0, 0, 0.32) 100%
  );
  pointer-events: none;
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.card__category {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__name {
  margin: 0;
  font-size: var(--step1);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.card__price {
  margin: 6px 0 0;
  font-size: var(--step1);
  font-weight: 700;
  color: var(--white);
}

.card__price--contact {
  color: var(--accent);
  font-size: var(--step0);
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.card__price--contact::after {
  content: " →";
}

.card__price--contact:hover {
  border-bottom-color: var(--accent);
}

.grid__empty {
  color: var(--muted);
  padding: 48px 0;
}

/* ---------- Painel de contato ---------- */

.contact-panel {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 56px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-panel__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.contact-panel__text {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

.contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step0);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.contact-btn:hover {
  border-color: var(--muted);
}

.contact-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.contact-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.contact-form-wrap {
  width: 100%;
  max-width: 420px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.contact-form__field {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--white);
  font: inherit;
}

.contact-form__field::placeholder {
  color: var(--muted);
}

.contact-form__field:focus-visible {
  border-color: var(--accent);
}

/* campo-armadilha anti-spam (Formspree/Getform) — some visualmente, mas
   continua alcançável por leitor de tela evitar; robôs preenchem, gente não */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  border: none;
  cursor: pointer;
}

.contact-form__status {
  margin: 0;
  min-height: 1.4em;
  font-size: var(--step-1);
  color: var(--muted);
}

.contact-form__status--ok {
  color: var(--accent);
}

.contact-form__status--error {
  color: #ff8a8a;
}

/* ---------- Telinha do produto ---------- */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  animation: modal-backdrop-in 0.15s ease-out both;
}

@keyframes modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: 96vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.18s ease-out both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* a foto preenche o espaço que sobra ao lado do texto: a telinha inteira
   cabe na tela, sem precisar rolar */
.modal__media {
  position: relative;
  background: var(--surface-2);
  min-height: 400px;
}

.modal__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.modal__thumbs[hidden] {
  display: none;
}

.modal__thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}

.modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__thumb.is-active,
.modal__thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.modal__body {
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__category {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal__name {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.modal__price {
  margin: 0;
  font-size: var(--step1);
  font-weight: 700;
}

.modal__story {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* só entra quando o produto tem uma história de verdade (não o fallback) */
.modal__story--featured {
  position: relative;
  margin: 2px 0 0;
  padding-left: 22px;
  color: var(--white);
  font-size: var(--step1);
  font-style: italic;
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  -webkit-line-clamp: 4;
}

.modal__story--featured::before {
  content: "\201C";
  position: absolute;
  left: 3px;
  top: 0.02em;
  font-size: 1.7em;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

/* tamanhos PP a 4GG */
.modal__sizes {
  margin: 6px -10px 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.modal__sizes.is-error {
  border-color: #ff8a8a;
}

.modal__sizes-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 4 por linha: PP P M G / GG 2GG 3GG 4GG */
.modal__sizes-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.size-chip {
  min-height: 38px;
  padding: 6px 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: var(--step0);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.size-chip:hover {
  border-color: var(--muted);
}

.size-chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.modal__add {
  min-height: 48px;
  padding: 13px 28px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
}

.modal__add:hover {
  background: var(--accent-hover);
}

.modal__view-cart {
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.modal__view-cart:hover {
  border-color: var(--muted);
}

.modal__add-status {
  margin: 0;
  min-height: 1.2em;
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--accent);
}

.modal__add-status--error {
  color: #ff8a8a;
}

.modal__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  transition: border-color 0.15s;
}

.modal__cta:hover {
  border-color: var(--muted);
}

/* ---------- Carrinho ---------- */

.cart-fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: background 0.15s;
}

.cart-fab:hover {
  background: var(--accent-hover);
}

html.hero-locked .cart-fab {
  display: none;
}

.cart-fab.is-bump {
  animation: cart-bump 0.4s ease;
}

@keyframes cart-bump {
  40% {
    transform: scale(1.18);
  }
}

.cart-fab__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--white);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.cart {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  animation: cart-in 0.22s ease-out both;
}

@keyframes cart-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.cart__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.cart__close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px;
}

.cart__empty {
  margin: 32px 0;
  color: var(--muted);
}

.cart-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  object-fit: cover;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
  padding-right: 26px;
}

.cart-item__name {
  margin: 0;
  font-size: var(--step0);
  font-weight: 700;
  line-height: 1.3;
}

.cart-item__price {
  margin: 2px 0 10px;
  font-size: var(--step-1);
  color: var(--muted);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item__size {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--white);
  font: inherit;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.cart-item__qty button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-item__qty span {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
}

.cart-item__remove {
  position: absolute;
  top: 12px;
  right: 0;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cart-item__remove:hover {
  color: #ff8a8a;
}

.cart__foot {
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart__total {
  margin: 0;
  font-size: var(--step1);
  font-weight: 800;
}

.cart__send {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
}

.cart__send:hover {
  background: var(--accent-hover);
}

.cart__status {
  margin: 0;
  min-height: 1.2em;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--accent);
}

.cart__open-wa {
  align-self: flex-start;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 700;
}

.cart__text-link {
  align-self: center;
  font-size: var(--step-1);
  color: var(--muted);
  text-decoration: underline;
}

.cart__text-link:hover {
  color: var(--white);
}

.cart__note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.cart__clear {
  align-self: center;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--step-1);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 620px) {
  .modal {
    padding: 0;
  }

  /* tela cheia: a foto ocupa o que sobrar e o resto (tamanhos, botões)
     aparece inteiro, sem rolar */
  .modal__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(130px, 1fr) auto;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
  }

  .modal__media {
    min-height: 0;
  }

  .modal__media-img {
    object-position: center 40%;
  }

  .modal__body {
    padding: 14px 18px 18px;
    gap: 6px;
  }

  .modal__name {
    font-size: 1.3rem;
  }

  /* o texto genérico some no celular; história de verdade fica (3 linhas) */
  .modal__story:not(.modal__story--featured) {
    display: none;
  }

  .modal__story--featured {
    font-size: var(--step0);
    -webkit-line-clamp: 3;
  }

  .modal__actions {
    flex-wrap: nowrap;
  }

  .modal__add {
    flex: 1 1 auto;
    padding: 12px 14px;
  }

  .modal__view-cart {
    flex: 0 0 auto;
    padding: 12px 16px;
  }

  .cart-fab {
    width: 54px;
    height: 54px;
  }
}

/* celulares bem pequenos/baixos: mais enxuto ainda pra não rolar */
@media (max-width: 620px) and (max-height: 620px) {
  .modal__story,
  .modal__story--featured {
    display: none;
  }

  .modal__body {
    padding: 10px 16px 14px;
    gap: 4px;
  }

  .modal__name {
    font-size: 1.1rem;
  }

  .size-chip {
    min-height: 34px;
  }

  .modal__sizes {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .modal__add,
  .modal__view-cart {
    min-height: 42px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .modal__cta {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__logo {
  height: 40px;
  width: auto;
  display: block;
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer__contact a {
  font-size: var(--step0);
  color: var(--white);
  padding: 6px 0;
  transition: color 0.15s;
}

.site-footer__contact a:hover {
  color: var(--accent);
}

.site-footer__meta {
  margin-left: auto;
  font-size: var(--step-1);
  color: var(--muted);
}

/* ---------- Foco acessível ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  .grid,
  .grid--leaving {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .card,
  .card--enter {
    animation: none;
    transition: none;
  }

  .category-bg,
  .category-bg__layer {
    transition: none;
    animation: none;
  }

  .hero__scroll span {
    animation: none;
  }

  .hero__kicker,
  .hero__title,
  .hero__lead,
  .hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .card__media img {
    transition: none;
  }

  .card:hover .card__media img {
    transform: none;
  }

  .modal__dialog,
  .modal__backdrop,
  .modal__thumb,
  .cart__panel,
  .cart-fab {
    animation: none;
    transition: none;
  }
}

/* ---------- Responsivo ---------- */

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 64px;
  }

  .contact-panel {
    padding: 36px 18px;
  }
}

@media (max-width: 900px) {
  /* barra sticky compacta: categorias numa linha rolável, busca + contagem embaixo */
  .catalog-nav__inner {
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .filters {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 15px;
  }

  .search-input {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 15px;
    font-size: 16px; /* evita zoom automático do iOS ao focar */
  }
}

/* sem mouse: não deixa o "hover" grudar depois do toque */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    padding: 20px 0 56px;
  }

  .card__body {
    padding: 12px 12px 14px;
    gap: 5px;
  }

  .card__name {
    font-size: var(--step0);
    line-height: 1.25;
  }

  .card__category {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .card__badge {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
  }

  .brand__logo {
    height: 40px;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .site-header__tag {
    display: none;
  }
}
