/* ================================================
   MIMO DE MINAS — CSS PRINCIPAL
   Paletas dinâmicas via variáveis CSS
   ================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; }

/* ---------- PALETAS DE CORES ---------- */

/* === 1. Dourado Mineiro (padrão) === */
.palette-dourado {
  --primary:       #C9A84C;
  --primary-dark:  #9E7A2A;
  --primary-light: #F0D58A;
  --secondary:     #7A3B19;
  --accent:        #D95A2B;
  --accent-dark:   #A73E18;
  --bg:            #FAF6F1;
  --bg-alt:        #F2EBE0;
  --surface:       #FFFFFF;
  --text:          #2A1A0E;
  --text-muted:    #6B5344;
  --border:        #E0D0BF;
  --shadow:        rgba(90, 50, 10, 0.12);
  --hero-overlay:  linear-gradient(135deg, rgba(121,59,25,0.80), rgba(26,12,4,0.55));
}

/* === 2. Noite Vintage === */
.palette-noite {
  --primary:       #BFA15C;
  --primary-dark:  #8C7030;
  --primary-light: #DEC98A;
  --secondary:     #2C3E50;
  --accent:        #E8693A;
  --accent-dark:   #B84E22;
  --bg:            #1A1A2E;
  --bg-alt:        #16213E;
  --surface:       #0F3460;
  --text:          #E8E0D0;
  --text-muted:    #A0968A;
  --border:        #2E3A4A;
  --shadow:        rgba(0, 0, 0, 0.4);
  --hero-overlay:  linear-gradient(135deg, rgba(0,0,0,0.75), rgba(30,15,5,0.6));
}

/* === 3. Verde Serra === */
.palette-verde {
  --primary:       #5C8C5A;
  --primary-dark:  #3D6B3B;
  --primary-light: #8FBD8D;
  --secondary:     #8B6914;
  --accent:        #C25C2A;
  --accent-dark:   #963F16;
  --bg:            #F4F8F1;
  --bg-alt:        #E8F0E4;
  --surface:       #FFFFFF;
  --text:          #1B2E1A;
  --text-muted:    #4A6048;
  --border:        #C8DCC5;
  --shadow:        rgba(30, 70, 28, 0.12);
  --hero-overlay:  linear-gradient(135deg, rgba(30,70,28,0.78), rgba(10,30,8,0.5));
}

/* === 4. Terracota Artesanal === */
.palette-terracota {
  --primary:       #C0643D;
  --primary-dark:  #8F3F1F;
  --primary-light: #E09070;
  --secondary:     #6B3A28;
  --accent:        #E8A030;
  --accent-dark:   #B57A15;
  --bg:            #FAF2EC;
  --bg-alt:        #F2E8DC;
  --surface:       #FFFFFF;
  --text:          #2E1810;
  --text-muted:    #7A4838;
  --border:        #E0C8B8;
  --shadow:        rgba(100, 40, 10, 0.12);
  --hero-overlay:  linear-gradient(135deg, rgba(96,40,16,0.80), rgba(30,12,4,0.55));
}

/* === 5. Branco Mineral === */
.palette-branco {
  --primary:       #8C7B6E;
  --primary-dark:  #5C4E44;
  --primary-light: #B8A898;
  --secondary:     #4A3D36;
  --accent:        #C8673A;
  --accent-dark:   #9A4420;
  --bg:            #F8F8F6;
  --bg-alt:        #EFEDE8;
  --surface:       #FFFFFF;
  --text:          #1C1916;
  --text-muted:    #6B5E56;
  --border:        #DDD8D0;
  --shadow:        rgba(0, 0, 0, 0.08);
  --hero-overlay:  linear-gradient(135deg, rgba(60,45,35,0.75), rgba(10,8,5,0.5));
}

/* === 6. Safira Premium === */
.palette-safira {
  --primary:       #4A6FA5;
  --primary-dark:  #2E4E82;
  --primary-light: #7A9FD0;
  --secondary:     #8C6914;
  --accent:        #C8A030;
  --accent-dark:   #9A7010;
  --bg:            #F2F5FA;
  --bg-alt:        #E8EDF5;
  --surface:       #FFFFFF;
  --text:          #0F1E32;
  --text-muted:    #4A5A72;
  --border:        #C8D5E8;
  --shadow:        rgba(15, 30, 80, 0.12);
  --hero-overlay:  linear-gradient(135deg, rgba(15,30,80,0.80), rgba(5,10,30,0.55));
}

/* === 7. Ébano & Linho — Paleta Personalizada === */
.palette-ebano {
  --primary:       #A67D44;
  --primary-dark:  #7A5A28;
  --primary-light: #CDBCAB;
  --secondary:     #899481;
  --accent:        #A67D44;
  --accent-dark:   #7A5A28;
  --bg:            #EFE9E1;
  --bg-alt:        #E3DCD3;
  --surface:       #FAF7F4;
  --text:          #11100F;
  --text-muted:    #6B6560;
  --border:        #CDBCAB;
  --shadow:        rgba(17, 16, 15, 0.14);
  --hero-overlay:  linear-gradient(135deg, rgba(17,16,15,0.82), rgba(166,125,68,0.35));
}

/* ---------- PALETAS DE FONTES ---------- */

/* === Cormorant Garamond — Editorial Luxo === */
.font-cormorant {
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-scale-h1: 1.15;
  --letter-spacing-h: -0.02em;
}

/* === Playfair Display — Clássico Elegante === */
.font-playfair {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-scale-h1: 1.0;
  --letter-spacing-h: -0.01em;
}

/* === Libre Baskerville — Refinado Literário === */
.font-baskerville {
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-scale-h1: 0.95;
  --letter-spacing-h: 0em;
}

/* === Josefin Sans — Minimalista Fino === */
.font-josefin {
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body:    'Josefin Sans', sans-serif;
  --font-scale-h1: 0.9;
  --letter-spacing-h: 0.08em;
}

/* === Raleway — Moderno Sofisticado === */
.font-raleway {
  --font-heading: 'Raleway', sans-serif;
  --font-body:    'Raleway', sans-serif;
  --font-scale-h1: 0.95;
  --letter-spacing-h: 0.02em;
}

/* ---------- LAYOUT UTILITÁRIOS ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }
.mt-2 { margin-top: 2rem; }
.section { padding: 6rem 0; }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--shadow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}
.btn-danger {
  background: #e53935;
  color: #fff;
}
.btn-danger:hover { background: #b71c1c; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(var(--surface-rgb, 255,255,255), 0.96);
  background: var(--surface);
  box-shadow: 0 1px 20px var(--shadow);
  transition: box-shadow 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-icon {
  font-size: 1.5rem;
  color: var(--primary);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-h);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s;
}

/* ─── Logo imagem no header ─────────────────────────────────────── */
.logo-img {
  height: 44px;           /* altura fixa, largura proporcional */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;

  /* Remove fundo da imagem: multiplica com o fundo do header */
  mix-blend-mode: multiply;   /* remove fundo branco em fundos claros */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.08));

  /* Scroll: quando header fica sólido, continua bonito */
  transition: opacity 0.3s;
}
/* Fallback para fundos escuros/coloridos: usa luminosity */
.site-header.scrolled .logo-img {
  mix-blend-mode: normal;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.18));
}
.logo-img.hidden { display: none; }
.logo-icon.hidden { display: none; }

.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.search-toggle, .cart-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  padding: 0.4rem;
  transition: color 0.2s;
  position: relative;
}
.search-toggle:hover, .cart-btn:hover { color: var(--primary); }
.cart-badge {
  position: absolute;
  top: -5px; right: -6px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); transition: all 0.3s; border-radius: 2px; }

/* Search bar */
.search-bar {
  display: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 0.8rem 2rem;
}
.search-bar.open { display: block; }
.search-bar-inner {
  max-width: 600px; margin: 0 auto;
  display: flex; gap: 0.8rem;
}
.search-bar-inner input {
  flex: 1;
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  color: var(--text);
  font-size: 0.95rem;
}
.search-bar-inner input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.search-bar-inner button { color: var(--text-muted); font-size: 1.2rem; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  z-index: 490;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--text);
  letter-spacing: 0.02em;
}
.mobile-nav a:hover { color: var(--primary); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: background-image 0.8s ease;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 6rem 2rem 4rem 8%;
  animation: heroIn 1.2s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  letter-spacing: var(--letter-spacing-h, -0.02em);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.stat { text-align: center; padding: 0 1.6rem; }
.stat strong { display: block; font-size: 1.5rem; font-family: var(--font-heading); color: #fff; line-height: 1.1; }
.stat span { font-size: 0.75rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.3); flex-shrink: 0; }

/* Stat duplo: Bananinha + Mel lado a lado no mesmo bloco */
.stat.stat-duo {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1.2rem;
}
.stat-duo-item {
  text-align: center;
  padding: 0 0.8rem;
}
.stat-duo-item strong { display: block; font-size: 1.4rem; color: #fff; line-height: 1.1; }
.stat-duo-item span   { font-size: 0.72rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap; }
.stat-duo-sep {
  width: 1px; height: 30px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* Promo banner */
.promo-banner {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.promo-banner i { margin-right: 0.4rem; }

/* ---------- SECTIONS COMUNS ---------- */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  letter-spacing: var(--letter-spacing-h, -0.02em);
  margin-bottom: 1rem;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; }

/* ─── SEÇÃO DESTAQUES ────────────────────────────────────────────── */
.featured-section {
  background: var(--bg-alt);
  position: relative;
}
/* Linha decorativa superior */
.featured-section::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  position: absolute;
  top: 0; left: 0; right: 0;
}

/* Grid dos destaques — sempre 4 colunas no desktop */
.featured-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Card destacado: sombra e borda um pouco mais expressiva */
.product-card--featured {
  box-shadow: 0 6px 28px var(--shadow);
  border-color: var(--primary);
}
.product-card--featured:hover {
  box-shadow: 0 18px 52px var(--shadow);
}

/* Badge estrela */
.product-badge--star {
  background: var(--accent);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Botão "Ver catálogo completo" */
.featured-cta {
  text-align: center;
  margin-top: 3rem;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

/* ─── SEÇÃO CATÁLOGO ─────────────────────────────────────────────── */
.catalog-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ── Cabeçalho clicável do catálogo ─────────────────────────────── */
.catalog-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.8rem 0;
  cursor: pointer;
  border-bottom: 2px solid var(--border);
  transition: border-color 0.25s;
  user-select: none;
}
.catalog-toggle-header:hover { border-color: var(--primary); }
.catalog-toggle-header:hover .catalog-toggle-label { color: var(--primary); }

/* Textos do cabeçalho */
.catalog-toggle-titles { flex: 1; }
.catalog-toggle-titles .section-eyebrow { margin-bottom: 0.3rem; }
.catalog-toggle-titles .section-title   { margin-bottom: 0.3rem; font-size: 2rem; }
.catalog-toggle-titles .section-desc    { font-size: 0.95rem; }

/* Botão visual (não interativo — o pai todo é clicável) */
.catalog-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.catalog-toggle-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.catalog-toggle-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  transition: background 0.25s, border-color 0.25s, transform 0.35s ease;
}
.catalog-toggle-header:hover .catalog-toggle-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Chevron roda 180° quando aberto */
#catalogChevron {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.catalog-section.catalog-open #catalogChevron { transform: rotate(180deg); }

/* ── Corpo colapsável ────────────────────────────────────────────── */
.catalog-body {
  /* altura 0 → overflow hidden → transição max-height */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              opacity    0.45s ease,
              padding    0.45s ease;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.catalog-section.catalog-open .catalog-body {
  max-height: 20000px;   /* valor alto o suficiente para qualquer conteúdo */
  opacity: 1;
  padding-top: 3rem;
  padding-bottom: 0;
}

/* ── Botão "Recolher" no rodapé do catálogo ──────────────────────── */
.catalog-close-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 0 0.5rem;
}
.btn-catalog-close {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-catalog-close:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Toolbar: filtros + busca lado a lado */
.catalog-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.catalog-toolbar .filters {
  margin-bottom: 0;
  justify-content: flex-start;
  flex: 1;
}

/* Campo de busca inline no catálogo */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  min-width: 220px;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--primary); }
.search-wrap i { color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; }
.search-wrap input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  width: 100%;
  outline: none;
}
.search-wrap input::placeholder { color: var(--text-muted); }

/* Filtros (mantidos) */
.filters {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all 0.25s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.products-grid {
  display: grid;
  /* 4 colunas fixas no desktop; responsivo abaixo */
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  align-items: stretch;   /* todos os cards da linha têm a mesma altura */
}

.product-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* altura uniforme: todos os cards da linha se esticam igual */
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow);
}

/* ─── Container de imagem ─────────────────────────────────────── */
.product-card-img {
  position: relative;
  width: 100%;
  /* proporção quadrada 1:1 — preenche o card uniformemente */
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover: preenche o card inteiro, centralizado no topo do produto */
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.45s ease;
}

/* zoom sutil no hover (apenas uma regra) */
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.product-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  /* ocupa o espaço restante para empurrar o rodapé ao fundo */
  flex: 1 1 auto;
}
.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.product-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.product-unit { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.product-desc-short {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  /* fixa exatamente 2 linhas em todos os cards */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* empurra o rodapé sempre para o fundo */
  flex: 1 1 auto;
  margin-bottom: 1rem;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  /* sempre cola no fundo do card */
  margin-top: auto;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Skeleton */
.loading-skeleton {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  width: 100%;
}
.skeleton-card {
  background: var(--border);
  border-radius: 16px;
  height: 380px;
  animation: shimmer 1.4s infinite linear;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-alt) 50%, var(--border) 75%);
  background-size: 200% 100%;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.products-empty {
  text-align: center; padding: 4rem;
  color: var(--text-muted);
  width: 100%;
}
.products-empty i { font-size: 3rem; margin-bottom: 1rem; color: var(--border); }

/* ─── Seções de categoria (modo "Todos") ────────────────────────── */
#productGrid {
  display: flex;
  flex-direction: column;
  gap: 0; /* o gap interno fica dentro de cada .cat-section */
}

.cat-section {
  margin-bottom: 3.5rem;
}
.cat-section:last-child { margin-bottom: 0; }

.cat-section-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--border);
}
.cat-section-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cat-section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  margin: 0;
}
.cat-section-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* Grade dentro de cada seção */
.cat-section .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}

/* ─── Modo filtro único: grade sem seções ───────────────────────── */
#productGrid > .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  align-items: stretch;
  width: 100%;
}

/* ---------- NOSSA HISTÓRIA ---------- */
.historia-section { background: var(--bg-alt); }
.historia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.historia-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow);
}
.historia-img-wrapper img { width: 100%; height: 500px; object-fit: cover; }
.historia-badge {
  position: absolute;
  bottom: 2rem; right: -1.5rem;
  background: var(--primary);
  color: #fff;
  padding: 1.2rem 1.6rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 30px var(--shadow);
}
.historia-badge span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; }
.historia-badge strong { display: block; font-family: var(--font-heading); font-size: 2rem; }

.historia-text { margin-bottom: 2rem; color: var(--text-muted); }
.historia-text p + p { margin-top: 1rem; }
.historia-badges { display: flex; flex-direction: column; gap: 0.8rem; }
.historia-badges li {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.92rem; font-weight: 500; color: var(--text);
}
.historia-badges li i { color: var(--primary); width: 20px; }

/* ---------- DEPOIMENTOS ---------- */
.depoimentos-section { background: var(--bg-alt); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}
.testimonial-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tc-stars { font-size: 1rem; margin-bottom: 0.9rem; letter-spacing: 0.1em; }
.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex: 1 1 auto;   /* empurra o autor ao fundo */
  position: relative;
  padding-left: 1.2rem;
}
/* Aspas decorativas */
.testimonial-card blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0; top: -0.2rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
  font-style: normal;
  opacity: 0.6;
}
.tc-author {
  display: flex; align-items: center; gap: 1rem;
}
.tc-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.tc-author strong { display: block; font-size: 0.9rem; color: var(--text); }
.tc-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- CONTATO ---------- */
.contato-section { background: var(--bg-alt); }
.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contato-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contato-list { display: flex; flex-direction: column; gap: 1rem; }
.contato-list li {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 1rem; color: var(--text);
}
.contato-list li i { color: var(--primary); width: 20px; font-size: 1.1rem; }
.contato-list a { color: var(--text); transition: color 0.2s; }
.contato-list a:hover { color: var(--primary); }

.contato-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.85rem; font-weight: 500; color: var(--text); letter-spacing: 0.03em; }
.form-row input, .form-row textarea, .form-row select {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 201,168,76), 0.12);
}
.form-row textarea { resize: vertical; }
.form-row small { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.form-row small a { color: var(--primary); text-decoration: underline; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
}
.footer-brand .logo-text {
  -webkit-text-fill-color: unset;
  color: #fff;
  background: none;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.88rem; max-width: 240px; line-height: 1.6; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.88rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--primary-light); }
.footer-payment { display: flex; gap: 1rem; font-size: 1.6rem; color: rgba(255,255,255,0.4); }
.footer-payment i { transition: color 0.2s; }
.footer-payment i:hover { color: var(--primary-light); }

/* ─── BOTÃO FLUTUANTE WHATSAPP ───────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  /* entrada suave */
  animation: fabEntrance 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 1s;
}
@keyframes fabEntrance {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,0.6);
}
/* Pulso de atenção a cada 4s */
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 4s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  60%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* Tooltip */
.whatsapp-fab-tooltip {
  position: absolute;
  right: 72px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.whatsapp-fab-tooltip::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}
.whatsapp-fab:hover .whatsapp-fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  background: rgba(0,0,0,0.3);
  text-align: center;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- CARRINHO LATERAL ---------- */
.cart-sidebar {
  position: fixed;
  top: 0; right: -480px;
  width: 440px; max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: -8px 0 50px var(--shadow);
  z-index: 600;
  display: flex; flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 595;
  backdrop-filter: blur(2px);
}
.cart-overlay.visible { display: block; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}
.cart-header h2 { font-size: 1.2rem; color: var(--text); flex: 1; }

/* Agrupa os botões do header */
.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Botão Limpar */
.cart-clear-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-clear-btn:hover {
  border-color: #e53935;
  color: #e53935;
  background: rgba(229,57,53,0.07);
}
.cart-clear-btn i { font-size: 0.8rem; }

.close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.close-btn:hover { background: var(--border); color: var(--text); }

/* ── Confirmação de limpeza ── */
.cart-clear-confirm {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 2px solid #e53935;
  padding: 1rem 1.5rem;
  display: none;
  animation: slideDown 0.25s ease;
}
.cart-clear-confirm.visible { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cart-clear-confirm-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}
.cart-clear-confirm-inner > i {
  font-size: 1.6rem;
  color: #e53935;
}
.cart-clear-confirm-inner p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}
.cart-clear-confirm-btns {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}
.cart-clear-confirm-btns .btn { flex: 1; justify-content: center; }

/* Botão de perigo (vermelho) */
.btn-danger {
  background: #e53935;
  color: #fff;
  border: none;
}
.btn-danger:hover { background: #c62828; }

/* Área scrollável única (itens + frete + endereço) */
.cart-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  /* Scroll suave */
  scroll-behavior: smooth;
  /* Scrollbar fina e discreta */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cart-scroll::-webkit-scrollbar { width: 4px; }
.cart-scroll::-webkit-scrollbar-track { background: transparent; }
.cart-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Espaço extra ao final para não grudar no footer */
.cart-scroll-spacer { flex-shrink: 0; height: 0.5rem; }

.cart-items {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Não tem overflow próprio — herdado do pai .cart-scroll */
}
.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  background: var(--bg-alt);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.cart-item img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info strong { display: block; font-size: 0.9rem; color: var(--text); line-height: 1.3; }
.cart-item-info span { font-size: 0.82rem; color: var(--text-muted); }
.cart-qty-row {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem;
}
.qty-btn {
  width: 26px; height: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-value { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; color: var(--text); }
.remove-item { color: var(--text-muted); font-size: 0.9rem; padding: 0.3rem; }
.remove-item:hover { color: #e53935; }

.cart-empty { text-align: center; color: var(--text-muted); padding: 3rem 0; }
.cart-empty i { font-size: 2.5rem; margin-bottom: 0.8rem; display: block; color: var(--border); }
.cart-empty-hint { font-size: 0.82rem; margin-top: 0.3rem; color: var(--text-muted); }

/* ── Seção de frete (agora dentro do scroll) ── */
.cart-frete {
  margin: 0 1.5rem;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

/* Bloco de endereço dentro do scroll — margem lateral herdada */

/* ── Rodapé fixo na base (resumo + botão) ── */
.cart-footer {
  flex-shrink: 0;
  padding: 0.9rem 1.5rem 1.2rem;
  border-top: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--surface);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.cart-frete-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-frete-label i { color: var(--primary); font-size: 0.9rem; }
.frete-row { display: flex; gap: 0.5rem; }
.frete-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.frete-row input:focus { border-color: var(--primary); outline: none; }
.frete-row button {
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}
.frete-row button:hover { background: var(--primary-dark, var(--primary)); filter: brightness(0.9); }
.frete-row button:active { transform: scale(0.95); }
.frete-result { margin-top: 0.7rem; }

/* ── Loading SuperFrete ── */
.sf-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
}
.sf-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: sfSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes sfSpin { to { transform: rotate(360deg); } }

/* ── Cabeçalho das opções ── */
.sf-opcoes-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}
.sf-fallback-badge {
  font-size: 0.63rem;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.12rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
/* Badge de desconto nos cards de frete */
.sf-desconto-badge {
  font-size: 0.62rem;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* ── Lista de opções de frete ── */
.sf-opcoes-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sf-opcao {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  gap: 0.5rem;
  user-select: none;
}
.sf-opcao:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  transform: translateY(-1px);
}
.sf-opcao--selecionada {
  border-color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.sf-opcao input[type="radio"] { display: none; }
.sf-opcao-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}
.sf-opcao-icon { font-size: 1.25rem; flex-shrink: 0; }
.sf-opcao-detalhes { flex: 1; min-width: 0; }
.sf-opcao-nome {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-opcao-empresa {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.sf-opcao-valores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}
.sf-opcao-preco {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.sf-opcao-prazo {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ── Grátis badge ── */
.sf-gratis {
  color: #2e7d32;
  font-weight: 700;
  font-size: 0.85rem;
  background: #e8f5e9;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* ── Aviso frete grátis ── */
.sf-frete-gratis-aviso {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 7px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.sf-frete-gratis-aviso i { font-size: 1rem; }

/* ── Erro ── */
.sf-erro {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #c62828;
  font-size: 0.8rem;
  padding: 0.4rem 0;
}
.sf-erro i { flex-shrink: 0; }

/* ============================================
   BLOCO DE ENDEREÇO DE ENTREGA — CARRINHO
   ============================================ */
.cart-endereco {
  margin: 0.6rem 1.5rem 0;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  animation: sfEndEnter 0.35s ease;
}
@keyframes sfEndEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-endereco-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.8rem;
}

.cart-endereco-row {
  margin-bottom: 0.55rem;
}
.cart-endereco-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cart-endereco-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
}
.cart-endereco-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  order: -1;
}

.cart-endereco-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.83rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-endereco-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.cart-endereco-readonly {
  background: color-mix(in srgb, var(--bg-alt) 70%, transparent);
  color: var(--text-muted);
  cursor: default;
}
.cart-endereco-required {
  border-color: var(--border);
}
.cart-endereco-required:focus {
  border-color: var(--primary);
}
.cart-endereco-input--erro {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.15) !important;
}

.cart-endereco-erro {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #c62828;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Endereço no resumo do modal de pagamento */
.mp-endereco-resumo {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.mp-endereco-resumo i {
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.mp-endereco-pre {
  font-family: var(--font-body);
  font-size: 0.8rem;
  white-space: pre-wrap;
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

/* ── Resumo de valores ── */
.cart-resumo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 0 0.2rem;
  border-top: 1px dashed var(--border);
}
.cart-resumo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.cart-resumo-total {
  font-size: 1rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}
.cart-resumo-total strong { font-size: 1.35rem; font-family: var(--font-heading); color: var(--primary); }

/* ── Pagamentos ── */
.cart-payment-icons {
  text-align: center;
  font-size: 1.4rem;
  color: var(--border);
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

/* ---------- MODAL PRODUTO ---------- */
.product-modal {
  position: fixed; inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-modal.open { pointer-events: all; opacity: 1; }
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 695;
  backdrop-filter: blur(3px);
}
.modal-overlay.visible { display: block; }
.product-modal-inner {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  max-width: 860px; width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.product-modal.open .product-modal-inner { transform: translateY(0); }
.modal-img-wrap {
  background: #F7F4EF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  object-position: center center;
  padding: 2rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5;
  background: rgba(0,0,0,0.5); color: #fff;
}
.modal-close:hover { background: rgba(0,0,0,0.8); }
.modal-info {
  padding: 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.modal-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.modal-info h2 {
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1.25;
}
.modal-unit { font-size: 0.85rem; color: var(--text-muted); }
.modal-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.modal-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); }

/* ---------- TOAST ---------- */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.8rem;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 8px 30px var(--shadow);
  font-size: 0.88rem;
  max-width: 320px;
  display: flex; align-items: center; gap: 0.7rem;
  animation: toastIn 0.3s ease;
  color: var(--text);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.success { border-left: 4px solid #4CAF50; }
.toast.error   { border-left: 4px solid #e53935; }
.toast.info    { border-left: 4px solid var(--primary); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: #4CAF50; }
.toast.error   i { color: #e53935; }
.toast.info    i { color: var(--primary); }

/* ---------- ADMIN FAB ---------- */
.admin-fab {
  position: fixed;
  bottom: 7.5rem; right: 2rem;  /* fica acima do botão WhatsApp */
  z-index: 450;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.admin-fab:hover { background: var(--primary); transform: rotate(30deg) scale(1.1); }

/* ---------- ADMIN MODAL ---------- */
.admin-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 795;
  backdrop-filter: blur(4px);
}
.admin-overlay.visible { display: block; }
.admin-modal {
  position: fixed; inset: 0;
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.admin-modal.open { pointer-events: all; opacity: 1; }
.admin-modal-inner {
  background: var(--surface);
  border-radius: 20px;
  width: 100%; max-width: 1100px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: scale(0.96);
  transition: transform 0.3s;
}
.admin-modal.open .admin-modal-inner { transform: scale(1); }

/* Admin Login */
.admin-login-wrap {
  max-width: 380px; margin: 0 auto;
  padding: 3.5rem 2rem;
  text-align: center;
  display: flex; flex-direction: column; gap: 1rem;
}
.admin-login-icon { font-size: 2.5rem; color: var(--primary); }
.admin-login-wrap h2 { font-size: 1.6rem; }
.admin-login-wrap p { color: var(--text-muted); font-size: 0.95rem; }
.admin-login-wrap form { display: flex; flex-direction: column; gap: 1rem; text-align: left; margin-top: 0.5rem; }

/* Admin Dashboard Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 92vh;
  overflow: hidden;
}
.admin-sidebar {
  background: var(--text);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 1.5rem;
  overflow-y: auto;
}
.admin-brand {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--primary-light);
}
.admin-brand i { font-size: 1.2rem; }
.admin-sidebar ul { flex: 1; }
.admin-nav-btn {
  display: flex; align-items: center; gap: 0.8rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-align: left;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-btn.active { background: rgba(255,255,255,0.1); color: #fff; border-left-color: var(--primary); }
.admin-nav-btn i { width: 18px; }
.btn-logout {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.btn-logout:hover { color: #e53935; }

.admin-content-area {
  position: relative;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  background: var(--bg);
}
.admin-close-top {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  z-index: 5;
}
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-tab-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.8rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-tab-header h3 { font-size: 1.3rem; color: var(--text); }

.admin-section { height: 100%; }
.admin-hint {
  font-size: 0.85rem; color: var(--text-muted);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
}
.admin-hint i { margin-right: 0.4rem; color: var(--primary); }
.admin-hint-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -0.6rem 0 1.2rem;
  line-height: 1.5;
}

/* Admin form helpers */
.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.admin-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 2rem;
}
.admin-form h4 { margin-bottom: 1.2rem; font-size: 1.1rem; }
.form-row-check { display: flex; gap: 2rem; flex-wrap: wrap; }
.toggle-label {
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer; font-size: 0.88rem; color: var(--text);
}
.toggle-label input { display: none; }
.toggle-slider {
  position: relative; display: inline-block;
  width: 40px; height: 22px;
  background: var(--border); border-radius: 20px;
  transition: background 0.25s;
}
.toggle-slider::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  transition: transform 0.25s;
}
.toggle-label input:checked + .toggle-slider { background: var(--primary); }
.toggle-label input:checked + .toggle-slider::after { transform: translateX(18px); }

.form-actions {
  display: flex; gap: 0.8rem;
  margin-top: 1.5rem; justify-content: flex-end;
}
.image-input-group { display: flex; gap: 0.8rem; align-items: flex-start; flex-direction: column; width: 100%; }

/* Linha com input de URL + botão de arquivo lado a lado */
.img-input-row {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  align-items: stretch;
}
.img-input-row input[type="url"] {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.img-input-row input[type="url"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(166,125,68,0.12);
}

/* Botão de escolher arquivo local */
.btn-pick-file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.75rem 1.1rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn-pick-file:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--shadow);
}
.btn-pick-file i { font-size: 0.92rem; }

/* =============================================
   MODAL DE PAGAMENTO — MERCADO PAGO
   ============================================= */
.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mp-modal.active { display: flex; }

.mp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.mp-modal-inner {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  animation: mpSlideIn 0.3s ease;
}
@keyframes mpSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 16px 16px 0 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mp-modal-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.mp-modal-header h2 i { color: var(--primary); }
.mp-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mp-modal-close:hover { background: var(--border); color: var(--text); }

.mp-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
}
@media (max-width: 640px) {
  .mp-modal-body { grid-template-columns: 1fr; }
}

.mp-col-left {
  padding: 1.4rem;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}
.mp-col-right {
  padding: 1.4rem;
}

.mp-section { margin-bottom: 1.4rem; }
.mp-section-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

/* Resumo do pedido */
.mp-resumo-body { display: flex; flex-direction: column; gap: 0.45rem; }
.mp-resumo-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--text);
  gap: 0.5rem;
}
.mp-total-row { font-size: 1rem; padding-top: 0.4rem; }
.mp-total-row strong { color: var(--primary); font-size: 1.1rem; }
.mp-divider { border: none; border-top: 1px solid var(--border); margin: 0.5rem 0; }
.mp-gratis-badge {
  background: #e8f5e9; color: #2e7d32;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 20px;
  letter-spacing: 0.05em;
}
.mp-cep-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Métodos de pagamento */
.mp-methods-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.mp-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.8rem 0.4rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.22s;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.mp-method-btn i { font-size: 1.4rem; }
.mp-method-btn span { font-weight: 600; font-size: 0.78rem; color: var(--text); }
.mp-method-btn small { font-size: 0.68rem; color: var(--text-muted); }
.mp-method-btn:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
}
.mp-method-btn.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
}
.mp-method-btn.active i { color: var(--primary); }

.mp-method-area { margin-top: 0.5rem; }

.mp-gerar-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 0.95rem;
  gap: 0.6rem;
  justify-content: center;
  border-radius: 10px;
}

/* Caixa PIX */
.mp-pix-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.mp-pix-title {
  font-weight: 700;
  font-size: 1rem;
  color: #32BCAD;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mp-qr-img {
  width: 180px;
  height: 180px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  background: #fff;
}
.mp-pix-hint { font-size: 0.82rem; color: var(--text-muted); }
.mp-pix-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}
.mp-pix-code {
  font-family: monospace;
  font-size: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  background: var(--bg-alt);
  resize: none;
  color: var(--text);
  width: 100%;
}
.mp-pix-id, .mp-pix-exp {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mp-pix-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.6rem 0.8rem;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}
.mp-status-ok { color: #2e7d32; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }
.mp-status-err { color: #c62828; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }

/* Checkout Pro */
.mp-checkout-box { display: flex; flex-direction: column; gap: 1rem; }
.mp-checkout-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.mp-checkout-info i { color: #2e7d32; flex-shrink: 0; margin-top: 0.1rem; }
.mp-payment-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.mp-payment-icons-row img {
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 4px;
  background: #fff;
}
.mp-checkout-btn {
  text-align: center;
  gap: 0.5rem;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.9rem;
  font-size: 0.95rem;
}
.mp-checkout-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.mp-checkout-note a { color: var(--primary); }

/* Loading / Error */
.mp-loading {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.mp-error {
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  padding: 1rem;
  color: #c62828;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}
.mp-error i { font-size: 1rem; }

/* Selos de segurança */
.mp-security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.mp-security-badges span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.mp-security-badges i { font-size: 0.85rem; color: #2e7d32; }

/* =============================================
   ADMIN — ABA PAGAMENTO
   ============================================= */
.mp-admin-status-box {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mp-admin-status-ok  { color: #2e7d32; }
.mp-admin-status-err { color: #c62828; }

.mp-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.mp-toggle-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.mp-toggle-item:hover { border-color: var(--primary); }
.mp-toggle-item input { display: none; }
.mp-toggle-item input:checked + span { color: var(--primary); }
.mp-toggle-item span { font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; }
.mp-toggle-item small { font-size: 0.73rem; color: var(--text-muted); }

.mp-brands-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.8rem;
  background: var(--bg-alt);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.mp-brands-preview img {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 4px;
  background: #fff;
}

/* Botão verde WhatsApp no modal */
.btn-success {
  background: #25D366;
  color: #fff;
  border: none;
}
.btn-success:hover { background: #1ebe5d; }

@media (max-width: 640px) {
  .mp-methods-tabs { grid-template-columns: 1fr 1fr; }
  .mp-methods-grid { grid-template-columns: 1fr; }
  .mp-col-left { border-right: none; border-bottom: 1px solid var(--border); }
  .mp-qr-img { width: 150px; height: 150px; }
}

/* =============================================
   ADMIN — ABA NOTIFICAÇÕES
   ============================================= */
/* ── Cards de opção de provedor ── */
.notif-option-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.notif-option-card.notif-card-active {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}
.notif-option-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.notif-option-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}
.notif-option-badge.badge-ok  { background:#e8f5e9; color:#2e7d32; border:1px solid #a5d6a7; }
.notif-option-badge.badge-alt { background:#e3f2fd; color:#1565c0; border:1px solid #90caf9; }

/* Passos compactos dentro dos cards */
.notif-option-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.notif-mini-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--text);
}
.notif-mini-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
.notif-mini-step kbd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-size: 0.77rem;
  font-family: inherit;
}

/* ── Confirmação de chave OK ── */
.notif-key-ok {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: #e8f5e9;
  border: 1.5px solid #a5d6a7;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #1b5e20;
}
.notif-key-ok code {
  background: #c8e6c9;
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  font-size: 0.78rem;
}

/* ── Cards guia de onde encontrar IDs ── */
.notif-guide-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.83rem;
  line-height: 1.6;
}
.notif-guide-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
/* Reutiliza as cores dos badges */
.notif-guide-num.badge-service  { background:#e3f2fd; color:#1565c0; border:1.5px solid #90caf9; }
.notif-guide-num.badge-template { background:#f3e5f5; color:#6a1b9a; border:1.5px solid #ce93d8; }
.notif-guide-body { flex: 1; }
.notif-guide-path {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.notif-guide-path kbd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-size: 0.77rem;
  font-family: inherit;
  color: var(--text);
}
.notif-guide-path code {
  font-family: monospace;
  font-size: 0.77rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  color: var(--primary);
}
.notif-guide-path .fa-arrow-right {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 0 0.2rem;
}

.notif-steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
}
.notif-step {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text);
}
.notif-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
.notif-step code {
  font-family: monospace;
  font-size: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  color: var(--primary);
}
.notif-step a { color: var(--primary); text-decoration: underline; }

/* Passo concluído (check verde) */
.notif-step-done .notif-step-num {
  background: #2e7d32;
  font-size: 0.8rem;
}
/* Passo ativo (destaque) */
.notif-step-active .notif-step-num {
  background: #e65100;
  animation: pulseStep 1.8s ease-in-out infinite;
}
@keyframes pulseStep {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,81,0,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(230,81,0,0); }
}

/* Alerta informativo da aba de notificações */
.notif-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: #fff3e0;
  border: 1.5px solid #ffb74d;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #4e342e;
  margin-bottom: 0.8rem;
}

/* Guia de IDs */
.notif-ids-guide {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}
.notif-id-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Badges coloridos por tipo de ID */
.notif-id-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-service  { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.badge-template { background: #f3e5f5; color: #6a1b9a; border: 1px solid #ce93d8; }
.badge-pubkey   { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* Bloco expansível do template */
.notif-template-config {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
  font-size: 0.82rem;
}
.notif-template-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  cursor: pointer;
  user-select: none;
  color: var(--text);
  font-size: 0.83rem;
}
.notif-template-header:hover { background: var(--border); }
.notif-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.25s;
  color: var(--text-muted);
}
.notif-template-config.open .notif-chevron { transform: rotate(180deg); }
.notif-template-body {
  display: none;
  padding: 1rem;
  background: var(--surface);
}
.notif-template-config.open .notif-template-body { display: block; }
.notif-template-code {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
  border: none;
}

/* Preview da mensagem WhatsApp */
.notif-wa-preview {
  background: #E5DDD5;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
}
.notif-wa-bubble {
  background: #DCF8C6;
  border-radius: 10px 10px 0 10px;
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #111;
  display: inline-block;
  max-width: 90%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Preview da imagem selecionada */
.img-preview-wrap { }
.img-preview {
  width: 120px; height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: opacity 0.3s;
}
.hero-preview { width: 220px; height: 124px; }

/* Responsivo: empilha em telas pequenas */
@media (max-width: 520px) {
  .img-input-row { flex-direction: column; }
  .btn-pick-file { justify-content: center; }
}

/* Admin product list */
.admin-product-list { display: flex; flex-direction: column; gap: 0.8rem; }
.admin-product-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.admin-product-item img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.admin-product-info { flex: 1; }
.admin-product-info strong { display: block; font-size: 0.92rem; color: var(--text); }
.admin-product-info span { font-size: 0.8rem; color: var(--text-muted); }
.admin-product-price { font-family: var(--font-heading); font-size: 1.1rem; color: var(--primary); margin-right: 1rem; white-space: nowrap; }
.admin-product-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn-edit { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.82rem; }
.btn-edit:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.inactive-tag { font-size: 0.7rem; color: #e53935; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- ADMIN CATEGORIAS ---------- */
.admin-category-list { display: flex; flex-direction: column; gap: 0.8rem; }

.admin-category-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

/* Ícone da categoria */
.cat-icon-badge {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Input do ícone com preview ao lado */
.icon-input-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.icon-input-row input {
  flex: 1;
}
.icon-preview {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.2s;
}

/* Desabilita o slug para não editar */
input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bg-alt);
}

/* Paletas no admin */
.palette-section { margin-bottom: 2.5rem; }
.palette-section h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text); }
.palette-hint { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.2rem; }

.palette-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem;
}
.palette-option {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.palette-option:hover { border-color: var(--primary); transform: translateY(-2px); }
.palette-option.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,168,76,0.2); }
.palette-swatches { display: flex; gap: 4px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.08); }
.palette-option-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.palette-option-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

.font-palette-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
}
.font-option {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.font-option:hover { border-color: var(--primary); transform: translateY(-2px); }
.font-option.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,168,76,0.2); }
.font-sample-heading { font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.4rem; color: var(--text); }
.font-sample-body { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.font-name { font-size: 0.72rem; font-weight: 600; color: var(--primary); margin-top: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1280px) {
  .products-grid,
  .featured-grid,
  .cat-section .products-grid,
  #productGrid > .products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 1.4rem; }
}

@media (max-width: 1024px) {
  .historia-inner { grid-template-columns: 1fr; gap: 3rem; }
  .historia-img-wrapper img { height: 350px; }
  .historia-badge { right: 1.5rem; }
  .contato-inner { grid-template-columns: 1fr; gap: 3rem; }
  .products-grid,
  .featured-grid,
  .cat-section .products-grid,
  #productGrid > .products-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 1.3rem; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .search-wrap { width: 100%; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero-content { padding: 5rem 1.5rem 3rem; }
  .hero-stats { flex-direction: column; gap: 1.2rem; }
  .stat-divider { width: 60px; height: 1px; }
  .stat.stat-duo { gap: 0; }
  .stat-duo-sep { width: 40px; height: 1px; }
  .products-grid,
  .featured-grid,
  .cat-section .products-grid,
  #productGrid > .products-grid,
  .loading-skeleton { grid-template-columns: repeat(2, 1fr) !important; gap: 1.1rem; }
  .cat-section-title { font-size: 1.2rem; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .search-wrap { width: 100%; }
  .catalog-toggle-header { gap: 1rem; padding: 2rem 0; }
  .catalog-toggle-titles .section-title { font-size: 1.5rem; }
  .catalog-toggle-icon { width: 40px; height: 40px; font-size: 0.95rem; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .product-modal-inner { grid-template-columns: 1fr; }
  .modal-img-wrap img { min-height: 220px; max-height: 300px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .admin-palettes .palette-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products-grid,
  .featured-grid,
  .cat-section .products-grid,
  #productGrid > .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.7rem; }
  .product-card-body { padding: 0.8rem 0.9rem 1rem; }
  .product-title { font-size: 0.95rem; }
  .product-price { font-size: 1.25rem; }
  .btn-add-cart { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
  .cat-section { margin-bottom: 2rem; }
  .cat-section-header { gap: 0.6rem; margin-bottom: 1rem; }
  .cat-section-icon { width: 32px; height: 32px; font-size: 0.85rem; }
  .cat-section-title { font-size: 1rem; }
  .hero-title { font-size: 2.6rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cart-sidebar { width: 100%; right: -100%; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
