/* ============================================================
   ARCOM HIDRÁULICOS — Design System & Estilos Globais
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variáveis CSS ────────────────────────────────────────── */
:root {
  /* ── Paleta: Cinza (fundo/principal) · Vermelho e Preto (secundárias) ── */
  --primary: #CC0000;
  --primary-light: #E53333;
  --primary-dark: #8B0000;
  --accent: #E8000A;
  --accent-light: #FF3333;
  --accent-dark: #990000;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --success: #2ECC71;
  --danger: #CC0000;
  --warning: #FF6B35;

  /* Fundos: cinza claro (páginas/cards) e cinza escuro (header/menu) */
  --bg: #C6C8CA;
  --bg-card: #DCDEDF;
  --bg-header: #4A4D50;
  --bg-drawer: #E8E9EA;

  /* Textos */
  --text-primary: #1E1F21;
  --text-secondary: #4E5154;
  --text-muted: #6E7174;
  --text-on-dark: #FFFFFF;
  --text-on-accent: #FFFFFF;

  /* Bordas adaptadas ao tema claro (cinza) */
  --border: rgba(0, 0, 0, 0.10);
  --border-light: rgba(0, 0, 0, 0.06);

  /* Sombras adaptadas */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.65);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 64px;
  --max-w: 1400px;
  --drawer-w: 300px;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

input {
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
}

ul,
ol {
  list-style: none;
}

/* ── Layout Utilitários ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 40px;
  }
}

.page-content {
  padding-top: calc(var(--header-h) + 16px);
  min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg-header);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 24px;
  }
}

@media (min-width: 1280px) {
  .header-inner {
    padding: 0 40px;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 360px) {
  .logo-tagline {
    display: none;
  }

  .logo-name {
    font-size: 13px;
  }
}

/* Logo como imagem real */
.logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  display: block;
}

/* Header Search */
.header-search {
  flex: 1;
  min-width: 0;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 0 40px 0 16px;
  font-size: 16px; /* nunca menor que 16px — abaixo disso o Safari do iPhone dá zoom sozinho ao focar o campo */
  color: var(--text-on-dark);
  transition: var(--transition);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-search-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  pointer-events: none;
}

/* Header Buttons */
.header-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.header-btn:active {
  transform: translateY(0);
}

/* ── No celular, o botão de histórico do cabeçalho some — a mesma função já
   existe dentro do mini-carrinho, então nada se perde, e sobra espaço pra
   busca não ficar espremida. Mantido normalmente em telas maiores. ── */
@media (max-width: 560px) {
  #headerHistoricoBtn {
    display: none;
  }
}

/* ── Menu Gaveta (Drawer) ─────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(var(--drawer-w), 85vw);
  height: 100%;
  background: var(--bg-drawer);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo imagem no drawer */
.drawer-logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: block;
}

.drawer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.drawer-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.drawer-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: var(--transition);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.drawer-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: rgba(204, 0, 0, 0.1);
  color: var(--primary);
  border-left-color: var(--primary);
}

.drawer-nav-item .nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 20px;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.drawer-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ── Modal (base) — hoje só usado pelo Histórico de Pedidos ── */
/* Os nomes .notif-* vêm do antigo sino; foram mantidos porque o histórico usa estas classes. */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}

.notif-modal {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 16px;
  width: min(320px, calc(100vw - 32px));
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  z-index: 1500;
  overflow: hidden;
  transform: translateY(-12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  transform-origin: top right;
}

.notif-modal.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.notif-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.notif-modal-close {
  color: var(--text-muted);
  font-size: 18px;
  background: none;
  transition: var(--transition);
}

.notif-modal-close:hover {
  color: var(--text-primary);
}

.notif-modal-body {
  padding: 20px 16px;
}

.notif-empty {
  text-align: center;
  padding: 12px 0 4px;
}

.notif-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.notif-empty-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Hero Banner ──────────────────────────────────────────── */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 16px 0;
  min-height: 200px;
  background: linear-gradient(135deg, #4A4D50 0%, #6C6F72 50%, #8A8D91 100%);
  display: flex;
  align-items: center;
}

/* Linha com os dois banners lado a lado */
.hero-banners-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 16px 0;
}

.hero-banners-row > .hero {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

/* Banner de destaque: conteúdo colado no topo, não centralizado */
.promo-hero {
  align-items: flex-start;
}

/* No mobile/tablet estreito o banner fica sozinho (empilhado), então o
   título começa colado no selo — sem vão vazio. A partir de 768px (mesmo
   ponto em que os banners de Espuma EPE e Cesto, logo abaixo, também
   passam pro layout lado a lado) os dois banners desta fileira ficam
   lado a lado e escalam pra mesma altura do banner Arcom, então
   empurramos o título pra baixo pra ficar visualmente equilibrado. */
@media (min-width: 768px) {
  .promo-hero .hero-title {
    margin-top: 70px;
  }
}

@media (max-width: 767px) {
  .hero-banners-row {
    flex-direction: column;
  }
  .hero-banners-row > .hero {
    /* No empilhado (celular), cada banner precisa da altura real do
       próprio conteúdo — com flex-basis:0 (herdado do layout lado a
       lado) e overflow:hidden, o banner podia colapsar quase a zero de
       altura e cortar (ou sumir com) o conteúdo. */
    flex: none;
    width: 100%;
  }
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 24px 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(204, 0, 0, 0.2);
  border: 1px solid rgba(204, 0, 0, 0.45);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  max-width: 360px;
  margin-bottom: 20px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.45);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.6);
}

/* ── Banner Arcom — Layout Hero ─────────────────────────── */
.arcom-hero {
  min-height: auto;
  padding: 0;
  background: linear-gradient(135deg, #4A4D50 0%, #6C6F72 60%, #3D4043 100%);
  border: 1px solid rgba(204, 0, 0,0.2);
  display: flex;
}

.arcom-hero-overlay {
  background: none;
}

.arcom-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

/* Conteúdo textual */
.arcom-hero-content {
  flex: 1;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Logotipo estilizado */
.arcom-logo-block {
  line-height: 1;
}

.arcom-logo-text {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.arcom-logo-a {
  color: var(--primary);
  font-style: italic;
}

.arcom-logo-rcom {
  color: #FFFFFF;
}

.arcom-logo-sub {
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 700;
  color: #888;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 2px;
  margin-top: 2px;
}

.arcom-logo-tagline {
  font-size: clamp(9px, 1vw, 11px);
  color: #777;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Bloco "+20 Anos" */
.arcom-anos-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arcom-plus {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.arcom-anos-text {
  font-size: clamp(13px, 1.5vw, 18px);
  color: #ECECEC;
  font-weight: 500;
}

.arcom-anos-text strong {
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.2em;
}

.arcom-anos-text em {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

/* Lista de serviços */
.arcom-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arcom-services-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(11px, 1.15vw, 13px);
  color: #E0E0E0;
  font-weight: 500;
  line-height: 1.35;
}

.arcom-arrow {
  color: var(--primary);
  font-size: 1.1em;
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA label */
.arcom-cta-label {
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}

/* Botões de contato */
.arcom-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arcom-contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #5A5D60;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: #ECECEC;
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.arcom-contact-btn:hover {
  background: #4A4D50;
  border-color: var(--primary);
  color: #fff;
  transform: translateX(3px);
}

.arcom-contact-icon {
  font-size: 15px;
  width: 26px;
  height: 26px;
  background: #6C6F72;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Responsivo */
@media (max-width: 640px) {
  .arcom-hero-inner {
    flex-direction: column;
  }
}



/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.stat-card {
  flex: 1;
  min-width: 130px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-info {
  min-width: 0;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Seção Principal ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* ── Filtros de Categoria ─────────────────────────────────── */
.filters-wrap {
  position: relative;
  margin-bottom: 20px;
  /* Carrossel horizontal com scroll suave no mobile */
  overflow-x: auto;
  overflow-y: hidden;
  
  /* CORREÇÃO: Garante o comportamento nativo de toque sem travar */
  touch-action: auto; 
  -webkit-overflow-scrolling: touch; /* Scroll elástico no iPhone */
  
  /* Remove a barra de rolagem visual no Firefox */
  scrollbar-width: none; 
  
  /* Estende além do padding do .container para chegar às bordas */
  margin-left: -16px;
  margin-right: -16px;
  
  /* padding para não cortar o primeiro e último item */
  padding-left: 16px;
  padding-right: 0;
  
  /* CORREÇÃO: "mandatory" força o botão a se alinhar ao soltar o dedo */
  scroll-snap-type: x mandatory; 
}

/* Sombra do lado direito avisando que dá pra arrastar pra ver mais categorias —
   some sozinha (via JS, classe .filters-wrap--fim) quando chega no fim da lista. */
.filters-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 6px;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--bg) 80%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.filters-wrap.filters-wrap--fim::after {
  opacity: 0;
}

/* Garante que a barra suma no Chrome, Safari e Edge */
.filters-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.filters {
  display: flex;
  gap: 8px;
  /* padding-right extra garante que o último item não fique colado */
  padding-bottom: 6px;
  padding-right: 16px;
  /* largura mínima garante que todos os botões fiquem na mesma linha */
  width: max-content;
  min-width: 100%;
}

.filter-btn {
  scroll-snap-align: start;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .filters-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-x: visible;
    touch-action: auto;
    scroll-snap-type: none;
  }

  .filters-wrap::after {
    display: none;
  }

  .filters {
    padding-right: 0;
    width: auto;
    flex-wrap: wrap;
  }

  .filter-btn {
    scroll-snap-align: none;
    flex-shrink: 1;
  }
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(86, 90, 95, 0.25);
}

.filter-btn .filter-icon {
  font-size: 16px;
}

.filter-btn .filter-count {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.filter-btn:not(.active) .filter-count {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── Grid de Produtos ─────────────────────────────────────── */
.products-grid {
  display: grid;
  /* Mobile-first: 3 colunas em telas pequenas */
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .products-grid {
    gap: 10px;
  }
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── Card de Produto ──────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(86, 90, 95, 0.15);
}

.product-card:active {
  transform: translateY(-2px);
}

.card-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Mobile: menor para caber em 3 colunas */
  font-size: clamp(28px, 8vw, 40px);
  position: relative;
  overflow: hidden;
}

@media (min-width: 480px) {
  .card-image {
    font-size: clamp(32px, 8vw, 48px);
  }
}

@media (min-width: 768px) {
  .card-image {
    font-size: clamp(40px, 8vw, 64px);
  }
}

.card-image-emoji {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.card-image-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  z-index: 2;
}

.card-body {
  padding: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
}

.card-price {
  display: flex;
  flex-direction: column;
}

.card-price-label {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-price-value {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.card-price-unit {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-btn {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(86, 90, 95, 0.25);
}

.card-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(86, 90, 95, 0.35);
}

/* Em telas maiores, restaura tamanhos normais */
@media (min-width: 480px) {
  .card-body {
    padding: 10px;
  }
  .card-name {
    font-size: 12px;
  }
  .card-price-value {
    font-size: 13px;
  }
  .card-btn {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 768px) {
  .card-body {
    padding: 12px;
  }
  .card-category {
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }
  .card-name {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .card-price-label {
    font-size: 9px;
  }
  .card-price-value {
    font-size: 15px;
  }
  .card-price-unit {
    font-size: 9px;
  }
  .card-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .card-price-row {
    gap: 8px;
  }
}

/* ── Estado Vazio ─────────────────────────────────────────── */

/* ── Carrossel de Imagens do Card ────────────────────────── */

/* Card com foto real: sem background colorido */
.card-image--photo {
  background: #e0e0e0 !important;
  font-size: unset !important;
}

/* Container do carrossel */
.card-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Imagens empilhadas com transição de fade */
.card-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  user-select: none;
}

.card-carousel-img.active {
  opacity: 1;
}

/* Setas prev/next — visíveis só no hover do card */
.card-carousel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.product-card:hover .card-carousel-nav {
  opacity: 1;
  pointer-events: all;
}

.card-carousel-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #202124;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  z-index: 3;
}

.card-carousel-btn:hover {
  background: #fff;
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

/* Dots indicadores */
.card-carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
}

.card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card-dot.active {
  background: #fff;
  transform: scale(1.5);
}

@media (min-width: 480px) {
  .card-carousel-btn { width: 26px; height: 26px; font-size: 16px; }
  .card-dot { width: 6px; height: 6px; }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  margin-top: 40px;
  padding: 28px 0;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.65);
  background: var(--bg-header); 
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

/* Logo imagem no footer */
.footer-logo-img {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  display: block;
  margin-bottom: 4px;
}

.footer-text {
  font-size: 12px;
}

.footer-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--whatsapp);
  transition: var(--transition);
}

.footer-whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  transform: translateY(-1px);
}

/* ============================================================
   PÁGINA DE PRODUTO
   ============================================================ */

.product-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 11px;
}

/* Produto Hero */
.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .product-hero {
    grid-template-columns: 380px 1fr;
    align-items: start;
  }
}

.product-media-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-image-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.product-image-wrap .product-image-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
}

.product-image-emoji {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Galeria de fotos no hero do produto (reaproveita o carrossel do card) */
.product-image-wrap.product-gallery {
  background: #e0e0e0;
  padding: 0;
}

/* Na página de produto as setas ficam sempre visíveis (não há hover de card aqui) */
.product-gallery .card-carousel-nav {
  opacity: 1;
  pointer-events: all;
}

.product-gallery .card-carousel-btn {
  width: 32px;
  height: 32px;
  font-size: 17px;
}

.product-gallery .card-dot {
  width: 7px;
  height: 7px;
}

@media (min-width: 480px) {
  .product-gallery .card-carousel-btn { width: 36px; height: 36px; font-size: 19px; }
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.product-badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.product-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
}

/* Calculadora */
.calculator-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

.calc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* ── Botões de Seleção de Variação ─────────────────────────── */
.variant-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--primary) !important;
  border: 2px solid var(--primary-light) !important;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(86, 90, 95, 0.20);
}

.variant-btn:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(86, 90, 95, 0.30);
}

.variant-btn.active {
  background: var(--accent) !important;
  border-color: var(--accent-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.40);
}

.calc-unit-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}

.calc-unit-price-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-unit-price-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.calc-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.calc-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  background: none;
  transition: var(--transition);
}

.qty-btn:hover {
  background: rgba(86, 90, 95, 0.08);
}

.qty-btn:active {
  background: rgba(86, 90, 95, 0.14);
}

.qty-value {
  min-width: 52px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 0 4px;
}

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.calc-total-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.calc-total-value {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.calc-total-value.bump {
  transform: scale(1.08);
  color: var(--accent-light);
}

/* WhatsApp Button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.45);
}

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

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  flex-shrink: 0;
}

.whatsapp-btn-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  display: block;
  text-align: center;
  margin-top: 8px;
  color: var(--text-muted);
}

/* Especificações Técnicas */
.specs-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.specs-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-light);
}

.specs-table td {
  padding: 11px 8px;
  font-size: 14px;
  vertical-align: top;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  width: 45%;
  white-space: nowrap;
  padding-right: 16px;
}

.specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.back-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(-2px);
}

/* ── Animações de entrada ─────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-in-up:nth-child(1) {
  animation-delay: 0.05s;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.10s;
}

.fade-in-up:nth-child(3) {
  animation-delay: 0.15s;
}

.fade-in-up:nth-child(4) {
  animation-delay: 0.20s;
}

.fade-in-up:nth-child(5) {
  animation-delay: 0.25s;
}

.fade-in-up:nth-child(6) {
  animation-delay: 0.30s;
}

.fade-in-up:nth-child(7) {
  animation-delay: 0.35s;
}

.fade-in-up:nth-child(8) {
  animation-delay: 0.40s;
}

.fade-in-up:nth-child(9) {
  animation-delay: 0.45s;
}

.fade-in-up:nth-child(10) {
  animation-delay: 0.50s;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #E8E8E8 25%, #F4F4F4 50%, #E8E8E8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}


/* ── Seção Sobre a Empresa ────────────────────────────────── */
.about-section {
  padding: 32px 0 40px;
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 53, 0.10);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.about-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-title span {
  color: var(--accent);
  position: relative;
}

.about-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.about-text strong {
  color: var(--primary);
  font-weight: 700;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}

@media (max-width: 600px) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 8px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.about-pillar:hover {
  background: rgba(86, 90, 95, 0.04);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.about-pillar-icon {
  font-size: 28px;
  line-height: 1;
}

.about-pillar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  margin-top: 4px;
}

.about-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.about-cta:active {
  transform: translateY(0);
}

/* ── Modal Bottom-Sheet: Sobre a Empresa ──────────────────── */
.sobre-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 64, 0.55);
  backdrop-filter: blur(4px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sobre-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sobre-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 92vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 3001;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(86, 90, 95, 0.22);
  transform: translateY(110%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
              visibility 0s linear 0.38s;
  /* CORREÇÃO: garante invisibilidade total quando fechado */
  visibility: hidden;
  pointer-events: none;
  /* Reserva espaço pra barra de gestos do iPhone — sem isso, o conteúdo/botão
     de baixo do modal fica espremido contra o home indicator. */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sobre-sheet.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: all;
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
              visibility 0s linear 0s;
}

/* Alça de arrasto visual */
.sobre-drag-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}

.sobre-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  flex-direction: column;
  gap: 0;
}

.sobre-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.sobre-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.sobre-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.sobre-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.sobre-logo-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sobre-logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

/* Corpo scrollável */
.sobre-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 40px;
  flex: 1;
}

.sobre-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 53, 0.10);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.sobre-title {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.sobre-title span {
  color: var(--accent);
}

.sobre-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.sobre-text strong {
  color: var(--primary);
  font-weight: 700;
}

.sobre-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.sobre-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.sobre-pillar:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sobre-pillar-icon {
  font-size: 28px;
  line-height: 1;
}

.sobre-pillar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sobre-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  padding: 15px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  margin-top: 8px;
}

.sobre-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.sobre-cta:active {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .sobre-sheet {
    max-width: 480px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(110%);
    border-radius: var(--radius-xl);
    bottom: 20px;
  }

  .sobre-sheet.open {
    transform: translateX(-50%) translateY(0);
  }

  .sobre-pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   SEÇÃO DESTAQUE — ESPUMAS SOB MEDIDA (home)
   ============================================================ */

.foam-spotlight {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 20px 0;
  background: linear-gradient(135deg, #4A4D50 0%, #6C6F72 40%, #5A5D60 70%, #3D4043 100%);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(204, 0, 0,0.15);
  isolation: isolate;
}

/* Partículas flutuantes decorativas */
.foam-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.foam-particles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(204, 0, 0, 0.15);
  animation: foamFloat 6s ease-in-out infinite;
}
.foam-particles span:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 5%;  animation-delay: 0s;   animation-duration: 7s; }
.foam-particles span:nth-child(2) { width: 50px; height: 50px; top: 60%; left: 15%; animation-delay: 1.5s; animation-duration: 5s; }
.foam-particles span:nth-child(3) { width: 120px;height: 120px;top: 20%; right: 20%;animation-delay: 1s;   animation-duration: 9s; background: rgba(255,255,255,0.03); }
.foam-particles span:nth-child(4) { width: 60px; height: 60px; top: 70%; right: 10%;animation-delay: 2.5s; animation-duration: 6s; }
.foam-particles span:nth-child(5) { width: 35px; height: 35px; top: 40%; left: 45%; animation-delay: 0.8s; animation-duration: 8s; background: rgba(204, 0, 0, 0.10); }

@keyframes foamFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50%       { transform: translateY(-20px) scale(1.05); opacity: 1; }
}

.foam-spotlight-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .foam-spotlight-inner {
    grid-template-columns: 1fr minmax(300px, 440px);
    align-items: center;
    padding: 40px 36px;
  }
}

/* Conteúdo textual */
.foam-spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foam-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 53, 0.25);
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #FFB38A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: flex-start;
}

.foam-spotlight-title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.foam-spotlight-title span {
  color: var(--accent);
  display: block;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 800;
  margin-top: 2px;
}

.foam-spotlight-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 420px;
}

.foam-spotlight-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.foam-feature {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}
.foam-feature-icon { font-size: 14px; }

.foam-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: var(--transition);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.foam-spotlight-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
}
.foam-spotlight-cta:active { transform: translateY(0); }
.foam-spotlight-cta svg { flex-shrink: 0; }

/* Card visual decorativo (lado direito) */
.foam-spotlight-visual {
  display: flex;
  justify-content: center;
}

.foam-visual-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  min-width: 220px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foam-visual-icon {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(255,107,53,0.3));
  animation: foamFloat 5s ease-in-out infinite;
}

.foam-visual-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

.foam-visual-dims {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foam-dim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
}

.foam-dim-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.foam-dim-val {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  font-style: italic;
}

.foam-visual-btn {
  display: block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
}
.foam-visual-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.5);
}


/* ============================================================
   PÁGINA ESPUMAS — estilos específicos (espumas.html)
   ============================================================ */

.foam-page {
  background: linear-gradient(160deg, #EFEFEF 0%, #F5F5F5 50%, #EFEFEF 100%);
}

/* Header da página espumas */
.header-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  color: #fff;
  flex-shrink: 0;
  transition: var(--transition);
  text-decoration: none;
}
.header-back-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: translateX(-2px);
}

.header-foam-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #FFB38A;
  white-space: nowrap;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Main da página espumas */
.foam-main {
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ── Hero da página espumas ── */
.foam-page-hero {
  position: relative;
  background: linear-gradient(135deg, #4A4D50 0%, #6C6F72 40%, #8A8D91 80%, #5A5D60 100%);
  overflow: hidden;
  padding: 50px 20px 60px;
  text-align: center;
  isolation: isolate;
}

.foam-page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.foam-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.foam-orb-1 {
  width: 300px; height: 300px;
  background: rgba(255, 107, 53, 0.2);
  top: -80px; left: -60px;
  animation: orbPulse 8s ease-in-out infinite;
}
.foam-orb-2 {
  width: 250px; height: 250px;
  background: rgba(26, 58, 143, 0.4);
  bottom: -100px; right: -50px;
  animation: orbPulse 10s ease-in-out infinite reverse;
}
.foam-orb-3 {
  width: 180px; height: 180px;
  background: rgba(37, 211, 102, 0.12);
  top: 30%; left: 50%;
  transform: translateX(-50%);
  animation: orbPulse 12s ease-in-out infinite 2s;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33%       { transform: scale(1.15) translate(10px, -10px); }
  66%       { transform: scale(0.9) translate(-8px, 8px); }
}
.foam-orb-3 { animation-name: orbPulse3; }
@keyframes orbPulse3 {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.2); }
}

.foam-page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.foam-page-hero-icon {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(255,107,53,0.4));
  animation: foamFloat 4s ease-in-out infinite;
}

.foam-page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.45);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #FFB38A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.foam-page-hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.foam-page-hero-title span {
  color: var(--accent);
}

.foam-page-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 500px;
}

.foam-page-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.foam-page-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

/* ── Seção do Formulário ── */
.foam-form-section {
  padding: 0 0 40px;
}

.foam-form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .foam-form-container { padding: 0 24px; }
}

.foam-form-header {
  text-align: center;
  padding: 36px 0 24px;
}

.foam-form-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(86, 90, 95, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.foam-form-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.foam-form-hint {
  font-size: 14px;
  color: var(--text-secondary);
}
.foam-form-hint strong {
  color: var(--primary);
}

/* ── Card do formulário ── */
.foam-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 40px rgba(86, 90, 95,0.10);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 768px) {
  .foam-form-card { padding: 36px 32px; }
}

/* ── Fieldset ── */
.foam-fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.foam-legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
}

/* ── Toggle de unidade (mm / cm) das Dimensões da Espuma ── */
.dim-unit-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.dim-unit-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.dim-unit-btn:hover {
  color: var(--primary);
}

.dim-unit-btn-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.30);
}

.dim-unit-btn-active:hover {
  color: #fff;
}

/* ── Grid de Dimensões ── */
.foam-dims-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .foam-dims-grid { grid-template-columns: repeat(3, 1fr); }
}

.foam-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foam-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foam-unit {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.foam-input-wrap {
  position: relative;
}

.foam-input {
  width: 100%;
  height: 52px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 44px 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  appearance: textfield;
  -moz-appearance: textfield;
}
.foam-input::-webkit-outer-spin-button,
.foam-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.foam-input::placeholder { color: var(--text-muted); font-weight: 400; font-size: 15px; }
.foam-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(86, 90, 95, 0.08);
}
.foam-input.foam-input-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
  animation: shake 0.35s cubic-bezier(.36,.07,.19,.97);
}
.foam-input.foam-input-flash {
  border-color: var(--whatsapp);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.foam-input-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

.foam-error-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
  animation: fadeInUp 0.2s ease;
}

/* ── Preview dimensões ── */
.foam-dims-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.foam-dims-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.foam-dims-preview-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

/* ── Quantidade ── */
.foam-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foam-qty-info { display: flex; flex-direction: column; gap: 2px; }
.foam-qty-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.foam-qty-hint  { font-size: 11px; color: var(--text-muted); }

/* ── Observações ── */
.foam-obs-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foam-obs-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}
.foam-textarea {
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 110px;
  transition: var(--transition);
  outline: none;
}
.foam-textarea::placeholder { color: var(--text-muted); }
.foam-textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(86, 90, 95,0.08);
}
.foam-obs-count {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  font-weight: 500;
}

/* Chips de densidade */
.foam-density-chips { display: flex; flex-direction: column; gap: 8px; }
.foam-density-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.foam-density-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.foam-density-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(86, 90, 95,0.06);
  border: 1.5px solid rgba(86, 90, 95,0.12);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.foam-density-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(86, 90, 95,0.2);
}

/* ── Resumo do pedido ── */
.foam-summary {
  background: linear-gradient(135deg, rgba(86, 90, 95,0.05) 0%, rgba(86, 90, 95,0.03) 100%);
  border: 1.5px solid rgba(86, 90, 95,0.12);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.foam-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.foam-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) {
  .foam-summary-grid { grid-template-columns: repeat(4, 1fr); }
}
.foam-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.foam-summary-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.foam-summary-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* ── Botão WhatsApp ── */
.foam-cta-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foam-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #128C7E, #25D366, #128C7E);
  background-size: 200% 100%;
  background-position: 100% 0;
  border-radius: var(--radius-lg);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  position: relative;
  overflow: hidden;
}
.foam-whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.foam-whatsapp-btn:hover::before { opacity: 1; }
.foam-whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.55);
  background-position: 0 0;
}
.foam-whatsapp-btn:active { transform: translateY(0); }

.foam-whatsapp-btn.foam-btn-ready {
  animation: foamBtnPulse 2.5s ease-in-out infinite;
}
@keyframes foamBtnPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 12px 50px rgba(37, 211, 102, 0.65); }
}

.foam-whatsapp-btn.foam-btn-sending {
  opacity: 0.8;
  transform: scale(0.98);
}

.foam-whatsapp-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}
.foam-whatsapp-btn-main {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: block;
}
.foam-whatsapp-btn-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.82;
  display: block;
}

.foam-cta-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Trust badges (rodapé do formulário) ── */
.foam-form-footer {
  padding: 20px 0 0;
}
.foam-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.foam-trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   NOVOS ESTILOS — Saiba Mais / Foto Real / Modal Espuma
   ============================================================ */

/* ── Botões de ação agrupados no foam-spotlight ── */
.foam-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Botão "Saiba Mais" — EXCLUSIVO da Espuma Personalizada ── */
.foam-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.30);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.foam-info-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.foam-info-btn:active { transform: translateY(0); }
.foam-info-btn svg { flex-shrink: 0; }

/* ── Menu lateral: grupo com submenu revelado no hover ── */
.drawer-nav-group {
  display: flex;
  flex-direction: column;
}

/* ── Menu lateral: item secundário (submenu) ──
   Fica oculto por padrão e só aparece quando o mouse passa
   sobre o item principal (ou via foco, para navegação por teclado) */
.drawer-nav-item--sub {
  padding-left: 36px;
  font-size: 13px;
  opacity: 0;
  border-left: 3px solid rgba(86, 90, 95,0.12);
  margin-left: 16px;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease,
    padding 0.25s ease, pointer-events 0.25s;
}

.drawer-nav-group:hover .drawer-nav-item--sub,
.drawer-nav-group:focus-within .drawer-nav-item--sub {
  opacity: 0.88;
  max-height: 52px;
  padding-top: 14px;
  padding-bottom: 14px;
  pointer-events: auto;
}

.drawer-nav-item--sub:hover { opacity: 1; }

/* ── Foto real do produto no foam-spotlight (index.html) ── */
.foam-spotlight-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.foam-photo-card {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.45);
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255,255,255,0.15);
  transition: var(--transition-slow);
  cursor: pointer;
}
.foam-photo-card:hover { transform: scale(1.02) translateY(-4px); }
.foam-photo-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.foam-photo-img,
.foam-photo-card .card-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}
.foam-photo-card:hover .foam-photo-img,
.foam-photo-card:hover .card-carousel-img.active { transform: scale(1.06); }
/* Setas do carrossel sempre visíveis aqui (card grande, não é hover-only como nos cards de produto) */
.foam-photo-card .card-carousel-nav { opacity: 1; pointer-events: all; }
.foam-photo-card .card-carousel-btn { width: 30px; height: 30px; font-size: 16px; }
/* Dots ficam no topo — a faixa inferior (overlay) já tem o botão de CTA */
.foam-photo-card .card-carousel-dots { top: 14px; bottom: auto; }
.foam-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,24,64,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 10px;
}
.foam-photo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,107,53,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  align-self: flex-start;
  backdrop-filter: blur(4px);
}
.foam-photo-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  align-self: flex-start;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
}
.foam-photo-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.55); }

/* ── Foto real no hero de espumas.html ── */
.foam-page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: left;
}
.foam-page-hero-content {
  flex: 1 1 auto;
  max-width: 580px;
  align-items: flex-start !important;
}
.foam-page-hero-chips { justify-content: flex-start !important; }
.foam-page-hero-photo {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.50);
  border: 2px solid rgba(255,255,255,0.15);
  z-index: 1;
}
.foam-page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: foamFloat 6s ease-in-out infinite;
}
.foam-page-hero-photo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(255,107,53,0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 780px) {
  .foam-page-hero {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .foam-page-hero-content { align-items: center !important; }
  .foam-page-hero-chips { justify-content: center !important; }
  .foam-page-hero-photo { width: 200px; }
}

/* ── Preview do produto no formulário ── */
.foam-form-product-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(86, 90, 95,0.06), rgba(86, 90, 95,0.02));
  border: 1px solid rgba(86, 90, 95,0.10);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-top: 4px;
}
.foam-form-product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(86, 90, 95,0.10);
}
.foam-form-product-info { flex: 1; }
.foam-form-product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.foam-form-product-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.foam-form-product-benefits li {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .foam-form-product-preview { flex-direction: column; text-align: center; }
}

/* ── Modal "Saiba Mais" — Espuma Técnica ── */
.foam-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 50, 0.72);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.foam-info-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.foam-info-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 92vh;
  background: #fff;
  border-radius: 28px 28px 0 0;
  z-index: 2001;
  overflow-y: auto;
  transform: translateY(110%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
              visibility 0s linear 0.42s;
  box-shadow: 0 -12px 60px rgba(86, 90, 95, 0.28);
  /* Garante invisibilidade total quando fechado */
  visibility: hidden;
  pointer-events: none;
  /* Reserva espaço pra barra de gestos do iPhone */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.foam-info-sheet.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: all;
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
              visibility 0s linear 0s;
}
@media (min-width: 720px) {
  .foam-info-sheet {
    left: 50%;
    transform: translateX(-50%) translateY(110%);
    max-width: 640px;
    bottom: 24px;
    border-radius: 28px;
  }
  .foam-info-sheet.open {
    transform: translateX(-50%) translateY(0);
  }
}

/* Header do modal */
.foam-info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.foam-info-drag-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.foam-info-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.foam-info-header-icon {
  font-size: 32px;
  line-height: 1;
  background: linear-gradient(135deg, #F0F0F0, #E8E8E8);
  border-radius: var(--radius-md);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(86, 90, 95,0.08);
}
.foam-info-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.foam-info-header-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}
.foam-info-close {
  background: rgba(86, 90, 95,0.06);
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}
.foam-info-close:hover { background: rgba(86, 90, 95,0.12); color: var(--primary); }

/* Body do modal */
.foam-info-body {
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Foto no modal */
.foam-info-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.foam-info-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.foam-info-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(86, 90, 95,0.4);
}

/* Cards de benefícios */
.foam-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foam-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(86, 90, 95,0.03);
  border: 1px solid rgba(86, 90, 95,0.07);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: var(--transition);
}
.foam-info-card:hover {
  background: rgba(86, 90, 95,0.06);
  border-color: rgba(86, 90, 95,0.12);
  transform: translateX(3px);
}
.foam-info-card--highlight {
  background: linear-gradient(135deg, rgba(37,211,102,0.07), rgba(18,140,126,0.04));
  border-color: rgba(37,211,102,0.22);
}
.foam-info-card--highlight:hover {
  background: linear-gradient(135deg, rgba(37,211,102,0.12), rgba(18,140,126,0.07));
  border-color: rgba(37,211,102,0.35);
}
.foam-info-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.foam-info-card-content { flex: 1; }
.foam-info-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.foam-info-card-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.foam-info-card-text strong {
  color: var(--primary);
  font-weight: 700;
}

/* CTA do modal */
.foam-info-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
  letter-spacing: -0.01em;
}
.foam-info-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 48px rgba(37,211,102,0.6);
}
.foam-info-cta svg { flex-shrink: 0; }

/* ============================================================
   CARD DE PRODUTO — Espuma Técnica (na página de cálculo)
   ============================================================ */

.foam-product-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-top: 20px;
  transition: var(--transition);
}
.foam-product-info-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Foto no topo do card */
.foam-product-info-photo-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.foam-product-info-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s ease;
}
.foam-product-info-card:hover .foam-product-info-photo {
  transform: scale(1.03);
}

/* Corpo do card */
.foam-product-info-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foam-product-info-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

/* Lista de benefícios */
.foam-product-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foam-product-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}
.foam-product-info-icon {
  font-size: 17px;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: rgba(86, 90, 95, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   QUOTE CART — Sistema de Carrinho de Orçamento
   ============================================================ */

/* ── Botão "Adicionar ao Orçamento" ──────────────────────── */
.foam-add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(204, 0, 0, 0.35);
  letter-spacing: 0.01em;
}
.foam-add-cart-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(204, 0, 0, 0.45);
}
.foam-add-cart-btn:active {
  transform: translateY(0);
}
.foam-add-cart-btn.cart-btn-added {
  background: var(--success);
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
}
.foam-add-cart-btn.foam-btn-ready {
  animation: pulse-ready 2s ease-in-out infinite;
}
@keyframes pulse-ready {
  0%, 100% { box-shadow: 0 4px 20px rgba(204, 0, 0, 0.35); }
  50%       { box-shadow: 0 4px 28px rgba(204, 0, 0, 0.6); }
}

/* ── Seção do Carrinho ───────────────────────────────────── */
.cart-section {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: cart-fade-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-section.cart-visible {
  display: flex;
}
@keyframes cart-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.cart-section-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Lista de Itens ──────────────────────────────────────── */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Card de cada item ───────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
  animation: cart-item-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-item:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 14px rgba(204, 0, 0, 0.12);
}
@keyframes cart-item-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item.cart-item-removing {
  opacity: 0;
  transform: translateX(20px) scale(0.97);
  transition: all 0.28s ease;
}

.cart-item-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.cart-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cart-item-dims {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cart-item-dim-chip,
.cart-item-qty-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cart-item-dim-chip {
  background: rgba(204, 0, 0, 0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(204, 0, 0, 0.15);
}
.cart-item-qty-chip {
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp-dark);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.cart-item-obs .cart-chip-icon {
  margin-top: 1px;
}
.cart-chip-icon {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-item-obs {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  word-break: break-word;
}

.cart-item-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(204, 0, 0, 0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 2px;
}
.cart-item-remove:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

/* ── Botão Final "Solicitar orçamento" ───────────────────── */
.foam-send-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  background: var(--whatsapp-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(18, 140, 126, 0.35);
}
.foam-send-all-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}
.foam-send-all-btn.foam-btn-ready {
  background: var(--whatsapp);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  animation: pulse-wpp 2s ease-in-out infinite;
}
.foam-send-all-btn.foam-btn-ready:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}
.foam-send-all-btn.foam-btn-sending {
  opacity: 0.7;
  transform: scale(0.98);
}
@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 4px 36px rgba(37, 211, 102, 0.7); }
}

.foam-send-all-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.foam-send-all-main {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}
.foam-send-all-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1;
}

/* ── Grupo de botões finais (WhatsApp + E-mail) ───────────── */
.foam-send-all-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foam-send-all-btn--email {
  background: var(--text-secondary, #6C6F72);
  box-shadow: none;
}
.foam-send-all-btn--email.foam-btn-ready {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
  animation: none;
}
.foam-send-all-btn--email.foam-btn-ready:hover {
  background: #6f0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 0, 0, 0.45);
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .cart-item {
    padding: 12px 12px;
    gap: 10px;
  }
  .cart-item-dim-chip,
  .cart-item-qty-chip {
    font-size: 11px;
    padding: 3px 8px;
  }
  .foam-send-all-btn {
    padding: 16px 18px;
  }
  .foam-send-all-main {
    font-size: 14px;
  }
}

/* ── Input Manual de Quantidade ──────────────────────────── */
.qty-manual-input {
  width: 64px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-align: center;
  padding: 0 6px;
  transition: var(--transition);
  outline: none;
  -moz-appearance: textfield;
}
.qty-manual-input::-webkit-inner-spin-button,
.qty-manual-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-manual-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

/* ── Spinner de Dimensões (input + ▲▼ na direita) ────────── */
.dim-spinner {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

/* O input ocupa todo o espaço; padding-right deixa espaço para as setas */
.dim-spinner-input {
  flex: 1;
  padding-right: 32px !important;
  text-align: left;
  -moz-appearance: textfield;
}
.dim-spinner-input::-webkit-inner-spin-button,
.dim-spinner-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Coluna com as duas setas empilhadas, posicionada dentro do input */
.dim-spinner-arrows {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  overflow: hidden;
}

.dim-arrow-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  padding: 0;
}
.dim-arrow-btn:first-child {
  border-bottom: 1px solid var(--border);
}
.dim-arrow-btn:hover {
  background: var(--primary);
  color: #fff;
}
.dim-arrow-btn:active {
  background: var(--primary-dark);
  color: #fff;
}

/* ============================================================
   MINI-CART FLUTUANTE — Carrinho de Orçamento Geral
   ============================================================ */

.mini-cart {
  position: fixed;
  bottom: 0;
  right: 24px;
  z-index: 1200;
  width: 340px;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
  border: 1.5px solid var(--border);
  border-bottom: none;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  /* Reserva espaço pra barra de gestos do iPhone */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mini-cart.mini-cart-visible {
  transform: translateY(0);
}

/* Cabecalho */
.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.mini-cart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.mini-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  transition: transform 0.2s;
}
.mini-cart-badge.cart-badge-bump {
  transform: scale(1.5);
}
.mini-cart-toggle {
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mini-cart-toggle:hover { background: rgba(255,255,255,0.35); }

/* Corpo colapsavel */
.mini-cart-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 600px;
  transition: max-height 0.3s ease;
}
.mini-cart-body.mini-cart-collapsed { max-height: 0; }

/* Lista */
.mini-cart-list {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 260px;
}
.mini-cart-list::-webkit-scrollbar { width: 4px; }
.mini-cart-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Item */
.mc-item {
  padding: 8px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  animation: mc-item-in 0.22s ease;
}
@keyframes mc-item-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mc-item-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.mc-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
}
.mc-qty-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
  padding: 0;
}
.mc-qty-btn:hover { background: var(--primary); color: #fff; }
.mc-qty-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 18px;
  text-align: center;
}
.mc-item-price {
  flex: 1;
  text-align: right;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-dark);
}
.mc-item-unit-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin: -3px 0 6px;
  line-height: 1.3;
}
.mc-remove-btn {
  border: none;
  background: rgba(204,0,0,0.07);
  color: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.mc-remove-btn:hover { background: var(--primary); color: #fff; }

/* Rodape */
.mini-cart-footer {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.mini-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-cart-total-label { font-size: 12px; color: var(--text-muted); }
.mini-cart-total-value { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.mini-cart-total { flex-wrap: wrap; }
.mini-cart-total-note {
  flex: 0 0 100%;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Botao envio */
.mini-cart-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--whatsapp-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.5;
}
.mini-cart-send-btn:disabled { cursor: not-allowed; }
.mini-cart-send-btn.cart-send-ready {
  opacity: 1;
  background: var(--whatsapp);
  box-shadow: 0 3px 14px rgba(37,211,102,0.4);
  animation: pulse-send 2s ease-in-out infinite;
}
.mini-cart-send-btn.cart-send-ready:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}
.mini-cart-send-btn.cart-send-sending { opacity: 0.7; transform: scale(0.97); }
@keyframes pulse-send {
  0%, 100% { box-shadow: 0 3px 14px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 3px 24px rgba(37,211,102,0.65); }
}
.mini-cart-clear-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  padding: 2px;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s;
}
.mini-cart-clear-btn:hover { color: var(--primary); }

/* Mobile */
@media (max-width: 480px) {
  .mini-cart { right: 0; width: 100%; }
}

/* ============================================================
   BOTÃO "ADICIONAR AO CARRINHO" — Página de Produto
   ============================================================ */
.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 10px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.add-to-cart-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(204, 0, 0, 0.3);
  transform: translateY(-1px);
}
.add-to-cart-btn:active {
  transform: translateY(0);
}
.add-to-cart-btn--added {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(46, 204, 113, 0.35) !important;
}

/* ============================================================
   TOAST DE CONFIRMAÇÃO
   ============================================================ */
.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #1e1f21;
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  max-width: 340px;
  width: calc(100% - 48px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.cart-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cart-toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.cart-toast-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ============================================================
   AVISO DE PEDIDO ENVIADO (banner fixo dentro do carrinho)
   ============================================================ */
.mini-cart-order-banner {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: var(--radius-md, 10px);
  position: relative;
}
.mini-cart-order-banner.mini-cart-order-banner--visible {
  display: flex;
  animation: cart-fade-in 0.3s ease;
}
.mini-cart-order-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.3;
}
.mini-cart-order-banner-text {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text, #222);
  padding-right: 18px;
}
.mini-cart-order-banner-text strong {
  display: block;
  font-weight: 700;
  color: var(--success, #2ecc71);
  margin-bottom: 2px;
}
.mini-cart-order-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted, #888);
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
}
.mini-cart-order-banner-close:hover {
  color: var(--text, #222);
}

/* Mensagem exibida quando o carrinho está vazio (logo após envio) */
.mini-cart-empty-msg {
  padding: 18px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   AÇÕES NO CABEÇALHO DO MINI-CART (histórico + minimizar)
   ============================================================ */
.mini-cart-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-cart-history-btn {
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mini-cart-history-btn:hover { background: rgba(255,255,255,0.35); }

/* ============================================================
   BOTÃO "ENVIAR POR E-MAIL" — variante do botão de envio
   ============================================================ */
.mini-cart-send-btn--email {
  background: var(--text-secondary, #6C6F72);
}
.mini-cart-send-btn--email.cart-send-ready {
  opacity: 1;
  background: var(--primary-dark);
  box-shadow: 0 3px 14px rgba(139,0,0,0.3);
  animation: none;
}
.mini-cart-send-btn--email.cart-send-ready:hover {
  background: #6f0000;
  transform: translateY(-1px);
}

/* ============================================================
   MODAL DE HISTÓRICO DE PEDIDOS
   ============================================================ */
.historico-modal {
  top: auto;
  bottom: 96px;
  right: 24px;
  transform-origin: bottom right;
  transform: translateY(12px) scale(0.96);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.historico-modal.open {
  transform: translateY(0) scale(1);
}
.historico-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
}
.historico-modal-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.historico-clear-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  padding: 4px;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s;
}
.historico-clear-btn:hover { color: var(--primary); }

.historico-order {
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.historico-order:last-child { margin-bottom: 0; }
.historico-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.historico-order-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}
.historico-order-channel {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.historico-order-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}
.historico-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.historico-item-name { flex: 1; line-height: 1.3; }
.historico-item-qty { flex-shrink: 0; font-weight: 700; color: var(--text-primary); }
.historico-order-total {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  text-align: right;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

@media (max-width: 480px) {
  .historico-modal { right: 8px; bottom: 90px; width: calc(100vw - 16px); }
}

/* ============================================================
   PÁGINA "ENVIE SEU PROJETO" (projetos.html)
   ============================================================ */

.proj-main {
  min-height: calc(100vh - var(--header-h));
  background: var(--bg);
}

/* ── Hero ─────────────────────────────────────────────────── */
.proj-page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-header) 0%, var(--bg) 100%);
}

.proj-page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.proj-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.proj-orb-1 {
  width: 260px;
  height: 260px;
  top: -60px;
  left: -60px;
  background: var(--primary);
}

.proj-orb-2 {
  width: 220px;
  height: 220px;
  bottom: -80px;
  right: -40px;
  background: var(--accent);
}

.proj-page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.proj-page-hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--text-on-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.proj-page-hero-title span {
  color: var(--primary-light);
}

.proj-page-hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 20px;
}

.proj-page-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.proj-page-hero-chips span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-on-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

/* ── Formulário ───────────────────────────────────────────── */
.proj-form-section {
  padding: 32px 16px 64px;
}

.proj-form-container {
  max-width: 720px;
  margin: 0 auto;
}

.proj-form-header {
  text-align: center;
  margin-bottom: 24px;
}

.proj-form-step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.proj-form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.proj-form-hint {
  font-size: 14px;
  color: var(--text-muted);
}

.proj-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .proj-form-card { padding: 32px 28px; }
}

.proj-fieldset {
  border: none;
  margin-bottom: 26px;
}

.proj-fieldset:last-of-type { margin-bottom: 0; }

.proj-legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* ── Chips de Tipo de Projeto ─────────────────────────────── */
.proj-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proj-type-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 9px 15px;
  cursor: pointer;
  transition: var(--transition);
}

.proj-type-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.proj-type-chip-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Dropzone de Arquivos ─────────────────────────────────── */
.proj-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 28px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.proj-dropzone:hover,
.proj-dropzone-over {
  border-color: var(--primary);
  background: rgba(204, 0, 0, 0.05);
  color: var(--primary);
}

.proj-dropzone-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.proj-dropzone-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Lista de Arquivos Selecionados ───────────────────────── */
.proj-file-list {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.proj-file-list-visible {
  display: flex;
}

.proj-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.proj-file-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.proj-file-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.proj-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-file-size {
  font-size: 11px;
  color: var(--text-muted);
}

.proj-file-remove {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.proj-file-remove:hover {
  background: var(--danger);
  color: #fff;
}

/* ── Descrição (textarea) ─────────────────────────────────── */
.proj-obs-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proj-obs-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.proj-textarea {
  font-family: inherit;
  font-size: 16px; /* mínimo pra não disparar zoom automático no iPhone */
  color: var(--text-primary);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
}

.proj-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.proj-obs-count {
  align-self: flex-end;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Estado de erro ───────────────────────────────────────── */
.proj-input-error,
.proj-textarea.proj-input-error {
  border-color: var(--danger) !important;
}

.proj-error-tip {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}

/* ── CTA de Envio ──────────────────────────────────────────── */
.proj-cta-area {
  margin-top: 28px;
  text-align: center;
}

/* Wrapper dos dois botões lado a lado */
.proj-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

@media (min-width: 540px) {
  .proj-cta-buttons {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .proj-cta-buttons .proj-send-btn {
    flex: 1;
  }
}

/* Separador "ou" */
.proj-cta-or {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 14px;
  flex-shrink: 0;
}

.proj-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--whatsapp);
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.proj-send-btn:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

/* Variante e-mail */
.proj-send-btn--email {
  background: #1A73E8;
}

.proj-send-btn--email:hover {
  background: #1558B0;
}

.proj-btn-sending {
  opacity: 0.7;
  pointer-events: none;
}

.proj-cta-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Aviso: anexar arquivos no WhatsApp ───────────────────── */
.proj-attach-reminder {
  display: none;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  background: #FFF8E6;
  border: 1.5px solid #F0C24B;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: relative;
}

.proj-attach-reminder-visible {
  display: flex;
}

.proj-attach-reminder-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.proj-attach-reminder-title {
  font-size: 14px;
  font-weight: 800;
  color: #6B4E00;
  margin-bottom: 6px;
}

.proj-attach-reminder-text {
  font-size: 13px;
  color: #6B4E00;
  line-height: 1.5;
  margin-bottom: 10px;
}

.proj-attach-file-names {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-attach-file-names li {
  font-size: 13px;
  font-weight: 600;
  color: #6B4E00;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.proj-attach-reminder-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #6B4E00;
  cursor: pointer;
}

/* ── Selos de confiança ────────────────────────────────────── */
.proj-form-footer {
  margin-top: 32px;
}

.proj-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.proj-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
}

/* ── Navegação entre páginas (Espumas ↔ Projetos) ─────────── */
.page-nav-links {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full, 999px);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--border, #ccc);
  background: var(--bg-card, #e8e8e8);
  color: var(--text-secondary, #555);
  transition: all 0.22s ease;
  cursor: pointer;
}

.page-nav-btn:hover {
  border-color: var(--primary, #CC0000);
  color: var(--primary, #CC0000);
  background: rgba(204, 0, 0, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.15);
}

.page-nav-btn--active {
  background: var(--primary, #CC0000);
  border-color: var(--primary, #CC0000);
  color: #fff;
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.30);
  pointer-events: none;
}

.page-nav-btn--active:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.30);
}

.page-nav-btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.page-nav-btn--active svg {
  opacity: 1;
}


/* ── Botão "Saiba Mais" / "Ver Produto" nos spotlights ─────── */
.foam-info-btn,
.cesto-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.90);
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(6px);
  text-decoration: none;
}
.foam-info-btn:hover,
.cesto-info-btn:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}

/* Linha de ações dos spotlights */
.foam-spotlight-actions,
.cesto-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ============================================================
   SEÇÃO DESTAQUE — CESTO ARTICULADO (home/index.html)
   ============================================================ */

.cesto-spotlight {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 20px 0;
  background: linear-gradient(135deg, #1E0000 0%, #3D0000 35%, #6B0000 70%, #4A0000 100%);
  box-shadow: 0 12px 50px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(204,0,0,0.25);
  isolation: isolate;
}

.cesto-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cesto-particles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(204,0,0,0.20);
  animation: cestoFloat 6s ease-in-out infinite;
}
.cesto-particles span:nth-child(1) { width:80px;  height:80px;  top:10%; left:5%;   animation-delay:0s;   animation-duration:7s; }
.cesto-particles span:nth-child(2) { width:50px;  height:50px;  top:60%; left:15%;  animation-delay:1.5s; animation-duration:5s; }
.cesto-particles span:nth-child(3) { width:120px; height:120px; top:20%; right:20%; animation-delay:1s;   animation-duration:9s; background:rgba(255,50,0,0.05); }
.cesto-particles span:nth-child(4) { width:60px;  height:60px;  top:70%; right:10%; animation-delay:2.5s; animation-duration:6s; }
.cesto-particles span:nth-child(5) { width:35px;  height:35px;  top:40%; left:45%;  animation-delay:0.8s; animation-duration:8s; background:rgba(204,0,0,0.12); }

@keyframes cestoFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50%       { transform: translateY(-20px) scale(1.05); opacity: 1; }
}

.cesto-spotlight-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 24px;
}
@media (min-width: 768px) {
  .cesto-spotlight-inner {
    grid-template-columns: 1fr minmax(300px, 440px);
    align-items: center;
    padding: 40px 36px;
  }
}

.cesto-spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cesto-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(204,0,0,0.35);
  border: 1px solid rgba(255,80,80,0.45);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #FFB3B3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: flex-start;
}

.cesto-spotlight-title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.cesto-spotlight-title span {
  background: linear-gradient(90deg, #FF6B6B, #FF2020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.cesto-spotlight-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 420px;
}

.cesto-spotlight-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cesto-feature-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  backdrop-filter: blur(4px);
}
.cesto-feature-icon { font-size: 14px; }

.cesto-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: var(--transition);
  box-shadow: 0 6px 28px rgba(37,211,102,0.4);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.cesto-spotlight-cta svg { width: 22px; height: 22px; flex-shrink: 0; }
.cesto-spotlight-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(37,211,102,0.55); }
.cesto-spotlight-cta:active { transform: translateY(0); }

.cesto-spotlight-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cesto-photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.5), 0 0 40px rgba(204,0,0,0.25);
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255,80,80,0.25);
  transition: var(--transition-slow);
}
.cesto-photo-card:hover { transform: scale(1.02) translateY(-4px); }

.cesto-photo-img,
.cesto-photo-card .card-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}
.cesto-photo-card:hover .cesto-photo-img,
.cesto-photo-card:hover .card-carousel-img.active { transform: scale(1.06); }
/* Setas do carrossel sempre visíveis aqui (card grande, não é hover-only como nos cards de produto) */
.cesto-photo-card .card-carousel-nav { opacity: 1; pointer-events: all; }
.cesto-photo-card .card-carousel-btn { width: 30px; height: 30px; font-size: 16px; }
/* Dots ficam no topo — a faixa inferior (overlay) já tem o botão de CTA */
.cesto-photo-card .card-carousel-dots { top: 14px; bottom: auto; }

.cesto-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(80,0,0,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 10px;
}

.cesto-photo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(204,0,0,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  align-self: flex-start;
  backdrop-filter: blur(4px);
}

.cesto-photo-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  align-self: flex-start;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
}
.cesto-photo-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.55); }

/* ══════════════════════════════════════════════════════════
   LOJA ONLINE (loja.html)
══════════════════════════════════════════════════════════ */
.loja-hero {
  background: linear-gradient(135deg, #4A4D50 0%, #6C6F72 50%, #8A8D91 100%);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  margin: 20px 0 28px;
  text-align: center;
}
.loja-hero-inner { max-width: 640px; margin: 0 auto; }
.loja-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.loja-hero-title {
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
}
.loja-hero-title span { color: var(--accent-light); }
.loja-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.loja-products-section { margin-bottom: 40px; }
.loja-products-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.loja-products-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.loja-products-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.loja-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.loja-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
}
.loja-empty-icon { font-size: 36px; margin-bottom: 10px; }
.loja-empty-title { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.loja-empty-text { font-size: 13.5px; color: var(--text-secondary); max-width: 380px; line-height: 1.55; margin: 0; }

@media (max-width: 480px) {
  .loja-hero { padding: 36px 20px; }
}

/* ── Cards de produto da Loja Online ── */
.loja-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.loja-product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.loja-product-card--out { opacity: 0.75; }

.loja-product-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1f2f3;
}
.loja-product-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loja-product-img--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: var(--text-muted);
}
.loja-product-stock {
  position: absolute; top: 8px; right: 8px;
  background: rgba(21,128,61,0.92); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
}
.loja-product-stock--out { background: rgba(148,32,32,0.92); }

.loja-product-info { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.loja-product-name { font-size: 14.5px; font-weight: 800; color: var(--text-primary); line-height: 1.3; }
.loja-product-desc {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.loja-product-footer {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px;
}
.loja-product-price { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.loja-product-price small { font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.loja-product-buy-btn {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-full);
  font-size: 12.5px; font-weight: 700; padding: 8px 14px; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.loja-product-buy-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.loja-product-buy-btn:disabled {
  background: #d1d3d5; color: #6b7075; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ── Carrinho flutuante da Loja Online ── */
.loja-cart-fab {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: var(--transition);
}
.loja-cart-fab:hover { transform: translateY(-2px) scale(1.04); }
.loja-cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #b91c1c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.loja-cart-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  z-index: 998; display: none;
}
.loja-cart-overlay.loja-cart-visible { display: block; }

.loja-cart-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 100%; max-width: 400px; height: 100%;
  background: #fff;
  z-index: 999;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.25);
  transition: right 0.3s ease;
}
.loja-cart-panel.loja-cart-visible { right: 0; }

.loja-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.loja-cart-title { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.loja-cart-close {
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted);
}

.loja-cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.loja-cart-empty { color: var(--text-muted); font-size: 13.5px; text-align: center; padding: 40px 0; }

.loja-cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light, #eee);
}
.loja-cart-item-img, .loja-cart-item-img--placeholder {
  width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: #f1f2f3; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.loja-cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.loja-cart-item-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.loja-cart-item-price { font-size: 11.5px; color: var(--text-muted); }
.loja-cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}
.loja-cart-item-qty button {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border);
  background: #f8f9fa; cursor: pointer; font-weight: 700; font-size: 13px; line-height: 1;
}
.loja-cart-item-qty span { font-size: 13px; font-weight: 700; min-width: 16px; text-align: center; }
.loja-cart-item-remove {
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; flex-shrink: 0;
}
.loja-cart-item-remove:hover { color: #b91c1c; }

.loja-cart-footer {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}
.loja-cart-total {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--text-primary); margin-bottom: 12px;
}
.loja-cart-total strong { font-size: 17px; }
.loja-cart-checkout-btn {
  width: 100%; padding: 13px; border: none; border-radius: var(--radius-full);
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14.5px; cursor: pointer;
}
.loja-cart-checkout-btn:disabled { background: #d1d3d5; color: #6b7075; cursor: not-allowed; }
.loja-cart-shipping-note { font-size: 11.5px; color: var(--text-muted); text-align: center; margin: 8px 0 0; }

@media (max-width: 480px) {
  .loja-cart-panel { max-width: 100%; right: -100%; }
}

/* ══════════════════════════════════════════════════════════
   CHECKOUT (checkout.html)
══════════════════════════════════════════════════════════ */
.checkout-container { padding: 24px 0 60px; }
.checkout-title { font-size: 22px; font-weight: 800; color: var(--text-primary); margin: 0 0 20px; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.checkout-card-title { font-size: 15.5px; font-weight: 800; color: var(--text-primary); margin: 0 0 14px; }

.checkout-form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.checkout-field { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 5px; }
.checkout-field-sm { flex: 0 0 110px; min-width: 90px; }
.checkout-field-cep { flex: 0 0 230px; min-width: 210px; }
@media (max-width: 480px) {
  .checkout-field-cep { flex: 1 1 100%; min-width: 0; }
}
.checkout-field label { font-size: 12.5px; font-weight: 700; color: var(--text-secondary); }
.checkout-field input, .checkout-field select {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 16px; font-family: inherit; box-sizing: border-box; background: #fff; color: var(--text-primary);
  /* 16px é o mínimo pra não disparar o zoom automático do Safari no iPhone ao focar o campo */
}
.checkout-field input:focus, .checkout-field select:focus { outline: 2px solid var(--accent-light); border-color: var(--accent); }

.checkout-payment-hint { font-size: 11.5px; color: var(--text-muted); margin: 12px 0 0; line-height: 1.5; }

.checkout-summary-card { position: sticky; top: 16px; }
.checkout-items-list { margin-bottom: 12px; max-height: 220px; overflow-y: auto; }
.checkout-item {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px solid var(--border-light, #eee);
}
.checkout-summary-lines { border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 16px; }
.checkout-summary-line {
  display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-secondary); margin-bottom: 6px;
}
.checkout-summary-total {
  font-size: 16px; font-weight: 800; color: var(--text-primary); padding-top: 8px; border-top: 1px solid var(--border);
}
.checkout-confirm-btn {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-full);
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer;
  transition: var(--transition);
}
.checkout-confirm-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.checkout-confirm-btn:disabled { background: #d1d3d5; color: #6b7075; cursor: not-allowed; transform: none; box-shadow: none; }
.checkout-error { display: block; color: #b91c1c; font-size: 12.5px; font-weight: 600; margin-top: 10px; text-align: center; }

.checkout-empty-msg { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 15px; }
.checkout-empty-msg a { color: var(--accent); font-weight: 700; }

.checkout-success {
  display: none;
  text-align: center;
  max-width: 480px;
  margin: 20px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
}
.checkout-success.checkout-success-visible { display: block; }
.checkout-success-icon { font-size: 44px; margin-bottom: 12px; }
.checkout-success h2 { font-size: 19px; font-weight: 800; color: var(--text-primary); margin: 0 0 10px; }
.checkout-success p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 20px; }
.checkout-success-btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 24px; border-radius: var(--radius-full); text-decoration: none;
}

/* ── Retorno do pagamento (pedido-retorno.html) ── */
.pedido-retorno {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 28px;
}
.pedido-retorno-icon { font-size: 48px; margin-bottom: 14px; }
.pedido-retorno h1 { font-size: 20px; font-weight: 800; color: var(--text-primary); margin: 0 0 10px; }
.pedido-retorno p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 22px; }
.pedido-retorno-btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 26px; border-radius: var(--radius-full); text-decoration: none;
}

/* ── Campo de CEP com botão "Calcular frete" ── */
.checkout-cep-row { display: flex; gap: 6px; }
.checkout-cep-row input { flex: 1; min-width: 0; }
.checkout-cep-btn {
  flex-shrink: 0;
  padding: 0 12px;
  border: 1.5px solid var(--accent);
  background: #fff;
  color: var(--accent);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.checkout-cep-btn:hover { background: var(--accent); color: #fff; }
.checkout-cep-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Opções de frete calculadas (Melhor Envio) ── */
.checkout-frete-options { display: flex; flex-direction: column; gap: 8px; }
.checkout-frete-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
}
.checkout-frete-option input { accent-color: var(--accent); flex-shrink: 0; }
.checkout-frete-option--active { border-color: var(--accent); background: rgba(217,4,41,0.05); }
.checkout-frete-option-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.checkout-frete-option-nome { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.checkout-frete-option-prazo { font-size: 11.5px; color: var(--text-muted); }
.checkout-frete-option-preco { font-size: 14px; font-weight: 800; color: var(--text-primary); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════
   MEDIDAS PRÉ-DEFINIDAS (espumas-predefinidas.html)
══════════════════════════════════════════════════════════ */

/* ── Aviso fixo da chapa base ── */
.predef-base-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(204, 0, 0, 0.06);
  border: 1px solid rgba(204, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-primary);
}
.predef-base-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.3;
}

/* ── Seletor de espessura (60 / 70 / 80) ── */
.predef-thickness-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.predef-thickness-btn {
  flex: 1;
  min-width: 84px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.predef-thickness-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.predef-thickness-btn-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(204, 0, 0, 0.30);
}
.predef-thickness-btn-active:hover {
  color: #fff;
}

/* ── Linha com a dica de unidade + toggle cm/mm, logo abaixo da legenda "Produtos" ── */
.predef-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.predef-legend-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Lista de cortes modulares ── */
.predef-cuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.predef-cut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.predef-cut-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.predef-cut-tipo {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.predef-cut-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.predef-cut-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.predef-cut-qty-control {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.predef-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.predef-qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.predef-qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── Painel de resumo em tempo real ── */
.predef-summary-panel {
  background: var(--bg-card, var(--bg));
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.predef-summary-label {
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.predef-summary-text {
  color: var(--primary);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   PREÇO NA PÁGINA DO PRODUTO — exclusivo do Cesto Articulado
   de Incêndio (product.js só renderiza este bloco quando
   product.id === 'cesto-articulado-incendio')
══════════════════════════════════════════════════════════ */
.product-price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}

.product-price-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   AVISO DE ÁREA DE ENTREGA (Loja Online)
   Duas variantes: uma para dentro de heros escuros/coloridos
   (index.html, loja.html), outra para fundo claro (checkout.html)
══════════════════════════════════════════════════════════ */
.delivery-area-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin: 4px 0 6px;
}

.checkout-delivery-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 4, 41, 0.06);
  border: 1px solid rgba(217, 4, 41, 0.22);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  margin: 4px 0 14px;
}

/* SEO: H1 acessível, oculto visualmente */
.sr-only-h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Aviso de área de entrega (loja) */
.area-aviso-overlay{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.area-aviso-box{background:#fff;color:#1a1b1d;max-width:380px;width:100%;border-radius:14px;padding:24px 22px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.3)}
.area-aviso-icone{font-size:34px;margin-bottom:6px}
.area-aviso-titulo{margin:0 0 10px;font-size:20px;font-weight:800}
.area-aviso-texto{margin:0 0 18px;font-size:15px;line-height:1.6;color:#4a4d50}
.area-aviso-botoes{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.area-aviso-botoes button{font:inherit;font-weight:700;border-radius:8px;padding:11px 18px;cursor:pointer;border:1px solid #cfd2d6;background:#fff;color:#1a1b1d}
.area-aviso-botoes .area-aviso-ok{background:#cc0000;border-color:#cc0000;color:#fff}
