*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --blue:#0d1333;--blue2:#1a2350;--blue3:#2f3d7a;--blue4:#e7e9f5;
  --silver:#c0c8d8;--dark:#0a0d1a;--dark2:#10152b;
  --white:#fff;--off:#f7f8fc;--border:#e2e6f0;
  --text:#0d1020;--muted:#58607a;--light:#8892aa;
}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{font-family:'Manrope',system-ui,sans-serif;color:var(--text);background:var(--white);font-size:16px;line-height:1.6}

/* NAV */
nav{position:fixed;top:14px;left:50%;transform:translateX(-50%);width:min(1180px,92%);z-index:200;height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 24px;background:rgba(10,13,26,.85);backdrop-filter:blur(14px);border:1px solid rgba(192,200,216,.12);border-radius:999px;box-shadow:0 12px 32px rgba(10,13,26,.25)}
.nav-links{display:flex;gap:2rem;list-style:none;align-items:center}
.nav-links a{color:rgba(192,200,216,.7);text-decoration:none;font-size:12.5px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;transition:color .2s}
.nav-links a:hover{color:#fff}
.nav-contact{color:#fff!important;background:var(--blue);padding:9px 20px;border-radius:999px;font-size:12px!important;border:1px solid var(--blue3)}
.nav-contact:hover{background:var(--blue3)!important}
.ham{display:none;background:none;border:none;color:rgba(192,200,216,.7);font-size:20px;cursor:pointer}

/* BREADCRUMB */
.breadcrumb{background:var(--off);border-bottom:1px solid var(--border);padding:.75rem 6%;font-size:12.5px;color:var(--muted);margin-top:92px}
.breadcrumb a{color:var(--blue);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{margin:0 .4rem;opacity:.5}

/* HEADER */
.cat-header{max-width:1400px;margin:0 auto;padding:2.4rem 6% 0}
.cat-header h1{font-size:2rem;font-weight:800}
.cat-header p{color:var(--muted);margin-top:.5rem;font-size:15px;max-width:640px}

/* LAYOUT */
.cat-layout{max-width:1400px;margin:0 auto;padding:2rem 6% 4rem;display:grid;grid-template-columns:240px 1fr;gap:2.6rem;align-items:start}

/* SIDEBAR / FILTERS */
.filters{position:sticky;top:90px;display:flex;flex-direction:column;gap:1.8rem}
.filter-group h4{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--light);margin-bottom:.8rem}
.filter-item{display:flex;align-items:center;gap:.55rem;font-size:13.5px;color:var(--text);padding:.3rem 0;cursor:pointer}
.filter-item input{width:15px;height:15px;accent-color:var(--blue)}
.filter-count{margin-left:auto;color:var(--light);font-size:12px}
.filter-clear{font-size:12.5px;color:var(--blue);text-decoration:none;font-weight:600}

/* PREÇO */
.price-slider{padding:.4rem 0 .2rem}
.price-track{position:relative;height:4px;background:var(--border);border-radius:2px;margin:0 8px}
.price-fill{position:absolute;left:12%;right:18%;top:0;bottom:0;background:var(--blue);border-radius:2px}
.price-handle{position:absolute;top:50%;width:14px;height:14px;background:#fff;border:3px solid var(--blue);border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 1px 3px rgba(13,19,51,.25)}
.price-inputs{display:flex;align-items:center;gap:.6rem;margin-top:1rem}
.price-box{flex:1;min-width:0;border:1px solid var(--border);border-radius:8px;padding:.55rem .6rem;font-size:13px;font-weight:600;color:var(--text);text-align:center;background:#fff}
.price-sep{color:var(--light);font-size:12px;flex-shrink:0}

/* PRECISA DE AJUDA */
.help-card{margin-top:.5rem;background:var(--dark);border-radius:16px;padding:1.6rem 1.5rem;color:#fff}
.help-icon{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-size:19px;margin-bottom:1rem}
.help-title{font-size:15.5px;font-weight:800;margin-bottom:.5rem}
.help-text{font-size:12.5px;color:rgba(192,200,216,.6);line-height:1.6;margin-bottom:1.3rem}
.help-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;background:var(--blue);color:#fff!important;text-decoration:none;padding:.8rem 1rem;border-radius:999px;font-size:12.5px;font-weight:700;border:1px solid var(--blue3)}
.help-btn:hover{background:var(--blue3)}
.help-btn svg{width:16px;height:16px;fill:#fff;flex-shrink:0}

/* TOP BAR */
.cat-topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.6rem;flex-wrap:wrap}
.cat-search{flex:1;min-width:220px;position:relative}
.cat-search input{width:100%;padding:.7rem 1rem .7rem 2.4rem;border:1px solid var(--border);border-radius:7px;font-family:inherit;font-size:14px;background:var(--off)}
.cat-search input:focus{outline:none;border-color:var(--blue)}
.cat-search::before{content:'🔍';position:absolute;left:.8rem;top:50%;transform:translateY(-50%);font-size:13px;opacity:.6}
.cat-count{font-size:13px;color:var(--muted);white-space:nowrap}
.cat-sort{padding:.6rem .9rem;border:1px solid var(--border);border-radius:7px;font-family:inherit;font-size:13.5px;background:#fff;color:var(--text)}

/* GRID */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.4rem}
.product-card{border:1px solid var(--border);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,border-color .2s;background:#fff}
.product-card:hover{border-color:var(--blue3);box-shadow:0 8px 24px rgba(13,19,51,.08)}
.product-img{aspect-ratio:1/1;background:var(--off);display:flex;align-items:center;justify-content:center;color:var(--light);font-size:12.5px;text-align:center;padding:1rem}
.product-body{padding:.9rem 1rem 1.1rem;display:flex;flex-direction:column;gap:.3rem;flex:1}
.product-brand{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--blue3)}
.product-name{font-size:14.5px;font-weight:700;line-height:1.35}
.product-cat{font-size:12px;color:var(--muted)}
.product-foot{display:flex;align-items:center;justify-content:space-between;margin-top:.6rem}
.stock-pill{font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:20px}
.stock-pill.in{background:#e8f5e9;color:#2e7d32}
.stock-pill.consult{background:#fff3e0;color:#b26a00}
.product-link{font-size:12.5px;font-weight:700;color:var(--blue);text-decoration:none}
.product-link:hover{text-decoration:underline}

/* PAGINATION */
.pagination{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:2.4rem}
.pagination a,.pagination span{min-width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:13px;text-decoration:none;color:var(--text)}
.pagination a:hover{background:var(--off)}
.pagination .active{background:var(--blue);color:#fff}

/* FOOTER */
footer{background:var(--dark);padding:2rem 6%;border-top:1px solid rgba(192,200,216,.08)}
.footer-inner{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.footer-legal{font-size:11px;color:rgba(192,200,216,.22);line-height:1.65;max-width:800px}

/* WA FLOAT */
.wa{position:fixed;bottom:1.8rem;right:1.8rem;width:48px;height:48px;background:var(--blue);border-radius:50%;display:grid;place-items:center;text-decoration:none;border:2px solid rgba(192,200,216,.15);z-index:999;box-shadow:0 4px 16px rgba(13,19,51,.5);transition:transform .2s}
.wa:hover{transform:scale(1.08)}
.wa svg{width:22px;height:22px;fill:#fff}

@media(max-width:900px){
  .cat-layout{grid-template-columns:1fr}
  .filters{position:static;flex-direction:row;flex-wrap:wrap;gap:1.2rem 2rem}
  .nav-links li:not(:last-child){display:none}
  .ham{display:block}
}

/* CATÁLOGO DINÂMICO WORDPRESS */
.cat-layout{margin-top:0}
.filter-empty{font-size:12.5px;color:var(--light)}
.filter-submit,.cat-search-submit{border:0;background:var(--blue);color:#fff;border-radius:7px;padding:.7rem 1rem;font-family:inherit;font-size:12.5px;font-weight:800;cursor:pointer;transition:background .2s}
.filter-submit:hover,.cat-search-submit:hover{background:var(--blue2)}
.cat-search-submit{min-height:40px}
.product-img{padding:0;text-decoration:none;overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:contain;padding:1rem;display:block;transition:transform .2s}
.product-card:hover .product-img img{transform:scale(1.025)}
.product-name{color:var(--text);text-decoration:none}
.product-name:hover{color:var(--blue3)}
.product-ref-card{font-size:10.5px;color:var(--light);margin-top:.1rem}
.stock-pill.unavailable{background:#f3f4f6;color:#667085}
.catalog-empty{border:1px dashed var(--border);background:var(--off);border-radius:10px;padding:3rem 1.5rem;text-align:center}
.catalog-empty h2{font-size:1.2rem;margin-bottom:.5rem}.catalog-empty p{color:var(--muted);font-size:13.5px;margin-bottom:1rem}.catalog-empty a{color:var(--blue);font-weight:700;text-decoration:none}
.pagination .page-numbers.current{background:var(--blue);color:#fff}
@media(max-width:650px){.cat-topbar{align-items:stretch}.cat-search{width:100%}.cat-search-submit{width:100%}.cat-sort{width:100%}}

/* FILTRO HIERÁRQUICO E CATÁLOGO MAIS DENSO */
.cat-layout{grid-template-columns:285px 1fr}.filter-hint{font-size:11px;color:var(--light);line-height:1.5;margin:-.35rem 0 .75rem}.filter-category-tree{display:flex;flex-direction:column;gap:.22rem}.filter-cat-group{border-bottom:1px solid var(--border);padding:.12rem 0}.filter-cat-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.45rem 0;font-size:13px;font-weight:700;color:var(--text)}.filter-cat-group>summary::-webkit-details-marker{display:none}.filter-cat-group>summary:before{content:'›';font-size:15px;color:var(--light);width:12px;transition:transform .15s}.filter-cat-group[open]>summary:before{transform:rotate(90deg)}.filter-cat-group>summary>span:first-of-type{flex:1}.filter-cat-children{padding:0 0 .35rem 1rem;border-left:1px solid var(--border);margin-left:.35rem}.filter-item-all{font-weight:700;color:var(--blue3)}.filter-cat-leaf{padding-left:.1rem}.filter-cat-depth-2,.filter-cat-depth-3{font-size:12.5px}.filter-cat-group .filter-cat-group{border-bottom:0}.filter-cat-group .filter-cat-group>summary{font-size:12.5px;font-weight:600;padding:.35rem 0}.product-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.2rem}.product-card{min-width:0}.pagination{padding-bottom:1rem}
@media(max-width:900px){.cat-layout{grid-template-columns:1fr}.filter-group-categories{width:100%}.filter-category-tree{display:grid;grid-template-columns:1fr 1fr;gap:.4rem 1.2rem}.filter-cat-group{break-inside:avoid}}@media(max-width:600px){.filter-category-tree{grid-template-columns:1fr}}

/* Botão flutuante de aplicação de filtros */
.filter-submit-floating{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%,calc(100% + 48px));
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.7rem;
  min-width:190px;
  padding:.9rem 1.25rem;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:var(--blue);
  color:#fff;
  box-shadow:0 14px 36px rgba(10,13,26,.3);
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:transform .22s ease,opacity .22s ease,background .18s ease;
}
.filter-submit-floating.is-visible{
  transform:translate(-50%,0);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.filter-submit-floating:hover{background:var(--blue2)}
.filter-submit-floating.is-submitting{opacity:.75;cursor:wait;pointer-events:none}
.filter-submit-floating-arrow{font-size:17px;line-height:1;transition:transform .18s ease}
.filter-submit-floating:hover .filter-submit-floating-arrow{transform:translateX(3px)}

@media(min-width:901px){
  .filter-submit-floating{
    left:max(165px,calc((100vw - 1400px)/2 + 145px));
  }
  .filter-submit-floating.is-visible{
    transform:translate(-50%,0);
  }
}

@media(max-width:900px){
  .filter-submit-floating{
    left:16px;
    right:16px;
    bottom:max(16px,env(safe-area-inset-bottom));
    width:auto;
    min-width:0;
    transform:translateY(calc(100% + 40px));
  }
  .filter-submit-floating.is-visible{transform:translateY(0)}
}
