/* =========================
   APEX CATÁLOGO (LIGHT)
   - Fundo claro
   - Verde só como acento
========================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');
:root{
  --apx-green:  #2E4D32;   /* verde da marca */
  --apx-green2: #3E6A43;   /* destaque suave */
  --apx-bg:     #F6F8F6;   /* fundo claro */
  --apx-bg2:    #EEF3EE;   /* variação */
  --apx-ink:    #0B1220;   /* texto */
  --apx-muted:  rgba(11,18,32,.70);
  --apx-border:  #63ab6d;
  --apx-card:   #FFFFFF;
  --apx-card2:  rgba(255,255,255,.70);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;

  --shadow-1: 0 12px 36px rgba(15,23,42,.10);
  --shadow-2: 0 22px 70px rgba(15,23,42,.12);
}

/* Botão fechar no final do fornecedor */
.apxcat__close-bottom {
  display: flex;
  justify-content: center;
  margin: 32px 0 16px;
}

.apxcat__btn-close {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #2e7d32;
  background: #ffffff;
  color: #2e7d32;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.apxcat__btn-close:hover {
  background: #2e7d32;
  color: #ffffff;
}


*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--apx-bg);
  color: var(--apx-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{ color: inherit; text-decoration:none; }
button{ font: inherit; }

/* ===== seção ===== */
.apxcat{
  position:relative;
  overflow:hidden;
  padding: 86px 0 96px;
  color: var(--apx-ink);
}

.apxcat__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(46,77,50,.08), transparent 60%),
    radial-gradient(900px 520px at 95% 20%, rgba(46,77,50,.06), transparent 62%),
    linear-gradient(180deg, var(--apx-bg) 0%, var(--apx-bg2) 45%, var(--apx-bg) 100%);
}

.apxcat__bg::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.10;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(11,18,32,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 79, 172, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 16%, #000, transparent 75%);
          mask-image: radial-gradient(60% 55% at 50% 16%, #000, transparent 75%);
}

.apxcat__container{
  position:relative;
  z-index:1;
  max-width:85%;
  margin:0 auto;
  padding:0 16px;
  
}

/* ===== header ===== */
.apxcat__head{
  text-align:center;
  max-width: 920px;
  margin:0 auto 22px;

}

.apxcat__kicker{
  display:inline-block;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(11,18,32,.65);
}

.apxcat__title{
  margin: 10px 0 10px;
  font-weight: 950;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.06;
  color: #0B1220;
}
.apxcat__title span{ color: var(--apx-green); }

.apxcat__sub{
  margin:0 auto;
  max-width:78ch;
  color: var(--apx-muted);
  line-height:1.75;
  font-size: 1rem;
}

/* Botão fechar no final do fornecedor */
.apxcat__close-bottom {
  display: none;
  justify-content: center;
  margin: 32px 0 24px;
}

/* Só aparece quando fornecedor está aberto */
.apxcat__supplier.is-open .apxcat__close-bottom {
  display: flex;
}

.apxcat__btn-close {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid #2e7d32;
  background: #ffffff;
  color: #2e7d32;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.apxcat__btn-close:hover {
  background: #2e7d32;
  color: #ffffff;
}


/* ===== intro glass ===== */
.apxcat__intro{
  min-width: 80%;
  margin: 18px auto 18px;
  border-radius: var(--r-xl);
  border: 1px solid var(--apx-border);
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow-2);
  padding: 16px 16px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.apxcat__badge{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--apx-border);
  background: rgba(46,77,50,.06);
  font-weight: 900;
  font-size: .82rem;
}

.apxcat__badge-dot{
  width:10px; height:10px;
  border-radius: 999px;
  background: var(--apx-green);
  box-shadow: 0 0 0 4px rgba(46,77,50,.12);
}

.apxcat__intro-left{
  flex: 1 1 420px;
  min-width: 280px;
}
.apxcat__intro-title{
  margin: 10px 0 6px;
  font-weight: 950;
  font-size: 1.22rem;
  color: #0B1220;
}
.apxcat__intro-text{
  margin:0;
  color: var(--apx-muted);
  line-height: 1.75;
  font-size: .98rem;
}

.apxcat__intro-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.apxcat__chip{
  appearance:none;
  border: 1px solid var(--apx-border);
  background: rgba(255,255,255,.85);
  color:#0B1220;
  border-radius: 999px;
  padding: .62rem .85rem;
  font-weight: 950;
  font-size: .86rem;
  display:inline-flex;
  align-items:center;
  gap: .55rem;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

/* botão "Fechar catálogo" */
.apxcat__chip--close{
  border-color: rgba(11,18,32,.18);
  background: rgba(11,18,32,.04);
}
.apxcat__chip--close:hover{
  background: #fff;
}
.apxcat__chip:hover{
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(11,18,32,.16);
}
.apxcat__chip:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(46,77,50,.18);
}

.apxcat__dot{
  width:10px; height:10px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(11,18,32,.06);
}
.apxcat__dot--mettler{ background: #2E4D32; }
.apxcat__dot--satron{ background: #3E6A43; }
.apxcat__dot--donaldson{ background: #6A8F6E; }

/* ===== accordion ===== */
.apxcat__supplier{
  margin-top: 14px;
  border-radius: var(--r-xl);
  border: 1px solid var(--apx-border);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.apxcat__supplier-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
}

.apxcat__supplier-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}

.apxcat__supplier-logo{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border: 1px solid var(--apx-border);
  background: rgba(46,77,50,.07);
}
.apxcat__supplier-logo svg{
  width: 22px;
  height: 22px;
  fill: var(--apx-green);
  opacity: .95;
}

.apxcat__supplier-title{
  margin:0;
  font-weight: 950;
  font-size: 1.06rem;
  line-height: 1.1;
}
.apxcat__supplier-meta{
  margin: 3px 0 0;
  color: var(--apx-muted);
  font-size: .88rem;
  line-height: 1.35;
}

.apxcat__supplier-right{
  display:flex;
  align-items:center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* search */
.apxcat__search{
  display:flex;
  align-items:center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--apx-border);
  background: rgba(255,255,255,.92);
  padding: 8px 10px;
  min-width: 240px;
}
.apxcat__search svg{
  width: 18px; height: 18px;
  fill: rgba(11,18,32,.78);
  flex: 0 0 auto;
}
.apxcat__search input{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  color:#0B1220;
  font-weight: 850;
  font-size: .92rem;
}
.apxcat__search input::placeholder{
  color: rgba(11,18,32,.55);
  font-weight: 800;
}

/* count + toggle */
.apxcat__count{
  font-weight: 950;
  font-size: .84rem;
  color: rgba(11,18,32,.82);
  border-radius: 999px;
  border: 1px solid var(--apx-border);
  background: rgba(46,77,50,.06);
  padding: .36rem .58rem;
}

.apxcat__toggle{
  display:inline-flex;
  align-items:center;
  gap: .55rem;
  font-weight: 950;
  font-size: .84rem;
  border-radius: 14px;
  border: 1px solid var(--apx-border);
  background: rgba(255,255,255,.92);
  padding: .56rem .72rem;
  color:#0B1220;
}
.apxcat__toggle svg{
  width: 18px; height: 18px;
  fill: rgba(11,18,32,.78);
  transition: transform .18s ease;
}

/* body height animation */
.apxcat__supplier-body{
  height: 0;
  overflow: hidden;
  transition: height .35s ease;
  border-top: 1px solid rgba(11,18,32,.08);
  background: rgba(255,255,255,.62);
}
.apxcat__supplier.is-open .apxcat__toggle svg{ transform: rotate(180deg); }

.apxcat__supplier-inner{ padding: 14px 14px 16px; }

/* grid produtos */
.apxcat__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.apxcat__card{
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,.10);
  background: var(--apx-card);
  box-shadow: 0 16px 40px rgba(15,23,42,.08);
  overflow:hidden;
  display:flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.apxcat__card:hover{
  transform: translateY(-3px);
  border-color: rgba(46,77,50,.22);
  box-shadow: 0 18px 55px rgba(15,23,42,.12);
}

.apxcat__card-media{
  height: 190px;              /* ajuste: 170~230 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;        /* fundo leve */
  border-radius: 16px;
  overflow: hidden;
}

.apxcat__card-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;        /* ✅ não corta */
  padding: 12px;              /* dá “respiro” */
}


.apxcat__card-body{
  padding: 12px 12px 12px;
  display:flex;
  flex-direction: column;
  gap: 7px;
 flex:1;
}
.apxcat__card-title{
  margin:0;
  font-family: "Rajdhani", sans-serif;
  font-weight: 950;
  color: var(--apx-green);
  font-size: 1.1rem;
  line-height: 1.25;
}
.apxcat__card-text{
  margin:0;
  color: rgba(11,18,32,.72);
  font-size: .86rem;
  line-height: 1.55;
}

.apxcat__pills{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.apxcat__pill{
  font-size: .72rem;
  font-weight: 950;
  border-radius: 999px;
  padding: .15rem .55rem;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(46,77,50,.06);
  color: rgba(11,18,32,.78);
}

/* actions */
.apxcat__actions{
  margin-top:auto;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.apxcat__btn{
  border-radius: 14px;
  padding: .56rem .8rem;
  font-weight: 950;
  font-size: .84rem;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  color:#0B1220;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.apxcat__btn:hover{
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(46,77,50,.22);
}
.apxcat__btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(46,77,50,.18);
}
.apxcat__btn--primary{
  background: rgba(46,77,50,.95);
  border-color: rgba(46,77,50,.95);
  color: #fff;
}
.apxcat__btn--primary:hover{ background: rgba(46,77,50,1); }
.apxcat__btn svg{
  width: 16px; height: 16px;
  fill: currentColor;
  opacity:.95;
}

/* rail */
.apxcat__rail{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  pointer-events: none;
}
.apxcat__rail--left{ left: 8px; }
.apxcat__rail--right{ right: 8px; }

.apxcat__railbtn{
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  color: var(--apx-green);
  display:grid;
  place-items:center;
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.apxcat__railbtn:hover{
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(46,77,50,.22);
}
.apxcat__railbtn.is-active{
  box-shadow:
    0 0 0 4px rgba(46,77,50,.16),
    0 14px 34px rgba(15,23,42,.12);
}
.apxcat__railbtn svg{
  width: 22px;
  height: 22px;
  fill: var(--apx-green);
  opacity: .95;
}

/* ================================
   DONALDSON – imagens maiores
================================ */

/* aumenta o espaço do container da imagem */
[data-apx-supplier="donaldson"] .apxcat__card-media {
  height: 540px;          /* padrão costuma ser ~160–180 */
  padding: 16px;
}

/* faz a imagem ocupar melhor o espaço */
[data-apx-supplier="donaldson"] .apxcat__card-media img {
  max-height: 100%;
  width: 100%;
  object-fit: contain;    /* mantém proporção */
  background: #ffffff;   /* fundo branco garantido */
}


@media (max-width: 575.98px) {
  [data-apx-supplier="donaldson"] .apxcat__card-media {
    height: 280px;
    padding: 14px;
  }
}


/* responsive */
@media (max-width: 1199.98px){
  .apxcat__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px){
  .apxcat__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .apxcat__rail{
    top:auto;
    bottom: 10px;
    left:50%;
    right:auto;
    transform:none;
    translate: -50% 0;
    flex-direction: row;
  }
  .apxcat__rail--right{ display:none; }
  .apxcat__search{ min-width: 200px; }
}
@media (max-width: 575.98px){
  .apxcat{ padding: 72px 0 84px; }
  .apxcat__grid{ grid-template-columns: 1fr; }
  .apxcat__search{ width: 100%; min-width: auto; }
  .apxcat__intro-actions{ justify-content: flex-start; width: 100%; }
}

/* ===== FIX MOBILE (accordion header não cortar) ===== */
@media (max-width: 575.98px){

  /* aproveita melhor a tela (se seu container estiver "apertando") */
  .apxcat__container{
    max-width: 100%;
    padding: 0 12px;
  }

  /* header vira coluna */
  .apxcat__supplier-head{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* esquerda não pode ter min-width grande no mobile */
  .apxcat__supplier-left{
    min-width: 0;
    width: 100%;
  }

  /* direita ocupa a linha toda e distribui */
  .apxcat__supplier-right{
    width: 100%;
    justify-content: space-between;
  }

  /* evita “estouro” de textos longos */
  .apxcat__supplier-title,
  .apxcat__supplier-meta{
    overflow-wrap: anywhere;
  }

  /* o botão de busca (quando existir) já está ok com width 100%,
     mas garante que não force largura */
  .apxcat__search{
    width: 100%;
    min-width: 0;
  }
}
