@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ===================== TOKENS (identidade oficial VIBRAZ) ===================== */
:root {
  --canvas: #F5F3EF;       /* Off-white — fundo */
  --canvas-soft: #FFFFFF;  /* branco — cards */
  --ink: #111111;          /* Preto Vibraz — texto/base */
  --ink-soft: #55524B;     /* preto suavizado — textos secundários */
  --stamp-red: #C45A2B;    /* Terracota — destaques/CTAs */
  --stamp-red-dark: #A6481F;
  --thread-gold: #C98954;  /* Kraft — selo "Novo" */
  --stitch-grey: #B7B2A4;  /* neutro utilitário — bordas/divisores */
  --stitch-grey-light: #E3E0D6;
  --oliva: #6A7B5B;        /* variação de nicho */
  --azul-ceu: #5A7D9A;     /* variação de nicho */
  --white: #FFFFFF;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius-patch: 18px;
  --shadow-card: 0 4px 14px rgba(17, 17, 17, 0.08);
  --shadow-card-hover: 0 10px 26px rgba(17, 17, 17, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--stamp-red);
  outline-offset: 2px;
}

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

/* ===================== TOP ALERT BAR ===================== */
.store-alert {
  background: var(--ink);
  color: var(--canvas-soft);
  padding: 9px 0;
  overflow: hidden;
}

.store-alert-content {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .store-alert-content {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
    font-size: 11px;
  }

  .store-alert-content::-webkit-scrollbar { display: none; }

  .store-alert-content span { flex-shrink: 0; }
}

/* ===================== HEADER ===================== */
.store-header {
  background: var(--canvas);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.store-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}

.brand-logo img {
  height: 50px;
  width: auto;
}

.store-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.store-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.store-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--stamp-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.store-nav a:hover::after { transform: scaleX(1); }

.store-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.store-cart:hover { background: var(--ink); color: var(--canvas); }

.store-cart span {
  background: var(--stamp-red);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ===================== HERO ===================== */
.hero-banner img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.categoria-hero-banner {
  margin-bottom: 32px;
  border-radius: var(--radius-patch);
  overflow: hidden;
}

.categoria-hero-banner img {
  max-height: 300px;
  border-bottom: none;
  border-radius: var(--radius-patch);
}

/* ===================== SECTION KICKER / HEADINGS ===================== */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin-bottom: 10px;
}

.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stamp-red);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.section-heading h1,
.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-heading p { color: var(--ink-soft); margin-top: 6px; max-width: 46ch; }

.section-link {
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

/* ===================== CATEGORY PATCHES ===================== */
.vibraz-category-menu { padding: 64px 0 48px; }

.vibraz-category-menu-header { margin-bottom: 32px; }

.vibraz-category-menu-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
}

.vibraz-category-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.vibraz-category-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-patch);
  border: 2px dashed var(--stitch-grey);
  padding: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vibraz-category-card:nth-child(odd) { transform: rotate(-1deg); }
.vibraz-category-card:nth-child(even) { transform: rotate(1deg); }

.vibraz-category-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--stamp-red);
}

.vibraz-category-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--canvas-soft);
}

.vibraz-category-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.vibraz-category-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px 8px;
  text-align: center;
}

.vibraz-category-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vibraz-category-text small {
  color: var(--ink-soft);
  font-size: 12.5px;
}

/* ===================== HOME INTRO ===================== */
.home-intro { padding: 40px 0 64px; }

.home-intro-content {
  background: var(--ink);
  color: var(--canvas-soft);
  border-radius: var(--radius-patch);
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.home-intro-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 48px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 14px;
  max-width: 14ch;
}

.home-intro-content p { max-width: 46ch; color: var(--stitch-grey-light); }

/* ===================== BUTTONS ===================== */
.btn-store-primary,
.btn-store-light,
.btn-comprar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-store-primary {
  background: var(--stamp-red);
  color: var(--white);
}

.btn-store-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.btn-store-light {
  background: var(--canvas-soft);
  color: var(--ink);
}

.btn-store-light:hover { transform: translateY(-2px); }

/* ===================== PRODUCT GRID / CARDS ===================== */
.product-section { padding: 56px 0; }

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.produto-card {
  background: var(--white);
  border-radius: var(--radius-patch);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.produto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.produto-imagem {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--canvas-soft);
}

.produto-imagem img { width: 100%; height: 100%; object-fit: cover; }

.produto-selos {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-destaque,
.tag-lancamento {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  transform: rotate(-3deg);
  width: fit-content;
  border: 1.5px solid currentColor;
}

.tag-destaque { background: var(--stamp-red); color: var(--white); border-color: var(--stamp-red-dark); }
.tag-lancamento { background: var(--thread-gold); color: var(--ink); }

.produto-conteudo {
  padding: 16px 16px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.produto-categoria {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stamp-red);
}

.produto-conteudo h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.produto-preco-area { margin-top: 4px; }

.produto-preco-area strong { font-size: 19px; }

.produto-preco-area p { font-size: 12px; color: var(--ink-soft); }

.btn-produto {
  display: block;
  text-align: center;
  margin: 14px 16px 16px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-produto:hover { background: var(--ink); color: var(--canvas); }

.btn-produto-grande { width: 100%; padding: 16px; font-size: 15px; margin-top: 24px; }

/* ===================== EDITORIAL BANNER ===================== */
.editorial-banner { padding: 24px 0 64px; }

.editorial-content {
  background: linear-gradient(135deg, var(--stamp-red), var(--stamp-red-dark));
  color: var(--white);
  border-radius: var(--radius-patch);
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.editorial-content .section-kicker { color: var(--canvas-soft); }
.editorial-content .section-kicker::before { background: var(--canvas-soft); }

.editorial-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  text-transform: uppercase;
  max-width: 16ch;
  margin-bottom: 10px;
}

.editorial-content p { max-width: 40ch; opacity: 0.9; }

/* ===================== TRUST SECTION ===================== */
.trust-section { padding: 24px 0 72px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-grid > div {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  border-left: 4px solid var(--stamp-red);
}

.trust-grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.trust-grid span { font-size: 13px; color: var(--ink-soft); }

/* ===================== FOOTER ===================== */
.store-footer {
  background: var(--ink);
  color: var(--stitch-grey-light);
  padding: 56px 0 32px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--canvas);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--thread-gold);
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--stitch-grey-light);
  transition: color 0.15s ease;
}

.footer-grid a:hover { color: var(--white); }

/* ===================== CARRINHO ===================== */
.pagina-carrinho { padding: 48px 0 80px; }

.lista-carrinho {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.item-carrinho {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.item-carrinho img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--canvas-soft);
}

.item-carrinho-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.item-carrinho-tamanho {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.item-carrinho-quantidade {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 6px;
}

.item-carrinho-quantidade button {
  width: 26px;
  height: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.item-carrinho-quantidade button:hover { background: var(--canvas-soft); }

.item-carrinho-remover {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--stamp-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.carrinho-vazio {
  background: var(--white);
  border-radius: var(--radius-patch);
  padding: 56px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.resumo-carrinho {
  background: var(--white);
  border-radius: var(--radius-patch);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.resumo-carrinho h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
}

.resumo-carrinho h3 span { color: var(--stamp-red); }

.btn-comprar { background: var(--stamp-red); color: var(--white); }
.btn-comprar:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.btn-comprar.btn-desabilitado { opacity: 0.4; pointer-events: none; }

.btn-limpar {
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-soft);
}

/* ===================== PRODUTO (DETALHE) ===================== */
.pagina-produto { padding: 48px 0 80px; }

.produto-detalhe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.produto-detalhe-imagem {
  border-radius: var(--radius-patch);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 2px dashed var(--stitch-grey);
}

.produto-detalhe-imagem img { width: 100%; height: 100%; object-fit: cover; }

.produto-detalhe-info h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 36px);
  text-transform: uppercase;
  margin: 6px 0 14px;
  line-height: 1.1;
}

.produto-detalhe-info .produto-preco-area strong { font-size: 26px; }

.produto-descricao {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: 50ch;
}

.produto-cores { margin-top: 24px; }

.produto-cores-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.produto-cores-label strong {
  text-transform: none;
  letter-spacing: 0;
  color: var(--stamp-red);
}

.produto-cores-lista { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-cor {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--stitch-grey-light);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-cor:hover { transform: scale(1.08); }

.btn-cor.selecionada {
  border-color: var(--white);
  box-shadow: 0 0 0 2px var(--ink);
}

.produto-tamanhos { margin-top: 28px; }

.produto-tamanhos-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.produto-tamanhos-lista { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-tamanho {
  min-width: 50px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-tamanho:hover:not(.indisponivel) { background: var(--canvas-soft); }

.btn-tamanho.selecionado { background: var(--ink); color: var(--canvas); }

.btn-tamanho.indisponivel {
  border-color: var(--stitch-grey);
  color: var(--stitch-grey);
  text-decoration: line-through;
  cursor: not-allowed;
}

.produto-aviso-estoque {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--stamp-red);
  min-height: 16px;
}

.produto-nao-encontrado {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.produto-nao-encontrado h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .vibraz-category-row { grid-template-columns: repeat(3, 1fr); }
  .grid-produtos { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .produto-detalhe { grid-template-columns: 1fr; }
  .store-nav { display: none; }
}

@media (max-width: 600px) {
  .vibraz-category-row { grid-template-columns: repeat(2, 1fr); }
  .grid-produtos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .home-intro-content,
  .editorial-content { padding: 36px 24px; }
  .item-carrinho { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .item-carrinho img { width: 64px; height: 64px; }
  .item-carrinho-quantidade,
  .item-carrinho-remover { grid-column: 2; }
}
