/* Category / subcategory pages — Bixoto-style hero with child grid */

.content:has(.cc-categoryPage) {
  padding-top: 0;
}

.content:has(.cc-categoryPage) > .inside {
  padding-top: 0;
}

.content .inside .cc-categoryPage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cc-categoryHero.cc-infoPage__hero {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: auto;
  padding-top: clamp(36px, 5vw, 52px);
  padding-bottom: clamp(32px, 4vw, 44px);
}

.cc-categoryHero__inner {
  text-align: left;
}

.cc-categoryHero__parent {
  margin: 0 0 8px;
  font-family: var(--cc-font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #606060;
}

.cc-categoryHero__title {
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  font-family: var(--cc-font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: left;
  color: #141414;
}

.cc-categoryHero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}

@media (min-width: 640px) {
  .cc-categoryHero__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cc-categoryHero__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .cc-categoryHero__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.cc-categoryHero__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #111;
  background: #eceae7;
  font-family: var(--cc-font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.cc-categoryHero__card:hover {
  background: #e0ddd8;
  text-decoration: none;
  color: #111;
}

.cc-categoryHero__card.isActive,
.cc-categoryHero__card[aria-current="page"] {
  background: #ddd9d4;
}

.cc-categoryPage .categorie.cc-filtersLayout {
  margin-top: clamp(32px, 4vw, 48px);
}

/* Mobile: compact chip wrap instead of tall 2-col cards */
@media (max-width: 767px) {
  .cc-categoryHero.cc-infoPage__hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .cc-categoryHero__parent {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .cc-categoryHero__title {
    margin-bottom: 12px;
    font-size: 1.45rem;
  }

  .cc-categoryHero__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cc-categoryHero__card {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 0;
    max-width: 100%;
    padding: 6px 11px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }

  .cc-categoryHero__card:hover {
    background: #fff;
    border-color: var(--cc-bx-accent, #ff4200);
    color: #111;
  }

  .cc-categoryHero__card.isActive,
  .cc-categoryHero__card[aria-current="page"] {
    border-color: var(--cc-bx-accent, #ff4200);
    background: var(--cc-bx-accent-soft, #fff4f2);
    color: var(--cc-bx-accent, #ff4200);
  }

  .cc-categoryPage .categorie.cc-filtersLayout {
    margin-top: 20px;
  }
}
