/* =========================================================================
   AMP Brasil — Folha de estilo principal
   Tokens extraídos do design system corporativo (DESIGN_SYSTEM.md).
   ========================================================================= */

:root {
  /* Marca */
  --color-primary: #001740;
  --color-primary-active: #0A2A6B;
  --color-accent-soft: #1E3F8F;

  /* Gradientes */
  --gradient-brand: linear-gradient(135deg, #001740 0%, #0A2A6B 50%, #1E3F8F 100%);
  --gradient-brand-soft: linear-gradient(180deg, #001740 0%, #0A2A6B 100%);

  /* Backgrounds */
  --color-bg-app: #F4F6FB;
  --color-bg-surface: #FFFFFF;
  --color-bg-muted: #EEF2F8;
  --color-bg-subtle: #F8FAFD;

  /* Texto */
  --color-text-primary: #001740;
  --color-text-secondary: #4B5876;
  --color-text-tertiary: #8893AE;
  --color-text-inverse: #FFFFFF;

  /* Bordas */
  --color-border-subtle: rgba(0, 23, 64, 0.08);
  --color-border: rgba(0, 23, 64, 0.14);

  /* Semânticos */
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-danger: #EF4444;
  --color-danger-bg: #FEF2F2;
  --color-warning: #F59E0B;
  --color-warning-bg: #FFFBEB;
  --color-info: #3B82F6;
  --color-info-bg: #EFF6FF;

  /* Raios */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Sombras (tinta da marca, nunca preto puro) */
  --shadow-xs: 0 1px 2px rgba(0, 23, 64, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 23, 64, 0.06), 0 1px 2px rgba(0, 23, 64, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 23, 64, 0.08), 0 2px 4px rgba(0, 23, 64, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 23, 64, 0.12), 0 4px 8px rgba(0, 23, 64, 0.06);
  --shadow-card: 0 1px 3px rgba(0, 23, 64, 0.06), 0 1px 2px rgba(0, 23, 64, 0.03);
  --shadow-float: 0 6px 20px rgba(0, 23, 64, 0.07), 0 1px 3px rgba(0, 23, 64, 0.04);

  /* Foco */
  --color-ring: rgba(0, 23, 64, 0.35);
  --color-ring-strong: rgba(0, 23, 64, 0.6);

  /* Layout */
  --container-max: 1200px;
  --container-padding: clamp(16px, 4vw, 32px);
  --header-height: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
}

body {
  margin: 0;
  background-color: var(--color-bg-app);
  color: var(--color-text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .15s ease;
}

a:hover {
  color: var(--color-primary-active);
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

.display {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-secondary);
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}

.text-secondary { color: var(--color-text-secondary); }
.text-tertiary  { color: var(--color-text-tertiary); }

code, pre, .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: 'tnum', 'zero';
}

/* ---------- Foco ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-ring-strong);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--muted { background-color: var(--color-bg-muted); }
.section--subtle { background-color: var(--color-bg-subtle); }

.section--brand {
  background: var(--gradient-brand);
  color: var(--color-text-inverse);
}
.section--brand h1,
.section--brand h2,
.section--brand h3,
.section--brand p { color: var(--color-text-inverse); }

/* Grid utilitário */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Top bar (telefone + sociais) ---------- */
.topbar {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.topbar a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease;
}
.topbar a:hover {
  color: var(--color-text-inverse);
}

.topbar__icon {
  flex: 0 0 auto;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar__social a {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}
.topbar__social a:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- Header principal ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-xs);
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  padding-block: 12px;
}
.site-brand { flex: 0 0 auto; }
.site-header__inner > .site-nav { flex: 0 0 auto; }

.site-brand {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
.site-brand__text { color: var(--color-primary); }
.site-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-brand img,
.site-brand .custom-logo {
  max-height: 44px;
  width: auto;
  height: auto;
}

/* Busca de produto */
.site-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 460px;
  width: 100%;
  margin-inline: auto;
}
.site-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}
.site-search input[type="search"] {
  width: 100%;
  padding-left: 44px;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg-muted);
  border-color: transparent;
}
.site-search input[type="search"]:focus {
  background-color: var(--color-bg-surface);
  border-color: var(--color-primary);
}

/* Pré-visualização de produtos (live search) */
.site-search__results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  overflow: hidden auto;
  max-height: min(70vh, 460px);
}
.site-search__status {
  padding: 18px 16px;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 14px;
}
.site-search__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background .12s ease;
}
.site-search__item:hover { background: var(--color-bg-subtle); }
.site-search__thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.site-search__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.site-search__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.site-search__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-search__item:hover .site-search__name { color: var(--color-primary); }
.site-search__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: 'JetBrains Mono', monospace;
}
.site-search__price--quote {
  color: var(--color-text-tertiary);
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.site-search__add {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, opacity .15s ease;
}
.site-search__add:hover { background: var(--color-primary-active); color: var(--color-text-inverse); }
.site-search__add--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.site-search__add--ghost:hover { background: var(--color-bg-muted); }
.site-search__add.is-loading { opacity: 0.6; cursor: progress; }
.site-search__add.is-added { background: var(--color-success); }
.site-search__add.is-added:hover { background: var(--color-success); }
.site-search__all {
  display: block;
  text-align: center;
  padding: 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-subtle);
}
.site-search__all:hover { background: var(--color-bg-muted); color: var(--color-primary); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 14px;
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--color-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Carrinho */
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  transition: background-color .15s ease;
}
.header-cart:hover { background-color: var(--color-bg-muted); color: var(--color-text-primary); }

.header-cart__icon {
  position: relative;
  display: inline-flex;
  color: var(--color-primary);
}
.header-cart__badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}

.header-cart__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-cart__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  font-weight: 600;
}
.header-cart__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Avatar minha conta */
.header-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-muted);
  color: var(--color-primary);
  overflow: hidden;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.header-account:hover {
  background: var(--color-bg-subtle);
  box-shadow: var(--shadow-xs);
}
.header-account__avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  object-fit: cover;
}

/* Botão de toggle do menu mobile.
   Especificidade reforçada para vencer a regra .btn (mesma cascata). */
.site-header .site-header__menu-toggle { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-active); color: var(--color-text-inverse); }

.btn-secondary {
  background: var(--color-bg-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-muted); }

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn-ghost:hover { background: var(--color-bg-muted); }

.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: var(--radius-xs); }

/* ---------- Card ---------- */
.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card--hover:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-ring);
  outline: none;
}

label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

/* ---------- Hero (front-page) ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(0, 23, 64, 0.92) 0%, rgba(0, 23, 64, 0.55) 50%, rgba(0, 23, 64, 0.2) 100%),
    url('../img/hero-banner.webp') center / cover no-repeat,
    var(--gradient-brand);
  color: var(--color-text-inverse);
  padding-block: clamp(72px, 12vw, 140px);
  position: relative;
  overflow: hidden;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.hero__title {
  color: var(--color-text-inverse);
  max-width: 22ch;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 60ch;
  margin-bottom: 28px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero .btn-primary {
  background: var(--color-bg-surface);
  color: var(--color-primary);
}
.hero .btn-primary:hover { background: var(--color-bg-muted); color: var(--color-primary); }

.hero .btn-secondary {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.3);
}
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Cabeçalho de seção (título + ação à direita) ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head__text h2 { margin-bottom: 0; }
.section-head__action { flex: 0 0 auto; }

/* "Ver loja completa": vazado por padrão, preenche de azul no hover. */
.section-head__action.btn-primary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
}
.section-head__action.btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

@media (max-width: 600px) {
  .section-head { align-items: flex-start; }
}

/* ---------- Segmentos (mosaico quebra-cabeça) ---------- */
.segmentos-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 14px;
}

/* O 1º bloco vira destaque grande (2x2) e o 8º vira largo (2x1). */
.segmentos-mosaic .segmento-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.segmentos-mosaic .segmento-card:nth-child(8) {
  grid-column: span 2;
}

.segmento-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--seg-bg, none) center / cover no-repeat, var(--gradient-brand);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
/* Degradê azul da marca cobrindo a foto. No hover fica mais transparente,
   revelando a imagem, mantendo o título sempre legível. */
.segmento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(10, 42, 107, 0.62) 0%, rgba(0, 23, 64, 0.9) 100%);
  transition: background .3s ease;
}
.segmento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}
.segmento-card:hover::after {
  background: linear-gradient(155deg, rgba(10, 42, 107, 0.1) 0%, rgba(0, 23, 64, 0.5) 100%);
}

.segmento-card__label {
  position: relative;
  z-index: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--color-text-inverse);
  text-shadow: 0 1px 10px rgba(0, 23, 64, 0.65);
}
.segmentos-mosaic .segmento-card:nth-child(1) .segmento-card__label {
  font-size: 1.5rem;
}

.segmento-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-text-inverse);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.segmento-card:hover .segmento-card__arrow {
  opacity: 1;
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
  .segmentos-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}

@media (max-width: 520px) {
  .segmentos-mosaic {
    grid-auto-rows: 120px;
    gap: 10px;
  }
  .segmento-card__label { font-size: 0.95rem; }
  .segmentos-mosaic .segmento-card:nth-child(1) .segmento-card__label { font-size: 1.15rem; }
}

/* ---------- Materiais (cards lado a lado, com foto) ---------- */
.materiais-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.material-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  padding: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--mat-bg, none) center / cover no-repeat, var(--gradient-brand);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.material-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 23, 64, 0) 35%, rgba(0, 23, 64, 0.8) 100%);
  transition: background .25s ease;
}
.material-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}
.material-card:hover::after {
  background: linear-gradient(180deg, rgba(0, 23, 64, 0.15) 0%, rgba(0, 23, 64, 0.84) 100%);
}

.material-card__label {
  position: relative;
  z-index: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--color-text-inverse);
}

.material-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-text-inverse);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.material-card:hover .material-card__arrow {
  opacity: 1;
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
  .materiais-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .materiais-grid { gap: 10px; }
  .material-card { aspect-ratio: 1 / 1; }
}

/* ---------- Sustentabilidade ---------- */
.sustentabilidade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
  align-items: start;
}
.sustentabilidade__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-success-bg);
  color: var(--color-success);
  margin-bottom: 20px;
}
.sustentabilidade__head .eyebrow { margin-bottom: 8px; }
.sustentabilidade__head h2 { margin: 0; }
.sustentabilidade__body p {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.sustentabilidade__body p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .sustentabilidade {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- CTA com formulário (Fale com a gente) ---------- */
/* padding-block menor + margin negativo maior no card = o card extravasa a
   faixa azul (extravasamento ≈ margin negativo − padding). */
.cta-section {
  overflow: visible;
  padding-block: 72px;
  margin-block: 56px;
  background:
    linear-gradient(95deg, rgba(0, 23, 64, 0.93) 0%, rgba(0, 23, 64, 0.66) 48%, rgba(0, 23, 64, 0.42) 100%),
    url('../img/cta-bg.webp') center / cover no-repeat,
    var(--gradient-brand);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.cta-text h2 { max-width: 16ch; }
.cta-text p {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Card do formulário: flutua sobre a faixa azul, extravasando em cima e embaixo. */
.cta-form-card {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 24px 50px rgba(0, 23, 64, 0.28), 0 6px 16px rgba(0, 23, 64, 0.18);
  margin-block: -116px;
  position: relative;
  z-index: 3;
}

/* O card é claro dentro da faixa azul: restaura as cores escuras dos textos,
   vencendo a regra .section--brand h3/p que deixaria tudo branco/invisível. */
.section--brand .cta-form-card h3,
.section--brand .cta-form-card .cta-form-card__title { color: var(--color-text-primary); }
.section--brand .cta-form-card p { color: var(--color-text-secondary); }
.section--brand .cta-form-card .cta-form__feedback--erro { color: var(--color-danger); }

.cta-form-card__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0 0 24px;
}

.cta-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta-field { margin-bottom: 16px; }
.cta-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.cta-form__submit {
  width: 100%;
  margin-top: 8px;
}

/* Honeypot oculto */
.cta-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Feedback */
.cta-form__feedback--ok {
  text-align: center;
  padding: 28px 0;
}
.cta-form__feedback--ok svg { color: var(--color-success); margin-bottom: 12px; }
.cta-form__feedback--ok h3 { margin: 0 0 8px; }
.cta-form__feedback--ok p { color: var(--color-text-secondary); margin: 0; }

.cta-form__feedback--erro {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-form-card { margin-block: 8px 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 64px 32px;
  margin-top: 96px;
}

.site-footer h4,
.site-footer .widget-title {
  color: var(--color-text-inverse);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}
.site-footer a:hover {
  color: var(--color-text-inverse);
}

.site-footer__columns {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* Coluna da marca */
.site-footer__logo {
  display: inline-block;
  margin-bottom: 20px;
}
.site-footer__logo img {
  max-height: 52px;
  width: auto;
}

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.site-footer__contact li svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__contact a {
  color: rgba(255, 255, 255, 0.78);
}
.site-footer__contact a:hover {
  color: var(--color-text-inverse);
}

@media (max-width: 900px) {
  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }

/* ---------- WooCommerce (ajustes leves) ---------- */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--color-primary);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
}

.woocommerce ul.products li.product a img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce-page a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--color-primary-active);
  color: var(--color-text-inverse);
}

/* Botões de destaque do Woo (.alt): add-to-cart, finalizar compra, etc.
   Por padrão vêm na cor de destaque do Woo (roxo); aqui usam a cor da marca. */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce #place_order {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover {
  background: var(--color-primary-active);
  color: var(--color-text-inverse);
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--color-primary);
  background-color: var(--color-bg-muted);
  color: var(--color-text-primary);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--color-primary);
}

/* ---------- 404 ---------- */
.error-404 {
  text-align: center;
  padding-block: 96px;
}
.error-404 .display {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--color-primary);
}

/* ---------- Utilidades ---------- */
.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;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/* =========================================================================
   Hero de páginas internas (loja, sobre, contato, etc.)
   ========================================================================= */
.page-hero {
  background: var(--gradient-brand);
  color: var(--color-text-inverse);
  padding-block: clamp(56px, 8vw, 96px);
}
.page-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}
.page-hero__title {
  color: var(--color-text-inverse);
  max-width: 24ch;
  margin-bottom: 12px;
}
.page-hero__lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin-bottom: 0;
}

/* =========================================================================
   Páginas internas — banner + painel branco flutuante (extravasa)
   Usado em: Sobre Nós, Contato, e páginas de materiais.
   ========================================================================= */
.page-banner {
  background: var(--gradient-brand);
  color: var(--color-text-inverse);
  padding-block: clamp(40px, 6vw, 72px) 150px;
}
.page-banner__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}
.page-banner__title {
  color: var(--color-text-inverse);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  max-width: 24ch;
  margin: 0;
}

/* Wrapper deixa o painel extravasar somente o banner (topo). */
.page-shell { overflow: visible; padding-bottom: 100px; }

.page-panel {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 23, 64, 0.18), 0 6px 16px rgba(0, 23, 64, 0.10);
  padding: 100px;
  position: relative;
  z-index: 3;
  margin-top: -100px;  /* sobe sobre o banner; a base fica normal */
}

/* Conteúdo dentro do painel: textos um pouco maiores e respirados. */
.page-panel .entry-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.page-panel .entry-content > :first-child { margin-top: 0; }
.page-panel .entry-content > :last-child { margin-bottom: 0; }
.page-panel .entry-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-text-primary);
  margin: 1.6em 0 0.5em;
}
.page-panel .entry-content h3 {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin: 1.4em 0 0.4em;
}
.page-panel .entry-content p { margin: 0 0 1.1em; }

/* Mosaico de 3 fotos (termoplásticos / termofixo). */
.page-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.page-mosaic figure,
.page-mosaic .page-mosaic__item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-muted);
}
.page-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Página de contato: duas colunas dentro do painel. */
.page-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
/* O card do formulário (reaproveitado da home) fica liso dentro do painel. */
.page-contact-form .cta-form-card {
  margin-block: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 860px) {
  .page-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-banner { padding-bottom: 120px; }
  .page-panel { margin-top: -80px; padding: 24px; }
  .page-mosaic { grid-template-columns: 1fr; }
}

/* Cover (imagem destacada acima do conteúdo) */
.page-cover { padding-top: 48px; }
.page-cover__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.page-cover__image img { width: 100%; height: auto; display: block; }

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.amp-breadcrumbs {
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 13px;
  padding: 12px 0;
}
.amp-breadcrumbs a { color: var(--color-text-secondary); }
.amp-breadcrumbs a:hover { color: var(--color-primary); }
.amp-breadcrumbs span[aria-hidden="true"] { margin: 0 8px; color: var(--color-text-tertiary); }

/* =========================================================================
   Loja — layout
   ========================================================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.shop-sidebar { position: sticky; top: calc(var(--header-height) + 20px); }
.shop-filter { margin-bottom: 32px; }
.shop-filter__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.shop-filter__list { list-style: none; margin: 0; padding: 0; }
.shop-filter__list li { margin-bottom: 6px; }
.shop-filter__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 4px 0;
}
.shop-filter__list a:hover { color: var(--color-primary); }
.shop-filter__list a.is-active { color: var(--color-primary); font-weight: 600; }
.shop-filter__count {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-family: 'JetBrains Mono', monospace;
}

.shop-filter__list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shop-filter__list--inline li { margin: 0; }
.shop-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.shop-tag:hover {
  background: var(--color-bg-subtle);
  color: var(--color-primary);
}
.shop-tag.is-active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.woocommerce-result-count { margin: 0; color: var(--color-text-tertiary); font-size: 13px; }
.woocommerce-ordering select { padding: 8px 12px; }

ul.products,
.woocommerce ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
/* O WooCommerce injeta um clearfix (::before/::after) no ul.products.
   Como o ul virou grid, esses pseudo-elementos viram células fantasma
   (a 1ª coluna vazia). Neutralizamos os dois. */
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
  display: none;
}
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

/* =========================================================================
   Card de produto
   ========================================================================= */
.product-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-3px);
}
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-subtle);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12%;
  transition: transform .35s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-card__badge--quote {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.product-card__badge--sale {
  background: var(--color-warning);
  color: var(--color-text-primary);
}

.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__cat { margin: 0; font-size: 10px; }
.product-card__title { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.3; }
.product-card__title a { color: var(--color-text-primary); }
.product-card__title a:hover { color: var(--color-primary); }
.product-card__meta { font-size: 12px; margin: 0; }
.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.product-card__price { font-weight: 600; color: var(--color-primary); }
.product-card__cta { width: 100%; margin-top: auto; }

/* =========================================================================
   Página de produto
   ========================================================================= */
.product-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.product-gallery__main {
  position: relative;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.product-gallery__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}
.product-gallery__slide.is-active { opacity: 1; }
.product-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.product-gallery__thumb {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color .15s ease, box-shadow .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.product-gallery__thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 23, 64, 0.08);
}

.product-info__title {
  margin: 8px 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.product-info__short p { color: var(--color-text-secondary); }
.product-info__refs { margin: 16px 0; }
.product-info__refs select { max-width: 360px; }
.product-info__lote {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.product-info__lote svg { color: var(--color-primary); flex-shrink: 0; }
.product-info__lote-text { display: flex; flex-direction: column; line-height: 1.3; }
.product-info__lote-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  font-weight: 700;
}
.product-info__lote-value { font-size: 15px; color: var(--color-text-primary); }
.product-info__lote-value strong { font-weight: 700; }
.product-info__cta { margin: 24px 0; display: flex; flex-direction: column; gap: 16px; }
.product-info__quote { width: 100%; max-width: 360px; }
.product-info__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-info__facts {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-subtle);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 24px;
}
.product-info__facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-tertiary); font-weight: 600; }
.product-info__facts dd { margin: 0; color: var(--color-text-primary); }

/* Preço Woo dentro do single (mesma fonte do título) */
.product-info p.price,
.product-info span.price {
  font-family: 'Montserrat', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}
.product-info .woocommerce-Price-amount.amount { font-size: 2.25rem; }

/* Quantidade + adicionar ao carrinho lado a lado */
.product-info form.cart {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.product-info form.cart .quantity { margin: 0; }
.product-info form.cart .quantity input.qty {
  height: 100%;
  min-height: 50px;
  width: 88px;
}
/* "Adicionar ao carrinho": ação secundária, em outline */
.product-info form.cart .single_add_to_cart_button {
  flex: 1 1 220px;
  min-height: 50px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
}
.product-info form.cart .single_add_to_cart_button:hover {
  background: var(--color-bg-muted);
  color: var(--color-primary);
}
/* "Comprar agora": CTA principal, linha inteira abaixo, sólido em destaque */
.product-info form.cart .single_buy_now_button {
  flex: 1 1 100%;
  min-height: 52px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1.5px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.product-info form.cart .single_buy_now_button:hover {
  background: var(--color-primary-active);
  border-color: var(--color-primary-active);
  color: var(--color-text-inverse);
}

/* Marcação de campo obrigatório e estado inválido do select de referência */
.product-info__req { color: var(--color-danger); font-weight: 700; }
.product-info__refs select.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-bg);
}

/* =========================================================================
   Modal premium de aviso (opções obrigatórias)
   ========================================================================= */
.amp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.amp-modal[hidden] { display: none; }
.amp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 23, 64, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .2s ease;
}
.amp-modal.is-open .amp-modal__overlay { opacity: 1; }
.amp-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 28px;
  text-align: center;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.amp-modal.is-open .amp-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.amp-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.amp-modal__title { margin: 0 0 8px; font-size: 1.25rem; }
.amp-modal__text { margin: 0 0 24px; color: var(--color-text-secondary); }
.amp-modal__dialog .btn { width: 100%; }
.amp-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.amp-modal__close:hover { background: var(--color-bg-muted); color: var(--color-text-primary); }

/* =========================================================================
   Tabs (descrição / especificação)
   ========================================================================= */
.amp-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 24px;
}
.amp-tabs__tab {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
  font-family: inherit;
}
.amp-tabs__tab:hover { color: var(--color-text-secondary); }
.amp-tabs__tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.amp-tabs__panel { display: none; }
.amp-tabs__panel.is-active { display: block; }

.amp-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
}
.amp-spec-table th, .amp-spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 14px;
}
.amp-spec-table tr:last-child td { border-bottom: none; }
.amp-spec-table th {
  background: var(--color-bg-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

/* Grid de relacionados */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* =========================================================================
   WhatsApp flutuante
   ========================================================================= */
.amp-wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
}
.amp-wa__fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.amp-wa__fab:hover { transform: scale(1.05); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5); }

.amp-wa__panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 320px;
  background: #F0F2F5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.amp-wa__panel[hidden] { display: none; }

.amp-wa__header {
  background: #25D366;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.amp-wa__brand { display: flex; align-items: center; gap: 10px; }
.amp-wa__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.amp-wa__name { margin: 0; font-weight: 600; font-size: 14px; }
.amp-wa__status {
  margin: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}
.amp-wa__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #4ADE80;
}
.amp-wa__close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  border-radius: var(--radius-sm);
  opacity: .85;
}
.amp-wa__close:hover { opacity: 1; background: rgba(255,255,255,0.1); }

.amp-wa__body { padding: 16px; }
.amp-wa__bubble {
  background: #fff;
  padding: 12px 14px;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-xs);
}
.amp-wa__bubble p { margin: 0 0 6px; color: var(--color-text-primary); }
.amp-wa__bubble p:last-child { margin: 0; }

.amp-wa__form input {
  width: 100%;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid transparent;
}
.amp-wa__form input:focus { border-color: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2); }

.amp-wa__submit {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s ease;
}
.amp-wa__submit:hover { background: #1DA851; }

/* =========================================================================
   Modal de Orçamento (drawer lateral direito)
   ========================================================================= */
.amp-quote { position: fixed; inset: 0; z-index: 100; }
.amp-quote[hidden] { display: none; }

.amp-quote__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 23, 64, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.amp-quote.is-open .amp-quote__backdrop { opacity: 1; }

.amp-quote__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.amp-quote.is-open .amp-quote__drawer { transform: translateY(0); }

@media (min-width: 768px) {
  .amp-quote__drawer {
    transform: translateX(100%);
  }
  .amp-quote.is-open .amp-quote__drawer { transform: translateX(0); }
}

.amp-quote__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.amp-quote__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin: 0 0 6px;
}
.amp-quote__title { margin: 0; font-size: 1.25rem; }
.amp-quote__close {
  background: transparent;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
}
.amp-quote__close:hover { background: var(--color-bg-muted); color: var(--color-text-primary); }

.amp-quote__body { padding: 24px; overflow-y: auto; }

/* =========================================================================
   Carrinho e Checkout (clássico) — visual premium
   ========================================================================= */

/* Títulos das páginas Carrinho e Finalizar compra: maiores e centralizados */
.woocommerce-cart .entry-header h1,
.woocommerce-cart article > header h1,
.woocommerce-checkout .entry-header h1,
.woocommerce-checkout article > header h1 {
  font-size: 2.25rem;
  text-align: center;
}

/* ---------- Página "Pedido recebido" (uniforme) ---------- */
/* Todos os títulos de seção no mesmo tamanho do "Pedido recebido" */
.woocommerce-order-details__title,
.woocommerce-column__title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* "Obrigado. Seu pedido foi recebido." centralizado, com respiro */
.woocommerce-thankyou-order-received {
  text-align: center;
  margin: 16px 0 32px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* Blocos de endereço: fonte menor e organizada (no tom dos rótulos da tabela) */
.woocommerce-customer-details .woocommerce-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.woocommerce-customer-details address {
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
  padding: 16px 18px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  color: var(--color-text-secondary);
}
.woocommerce-customer-details address .woocommerce-customer-details--phone,
.woocommerce-customer-details address .woocommerce-customer-details--email {
  font-size: 13px;
  margin: 6px 0 0;
  color: var(--color-text-secondary);
}

/* Campo de quantidade: setinhas (spinners) nativas à mostra */
.woocommerce .quantity input.qty {
  width: 88px;
  text-align: center;
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
}

/* Oculta o botão "Atualizar carrinho" (atualização é automática via JS) */
.woocommerce .cart .actions .button[name="update_cart"] { display: none !important; }
.woocommerce .cart .actions { padding: 0 !important; border: none !important; }

/* Tabela (carrinho e resumo) premium */
.woocommerce table.shop_table {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.woocommerce table.shop_table thead th {
  background: var(--color-bg-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  font-weight: 700;
  padding: 14px 18px;
  border: none;
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  padding: 16px 18px;
  border-top: 1px solid var(--color-border-subtle);
  vertical-align: middle;
}
.woocommerce table.shop_table .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
}
.woocommerce table.shop_table .product-name a {
  color: var(--color-text-primary);
  font-weight: 600;
}
.woocommerce table.shop_table .product-name a:hover { color: var(--color-primary); }
.woocommerce table.shop_table .amount { font-family: 'JetBrains Mono', monospace; font-weight: 600; }

/* Botão remover item (×) premium */
.woocommerce a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--color-danger-bg);
  color: var(--color-danger) !important;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.woocommerce a.remove:hover {
  background: var(--color-danger);
  color: #fff !important;
  transform: scale(1.08);
}

/* Totais do carrinho: largura cheia, igual à lista de produtos */
.woocommerce .cart-collaterals { width: 100%; display: block; }
.woocommerce .cart-collaterals .cart_totals {
  width: 100%;
  float: none;
}
.woocommerce .cart-collaterals .cross-sells { display: none; }
/* Coluna Subtotal (lista) e valor Total (totais) alinhados à direita,
   para o Total ficar sob a coluna SUBTOTAL do carrinho. */
.woocommerce table.cart .product-subtotal { text-align: right; }
/* Linha Total: rótulo "Total" sob a coluna QUANTIDADE e valor sob SUBTOTAL. */
.woocommerce .cart_totals table.shop_table { table-layout: fixed; width: 100%; }
.woocommerce .cart_totals .order-total th {
  text-align: right;
  padding-right: 28px;
}
.woocommerce .cart_totals .order-total td {
  width: 24%;
  text-align: right;
}
.woocommerce .cart_totals .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 22px;
  font-size: 15px;
}

/* ---- Checkout: tudo empilhado (full width), não em 2 colunas ---- */
.woocommerce-checkout #customer_details.col2-set,
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  width: 100%;
  float: none;
  max-width: 100%;
}
.woocommerce-checkout #customer_details .col-2 { margin-top: 8px; }

/* Cards premium nas seções do checkout */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  margin-bottom: 24px;
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout #order_review {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.woocommerce-checkout h3 { font-size: 1.2rem; margin-bottom: 18px; }

/* Oculta o campo País (loja vende só para o Brasil; valor BR segue enviado) */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field { display: none !important; }

/* Autocomplete de endereço (Photon) — dropdown de sugestões */
.amp-ac-wrap { position: relative; }
.amp-ac {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  max-height: 280px;
  overflow-y: auto;
}
.amp-ac__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.amp-ac__item:hover,
.amp-ac__item.is-active { background: var(--color-bg-muted); }
.amp-ac__main { font-size: 14px; color: var(--color-text-primary); font-weight: 500; }
.amp-ac__sub { font-size: 12px; color: var(--color-text-tertiary); }

/* Form rows e labels */
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.woocommerce form .form-row .required,
.woocommerce .required_field .required,
.woocommerce-account .required {
  color: var(--color-danger);
  border: none;
  text-decoration: none;
  font-weight: 700;
}
.woocommerce .select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

/* Métodos de pagamento */
.woocommerce-checkout #payment {
  background: transparent;
  border-radius: var(--radius-md);
}
.woocommerce-checkout #payment ul.payment_methods {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  padding: 12px 16px;
}
.woocommerce-checkout #payment div.payment_box {
  background: var(--color-bg-muted);
  border-radius: var(--radius-sm);
}
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--color-bg-muted); }

/* =========================================================================
   Responsivo (extensão)
   ========================================================================= */
@media (max-width: 1024px) {
  .site-header__inner > .site-nav { display: none; }
  .site-header .site-header__menu-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
  .topbar__phone span { display: none; }
  .site-header__inner {
    gap: 12px;
    min-height: 64px;
  }
  .site-search { display: none; } /* busca some no mobile pra dar espaço — drawer + busca dedicada entra depois */
  .header-cart__info { display: none; }

  /* Loja e produto colapsam */
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-page__grid { grid-template-columns: 1fr; gap: 24px; }
  .product-info__facts { grid-template-columns: 1fr; gap: 4px 0; }
  .product-info__facts dd { margin-bottom: 12px; }

  /* WhatsApp panel ocupa quase tudo */
  .amp-wa__panel { width: calc(100vw - 48px); }
}
