/* ══════════════════════════════════════════════════════
   GLOBAL CSS — Vitrine do Artesanato
   Compartilhado por todas as páginas.
   CSS específico de cada tela fica no <style> da própria página.
   ══════════════════════════════════════════════════════ */

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

:root {
  /* Compatibilidade + nova paleta (acentos com moderação) */
  --black:        #1a1a18;
  --brown:        #243a6e; /* navy */
  --orange:       #e07f2e; /* laranja amigável (marca) */
  --orange-light: #f0a45a; /* laranja claro */
  --orange-dark:  #c96b22; /* hover CTA */
  --gray-light:   #e8e6e1;
  --white:        #ffffff;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --gray-mid:     #f3f1ec;
  --text-muted:   #6f6f68;

  --ink:          #1a1a18;
  --paper:        #f6f4ef;
  --navy:         #243a6e;
  --crimson:      #e07f2e; /* CTA legado */
  --gold:         #d4a017;
  --green:        #25D366; /* verde WhatsApp — comprar */
  --green-dark:   #1ebe57;
  --line:         rgba(26, 26, 24, 0.08);
  --shadow-soft:  0 14px 40px rgba(26, 26, 24, 0.07);
  --font-sans:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header sticky ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

/* O blur fica num pseudo-elemento: backdrop-filter direto no header o
   transformaria no bloco de contenção dos filhos position: fixed, e o
   menu-drawer ficaria preso à altura do header (atrás do banner). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

/* ── Navbar ── */
nav,
.topnav {
  background: transparent;
  border-bottom: none;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.nav-search {
  flex: 1 1 auto;
  max-width: 460px;
  min-width: 0;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 44px;
  padding: 0 48px 0 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  background: #fafafa;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.nav-search input:focus {
  border-color: var(--orange);
  background: var(--white);
}
.nav-search input::placeholder { color: #aaa; }

.nav-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  width: 48px;
  background: var(--navy);
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.nav-search-btn:hover { background: #1b2d57; }

/* ── CEP widget ── */
.nav-cep {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-light);
  overflow: hidden;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.nav-cep:focus-within { border-color: var(--orange); background: var(--white); }

.nav-cep-icon {
  color: var(--navy);
  flex-shrink: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
}

.nav-cep-input {
  width: 118px;
  height: 100%;
  border: none;
  padding: 0 4px 0 0;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--black);
  background: transparent;
  outline: none;
}

.nav-cep-input::placeholder { color: #bbb; font-weight: 400; }

.nav-cep-icon { cursor: pointer; }

.nav-cep-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-width: 0;
  padding-right: 10px;
}

.nav-cep-field .nav-cep-input { height: auto; }

.nav-cep-place {
  max-width: 118px;
  margin-top: 1px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-cep.has-cep:not(:focus-within) { background: var(--white); }
.nav-cep.has-cep .nav-cep-input { font-weight: 700; }
.nav-cep.is-loading .nav-cep-icon { animation: nav-cep-pulse 0.9s ease-in-out infinite; }
.nav-cep.is-invalid { border-color: #dc2626; }
.nav-cep.is-invalid .nav-cep-place { color: #b91c1c; }

@keyframes nav-cep-pulse { 50% { opacity: 0.35; } }

.nav-cep-detect {
  height: 100%;
  width: 36px;
  border: none;
  border-left: 1px solid var(--gray-light);
  background: transparent;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.nav-cep-detect:hover {
  background: var(--orange);
  color: var(--white);
  border-left-color: var(--orange);
}

/* ── Ações da nav ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.nav-btn-seller {
  background: transparent;
  color: #666;
  border: none;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.8rem;
}
.nav-btn-seller:hover {
  color: var(--navy);
  background: transparent;
}

.nav-btn-primary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}
.nav-btn-primary:hover {
  border-color: rgba(36,58,110,0.35);
  color: var(--navy);
}

.nav-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  background: transparent;
  color: var(--black);
  border-radius: var(--radius-sm);
  border: none;
  position: relative;
}
.nav-btn-icon:hover { background: var(--gray-light); }

.nav-icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  pointer-events: none;
}

/* ── Catbar + mega menu profissional ── */
.catbar {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.catbar-inner {
  display: flex;
  align-items: stretch;
  padding: 0 5%;
  gap: 0;
  overflow: visible;
  min-width: 0;
}

.catbar-item {
  position: relative;
  flex-shrink: 0;
}

.catbar-item:not(.catbar-item-all) {
  z-index: 1;
}

.catbar-item:not(.catbar-item-all):hover,
.catbar-item:not(.catbar-item-all):focus-within {
  z-index: 130;
}

.catbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 13px;
  border: none;
  background: transparent;
  color: #4f4f49;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.catbar-btn .chevron { color: #a3a39c; transition: transform 0.18s; }

.catbar-all-btn {
  margin-right: 4px;
  padding-left: 0;
  padding-right: 16px;
  font-weight: 800;
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.catbar-item:hover > .catbar-btn,
.catbar-item:focus-within > .catbar-btn,
.catbar-all-btn[aria-expanded="true"] {
  color: var(--ink);
  border-bottom-color: var(--navy);
}

.catbar-item:hover .chevron,
.catbar-item:focus-within .chevron {
  transform: rotate(180deg);
  color: var(--navy);
}

.catbar-orders {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  height: 42px;
  padding: 0 4px 0 13px;
  flex-shrink: 0;
  color: #4f4f49;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.catbar-orders:hover {
  color: var(--ink);
  border-bottom-color: var(--navy);
}

/* Dropdown simples por item */
.catbar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 248px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(26,26,24,0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 140;
}

/* Ponte de hover entre o botão e o painel */
.catbar-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.catbar-item:hover > .catbar-dropdown,
.catbar-item:focus-within > .catbar-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.dropdown-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #3d3d38;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.dropdown-list a:hover {
  background: rgba(36,58,110,0.06);
  color: var(--navy);
}

.dropdown-footer {
  display: block;
  margin-top: 4px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.dropdown-footer:hover { color: var(--crimson); }

/* Overlay + painel split */
.mega-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 110;
  padding: 10px 5% 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mega-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-overlay[hidden] { display: none !important; }

body.mega-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 16, 0.28);
  backdrop-filter: blur(2px);
  z-index: 90;
}

.mega-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  /* Linha limitada à altura do painel para que lateral e conteúdo rolem */
  grid-template-rows: minmax(0, 1fr);
  min-height: 360px;
  height: min(72vh, 560px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(26,26,24,0.16);
  overflow: hidden;
}

.mega-side {
  background: #f7f6f2;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.mega-side-label {
  margin: 0 10px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a93;
}

.mega-side-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-side-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 11px 12px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: #454540;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mega-side-btn svg {
  color: #b0b0a8;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.mega-side-btn:hover,
.mega-side-btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(26,26,24,0.04);
}

.mega-side-btn.is-active svg,
.mega-side-btn:hover svg {
  opacity: 1;
  color: var(--navy);
}

.mega-main {
  padding: 22px 26px 26px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(36,58,110,0.05), transparent 60%),
    #fff;
}

.mega-pane[hidden] { display: none !important; }

/* Menus de categoria rolam sem exibir a barra de rolagem */
.dropdown-list::-webkit-scrollbar,
.mega-side::-webkit-scrollbar,
.mega-main::-webkit-scrollbar { display: none; }

.mega-pane-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mega-pane-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.mega-pane-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.mega-pane-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.mega-pane-cta:hover {
  background: rgba(36,58,110,0.05);
  border-color: rgba(36,58,110,0.25);
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}

.mega-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f6f2;
  color: #333;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.mega-links a:hover {
  background: rgba(36,58,110,0.08);
  color: var(--navy);
  transform: translateY(-1px);
}

/* ── Menu principal (abaixo do header): Materiais / Peças Prontas / Lojas / Meus Favoritos ──
   Mesmo visual do antigo menu de categorias (.catbar). */
.deptbar {
  position: relative;
  z-index: 150;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.dept-bar {
  display: flex;
  align-items: stretch;
  padding: 0 5%;
  overflow-x: auto;
  scrollbar-width: none;
}
.dept-bar::-webkit-scrollbar { display: none; }

.dept-item { position: static; display: flex; }

.dept-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 13px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #4f4f49;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.dept-bar > :first-child .dept-link { padding-left: 0; }
.dept-link:focus { outline: none; }
.dept-link:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.dept-link:hover,
.dept-link.is-active,
.dept-link[aria-expanded="true"] {
  color: var(--ink);
  border-bottom-color: var(--navy);
}

.dept-link-chevron { color: #a3a39c; transition: transform 0.18s; }
.dept-link:hover .dept-link-chevron,
.dept-link[aria-expanded="true"] .dept-link-chevron { color: var(--navy); }
.dept-link[aria-expanded="true"] .dept-link-chevron { transform: rotate(180deg); }

.dept-panel {
  --dept-color: #24508f;
  position: absolute;
  top: calc(100% + 4px);
  left: 5%;
  right: 5%;
  z-index: 110;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 20px 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(26, 26, 24, 0.16);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dept-item-comprar .dept-panel { --dept-color: #6b7080; }
.dept-panel::-webkit-scrollbar { display: none; }
.dept-panel.is-open { opacity: 1; transform: translateY(0); }
.dept-panel[hidden] { display: none !important; }

.dept-panel-kicker {
  margin: 0 0 16px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dept-color);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px 24px;
}

.dept-col { min-width: 0; }

.dept-col-title {
  display: block;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--dept-color);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.dept-col-title:hover { color: var(--dept-color); }

.dept-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dept-col li a {
  display: block;
  padding: 4px 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4a4a44;
  text-decoration: none;
}
.dept-col li a:hover { color: var(--dept-color); }

.dept-col-more {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--dept-color);
  text-decoration: none;
}
.dept-col-more:hover { text-decoration: underline; }

.dept-panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dept-pill {
  padding: 7px 14px;
  border: 1.5px solid var(--dept-color);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dept-color);
  text-decoration: none;
}
.dept-pill:hover { background: color-mix(in srgb, var(--dept-color) 8%, #fff); }

.nav-btn-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  padding: 8px 12px 8px 8px;
}

.nav-btn-account:hover {
  border-color: rgba(36,58,110,0.35);
  background: rgba(36,58,110,0.03);
  color: var(--navy);
}

/* CTA de cadastro (visitante) — botão em destaque */
.nav-btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px 22px;
  margin-left: 6px;
  box-shadow: 0 6px 18px rgba(224, 127, 46, 0.35);
}
.nav-btn-signup:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(224, 127, 46, 0.45);
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ── Hamburger + menu drawer (mobile) ── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--gray-light); }

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 18, 16, 0.32);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.nav-drawer-overlay.is-open { opacity: 1; }
.nav-drawer-overlay[hidden] { display: none !important; }

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 310;
  width: min(84vw, 340px);
  background: var(--white);
  box-shadow: 0 0 48px rgba(26, 26, 24, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.nav-drawer-logo img { height: 36px; width: auto; display: block; }

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--gray-mid);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.nav-drawer-close:hover { background: var(--gray-light); }

.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 18px 24px;
}

.nav-drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.nav-drawer-profile .nav-avatar { width: 38px; height: 38px; font-size: 0.9rem; flex-shrink: 0; }
.nav-avatar-guest { background: var(--gray-light); color: #7a7a72; }
.nav-drawer-profile strong { display: block; font-size: 0.92rem; font-weight: 700; }
.nav-drawer-profile small { display: block; font-size: 0.76rem; font-weight: 500; color: var(--text-muted); }

.nav-drawer-quicklinks {
  display: flex;
  flex-direction: column;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.nav-drawer-quicklinks a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  color: #3d3d38;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-drawer-quicklinks a svg { color: var(--navy); flex-shrink: 0; }
.nav-drawer-quicklinks a:hover { color: var(--navy); }

/* Atalhos do menu mobile sempre alinhados à esquerda */
.nav-drawer .nav-drawer-quicklinks { align-items: stretch; text-align: left; }
.nav-drawer .nav-drawer-quicklinks a { justify-content: flex-start; text-align: left; width: 100%; }

.nav-drawer-label {
  margin: 0 4px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a93;
}

.nav-drawer-cats + .nav-drawer-cats { margin-top: 18px; }

.drawer-cat {
  border-bottom: 1px solid var(--line);
}
.drawer-cat.drawer-cat-plain {
  display: block;
  padding: 12px 4px;
  color: #3d3d38;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.drawer-cat.drawer-cat-plain:hover { color: var(--navy); }

.drawer-cat summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d3d38;
  cursor: pointer;
  list-style: none;
}
.drawer-cat summary::-webkit-details-marker { display: none; }
.drawer-cat summary::marker { content: ""; }

.drawer-cat-chevron { color: #a3a39c; flex-shrink: 0; transition: transform 0.18s; }
.drawer-cat[open] .drawer-cat-chevron { transform: rotate(180deg); }

.drawer-cat ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.drawer-cat ul a {
  display: block;
  padding: 9px 4px 9px 14px;
  color: #5b5b54;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 2px solid var(--line);
}
.drawer-cat ul a:hover { color: var(--navy); border-left-color: var(--navy); }
.drawer-cat ul a.drawer-cat-all { font-weight: 700; color: var(--navy); }

.nav-drawer-seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}
.nav-drawer-seller:hover { background: #1b2d57; }

/* Nota: acima de 900px a catbar e o mega-panel ficam no header; abaixo
   disso as categorias vivem no menu-drawer. Os departamentos aparecem em
   todas as larguras. */

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 12px 5%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
  border-bottom: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--orange); }

.breadcrumb-sep {
  color: #ccc;
}

.breadcrumb-current {
  color: var(--black);
  font-weight: 500;
}

/* ── Section shell ── */
.section { padding: 72px 5%; }
.section-gray {
  background:
    linear-gradient(180deg, rgba(36, 58, 110, 0.03), transparent 40%),
    #efede7;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
}

.link-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s, color 0.2s;
}
.link-all:hover { gap: 8px; color: var(--crimson); }

/* ── Newsletter ── */
.newsletter {
  background: var(--black);
  padding: 72px 5%;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: var(--orange);
  opacity: 0.06;
  border-radius: 50%;
  pointer-events: none;
}

.newsletter::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 5%;
  width: 260px;
  height: 260px;
  background: var(--brown);
  opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239,125,0,0.15);
  border: 1px solid rgba(239,125,0,0.3);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.newsletter-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.newsletter-title span { color: var(--orange); }

.newsletter-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.newsletter-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-avatars { display: flex; }

.newsletter-avatars span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  margin-left: -8px;
}

.newsletter-avatars span:first-child { margin-left: 0; }

.newsletter-proof-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.newsletter-proof-text strong {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

.newsletter-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  transition: border-color 0.2s;
}

.newsletter-form:focus-within { border-color: var(--orange); }

.newsletter-form input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 400;
  outline: none;
  color: var(--white);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }

.newsletter-form button {
  height: 52px;
  padding: 0 28px;
  background: var(--orange);
  color: var(--white);
  border: none;
  font-size: 0.85rem;
  font-weight: 900;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter-form button:hover { background: var(--orange-light); }

.newsletter-fine {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Footer (branco profissional) ── */
.site-footer,
footer {
  background: #ffffff;
  color: #5c5c56;
  border-top: 1px solid var(--line);
}

.footer-accent,
.footer-top-bar {
  display: flex;
  align-items: stretch;
  height: 3px;
}

.footer-accent span:nth-child(1),
.footer-top-bar span:nth-child(1) { flex: 2; background: var(--crimson); }

.footer-accent span:nth-child(2),
.footer-top-bar span:nth-child(2) { flex: 1; background: var(--gold); }

.footer-accent span:nth-child(3),
.footer-top-bar span:nth-child(3) { flex: 5; background: var(--navy); }

.footer-main { padding: 56px 5% 8px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px 28px;
  margin-bottom: 40px;
}

.footer-brand-name {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand-name img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: none;
  opacity: 1;
}

.footer-brand p {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 320px;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.2s;
}

.footer-contact-item:hover { color: var(--crimson); }
.footer-contact-item svg { flex-shrink: 0; color: var(--crimson); }

.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f6f4ef;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #4a4a45;
}

.social-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col-label::after { display: none; }

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: #5c5c56;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.footer-col a::before { display: none; }

.footer-col a:hover { color: var(--navy); }

.footer-payments {
  padding: 22px 5%;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #fbfaf7;
}

.footer-payments-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-payments-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a82;
  white-space: nowrap;
}

.footer-payments-methods {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4a4a45;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-certifications {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #6f6f68;
  font-weight: 600;
}

.cert-badge svg { color: var(--navy); }

.footer-bottom {
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright {
  color: #6f6f68;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-made {
  font-size: 0.74rem;
  color: #9a9a92;
}

.footer-made strong { color: #6f6f68; font-weight: 700; }

.footer-back-top {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f6f4ef;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}

.footer-back-top:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── Utilitários comuns ── */
.btn-primary {
  padding: 14px 26px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(36, 58, 110, 0.28);
}
.btn-primary:hover { background: #1b2d57; transform: translateY(-1px); }

.stars { color: var(--gold); letter-spacing: -1px; }

.tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.tag:hover, .tag.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }

.brush-divider {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 5%;
  overflow: hidden;
}

.brush-divider::before {
  content: '';
  flex: 1;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.brush-divider::after {
  content: '';
  width: 48px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
  margin-left: 6px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVO — componentes globais (nav, catbar, footer)
   ═══════════════════════════════════════════════════════ */

/* ── Laptop / tablet largo ≤1180px ── */
@media (max-width: 1180px) {
  nav,
  .topnav {
    gap: 12px;
    padding: 0 3.5%;
  }
  .nav-search { max-width: 360px; }
  .nav-btn-seller { display: none; }
  .catbar-inner { padding: 0 3.5%; }
  .dept-bar { padding: 0 3.5%; }
  .dept-panel { left: 3.5%; right: 3.5%; }
}

/* ── Catbar: some com as últimas categorias quando não cabem (todas
   continuam no botão "Categorias") ── */
@media (max-width: 1320px) { .catbar-item:nth-child(n+8) { display: none; } }
@media (max-width: 1180px) { .catbar-item:nth-child(n+7) { display: none; } }
@media (max-width: 1060px) { .catbar-item:nth-child(n+6) { display: none; } }
@media (max-width: 960px) { .catbar-item:nth-child(n+5) { display: none; } }

/* ── Departamentos empilhados para o título caber numa linha ── */

/* ── Tablet ≤1024px ── */
@media (max-width: 1024px) {
  .nav-cep { display: none; }
  .nav-search { max-width: none; }
  .nav-logo img { max-width: 140px; height: 48px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter-inner { gap: 36px; }
}

/* ── Tablet / mobile largo ≤900px ── */
@media (max-width: 900px) {
  nav,
  .topnav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 4%;
    gap: 10px 12px;
  }

  .nav-hamburger { display: flex; order: 0; }
  .nav-logo { order: 1; }
  .nav-actions { order: 2; margin-left: auto; }
  .nav-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
  .nav-search input,
  .nav-search-btn { height: 42px; }

  .nav-btn-account-user .nav-account-label { display: none; }
  .nav-btn-account-user {
    padding: 6px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  /* A partir daqui, a navegação por categorias vive no menu-drawer */
  .catbar { display: none; }
}

/* ── Mobile ≤768px ── */
@media (max-width: 768px) {
  .dept-bar { padding: 0 4%; }
  .dept-link { padding: 0 10px; }
  .dept-panel { left: 4%; right: 4%; padding: 16px; max-height: 72vh; }
  .dept-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 16px; }
  .nav-logo img { height: 44px; max-width: 128px; }
  .nav-actions { gap: 2px; }
  .nav-btn-icon { width: 38px; height: 38px; }
  .nav-btn-signup { font-size: 0.88rem; padding: 11px 16px; gap: 6px; margin-left: 4px; }

  .nav-drawer { width: min(88vw, 320px); }

  .section       { padding: 40px 4%; }
  .brush-divider { margin: 0 4%; }
  .breadcrumb    { padding: 10px 4%; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main  { padding: 40px 4% 0; }
  .footer-payments {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 4%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 4%;
  }

  .newsletter         { padding: 48px 4%; }
  .newsletter-inner   { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Celular: o complemento do título vai para a linha de baixo ── */


/* ── Small mobile ≤480px ── */
@media (max-width: 480px) {
  .dept-bar { padding: 0 3.5%; }
  .dept-link { padding: 0 8px; gap: 3px; }
  nav,
  .topnav {
    padding: 8px 3.5%;
    gap: 8px;
  }
  .nav-logo img { height: 38px; max-width: 112px; }
  .nav-search input {
    height: 40px;
    font-size: 0.82rem;
    padding-left: 12px;
  }
  .nav-search-btn { height: 40px; width: 44px; }
  .nav-btn-signup { font-size: 0.82rem; padding: 10px 13px; margin-left: 2px; }
  .nav-btn-signup svg { display: none; }

  .nav-drawer { width: 88vw; }

  .footer-grid  { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
}

/* ══════════════════════════════════════════════════════
   Selos (lacres de cera) — <x-seal>
   Artes em /store/images/selos, servidas em 64/128/256px.
   ══════════════════════════════════════════════════════ */

.selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.selo img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(26, 26, 24, 0.18));
}
.selo--xs img { width: 24px; height: 24px; }
.selo--sm img { width: 34px; height: 34px; }
.selo--lg img { width: 76px; height: 76px; }
.selo--xl img { width: 112px; height: 112px; }

.selo-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Fallback em texto enquanto a arte de um selo não existe. */
.selo-texto {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f6ead0;
  color: #6b4a06;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.selo-texto--prata { background: #eceef1; color: #4a5158; }
.selo-texto--diamante { background: #e6f0fb; color: #1f3d6b; }

@media (max-width: 640px) {
  .selo--xl img { width: 84px; height: 84px; }
  .selo--lg img { width: 64px; height: 64px; }
}

/* Espaço reservado enquanto a arte de um selo não chega. */
.selo-vazio > span {
  display: block;
  border-radius: 50%;
  border: 2px dashed var(--gray-light);
  background: var(--gray-mid);
}

/* ══════════════════════════════════════════════════════
   Selo "Artesã Fundadora" com tooltip explicativo
   ══════════════════════════════════════════════════════ */

.selo-fundador {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 15px 5px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdf4de 0%, #f7e3ba 100%);
  border: 1px solid rgba(186, 142, 39, 0.3);
  box-shadow: 0 6px 18px rgba(186, 142, 39, 0.16);
  cursor: help;
  outline: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.selo-fundador:hover,
.selo-fundador:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(186, 142, 39, 0.26);
}
.selo-fundador:focus-visible { border-color: rgba(186, 142, 39, 0.75); }

.selo-fundador-texto {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
  text-align: left;
}
.selo-fundador-texto small {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a97f1c;
  white-space: nowrap;
}
.selo-fundador-texto strong {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #6b4a06;
  white-space: nowrap;
}

/* Tooltip — abre no hover e no foco pelo teclado. */
.selo-fundador-tip {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  z-index: 40;
  width: min(340px, 80vw);
  padding: 16px 18px 17px;
  border-radius: 18px;
  background: linear-gradient(162deg, #2a3866 0%, #151f3e 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.selo-fundador:hover .selo-fundador-tip,
.selo-fundador:focus .selo-fundador-tip,
.selo-fundador:focus-within .selo-fundador-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.selo-fundador-tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-bottom-color: #fdf5e2;
}

/* A arte do lacre é o destaque do tooltip: grande, centralizada e com brilho. */
.selo-fundador-tip-arte {
  position: relative;
  display: flex;
  justify-content: center;
  margin: -16px -18px 14px;
  padding: 20px 0 20px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(150deg, #fdf5e2 0%, #f5e2b9 100%);
  border-bottom: 1px solid rgba(186, 142, 39, 0.35);
  overflow: hidden;
}
.selo-fundador-tip-arte::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}
.selo-fundador-tip-arte .selo img {
  width: 128px;
  height: 128px;
  position: relative;
  filter: drop-shadow(0 12px 22px rgba(102, 74, 12, 0.35));
  transform: scale(0.88);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.05s;
}
.selo-fundador:hover .selo-fundador-tip-arte .selo img,
.selo-fundador:focus .selo-fundador-tip-arte .selo img,
.selo-fundador:focus-within .selo-fundador-tip-arte .selo img {
  transform: scale(1);
}

.selo-fundador-tip-topo {
  display: block;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.selo-fundador-tip-topo strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.selo-fundador-tip-topo small {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
}
.selo-fundador-tip p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.selo-fundador-tip ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.selo-fundador-tip li {
  position: relative;
  padding-left: 18px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}
.selo-fundador-tip li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold, #d4a017);
}

@media (max-width: 640px) {
  .selo-fundador { padding-right: 13px; }
  .selo-fundador-tip-arte {
    padding: 14px 0;
    margin-bottom: 12px;
  }
  .selo-fundador-tip-arte .selo img { width: 96px; height: 96px; }
  .selo-fundador-tip-arte::before { width: 150px; height: 150px; }
  .selo-fundador-tip {
    left: 0;
    transform: translate(0, 7px);
    width: min(320px, 84vw);
  }
  .selo-fundador:hover .selo-fundador-tip,
  .selo-fundador:focus .selo-fundador-tip,
  .selo-fundador:focus-within .selo-fundador-tip { transform: translate(0, 0); }
  .selo-fundador-tip::before { left: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .selo-fundador,
  .selo-fundador-tip,
  .selo-fundador-tip-arte .selo img { transition: none; }
  .selo-fundador-tip-arte .selo img { transform: none; }
}

/* ── Autocomplete da busca do topo ── */
.nav-search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 300;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(26, 26, 24, 0.16);
}
.nav-search-suggest[hidden] { display: none; }

.suggest-group-title {
  padding: 10px 10px 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--black);
  text-decoration: none;
  font-size: 0.875rem;
}
.suggest-item.is-active,
.suggest-item:focus-visible { background: var(--gray-mid); outline: none; }
.suggest-item-compact { padding-top: 8px; padding-bottom: 8px; }

.suggest-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-mid);
}
.suggest-thumb.is-store { border-radius: 50%; }

.suggest-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.suggest-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
}
.suggest-name mark {
  background: none;
  color: inherit;
  font-weight: 800;
}
.suggest-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.suggest-price {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--navy);
}

.suggest-empty {
  padding: 12px 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.suggest-all {
  margin-top: 4px;
  border-top: 1px solid var(--gray-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 11px 10px;
  font-weight: 600;
  color: var(--orange-dark);
}

/* ── Celular estreito ≤380px: cabe o CTA "Cadastre-se" na linha do logo ── */
@media (max-width: 380px) {
  .nav-logo img { height: 34px; max-width: 96px; }
  .nav-btn-icon { width: 34px; height: 34px; }
  .nav-btn-signup { font-size: 0.78rem; padding: 9px 11px; }
}
