/* Ray Health — Shop / product archives */

body.pharmacymentor-child.woocommerce-shop,
body.pharmacymentor-child.tax-product_cat,
body.pharmacymentor-child.tax-product_tag,
body.pharmacymentor-child.post-type-archive-product {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-surface-muted);
}

/* ---------- Banner ---------- */
body.pharmacymentor-child .ray-shop-banner.shop-page-top-section {
  background: var(--color-cream) !important;
  padding: clamp(18px, 2.5vw, 28px) 0 4px !important;
  text-align: center;
}

body.pharmacymentor-child .ray-shop-banner .woocommerce-breadcrumb,
body.pharmacymentor-child .ray-shop-banner nav.woocommerce-breadcrumb {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  background: transparent;
  display: block;
}

body.pharmacymentor-child .ray-shop-banner__desc,
body.pharmacymentor-child .ray-shop-banner .tax-archive-desc-section {
  margin: 0.15rem auto 0;
  padding: 0;
  max-width: 42rem;
}

body.pharmacymentor-child .ray-shop-banner .tax-archive-desc-section h2,
body.pharmacymentor-child .ray-shop-banner .tax-archive-desc-section .section-title,
body.pharmacymentor-child .ray-shop-banner .page-description > *:first-child {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--color-dark);
  margin: 0 auto 0.35rem !important;
}

body.pharmacymentor-child .ray-shop.page-content-section {
  background: var(--color-surface-muted) !important;
  padding: 8px 0 clamp(48px, 6vw, 72px) !important;
}

/* Prevent WC wrappers from stretching the cream banner */
body.pharmacymentor-child .ray-shop-banner ~ .woocommerce,
body.pharmacymentor-child.woocommerce-shop #primary,
body.pharmacymentor-child.woocommerce-shop .content-area,
body.pharmacymentor-child.woocommerce-shop .site-main {
  min-height: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.pharmacymentor-child .ray-shop-banner__inner.content-block {
  margin: 0 auto;
  padding: 0;
}

body.pharmacymentor-child .ray-shop-banner .section-header-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

body.pharmacymentor-child .ray-shop-banner__eyebrow {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.2;
  color: var(--color-gold);
  margin: 0 0 0.35rem;
}

body.pharmacymentor-child .ray-shop-banner__title,
body.pharmacymentor-child .ray-shop-banner h1,
body.pharmacymentor-child .ray-shop-banner h5 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem) !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-dark) !important;
  margin: 0 0 0.45rem;
  text-transform: none;
}

body.pharmacymentor-child .ray-shop-banner__subtitle {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-dark);
  margin: 0.35rem 0 0.5rem;
}

body.pharmacymentor-child .ray-shop-banner .woocommerce-breadcrumb a {
  color: var(--color-dark);
  text-decoration: none;
}

body.pharmacymentor-child .ray-shop-banner .woocommerce-breadcrumb a:hover {
  color: var(--color-gold-dark);
}

body.pharmacymentor-child .ray-shop-banner__desc,
body.pharmacymentor-child .ray-shop-banner .term-description,
body.pharmacymentor-child .ray-shop-banner .page-description,
body.pharmacymentor-child .ray-shop-banner .woocommerce-products-header__title + *,
body.pharmacymentor-child .ray-shop-banner .tax-archive-desc-section p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0 !important;
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--color-dark);
}

body.pharmacymentor-child .ray-shop-banner .tax-archive-desc-section > *:last-child,
body.pharmacymentor-child .ray-shop-banner .page-description > *:last-child,
body.pharmacymentor-child .ray-shop-banner .term-description > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Kill tall empty placeholders after shop intro text */
body.pharmacymentor-child .ray-shop-banner .tax-archive-desc-section p:empty,
body.pharmacymentor-child .ray-shop-banner .page-description p:empty,
body.pharmacymentor-child .ray-shop-banner #ppcp-messages,
body.pharmacymentor-child .ray-shop-banner .woocommerce-notices-wrapper,
body.pharmacymentor-child .ray-shop-banner .woocommerce-products-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.pharmacymentor-child .ray-shop__container {
  max-width: 1200px;
}

body.pharmacymentor-child .ray-shop__row {
  align-items: flex-start;
}

/* ---------- Sidebar ---------- */
body.pharmacymentor-child .ray-shop__sidebar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: calc(var(--pm-header-height, 143px) + 16px);
}

/* Product filter (ALS) — Ray Health tokens */
body.pharmacymentor-child .ray-shop__filters .als-pf-wrap,
body.pharmacymentor-child .ray-shop__filters .als-pf-filter {
  --als-accent: var(--color-gold);
  --als-accent-soft: var(--color-cream);
  --als-btn-text: var(--color-dark);
  --als-text: var(--color-dark);
  --als-muted: var(--color-text-muted);
  --als-bg: transparent;
  --als-border: transparent;
  --als-input-bg: var(--color-cream);
  font-family: var(--font-primary);
}

body.pharmacymentor-child .ray-shop__filters .als-pf-filter {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  gap: 28px;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-block {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

body.pharmacymentor-child .ray-shop__filters .als-pf-block:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-actions {
  margin-top: 8px;
  padding-top: 8px;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-block-title {
  font-family: var(--font-primary);
  color: var(--color-text-muted);
}

body.pharmacymentor-child .ray-shop__filters .als-pf-range-progress {
  background: var(--color-gold) !important;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-price-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--color-cream);
  border: 1.5px solid var(--color-gold);
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  box-shadow: 0 2px 8px rgba(221, 181, 84, 0.18);
}

body.pharmacymentor-child .ray-shop__filters .als-pf-price-min-label,
body.pharmacymentor-child .ray-shop__filters .als-pf-price-max-label {
  color: var(--color-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-price-sep {
  color: var(--color-gold-dark);
  font-weight: 700;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-sort-pill {
  font-family: var(--font-primary);
  border-radius: var(--radius-pill) !important;
  border-color: var(--color-border-strong) !important;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-sort-pill.is-active {
  background: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
  color: var(--color-dark) !important;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-cat-item {
  font-family: var(--font-primary);
}

body.pharmacymentor-child .ray-shop__filters .als-pf-cat:checked + .als-pf-cat-name,
body.pharmacymentor-child .ray-shop__filters input.als-pf-cat:checked ~ .als-pf-cat-name {
  color: var(--color-dark);
  font-weight: 600;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-apply {
  background: var(--color-gold) !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-remove {
  font-family: var(--font-primary) !important;
  border-radius: var(--radius-pill) !important;
  border: 1.5px solid var(--color-dark) !important;
  color: var(--color-dark) !important;
  background: transparent !important;
}

body.pharmacymentor-child .ray-shop__filters .als-pf-mobile-toggle {
  background: var(--color-gold) !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary);
  border-radius: var(--radius-pill);
}

/* ---------- Toolbar ---------- */
body.pharmacymentor-child .ray-shop__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding: 14px 18px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.pharmacymentor-child .ray-shop__toolbar .woocommerce-result-count {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-muted);
  float: none;
}

/* Prefer ALS sort pills — hide default WC orderby */
body.pharmacymentor-child .ray-shop__toolbar .woocommerce-ordering {
  display: none !important;
}

/* ---------- Product grid (reuse home cards, 3 cols in main) ---------- */
body.pharmacymentor-child .ray-shop-grid.home-products__grid,
body.pharmacymentor-child .ray-shop .products.ray-shop-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

body.pharmacymentor-child .ray-shop-grid .home-products__item,
body.pharmacymentor-child .ray-shop-grid .product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
}

body.pharmacymentor-child .ray-shop-grid .home-products__card {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

body.pharmacymentor-child .ray-shop-grid .home-products__name a:hover {
  color: var(--color-gold-dark);
}

/* ---------- Pagination ---------- */
body.pharmacymentor-child .ray-shop .woocommerce-pagination {
  margin-top: 2.5rem;
  text-align: center;
}

body.pharmacymentor-child .ray-shop .woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
}

body.pharmacymentor-child .ray-shop .woocommerce-pagination ul.page-numbers li {
  margin: 0;
  border: none;
}

body.pharmacymentor-child .ray-shop .woocommerce-pagination ul.page-numbers a,
body.pharmacymentor-child .ray-shop .woocommerce-pagination ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition-ui), border-color var(--transition-ui), color var(--transition-ui);
}

body.pharmacymentor-child .ray-shop .woocommerce-pagination ul.page-numbers a:hover {
  border-color: var(--color-gold);
  color: var(--color-dark);
}

body.pharmacymentor-child .ray-shop .woocommerce-pagination ul.page-numbers span.current {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

body.pharmacymentor-child .ray-shop .woocommerce-info {
  font-family: var(--font-primary);
  border-radius: var(--radius-md);
  border-top-color: var(--color-gold);
}

@media (max-width: 1199px) {
  body.pharmacymentor-child .ray-shop-grid.home-products__grid,
  body.pharmacymentor-child .ray-shop .products.ray-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  body.pharmacymentor-child .ray-shop__sidebar-card {
    position: static;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575px) {
  body.pharmacymentor-child .ray-shop-grid.home-products__grid,
  body.pharmacymentor-child .ray-shop .products.ray-shop-grid {
    grid-template-columns: 1fr;
  }
}
