:root{
  --accent:#143680;;
  --muted:#6B7280;
  --bg:#f6f7f8;
  --card:#ffffff;
  --radius:12px;
  --shadow:0 10px 30px rgba(16,20,28,0.06);
}
*{box-sizing:border-box}
body{margin:0;font-family:'Poppins',system-ui,Arial;background:var(--bg);color:#111827;padding:20px;background-color: #282828;}
.wrap{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background-color: #f6f7f8;}
.title-block h1{margin:20px;font-size:1.2rem;font-weight:700;color:#111}
.title-block p{margin:4px 0 0;color:var(--muted);font-size:.95rem}
.card{background:var(--card);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}
.color-filter{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:8px 0}
.color-circle{width:34px;height:34px;border-radius:50%;border:2px solid rgba(0,0,0,0.06);box-shadow:0 6px 18px rgba(0,0,0,0.04);cursor:pointer;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}
.color-circle.active{outline:3px solid rgba(243,167,18,0.22);transform:scale(1.06)}
.controls{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.search{flex:1;min-width:220px}
input[type='search']{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #263650;background:#fbfbfb;font-size:.95rem}
.actions{display:flex;gap:8px}
.btn{padding:10px 12px;border-radius:10px;border:0;font-weight:700;cursor:pointer;font-size:.95rem}
.btn.accent{background:var(--accent);color:#ffffff}
.btn.ghost{background:transparent;border:1px solid rgba(0,0,0,0.06);color:var(--muted)}
.section{margin-top:12px}
.section-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.swatch-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:10px}
.swatch{display:flex;gap:10px;align-items:center;padding:10px;border-radius:10px;border:1px solid rgba(0,0,0,0.04);background:#fff;cursor:pointer;transition:transform .12s,box-shadow .12s}
.swatch:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(16,20,28,0.06)}
.sw-preview{width:64px;height:48px;border-radius:8px;border:1px solid rgba(0,0,0,0.04);flex-shrink:0}
.sw-meta .name{font-weight:600;font-size:0.95rem}
.sw-meta .hex{color:var(--muted);font-size:.85rem}
.modal-overlay{position:fixed;inset:0;background:rgba(10,12,16,0.45);display:none;align-items:center;justify-content:center;padding:20px;z-index:1200}
.modal{width:min(920px,96%);background:var(--card);border-radius:14px;padding:18px;box-shadow:0 30px 80px rgba(6,8,12,0.5);display:flex;gap:18px;align-items:flex-start}
.modal-left{flex:0 0 240px;display:flex;flex-direction:column;gap:12px;align-items:center}
.modal-sample{width:200px;height:140px;border-radius:12px;border:1px solid rgba(0,0,0,0.04)}
.modal-info{text-align:center}
.modal-info .name{font-weight:800;font-size:1.05rem}
.modal-info .hex{color:var(--muted);margin-top:6px}
.modal-actions{display:flex;gap:8px;margin-top:8px}
.modal-right{flex:1;display:flex;flex-direction:column;gap:12px}
.similar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.similar-item{display:flex;gap:10px;align-items:center;padding:8px;border-radius:10px;border:1px solid rgba(0,0,0,0.04);cursor:pointer;background:#fff}
.similar-item .mini{width:48px;height:36px;border-radius:8px;border:1px solid rgba(0,0,0,0.04);flex-shrink:0}
@media(max-width:900px){
  .swatch-grid{grid-template-columns:repeat(3,1fr)}
  .modal{flex-direction:column;align-items:stretch}
  .modal-left{flex-direction:row;gap:12px;align-items:center;justify-content:space-between}
  .modal-sample{width:120px;height:90px}
  .similar-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .swatch-grid{grid-template-columns:repeat(1,1fr)}
  .color-circle{width:30px;height:30px}
}
/* ---- Section filter bar (top) ---- */
.section-filter-bar{
  display:flex;
  gap:18px;
  align-items:center;
  padding:8px;
  margin-left:12px;
  flex-wrap:nowrap;
  overflow:auto;
}
.section-filter-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:4px;
  min-width:72px;
}

.section-filter-item .filter-circle{
  width:42px;
  height:42px;
  border-radius:50%;
  display:block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom:6px;
  border:2px solid transparent;
}
.section-filter-item .filter-label{
  font-size:0.78rem;
  color:var(--muted, #666);
  text-align:center;
  white-space:nowrap;
}
.section-filter-item:last-child{
  margin-right:11.5px;
}
.section-filter-item.active .filter-circle{
  transform:scale(1.06);
  border-color:var(--accent, #ff7a00);
}
.section-filter-item.active .filter-label{
  color:var(--accent, #ff7a00);
  font-weight:600;
}

/* Catalog section blocks */
.catalog-section{
  margin: 18px 0;
  border-radius:8px;
  padding:12px;
}
.catalog-section .sec-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.catalog-section .sec-header h3{ margin:0; font-size:1.05rem; }
.catalog-section .note{ font-size:.85rem; color:var(--muted,#777); }

/* Swatch grid */
.swatch-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap:12px;
}
.swatch-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px;
  background:var(--card-bg, #fff);
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.04);
  cursor:pointer;
}
.sw-item .sw-preview{}
.swatch-item .sw-preview{
  width:56px; height:56px; border-radius:8px; flex:0 0 56px; box-shadow:0 2px 6px rgba(0,0,0,0.06);
}
.sw-info{ display:flex; flex-direction:column; align-items:flex-start; }
.sw-name{ font-size:.95rem; color:var(--text,#111); font-weight:600; }
.sw-hex{ font-size:.82rem; color:var(--muted,#666); margin-top:4px; }

/* Similar grid inside modal (mini items) */
.sim-item{ display:flex; gap:8px; align-items:center; padding:6px; border-radius:6px; border:0; background:transparent; cursor:pointer; }
.sim-item .mini{ width:36px; height:36px; border-radius:6px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.sim-item .meta .name{ font-size:.85rem; font-weight:600; }
.sim-item .meta .hex{ font-size:.78rem; color:var(--muted,#666); }

/* responsive tweaks */
@media (max-width:800px){
  .section-filter-bar{ gap:12px; padding:6px 0; }
  .section-filter-item .filter-circle{ width:36px; height:36px; }
  .swatch-grid{ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* --- Aumentar swatches e ajustar layout como na imagem --- */
.swatch-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* cards grandes */
  gap:14px;
  align-items:start;
}

.swatch-item{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  background:var(--card-bg,#fff);
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.04);
  cursor:pointer;
  min-height:120px; /* garante altura consistente */
}

/* preview maior (retângulo) */
.swatch-item .sw-preview{
  width:160px;
  height:96px;
  border-radius:6px;
  flex:0 0 160px;
  box-shadow:0 3px 8px rgba(0,0,0,0.06);
  border:1px solid rgba(0,0,0,0.03);
}

/* texto abaixo ou ao lado conforme espaço */
.sw-info{ display:flex; flex-direction:column; align-items:flex-start; }
.sw-name{ font-size:0.95rem; font-weight:700; color:var(--text,#111); margin-bottom:6px; }
.sw-hex{ font-size:0.86rem; color:var(--muted,#666); }

/* pagination styling */
.pagination-wrap{
  background-color: #38383811;
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  margin-top:26px;
  margin-bottom:2px;
}
.pg-btn, .pg-dot{
  border:1px solid rgba(0,0,0,0.08);
  background:var(--btn-bg,#fff);
  color:var(--text,#222);
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  min-width:36px;
  text-align:center;
  font-weight:600;
}
.pg-btn:disabled{ opacity:0.45; cursor:not-allowed; }
.pg-dot.active{
  background-color: #000000;
  color:#fff;
  border-color:var(--accent,#ff7a00);
}
.pg-ellipsis{ color:var(--muted,#888); padding:6px 2px; font-size:18px; }

/* responsive tweaks */
@media (max-width:1100px){
  .swatch-grid{ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .swatch-item .sw-preview{ width:140px; height:84px; flex:0 0 140px; }
}
@media (max-width:700px){
  .swatch-grid{ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .swatch-item .sw-preview{ width:120px; height:72px; flex:0 0 120px; }
  .section-filter-bar{ overflow:auto; padding-bottom:8px; }
}
/* Nome dentro do bloco de cor (overlay) - sem mostrar HEX no grid */
.sw-preview {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}

/* overlay com o nome */
.sw-name-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(255,255,255,0.80); /* leve fundo para contraste em cores escuras */
  color: var(--text, #111);
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  backdrop-filter: blur(3px);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
}

/* para swatches muito claras: usar overlay escura */
.sw-preview[style*="#F"], .sw-preview[style*="#f"], /* heuristic: override for very light backgrounds via CSS not perfect */
.sw-preview.light-overlay .sw-name-overlay {
  background: rgba(0,0,0,0.55);
  color: #fff;
}

/* remove exibição da hex e outros meta no grid (se ainda existirem) */
.sw-hex, .sw-info { display: none !important; }

/* ajuste de tamanhos - mantém layout grande conforme você pediu */
.swatch-item { padding: 0; border: 0; background: transparent; }
.swatch-item .sw-preview { width: 100%; height: 120px; }
@media (max-width:1100px) { .swatch-item .sw-preview { height: 96px; } }
@media (max-width:700px) { .swatch-item .sw-preview { height: 84px; } }
/* Ajustes: remover border-radius, reduzir espaçamento, nomes sem fundo */

/* GRID: menos espaço entre cartões */
.swatch-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* mais colunas, menos espaçamento */
  gap:8px; /* reduzido */
  align-items:start;
}

/* cartão sem borda arredondada */
.swatch-item{
  display:block;
  padding:0;
  margin:0;
  background:transparent;
  border:0;
  cursor:pointer;
  min-height:96px;
}

/* preview retangular sem border-radius */
.swatch-item .sw-preview{
  width:100%;
  height:96px;
  border-radius:0; /* sem cantos arredondados */
  box-shadow:none;
  border:0;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:8px;
  box-sizing:border-box;
}

/* Nome diretamente sobre a cor (sem fundo) */
.sw-name-overlay{
  background:transparent !important;
  color: #fff;
  font-weight:700;
  font-size:0.95rem;
  line-height:1.05;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45); /* melhora leitura em cores escuras */
  padding:0;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* quando sw-preview tiver classe light-overlay, usar texto escuro */
.sw-preview.light-overlay .sw-name-overlay{
  color:#111;
  text-shadow:none;
}

/* esconder metadados hex (caso ainda existam) */
.sw-hex, .sw-info { display: none !important; }

/* pagination styling (sem alterações radicais) */
.pagination-wrap{
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  margin-top:10px;
  margin-bottom:6px;
}
.pg-btn, .pg-dot{
  border:1px solid rgba(0,0,0,0.06);
  background:var(--btn-bg,#fff);
  color:var(--text,#222);
  padding:6px 10px;
  border-radius:4px;
  cursor:pointer;
  min-width:36px;
  text-align:center;
  font-weight:600;
  margin-top: 20px;
}
.pg-dot.active{
  background-color: #282828;
  color:#fff;
  border-color:var(--accent,#ff7a00);
}
.pg-btn:disabled{ opacity:0.45; cursor:not-allowed; }

@media (max-width:1100px){
  .swatch-grid{ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap:8px; }
  .swatch-item .sw-preview{ height:84px; }
}
@media (max-width:700px){
  .swatch-grid{ grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap:6px; }
  .swatch-item .sw-preview{ height:72px; }
}
/* Ensure default name text is black; gray swatches get white text */
.sw-name-overlay {
  background: transparent !important;
  color: #111 !important;       /* default: black for readability */
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.05;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;            /* no shadow by default */
}

/* Gray swatches: use white text for contrast */
.sw-preview.gray-text .sw-name-overlay {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
/* Fonte para os nomes (certifique-se de ter Suvinil Sans disponível no projeto) */
.sw-name-overlay, .filter-label, .section-filter-item, .section-filter-bar, .swatch-item {
  font-family: "Suvinil Sans", sans-serif;
}

/* Nome sobre cor: sem fundo, texto preto por padrão */
.sw-name-overlay{
  background: transparent !important;
  color: #111 !important;       /* agora PRETO por padrão */
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.05;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}

/* Apenas para swatches identificados como cinza pela função isGrayColor -> usar texto branco */
.sw-preview.gray-text .sw-name-overlay {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* Ensure similar items name uses same font and no hex shown */
.sim-item .name { font-family: "Suvinil Sans", sans-serif; font-weight:600; color: #111; }
.sim-item .hex { display:none !important; }

/* small tweak: remove any other forced white text rules (override common ones) */
.swatch-item *, .sw-preview * { color: inherit !important; }

/* spacing / layout tweaks kept from previous version */
.swatch-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap:8px; align-items:start; }
.swatch-item{ display:block; padding:0; margin:0; background:transparent; border:0; cursor:pointer; min-height:96px; }
.swatch-item .sw-preview{ width:100%; height:96px; border-radius:0; box-shadow:none; border:0; position:relative; overflow:hidden; display:flex; align-items:flex-end; padding:8px; box-sizing:border-box; }
/* ===== Neon wheel contínuo para o filtro "Todas" (substitua regras antigas) ===== */
.section-filter-item[data-section="todas"] .filter-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: block;

  /* gradiente contínuo cobrindo todo o círculo */
  background: conic-gradient(
    #ff1a1a 0deg,
    #ff8a1a 45deg,
    #ffea1a 90deg,
    #8aff1a 135deg,
    #1affea 180deg,
    #1a6eff 225deg,
    #b31aff 270deg,
    #ff1a9e 315deg,
    #ff1a1a 360deg
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;

  /* remover bordas que "cortam" o gradiente (força override em caso de regras anteriores) */
  border: 0 !important;
  outline: none;

  /* brilho / halo neon (opcional) */
  box-shadow:
    0 6px 18px rgba(255,40,90,0.14),
    inset 0 0 10px rgba(255,255,255,0.06);

  /* garante posicionamento consistente */
  margin-bottom: 6px;
  box-sizing: border-box;
}

/* se existirem regras antigas que aplicam borda ao .section-filter-item, zere também */
.section-filter-item[data-section="todas"] {
  border: 0 !important;
  padding: 6px !important; /* ajusta espaçamento interno sem gerar borda que corte o gradiente */
}
/* Sticky float navbar styles for section-filter-bar */
.section-filter-bar-placeholder { height: 0; }

.section-filter-bar.sticky {
  position: fixed;
  top: 8px; /* distance from top when fixed — ajuste se tiver topbar */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px); /* small side margins */
  max-width: 1000px !important;
  z-index: 9999;
  background: rgba(255,255,255,0.96);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 10px 30px rgba(6,18,36,0.12);
  display:flex;
  gap:12px;
  align-items:center;
  margin: 0 !important;
}

/* ensure items keep layout inside sticky bar */
.section-filter-bar.sticky .section-filter-item { display:flex; align-items:center; gap:8px; }

/* active filter visual */
.section-filter-item.active {
  transform: translateY(-2px);
}
.section-filter-item.active .filter-label {
  font-weight:800;
  color: var(--accent, #ff6a00);
}

/* reduce placeholder jump flicker on mobile */
@media (max-width:700px){
  .section-filter-bar.sticky { width: calc(100% - 24px); left: 12px; transform: none; border-radius:8px; }
}
/* Floatbar cor #383838 e border-radius */
.section-filter-bar.sticky {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 9999;
  background: #383838; /* cor solicitada */
  border-radius: 14px; /* ajustado */
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(6,18,36,0.14);
  display:flex;
  gap:12px;
  align-items:center;
  color: #ffffff; /* garante leitura dos labels em branco quando sticky */
}

/* manter contraste: label quando ativo */
.section-filter-item.active .filter-label {
  color: #000000;
  font-weight:700;
}

/* placeholder para evitar salto */
.section-filter-bar-placeholder { height: 0; }
/* força labels brancas dentro da floatbar sticky */
.section-filter-bar.sticky .filter-label {
  color: #fff !important;
}
/* ===== Estilo das arrows e centralização (append no final do seu CSS) ===== */
.pagination-wrap.sliding-paginator {
  display: flex;
  align-items: center;      /* alinha verticalmente com os dots */
  justify-content: center;  /* centraliza o conjunto na linha */
  gap: 12px;
  padding: 8px 6px;
}

/* aparência limpa: sem background, borda sutil, centralizadas */
.pg-arrow {
  background: transparent;
  border: 1px solid transparent;
  color: #2b2b2b;           /* cor base agradável (ajuste se quiser) */
  font-size: 16px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, color .12s ease, background .12s ease;
  box-shadow: 0 1px 3px rgba(15,15,15,0.06);
}

/* hover: leve realce (sem fundo sólido) */
.pg-arrow:hover:not([disabled]) {
  transform: translateY(-2px);
  color: #0b5fff;
  background: rgba(11,95,255,0.06);
}

/* focus acessível */
.pg-arrow:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(11,95,255,0.12);
}

/* estado disabled */
.pg-arrow[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* dots */
.pg-dots-viewport {
  flex: 1 1 auto;
  max-width: 420px; /* limite visual para que as arrows fiquem próximas; ajuste se quiser */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pg-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  transition: all .18s ease;
}

/* cada dot */
.pg-dot {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  border: none;
  background: #efefef;
  color: #222;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .12s ease, background .12s ease;
}

.pg-dot:hover { transform: translateY(-3px); }
.pg-dot:focus { box-shadow: 0 0 0 4px rgba(11,95,255,0.12); }

/* active */
.pg-dot.active {
  background: #0b5fff;
  color: #fff;
  transform: translateY(-2px);
}

/* responsivo — arrows um pouco menores em telas pequenas */
@media (max-width: 520px) {
  .pg-arrow { width: 34px; height: 34px; min-width: 34px; font-size: 14px; border-radius: 6px; }
  .pg-dot { width: 30px; height: 30px; min-width: 30px; }
}
/* ===== Bottom nav + vertical filter panel ===== */
.bottom-nav {
  position: fixed;
  left: 0;
  bottom: 10px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(6,18,36,0.12);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
}

/* items */
.bottom-nav .nav-item { display:flex; align-items:center; gap:5px;}
.bottom-nav .home-btn{
  text-decoration: none;
  display:flex;flex-direction:column;align-items:center;border:0;background:transparent;padding: clamp(6px,1.6vw,10px);;cursor:pointer;
}
.bottom-nav .home-btn svg{ width:22px;height:22px; color:#222; display:block; }

.bottom-nav .nav-center { flex: 1 1 auto; display:flex; justify-content:center;}
.bottom-nav .nav-logo { height:34px; max-height:34px; object-fit:contain; }

/* filter toggle (direita) */
.filter-toggle{
  display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:10px;
  border:1px solid rgba(0,0,0,0.06); background:transparent; cursor:pointer; font-weight:700;
}
.filter-toggle .filter-toggle-dot{
  width:36px;height:36px;border-radius:50%; display:block;
  background: conic-gradient(#ff1a1a 0deg,#ff8a1a 45deg,#ffea1a 90deg,#8aff1a 135deg,#1affea 180deg,#1a6eff 225deg,#b31aff 270deg,#ff1a9e 315deg);
  border:0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* painel que aparece acima da nav (vertical) */
.filter-panel{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + 64px); /* a 64px acima da nav; ajuste se quiser */
  width: calc(100% - 40px);
  max-width: 420px;
  z-index: 100000;
  pointer-events: none; /* por padrão não interage até abrir */
}

/* quando aberto, permite interação e mostra com fade */
.filter-panel.open { pointer-events: auto; }

/* adapta a section-filter-bar para formato vertical dentro do painel */
.filter-panel .section-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(6,18,36,0.12);
  background: #ffffff;
  max-height: calc(70vh);
  overflow: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}

/* quando o painel estiver open: animação (fade + slide) */
.filter-panel.open .section-filter-bar {
  opacity: 1;
  transform: translateY(0);
}

/* cada botão alinhado para vertical */
.filter-panel .section-filter-item{
  flex-direction:row;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  min-width:0;
  border-radius:8px;
}
.filter-panel .section-filter-item .filter-circle{ width:36px;height:36px;margin-bottom:0; }
.filter-panel .section-filter-item .filter-label{ font-size:0.95rem; color:#222; font-weight:700; }

/* responsivo: painel maior em mobile */
@media (max-width:480px){
  .filter-panel { max-width: 96%; bottom: calc(10px + 72px); }
  .bottom-nav { padding:10px; }
  .nav-logo { height:28px; }
}
/* ===== Bottom nav + vertical filter panel (compact + responsive via clamp) ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(8px, 2.2vw, 14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 14px);
  padding: clamp(6px, 1.6vw, 12px);
  max-width: 900px !important;
  width: calc(100% - 28px);
  box-sizing: border-box;
  background:linear-gradient(90deg,#1E1E2F,rgb(30, 30, 47))!important;
  border-radius: clamp(10px, 1.6vw, 16px);
  box-shadow: 0 8px 26px rgba(6,18,36,0.10);
}

/* items */
.bottom-nav .nav-item { display:flex; align-items:center;}
.bottom-nav .home-btn{margin-left: 10px;
  display:flex;flex-direction:column;align-items:center;border:0;background:transparent;padding:6px;cursor:pointer;
}
.bottom-nav .home-btn svg{ width: clamp(18px,3.6vw,26px); height: clamp(18px,3.6vw,26px); color:#ffffff; display:block; }
.bottom-nav .nav-label{     font-size: clamp(9px, 1.4vw, 11px); margin-top:4px; color:#ffffff; font-weight:900; line-height:0.5; }

/* center logo */
.bottom-nav .nav-center { flex: 1 1 auto; display:flex; justify-content:center; }
.bottom-nav .nav-logo {cursor: pointer;border-radius:10px;
  display:grid;place-items:center;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);}
.bottom-nav .title{font-weight:700;color:white; text-decoration: none !important;}
.bottom-nav .nav-logo img {
  width: clamp(80px,40vw,160px);
  height: auto;
  max-height: clamp(33px,56vw,78px);
  object-fit:contain;
}
/* filter toggle (apenas o ícone) */
.filter-toggle{
  margin-right: 10px;
  display:inline-flex; align-items:center; justify-content:center;
  padding: clamp(6px,1.6vw,10px);
  border-radius: clamp(8px,1.6vw,12px);
  border:1px solid rgba(0,0,0,0.06);
  background:transparent; cursor:pointer; line-height:0;
  min-width: 0;
}


/* o 'ponto' do filtro — muito menor e responsivo via clamp */
.filter-toggle .filter-toggle-dot{
  width: clamp(20px,4.2vw,34px);
  height: clamp(20px,4.2vw,34px);
  border-radius:50%;
  display:block;
  background: conic-gradient(#ff1a1a 0deg,#ff8a1a 45deg,#ffea1a 90deg,#8aff1a 135deg,#1affea 180deg,#1a6eff 225deg,#b31aff 270deg,#ff1a9e 315deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* painel que aparece acima da nav (vertical, centralizado) */
.filter-panel{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(clamp(8px,2.2vw,14px) + clamp(48px,9.6vw,72px)); /* deixa espaço da nav */
  width: min(96%, 420px);
  max-width: 420px;
  z-index: 100000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* quando aberto, permite interação */
.filter-panel.open { pointer-events: auto; }

/* adapta a section-filter-bar para formato vertical e centralizado */
.filter-panel .section-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: center;        /* centra horizontalmente */
  justify-content: center;    /* centra verticalmente */
  gap: clamp(8px,2vw,12px);
  padding: clamp(8px,1.8vw,12px);
  margin: 0;
  border-radius: clamp(10px,1.4vw,14px);
  box-shadow: 0 10px 30px rgba(6,18,36,0.12);
  background: #ffffff;
  max-height: calc(70vh);
  overflow: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
  box-sizing: border-box;
  min-width: clamp(120px,40vw,260px);
}

/* abrir: fade + slide */
.filter-panel.open .section-filter-bar {
  opacity: 1;
  transform: translateY(0);
}

/* cada item agora em coluna (ícone em cima, label embaixo) e centralizado */
.filter-panel .section-filter-item{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px,1.6vw,8px);
  padding: clamp(6px,1.6vw,8px);
  border-radius: clamp(8px,1.2vw,10px);
  min-width: 0;
  cursor: pointer;
  transition: background .12s ease, transform .08s ease;
}
.filter-panel .section-filter-item:hover { transform: translateY(-2px); background: rgba(0,0,0,0.03); }

/* círculo/ícone do filtro dentro do item (menor) */
.filter-panel .section-filter-item .filter-circle{
  width: clamp(18px,4vw,30px);
  height: clamp(18px,4vw,30px);
  border-radius:50%;
  margin-bottom: 0;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

/* label pequena (ainda visível dentro do painel) */
.filter-panel .section-filter-item .filter-label{
  font-size: clamp(10px,1.4vw,12px);
  color:#222;
  font-weight:700;
  text-align:center;
  line-height:1;
}

/* responsivo: pequenas adaptações em telas muito pequenas */
@media (max-width:420px){
  .filter-panel .section-filter-bar { width: 96%; min-width: 0; padding: 8px; }
  .bottom-nav { width: calc(100% - 18px); padding: 8px; }
  .nav-logo { height: clamp(18px,6.6vw,28px); }
}
/* ===== Remover sticky da topbar (garante que a section-filter-bar NÃO fique sticky) ===== */
.section-filter-bar.sticky,
.section-filter-bar[style*="position: sticky"],
.section-filter-bar[style*="position:fixed"] {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* ===== Bottom nav compacto (dot + texto "Filtros") ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(8px, 2.2vw, 14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 12px);
  padding: clamp(6px, 1.6vw, 10px);
  max-width: 1200px;
  width: calc(100% - 28px);
  box-sizing: border-box;
  background: rgba(255,255,255,0.96);
  border-radius: clamp(10px, 1.6vw, 16px);
  box-shadow: 0 8px 26px rgba(6,18,36,0.10);
}

/* nav items */
.bottom-nav .nav-item { display:flex; align-items:center;text-decoration: none;}
.bottom-nav .nav-center { flex: 1 1 auto; display:flex; justify-content:center;max-width: 130px; }

/* filter toggle: mostra o dot e o texto pequeno "Filtros" por baixo */
.filter-toggle {
  display:inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(4px,1.2vw,8px);
  border-radius: clamp(8px,1.2vw,12px);
  border:1px solid rgba(0,0,0,0.06);
  background: transparent;
  cursor: pointer;
  min-width: 0;
}
.filter-toggle .filter-toggle-dot{
  width: clamp(18px,4.2vw,34px);
  height: clamp(18px,4.2vw,34px);
  border-radius:50%;
  display:block;
  background: conic-gradient(#ff1a1a 0deg,#ff8a1a 45deg,#ffea1a 90deg,#8aff1a 135deg,#1affea 180deg,#1a6eff 225deg,#b31aff 270deg,#ff1a9e 315deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* texto "Filtros" abaixo do dot — pequeno e responsivo */
.filter-toggle .filter-toggle-text{
  display:block;
  font-size: clamp(9px,1.4vw,11px);
  font-weight:900;
  line-height:0.5;
  color:#ffffff;
}

/* painel compacto: grade de círculos (sem nomes) */
.filter-panel{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(clamp(8px,2.2vw,14px) + clamp(48px,9.6vw,72px));
  width: min(96%, 360px);
  max-width: 420px;
  z-index: 100000;
  pointer-events: none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0;
}

/* permitir interação quando aberto */
.filter-panel.open { pointer-events: auto; }

/* conteúdo compacto — grid de círculos, sem rótulos */
.filter-panel .bottom-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  gap: clamp(8px,1.8vw,10px);
  padding: clamp(8px,1.8vw,12px);
  border-radius: clamp(10px,1.4vw,14px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(6,18,36,0.12);
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}

/* abrir: fade + slide */
.filter-panel.open .bottom-filter-grid {
  opacity: 1;
  transform: translateY(0);
}

/* item do grid: apenas um botão circular bem pequeno (sem texto) */
.bottom-filter-item {
  display:flex;
  align-items:center;
  justify-content:center;
  width: clamp(34px,7vw,44px);
  height: clamp(34px,7vw,44px);
  border-radius:50%;
  cursor:pointer;
  border: 2px solid transparent;
  transition: transform .08s ease, box-shadow .08s ease, border-color .12s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,0.04);
  background: #fff;
}
.bottom-filter-item.small { width: clamp(28px,6vw,34px); height: clamp(28px,6vw,34px); }
.bottom-filter-item:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

/* estilo visual para "Todas" (diferenciar) */
.bottom-filter-item.all {
  border-color: rgba(0,0,0,0.12);
  background-color: #ffffff;
  color: #000 !important;
}

/* indicador interno (pode ser usado para cor ou ícone) */
.bottom-filter-item .inner-dot{
  width: 70%;
  height: 70%;
  border-radius:50%;
  background: #000;
  display:block;
  color: #000000 !important;
}

/* cores padrão (exemplos) */
.bottom-filter-item[data-color="branco"] { color: #ffffff; background: linear-gradient(180deg,#f3f3f3,#eaeaea); }
.bottom-filter-item[data-color="azul"] { color: #1a6eff; }
.bottom-filter-item[data-color="vermelho"] { color: #ff1a1a; }
.bottom-filter-item[data-color="amarelo"] { color: #ffea1a; }

/* acessibilidade: foco */
.bottom-filter-item:focus { outline: 3px solid rgba(34, 102, 255, 0.12); outline-offset: 2px; }

/* responsivo */
@media (max-width:420px){
  .filter-panel { bottom: calc(8px + 64px); width: 96%; }
  .bottom-filter-grid { grid-template-columns: repeat(auto-fit, minmax(28px, 1fr)); }
}
/* ajustes: painel vertical (à direita do toggle) */
.filter-panel.vertical {
  width: auto;       /* deixa o JS decidir a posição/fluxo */
  max-width: 220px;
  padding: 6px;
  pointer-events: auto;
  display: block;
}

/* container vertical */
.bottom-filter-vertical {
  background: linear-gradient(90deg, #1E1E2F, rgb(30, 30, 47)) !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(6,18,36,0.12);
  box-sizing: border-box;
  min-width: 44px;
}

/* reutiliza .bottom-filter-item mas força tamanho compacto vertical */
.bottom-filter-vertical .bottom-filter-item {
  width: clamp(36px,7vw,44px) !important;
  height: clamp(36px,7vw,44px) !important;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* inner dot visual */
.bottom-filter-vertical .inner-dot {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  display:block;
  background: currentColor;
}

/* pequenos ajustes responsivos */
@media (max-width:480px) {
  .filter-panel.vertical { max-width: 160px; }
  .bottom-filter-vertical { gap: 6px; padding: 6px; }
  .bottom-filter-vertical .bottom-filter-item { width: clamp(30px,9vw,36px); height: clamp(30px,9vw,36px); }
}
/* ===== Sync dot size via CSS var e ajustes de posição vertical ===== */
:root {
  /* ajuste aqui se quiser outro comportamento; clamped para responsividade */
  --filter-dot-size: clamp(18px, 4.2vw, 34px);
}

/* filter toggle dot usa a variável */
.filter-toggle .filter-toggle-dot{
  width: var(--filter-dot-size);
  height: var(--filter-dot-size);
  border-radius: 50%;
  background: conic-gradient(#ff1a1a 0deg,#ff8a1a 45deg,#ffea1a 90deg,#8aff1a 135deg,#1affea 180deg,#1a6eff 225deg,#b31aff 270deg,#ff1a9e 315deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* painel vertical */
.filter-panel.vertical {
  width: auto;
  max-width: 260px;
  padding: 6px;
  pointer-events: auto;
  display: block;
}

/* container vertical */
.bottom-filter-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(6,18,36,0.12);
  box-sizing: border-box;
  min-width: 48px;
}

/* bottom items: força o mesmo tamanho do toggle dot */
.bottom-filter-vertical .bottom-filter-item {
  width: var(--filter-dot-size) !important;
  height: var(--filter-dot-size) !important;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0;
  border-radius: 50%;
}

/* inner dot ocupando 70% do botão */
.bottom-filter-vertical .inner-dot {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  display:block;
  background: currentColor;
}

/* all-button: preservar borda visual */
.bottom-filter-vertical .bottom-filter-item.all .inner-dot {
  background: transparent !important;
  border-radius: 50%;
}

/* responsivo */
@media (max-width:480px) {
  :root { --filter-dot-size: clamp(18px, 6.6vw, 34px); }
  .filter-panel.vertical { max-width: 180px; }
  .bottom-filter-vertical { gap: 6px; padding: 6px; }
}
@media (max-width:585px) {
.controls{display: flex; flex-direction: column; align-items: start; padding: 8px 12px; border-top: 1px solid #eee; background: #f9f9f9;}
.section-select-wrap{ width: 100%; margin: 0 !important;}
.section-select{ max-width: 90%;}
}

.bottom-nav .home-btn:hover{
  transform: translateY(-1.5px);
}
.bottom-nav .nav-item:hover{
  transform: translateY(-3px);
}
.color-hex-wrap{
  display: inline-flex;
  align-items: center;
}

.hex{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f7f7f7;
  color: #111;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04) inset;
  user-select: all;
  margin: 0 !important;
}

.hex-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #222; /* controla a cor do stroke do svg via currentColor */
  transition: transform .12s ease, background .12s ease;
}

.hex-icon:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.03);
}

.hex-icon:active{ transform: translateY(0); }

/* estado visual breve após copiar */
.hex-icon.copied{
  background: rgba(0,128,0,0.08);
  color: green;
}

