/* Scoped styles for the Wholesale Jewelry catalog (page only; no plugin/template change). */
.hl-jc { --hl-gap: 28px; }
.hl-breadcrumb { font-size: 14px; color: #6b6b6b; padding: 18px 0 6px; }
.hl-breadcrumb a { color: #6b6b6b; text-decoration: none; }
.hl-breadcrumb a:hover { color: #b08d57; }
.hl-breadcrumb span.sep { margin: 0 8px; color: #b9b9b9; }
.hl-catnav { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 22px; }
.hl-catnav__item { display: inline-block; padding: 8px 16px; border: 1px solid #e3ddd2; border-radius: 999px; font-size: 14px; color: #4a4a4a; text-decoration: none; }
.hl-catnav__item.is-current { background: #1f1b16; color: #fff; border-color: #1f1b16; }

/* Catalog: desktop = left filter + right grid; tablet 2 col; mobile 1 col + drawer */
.hl-catalog { display: grid; grid-template-columns: 260px 1fr; gap: var(--hl-gap); align-items: start; padding: 8px 0 12px; }
.hl-filter { border: 1px solid #ece6da; border-radius: 12px; padding: 18px; background: #fbf9f5; position: sticky; top: 20px; }
.hl-filter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hl-filter__head h2 { font-size: 18px; margin: 0; }
.hl-filter__toggle { display: none; }
.hl-filter__group { padding: 10px 0; border-top: 1px solid #ece6da; }
.hl-filter__group:first-of-type { border-top: 0; }
.hl-filter__group h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #8a816f; margin: 0 0 8px; }
.hl-filter__group label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4a4a4a; padding: 4px 0; cursor: pointer; }
.hl-filter__note { font-size: 12px; color: #9a9a9a; margin-top: 6px; }

.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hl-gap); }
.hl-product-card { border: 1px solid #ece6da; border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.hl-product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.hl-product-image { display: block; aspect-ratio: 1 / 1; background: #f4f1ea; overflow: hidden; }
.hl-product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-product-content { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hl-product-code { font-size: 12px; letter-spacing: .06em; color: #b08d57; margin: 0; font-weight: 600; }
.hl-product-content h3 { font-size: 16px; line-height: 1.35; margin: 0; }
.hl-product-content h3 a { color: #1f1b16; text-decoration: none; }
.hl-product-content h3 a:hover { color: #b08d57; }
.hl-card-specs { margin: 0; display: grid; gap: 4px; }
.hl-card-specs div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 13px; }
.hl-card-specs dt { color: #8a816f; margin: 0; }
.hl-card-specs dd { margin: 0; color: #3a3a3a; }
.hl-text-link { margin-top: auto; color: #b08d57; text-decoration: none; font-weight: 600; font-size: 14px; }
.hl-text-link:hover { text-decoration: underline; }

.hl-empty { padding: 60px 20px; text-align: center; color: #8a816f; border: 1px dashed #e3ddd2; border-radius: 12px; }

@media (max-width: 1023px) and (min-width: 768px) {
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hl-catalog { display: block; }
  .hl-filter { position: static; margin-bottom: 18px; }
  .hl-filter__toggle { display: inline-block; padding: 10px 18px; border: 1px solid #1f1b16; background: #1f1b16; color: #fff; border-radius: 8px; font-size: 14px; cursor: pointer; }
  .hl-filter__body { display: none; margin-top: 12px; }
  .hl-filter__body.is-open { display: block; }
  .hl-grid { grid-template-columns: 1fr; }
}

/* FAQ single-column accordion */
.hl-faq-list { max-width: 860px; margin: 0 auto; }
.hl-faq-item { border: 1px solid #ece6da; border-radius: 10px; margin-bottom: 12px; background: #fff; }
.hl-faq-item > summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: #1f1b16; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hl-faq-item > summary::-webkit-details-marker { display: none; }
.hl-faq-item > summary::after { content: "+"; color: #b08d57; font-size: 20px; line-height: 1; }
.hl-faq-item[open] > summary::after { content: "\2212"; }
.hl-faq-item__a { padding: 0 18px 16px; color: #4a4a4a; font-size: 15px; line-height: 1.6; }

/* Generic section spacing to keep modules ordered & balanced */
.hl-jc .jc-sec { margin-top: 8px; }

/* ===== Hero optimization (page 285 only) =====
   Kadence injects its row-layout CSS as an inline <style> with !important and
   HIGHER specificity (.page-hero:not(.page-hero--no-image) ...). To win on this
   page-scoped sheet we raise specificity (body prefix) AND use !important. */
body .page-hero:not(.page-hero--no-image) .page-hero__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr) !important; /* left 54% / right 46% after gap */
  align-items: start !important;            /* top-aligned, not vertically centered */
  gap: 56px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-top: 68px !important;             /* desktop vertical padding 64-72px */
  padding-bottom: 68px !important;
  min-height: 0 !important;
}
body .page-hero:not(.page-hero--no-image) .page-hero__content { width: auto !important; max-width: none !important; }
body .page-hero:not(.page-hero--no-image) .page-hero__media {
  width: auto !important; margin: 0 !important; align-self: start !important;
  position: relative !important; z-index: 1 !important; background: transparent !important;
  border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  overflow: hidden !important; min-height: 0 !important; height: auto !important; isolation: isolate !important;
}
body .page-hero:not(.page-hero--no-image) .page-hero__media::before,
body .page-hero:not(.page-hero--no-image) .page-hero__media::after {
  display: none !important; content: none !important;   /* remove Kadence gold-glow overlays */
}
body .page-hero:not(.page-hero--no-image) .page-hero__media img {
  width: 100% !important; max-width: 100% !important; height: 520px !important; max-height: none !important;
  margin: 0 !important; object-fit: cover !important; object-position: center !important;
  display: block !important; border-radius: 12px !important; border: 0 !important;
  box-shadow: none !important; background: transparent !important;
  mix-blend-mode: normal !important; opacity: 1 !important; filter: none !important;
  position: relative !important; z-index: 1 !important;
}
body .page-hero:not(.page-hero--no-image) h1 {
  font-size: clamp(52px, 4.3vw, 68px) !important;
  line-height: 1.04 !important;             /* 1.02-1.07 */
  font-weight: 600 !important;              /* 500-600 */
  letter-spacing: -0.025em !important;
  max-width: 680px !important;
  margin: 0 0 18px !important;
  word-break: normal !important;            /* never split words unnaturally */
  overflow-wrap: normal !important;
  hyphens: none !important;
  text-wrap: balance !important;            /* aim for <=3 balanced lines */
}

/* Tablet: keep two columns + 46-52px H1 (override Kadence single-col at <=1024) */
@media (max-width: 1024px) and (min-width: 768px) {
  body .page-hero:not(.page-hero--no-image) .page-hero__inner {
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr) !important;
  }
  body .page-hero:not(.page-hero--no-image) h1 { font-size: clamp(44px, 4.5vw, 48px) !important; }
}

/* Mobile: single column, image below text, full-width buttons, 34-38px H1 */
@media (max-width: 767px) {
  body .page-hero:not(.page-hero--no-image) .page-hero__inner {
    display: block !important;
    grid-template-columns: none !important;
    gap: 26px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    max-width: 100% !important;
  }
  body .page-hero:not(.page-hero--no-image) h1 {
    font-size: clamp(34px, 8.5vw, 38px) !important;
    line-height: 1.12 !important;
    max-width: 100% !important;
    text-align: left !important;
  }
  body .page-hero:not(.page-hero--no-image) .page-hero__media img { height: 320px !important; }
  body .page-hero:not(.page-hero--no-image) .page-hero__actions { flex-direction: column !important; }
  body .page-hero:not(.page-hero--no-image) .page-hero__btn { width: 100% !important; }
}

/* ===== Dynamic catalog (shared product-card grid, [hl_product_catalog]) =====
   Card markup (.hl-product-card …) is rendered by the plugin's shared
   template-parts/product-card.php — identical to the taxonomy archive — so the
   Page never duplicates product-card HTML/CSS. */
.hl-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hl-gap); }
.hl-catalog__bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 4px 0 18px; }
.hl-sort-form { display: flex; align-items: center; gap: 8px; }
.hl-sort-label { font-size: 14px; color: #6b6b6b; }
.hl-sort { font-size: 14px; padding: 8px 10px; border: 1px solid #e3ddd2; border-radius: 8px; background: #fff; color: #1f1b16; max-width: 100%; }
.hl-pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.hl-pagination a, .hl-pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #e3ddd2; border-radius: 8px; text-decoration: none; color: #4a4a4a; }
.hl-pagination a:hover { border-color: #b08d57; color: #b08d57; }
.hl-pagination .current { background: #1f1b16; color: #fff; border-color: #1f1b16; }
.hl-no-results { padding: 60px 20px; text-align: center; color: #8a816f; border: 1px dashed #e3ddd2; border-radius: 12px; }
@media (max-width: 1023px) and (min-width: 768px) {
  .hl-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hl-product-grid { grid-template-columns: 1fr; }
}

/* ===== Browse Jewelry by Category ([hl_product_categories]) =====
   Flex layout with justify-content:center -> the final incomplete row is
   centered, so a 5-category list renders 3 + 2 (never a lonely left card). */
.hl-cat-section { max-width: 1200px; margin: 44px auto; padding: 0 20px; }
.hl-cat-section__head { text-align: center; margin-bottom: 28px; }
.hl-cat-section__head h2 { font-size: 28px; line-height: 1.25; margin: 0; color: #1f1b16; }
.hl-cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.hl-cat-card {
  flex: 0 0 calc(33.333% - 16px);
  background: #fff; border: 1px solid #ece6da; border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.hl-cat-card:hover { box-shadow: 0 10px 26px rgba(60,45,20,.12); transform: translateY(-3px); }
.hl-cat-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #f3ede4; }
.hl-cat-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-cat-card__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3ede4, #e7ddcd); color: #b08d57; font-weight: 600; font-size: 18px;
}
.hl-cat-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.hl-cat-card__name { font-size: 20px; margin: 0 0 6px; color: #1f1b16; }
.hl-cat-card__count { margin: 0 0 8px; color: #b08d57; font-size: 14px; font-weight: 600; }
.hl-cat-card__desc { margin: 0 0 14px; color: #6b6358; font-size: 14px; line-height: 1.55; flex: 1; }
.hl-cat-card__link { color: #1f1b16; font-weight: 600; font-size: 14px; }
.hl-cat-card:hover .hl-cat-card__link { color: #b08d57; }
.hl-jc-catalog-title { text-align: center; font-size: 28px; margin: 52px 0 20px; color: #1f1b16; }
@media (max-width: 1023px) and (min-width: 768px) {
  .hl-cat-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 767px) {
  .hl-cat-card { flex: 0 0 100%; }
  .hl-cat-section { margin: 32px auto; }
  .hl-cat-section__head h2, .hl-jc-catalog-title { font-size: 24px; }
}
