/* Jora Naturals visual Ingredients Library */

.ingredients-library-page {
  background: #f7f3ec;
}

.ingredients-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  background:
    radial-gradient(circle at 78% 18%, rgba(199, 166, 107, 0.26), transparent 24%),
    radial-gradient(circle at 12% 84%, rgba(140, 148, 123, 0.18), transparent 26%),
    linear-gradient(135deg, #fffdfa 0%, #f5efe4 52%, #eee3cf 100%);
}

.ingredients-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -240px;
  border: 1px solid rgba(199, 166, 107, 0.36);
  border-radius: 50%;
}

.ingredients-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 60px;
}

.ingredients-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #163a2a;
}

.ingredients-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: rgba(41, 38, 34, 0.76);
  font-size: 1.08rem;
  line-height: 1.8;
}

.ingredients-hero .eyebrow {
  color: #b58e4d;
}

.ingredients-hero__seal {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  align-content: center;
  justify-self: end;
  border: 1px solid rgba(199, 166, 107, 0.55);
  border-radius: 50%;
  background: rgba(255, 253, 250, 0.72);
  box-shadow: 0 24px 64px rgba(22, 58, 42, 0.08);
  text-align: center;
}

.ingredients-hero__seal span {
  color: #c7a66b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
}

.ingredients-hero__seal small {
  max-width: 118px;
  margin-top: 8px;
  color: #163a2a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ingredients-page-intro {
  padding-bottom: 0;
}

.ingredient-library__toolbar {
  display: grid;
  gap: 22px;
  margin-bottom: 38px;
}

.ingredient-search {
  display: flex;
  width: min(720px, 100%);
  min-height: 58px;
  margin-inline: auto;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid rgba(199, 166, 107, 0.34);
  border-radius: 999px;
  background: #fffdfa;
  color: #8c947b;
  box-shadow: 0 12px 36px rgba(22, 58, 42, 0.06);
}

.ingredient-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #292622;
  font: inherit;
}

.ingredient-search input::placeholder {
  color: rgba(41, 38, 34, 0.46);
}

.ingredient-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ingredient-filter {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(22, 58, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.78);
  color: #163a2a;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.ingredient-filter:hover,
.ingredient-filter.is-active {
  border-color: #163a2a;
  background: #163a2a;
  color: #fffdfa;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ingredient-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 166, 107, 0.24);
  border-radius: 24px;
  background: #fffdfa;
  box-shadow: 0 18px 50px rgba(22, 58, 42, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ingredient-card:hover {
  transform: translateY(-8px);
  border-color: rgba(199, 166, 107, 0.62);
  box-shadow: 0 25px 60px rgba(22, 58, 42, 0.13);
}

.ingredient-card[hidden] {
  display: none !important;
}

.ingredient-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 24%, rgba(199, 166, 107, 0.24), transparent 30%),
    linear-gradient(135deg, #eee5d5, #e0e6d6);
}

.ingredient-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}

.ingredient-card:hover .ingredient-card__image {
  transform: scale(1.06);
}

.ingredient-card__fallback,
.single-ingredient__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 253, 250, 0.68), transparent 28%),
    linear-gradient(145deg, #dce4cf, #f2e4c9);
}

.ingredient-card__fallback span,
.single-ingredient__fallback span {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(199, 166, 107, 0.55);
  border-radius: 50%;
  background: rgba(255, 253, 250, 0.72);
  color: #163a2a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
}

.ingredient-card__body {
  padding: 27px;
}

.ingredient-card__type {
  margin-bottom: 9px;
  color: #b58e4d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ingredient-card__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  text-align: left;
}

.ingredient-card__title a {
  color: #163a2a;
  text-decoration: none;
}

.ingredient-card__summary {
  margin: 0 0 18px;
  color: rgba(41, 38, 34, 0.72);
  line-height: 1.7;
}

.ingredient-card__benefits {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.ingredient-card__benefits li {
  position: relative;
  padding-left: 20px;
  color: #292622;
  font-size: 0.86rem;
  line-height: 1.55;
}

.ingredient-card__benefits li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #c7a66b;
  font-weight: 800;
}

.ingredient-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.ingredient-card__tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(140, 148, 123, 0.14);
  color: #415443;
  font-size: 0.7rem;
  font-weight: 700;
}

.ingredient-card__products {
  margin: 18px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(22, 58, 42, 0.09);
  border-bottom: 1px solid rgba(22, 58, 42, 0.09);
}

.ingredient-card__products strong {
  display: block;
  margin-bottom: 6px;
  color: #b58e4d;
  font-size: 0.69rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ingredient-card__products div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.ingredient-card__products a {
  color: #163a2a;
  font-size: 0.76rem;
  font-weight: 700;
}

.ingredient-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #163a2a;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.ingredient-card__link span {
  color: #c7a66b;
  transition: transform 0.25s ease;
}

.ingredient-card__link:hover span {
  transform: translateX(4px);
}

.ingredient-library__empty,
.ingredient-library__empty-state {
  margin: 36px auto 0;
  padding: 38px;
  border: 1px dashed rgba(199, 166, 107, 0.5);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.72);
  text-align: center;
}

/* Single ingredient */

.single-ingredient {
  background: #f7f3ec;
}

.single-ingredient__hero {
  padding: 84px 0;
  background: linear-gradient(135deg, #fffdfa, #eee4d3);
}

.single-ingredient__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 70px;
}

.single-ingredient__copy h1 {
  margin-bottom: 20px;
  color: #163a2a;
}

.single-ingredient__lead {
  max-width: 700px;
  color: rgba(41, 38, 34, 0.75);
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-ingredient__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(199, 166, 107, 0.38);
  border-radius: 28px;
  background: #fffdfa;
  box-shadow: 0 24px 60px rgba(22, 58, 42, 0.10);
}

.single-ingredient__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-ingredient__content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 60px;
}

.single-ingredient__why {
  margin-bottom: 32px;
  padding: 28px;
  border-left: 3px solid #c7a66b;
  border-radius: 0 18px 18px 0;
  background: rgba(255, 253, 250, 0.84);
}

.single-ingredient__why .eyebrow {
  color: #b58e4d;
}

.single-ingredient__why p:last-child {
  margin-bottom: 0;
}

.single-ingredient__sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
}

.ingredient-detail-card {
  padding: 26px;
  border: 1px solid rgba(199, 166, 107, 0.26);
  border-radius: 20px;
  background: #fffdfa;
}

.ingredient-detail-card h2 {
  margin: 0 0 15px;
  color: #163a2a;
  font-size: 1.25rem;
  text-align: left;
}

.ingredient-detail-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-detail-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.ingredient-detail-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c7a66b;
  font-weight: 800;
}

.ingredient-related-products {
  display: grid;
  gap: 10px;
}

.ingredient-related-products a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #163a2a;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.ingredient-related-products a span {
  color: #c7a66b;
}

@media (max-width: 1000px) {
  .ingredient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-ingredient__hero-grid {
    grid-template-columns: 1fr 360px;
    gap: 38px;
  }

  .single-ingredient__content-grid {
    grid-template-columns: 1fr 300px;
    gap: 38px;
  }
}

@media (max-width: 760px) {
  .ingredients-hero {
    padding: 72px 0 64px;
  }

  .ingredients-hero__inner,
  .single-ingredient__hero-grid,
  .single-ingredient__content-grid {
    grid-template-columns: 1fr;
  }

  .ingredients-hero__seal {
    display: none;
  }

  .ingredient-grid {
    grid-template-columns: 1fr;
  }

  .ingredient-search {
    border-radius: 18px;
  }

  .ingredient-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .ingredient-filter {
    flex: 0 0 auto;
  }

  .single-ingredient__image-wrap {
    min-height: 300px;
  }
}
