/* ACDC Casa v402 — faixa de subcategorias. Sem dependência de JavaScript. */
body.acdc-theme.template-category .acdc-category-navigation,
body.acdc-theme.template-category .acdc-category-navigation * { box-sizing: border-box; }

body.acdc-theme.template-category .acdc-category-navigation {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 6px 0 24px;
  padding: 14px 0 17px;
  border-bottom: 1px solid #e8e8e8;
  color: #111;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
body.acdc-theme.template-category .acdc-category-navigation-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
  padding: 0 4px;
  margin: 0 0 12px;
}
body.acdc-theme.template-category .acdc-category-navigation-label {
  flex: 0 0 auto;
  margin: 0;
  color: #626262;
  font: 600 10px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.acdc-theme.template-category .acdc-category-navigation-rule {
  flex: 1 1 auto;
  min-width: 12px;
  height: 1px;
  background: #ededed;
}
body.acdc-theme.template-category .acdc-category-navigation-hint { display: none; }

body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  overflow: visible;
}
body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 11px;
  min-width: 0;
  min-height: 52px;
  max-width: 100%;
  margin: 0;
  padding: 13px 20px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fafafa;
  color: #333;
  font: 500 14px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  text-align: left;
  box-shadow: none;
  scroll-snap-align: start;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
body.acdc-theme.template-category .acdc-category-chip-label {
  min-width: 0;
  max-width: 24ch;
  overflow-wrap: anywhere;
}
body.acdc-theme.template-category .acdc-category-chip-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chip:hover {
  border-color: #aaa;
  background: #f1f1f1;
  color: #111;
}
body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chip.is-current,
body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chip[aria-current="page"] {
  border-color: #111;
  background: #111;
  color: #fff;
  box-shadow: 0 3px 9px rgba(0,0,0,.09);
}
body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chip.is-current:hover { background: #292929; }
body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chip:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 11px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b6b6b6 #f2f2f2;
  }
  body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chips::-webkit-scrollbar { display: block; height: 3px; }
  body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chips::-webkit-scrollbar-track { background: #f2f2f2; border-radius: 4px; }
  body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chips::-webkit-scrollbar-thumb { background: #b6b6b6; border-radius: 4px; }
}

@media (max-width: 767px) {
  body.acdc-theme.template-category .acdc-category-navigation { margin-bottom: 18px; padding-top: 10px; padding-bottom: 12px; }
  body.acdc-theme.template-category .acdc-category-navigation-heading { gap: 11px; margin-bottom: 10px; }
  body.acdc-theme.template-category .acdc-category-navigation-label { font-size: 9px; letter-spacing: .1em; }
  body.acdc-theme.template-category .acdc-category-navigation-hint {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #666;
    font: 400 10px/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
  }
  body.acdc-theme.template-category .acdc-category-navigation-hint svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
  body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chips { gap: 8px; }
  body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chip { gap: 9px; min-height: 48px; padding: 11px 16px; border-radius: 9px; font-size: 13px; }
  body.acdc-theme.template-category .acdc-category-chip-icon { flex-basis: 20px; width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  body.acdc-theme.template-category .acdc-category-navigation .acdc-category-chip { transition: none; }
}
