/* ==========================================================
   ALLO NATUREL — ONGLETS DES PAGES CATEGORIES
   ========================================================== */

body#category:has(.an-category-content-tabs) .category__additional-description,
body#category.an-has-category-tabs .category__additional-description {
  display: none !important;
}

.an-category-content-tabs {
  width: 100%;
  max-width: 1180px;
  margin: 70px auto 45px;
  font-family: "Geist", Arial, sans-serif;
  color: #355f5a;
}

.an-category-content-tabs__nav {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 0 4px;
  border-bottom: 1px solid rgba(7, 87, 79, .14);
  scrollbar-width: none;
}

.an-category-content-tabs__nav::-webkit-scrollbar {
  display: none;
}

.an-category-content-tabs__button {
  position: relative;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: #708b87;
  font-family: "Geist", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s ease;
}

.an-category-content-tabs__button:hover,
.an-category-content-tabs__button:focus-visible,
.an-category-content-tabs__button.is-active {
  color: #07574f;
}

.an-category-content-tabs__button:focus-visible {
  outline: 2px solid rgba(7, 87, 79, .35);
  outline-offset: -2px;
  border-radius: 8px 8px 0 0;
}

.an-category-content-tabs__button.is-active::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #ffa149;
}

.an-category-content-tabs__content {
  padding: 44px 52px 48px;
  background: #f7f4ee;
  border-radius: 0 0 18px 18px;
}

.an-category-content-tabs__panel[hidden] {
  display: none !important;
}

.an-category-content-tabs__panel > :first-child {
  margin-top: 0 !important;
}

.an-category-content-tabs__panel > :last-child {
  margin-bottom: 0 !important;
}

.an-category-content-tabs__panel h2 {
  margin: 0 0 20px;
  font-family: "Bagrile", "Instrument Serif", Georgia, serif !important;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
  color: #0d4c46;
}

.an-category-content-tabs__panel h3 {
  margin: 30px 0 12px;
  font-family: "Geist", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #0d4c46;
}

.an-category-content-tabs__panel p {
  max-width: 950px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #58716d;
}

.an-category-content-tabs__panel ul,
.an-category-content-tabs__panel ol {
  max-width: 950px;
  margin: 18px 0 26px;
  padding-left: 24px;
  color: #58716d;
}

.an-category-content-tabs__panel li {
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.6;
}

.an-category-content-tabs__panel a {
  color: #0d4c46 !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(13, 76, 70, .3);
  text-underline-offset: 3px;
}

.an-category-content-tabs__panel a:hover {
  color: #ffa149 !important;
}

.an-category-content-tabs__panel strong {
  color: #0d4c46;
  font-weight: 600;
}

.an-category-content-tabs__panel img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 14px;
}

@media (max-width: 767px) {
  .an-category-content-tabs {
    margin: 45px auto 30px;
  }

  .an-category-content-tabs__nav {
    padding: 0;
  }

  .an-category-content-tabs__button {
    min-height: 47px;
    padding: 0 15px;
    font-size: 12px;
  }

  .an-category-content-tabs__button.is-active::after {
    left: 15px;
    right: 15px;
  }

  .an-category-content-tabs__content {
    padding: 30px 22px 34px;
    border-radius: 0 0 14px 14px;
  }

  .an-category-content-tabs__panel h2 {
    font-size: 28px;
  }

  .an-category-content-tabs__panel h3 {
    font-size: 17px;
  }

  .an-category-content-tabs__panel p,
  .an-category-content-tabs__panel li {
    font-size: 14px;
  }
}
