/* 1. Compact banner shared by catalog and standard content pages. */
.agape-inner-page {
  background: #f7f9fc;
  color: #0d2342;
}
#agape-inner .agape-page-banner {
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 38px 0;
  background:
    linear-gradient(90deg, rgba(4, 17, 35, 0.95), rgba(4, 17, 35, 0.65)),
    url("../images/hero-desktop-2.webp") center 45% / cover no-repeat;
  color: #fff;
}
#agape-inner .agape-page-banner__inner {
  width: min(100% - 40px, 1240px);
  margin: auto;
}
#agape-inner .agape-page-banner h1 {
  margin: 0;
  color: #fff;
  font:
    700 clamp(30px, 4vw, 46px)/1.15 Georgia,
    serif;
}
#agape-inner .agape-page-banner__eyebrow {
  margin: 0 0 10px;
  color: #e8b840;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
#agape-inner .agape-page-banner__description {
  max-width: 760px;
  margin-top: 16px;
  color: #d5deea;
  font-size: 14px;
  line-height: 1.65;
}
#agape-inner .agape-page-banner__description p {
  margin: 0 0 10px;
}
#agape-inner .agape-page-banner__description p:last-child {
  margin-bottom: 0;
}
#agape-inner .woocommerce-breadcrumb {
  padding: 0;
  margin: 0 0 18px;
  color: #d5deea;
  font-size: 12px;
}
#agape-inner .woocommerce-breadcrumb a {
  color: #e8b840;
}

/* 2. Preserve native ordering, result counts, notices, and pagination. */
#agape-inner .agape-catalog {
  padding: 36px 0 48px;
}
#agape-inner .kadence-shop-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
#agape-inner .kadence-shop-top-item {
  margin: 0;
}
#agape-inner .woocommerce-result-count {
  margin: 0;
  color: #40516b;
  font-size: 13px;
}
#agape-inner .woocommerce-ordering {
  margin: 0;
}
#agape-inner .woocommerce-ordering select {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #dce2ec;
  border-radius: 7px;
  background: #fff;
  color: #0d2342;
  font-size: 13px;
}
#agape-inner .woocommerce-pagination {
  margin-top: 30px;
}
#agape-inner .woocommerce-pagination ul {
  border: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}
#agape-inner .woocommerce-pagination li {
  border: 0;
}
#agape-inner .woocommerce-pagination .page-numbers a,
#agape-inner .woocommerce-pagination .page-numbers span {
  min-width: 42px;
  min-height: 42px;
  padding: 12px;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  background: #fff;
  color: #0d2342;
}
#agape-inner .woocommerce-pagination .page-numbers .current {
  border-color: #d9ae36;
  background: #f4d16b;
}

/* 4. Live category data uses reusable category cards. */
#agape-inner .agape-category-directory {
  padding: 38px 0 48px;
}
#agape-inner .agape-category-directory__grid {
  width: min(100% - 40px, 1240px);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
#agape-inner .agape-directory-card {
  display: block;
  overflow: hidden;
  border: 1px solid #dce2ec;
  border-radius: 12px;
  background: #fff;
  color: #0d2342;
  text-decoration: none;
}
#agape-inner .agape-directory-card__image {
  overflow: hidden;
  padding: 16px;
  background: #edf2f8;
}
#agape-inner .agape-directory-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
#agape-inner .agape-directory-card:hover img {
  transform: scale(1.05);
}
#agape-inner .agape-directory-card h2 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 18px;
  font:
    700 17px/1.4 Georgia,
    serif;
  color: #0d2342;
}
#agape-inner .agape-directory-card h2 span {
  color: #b1841a;
}
#agape-inner .agape-directory-card:focus-visible {
  outline: 3px solid #b1841a;
  outline-offset: 3px;
}

/* 5. Preserve existing page content and shortcode-based integrations. */
#agape-inner .agape-page-content {
  width: min(100% - 40px, 1000px);
  margin: 0 auto;
  padding: 42px 0;
  color: #0d2342;
  line-height: 1.7;
}
#agape-inner .agape-page-content > :first-child {
  margin-top: 0;
}
.agape-inner-page .peptide-faq-section {
  display: none !important;
}

/* 6. Responsive catalog and compact banner spacing. */
@media (max-width: 1100px) {
  #agape-inner .agape-category-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  #agape-inner .agape-page-banner {
    min-height: 170px;
    padding: 28px 0;
  }
  #agape-inner .agape-page-banner__description {
    font-size: 13px;
  }
  #agape-inner .agape-products__container {
    width: calc(100% - 24px);
  }
  #agape-inner .agape-directory-card img {
    height: 120px;
  }
  #agape-inner .agape-directory-card h2 {
    font-size: 15px;
    padding: 12px;
  }
  #agape-inner .agape-category-directory__grid {
    width: calc(100% - 24px);
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #agape-inner .agape-directory-card img {
    transition: none;
  }
}

/* 7. Native WooCommerce subcategory cards keep their links and hierarchy. */
#agape-inner .agape-products ul.products li.product-category {
  width: auto;
  float: none;
  margin: 0;
  padding: 18px;
  border: 1px solid #dce2ec;
  border-radius: 12px;
  background: #fff;
}
#agape-inner .agape-products li.product-category img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}
#agape-inner .agape-products .woocommerce-loop-category__title {
  color: #0d2342;
  font:
    700 17px/1.4 Georgia,
    serif;
}

/* 9. Numbered pagination replaces the previous infinite-scroll controls. */
#agape-inner .woocommerce-pagination {
  display: block !important;
  visibility: visible !important;
}
#agape-inner .page-load-status {
  display: none !important;
}

/* 1. Shared reading panel */
:is(.page-id-5505, .page-id-472, .page-id-475)
  #agape-inner
  .agape-page-content {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 850px);
  margin: clamp(24px, 5vw, 56px) auto;
  padding: clamp(22px, 5vw, 54px);
  background: #fff;
  border: 1px solid #dce2ec;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(13, 35, 66, 0.06);
  color: #243852;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
}

/* 2. Restore readable text inside the original WordPress color spans */
:is(.page-id-5505, .page-id-472, .page-id-475)
  #agape-inner
  .agape-page-content
  mark.has-inline-color {
  background: transparent !important;
  color: inherit !important;
  padding: 0;
}

:is(.page-id-5505, .page-id-472, .page-id-475)
  #agape-inner
  .agape-page-content
  p {
  margin: 0;
  color: #243852;
}

:is(.page-id-5505, .page-id-472, .page-id-475)
  #agape-inner
  .agape-page-content
  > *
  + * {
  margin-block-start: 1.1em;
}

/* 3. The first paragraph contains the original About US title */
.page-id-5505
  #agape-inner
  .agape-page-content
  > p.wp-block-paragraph:first-child {
  margin: 0 0 0.6em;
  color: #0d2342;
  font:
    700 clamp(28px, 4vw, 38px)/1.15 Georgia,
    serif;
}

/* 4. Policy headings and the original leading spacer */
:is(.page-id-472, .page-id-475)
  #agape-inner
  .agape-page-content
  > .wp-block-spacer:first-child {
  display: none;
}
:is(.page-id-472, .page-id-475) #agape-inner .agape-page-content :is(h2, h3),
.page-id-475
  #agape-inner
  .agape-page-content
  > .wp-block-kadence-advancedheading:first-of-type {
  color: #0d2342;
  font-family: Georgia, serif;
  line-height: 1.2;
}
.page-id-472 #agape-inner .agape-page-content > .wp-block-spacer + h2,
.page-id-475
  #agape-inner
  .agape-page-content
  > .wp-block-spacer
  + .wp-block-kadence-advancedheading {
  margin-top: 0;
  color: #0d2342;
  font:
    700 clamp(28px, 4vw, 38px)/1.2 Georgia,
    serif;
  text-align: left;
}
/* 5. Privacy section labels precede a line break within each paragraph */
.page-id-472
  #agape-inner
  .agape-page-content
  p:not(.has-text-align-center)
  > strong:first-child:has(+ br) {
  color: #0d2342;
  font-size: 1.12em;
  line-height: 1.5;
}
/* 6. Keep the original numbering and space for list markers */
:is(.page-id-472, .page-id-475) #agape-inner .agape-page-content :is(ul, ol) {
  padding-inline-start: 1.6em;
  color: #243852;
}
:is(.page-id-472, .page-id-475) #agape-inner .agape-page-content a {
  color: #17456a;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
