/* Ray Health — Single product (PDP) */

body.pharmacymentor-child.single-product,
body.pharmacymentor-child.ray-product-detail {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-white);
}

body.pharmacymentor-child.single-product .woo-single-product-wrapper {
  overflow-x: hidden;
}

/* Hide parent duplicate breadcrumb / empty wrapper chrome */
body.pharmacymentor-child.single-product .product-bradcrumb,
body.pharmacymentor-child.single-product .woocommerce-breadcrumb {
  display: none !important;
}

/* ---------- Hero ---------- */
body.pharmacymentor-child .ray-product-hero.home-section {
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 64px);
  background: var(--color-white);
}

body.pharmacymentor-child .ray-product-breadcrumb.page-breadcrumb {
  margin: 0 0 20px;
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-dark);
}

body.pharmacymentor-child .ray-product-breadcrumb .page-breadcrumb__link {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.pharmacymentor-child .ray-product-breadcrumb .page-breadcrumb__link:hover {
  color: var(--color-gold-dark);
}

body.pharmacymentor-child .ray-product-breadcrumb .page-breadcrumb__sep {
  margin: 0 6px;
  color: var(--color-text-muted);
}

body.pharmacymentor-child .ray-product-breadcrumb .page-breadcrumb__current {
  font-weight: 700;
}

body.pharmacymentor-child .ray-product-hero__layout.product-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

body.pharmacymentor-child .ray-product-hero__media {
  position: relative;
}

body.pharmacymentor-child .ray-product-hero__media .woocommerce-product-gallery {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

body.pharmacymentor-child .ray-product-hero__media .woocommerce-product-gallery__image img,
body.pharmacymentor-child .ray-product-hero__media .wp-post-image {
  width: 100%;
  aspect-ratio: 651 / 543;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

body.pharmacymentor-child .ray-product-chip.page-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: #5bb8b0;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

body.pharmacymentor-child .ray-product-hero__content.summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.pharmacymentor-child .ray-product-hero__content .product_title,
body.pharmacymentor-child .ray-product-hero__content h1.product_title {
  margin: 0 0 10px;
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-dark) !important;
}

body.pharmacymentor-child .ray-product-hero__content .woocommerce-product-rating {
  margin: 0 0 12px;
}

body.pharmacymentor-child .ray-product-hero__content .woocommerce-product-details__short-description {
  margin: 0 0 1.25rem;
}

body.pharmacymentor-child .ray-product-hero__content .woocommerce-product-details__short-description p {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--color-dark);
  margin: 0 0 0.65em;
}

body.pharmacymentor-child .ray-product-hero__content .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

/* Hide summary-level price on variable products (price shows in buy box) */
body.pharmacymentor-child .product-type-variable .ray-product-hero__content > .price,
body.pharmacymentor-child .product-type-variable .ray-product-hero__content > p.price {
  display: none;
}

body.pharmacymentor-child .product-type-simple .ray-product-hero__content > .price,
body.pharmacymentor-child .product-type-simple .ray-product-hero__content > p.price {
  display: block;
  margin: 0 0 1rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold-dark) !important;
}

/* ---------- Buy box / cart form ---------- */
body.pharmacymentor-child .ray-product-hero__content form.cart,
body.pharmacymentor-child .ray-product-hero__content form.variations_form.cart {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 181, 84, 0.35);
  box-shadow: none !important;
}

body.pharmacymentor-child .ray-product-hero__content form.cart .single_variation_wrap,
body.pharmacymentor-child .ray-product-hero__content form.cart .woo-cart-form-wrapper,
body.pharmacymentor-child .ray-product-hero__content .ray-product-variation-wrap {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  gap: 14px;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

/* Variations — stacked full-width fields */
body.pharmacymentor-child .ray-product-hero__content table.variations,
body.pharmacymentor-child .ray-product-hero__content .ray-product-variations {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border: none !important;
}

body.pharmacymentor-child .ray-product-hero__content table.variations tbody,
body.pharmacymentor-child .ray-product-hero__content table.variations tr {
  display: block !important;
  width: 100% !important;
}

body.pharmacymentor-child .ray-product-hero__content table.variations tr {
  margin: 0 0 12px !important;
}

body.pharmacymentor-child .ray-product-hero__content table.variations tr:last-child {
  margin-bottom: 0 !important;
}

body.pharmacymentor-child .ray-product-hero__content table.variations th,
body.pharmacymentor-child .ray-product-hero__content table.variations td,
body.pharmacymentor-child .ray-product-hero__content table.variations .label,
body.pharmacymentor-child .ray-product-hero__content table.variations .value {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
  text-align: left !important;
  vertical-align: top;
}

body.pharmacymentor-child .ray-product-hero__content .variation-input-label,
body.pharmacymentor-child .ray-product-hero__content table.variations label,
body.pharmacymentor-child .ray-product-hero__content table.variations th.label,
body.pharmacymentor-child .ray-product-hero__content table.variations .label {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark) !important;
  line-height: 1.2 !important;
}

body.pharmacymentor-child .ray-product-hero__content table.variations td.value,
body.pharmacymentor-child .ray-product-hero__content table.variations .value {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.pharmacymentor-child .ray-product-hero__content table.variations select,
body.pharmacymentor-child .ray-product-hero__content .variations select {
  width: 100% !important;
  max-width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 44px 0 16px !important;
  border: 1.5px solid var(--color-border-strong) !important;
  border-radius: 12px !important;
  background-color: var(--color-white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333333' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

body.pharmacymentor-child .ray-product-hero__content table.variations select:focus {
  border-color: var(--color-gold) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(221, 181, 84, 0.28) !important;
}

/* Clear link */
body.pharmacymentor-child .ray-product-hero__content .ray-product-clear,
body.pharmacymentor-child .ray-product-hero__content .clear-variations {
  display: flex !important;
  justify-content: flex-end;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.pharmacymentor-child .ray-product-hero__content .blank-variations-inner,
body.pharmacymentor-child .ray-product-hero__content .clear-variations-inner,
body.pharmacymentor-child .ray-product-hero__content .clear-variations-wrapper {
  display: contents;
}

body.pharmacymentor-child .ray-product-hero__content a.reset_variations {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px !important;
  border: 1.5px solid var(--color-border-strong) !important;
  border-radius: var(--radius-pill) !important;
  background: var(--color-white) !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  text-decoration: none !important;
  letter-spacing: 0;
  visibility: visible !important;
}

body.pharmacymentor-child .ray-product-hero__content a.reset_variations:hover {
  border-color: var(--color-gold) !important;
  color: var(--color-dark) !important;
}

/* Variation price */
body.pharmacymentor-child .ray-product-hero__content .woocommerce-variation.single_variation,
body.pharmacymentor-child .ray-product-hero__content .woocommerce-variation {
  align-self: stretch !important;
  width: 100% !important;
  margin: 0 !important;
}

body.pharmacymentor-child .ray-product-hero__content .woocommerce-variation-price,
body.pharmacymentor-child .ray-product-hero__content .woocommerce-variation .price,
body.pharmacymentor-child .ray-product-hero__content form.cart .price,
body.pharmacymentor-child .ray-product-hero__content form.cart span.price,
body.pharmacymentor-child .ray-product-hero__content .product form.cart .price {
  display: block !important;
  margin: 0 !important;
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  line-height: 1.2 !important;
  color: var(--color-gold-dark) !important;
}

body.pharmacymentor-child .ray-product-hero__content .woocommerce-variation-description {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

body.pharmacymentor-child .ray-product-hero__content .woocommerce-variation-availability {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 14px;
}

/* Qty + Add to basket row */
body.pharmacymentor-child .ray-product-hero__content .woocommerce-variation-add-to-cart,
body.pharmacymentor-child .ray-product-hero__content .ray-product-atc,
body.pharmacymentor-child .ray-product-hero__content .variations_button {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  width: 100% !important;
  margin: 0 !important;
}

body.pharmacymentor-child .ray-product-hero__content .ray-product-atc__row,
body.pharmacymentor-child .ray-product-hero__content .woo-cart-form-meta-wrapper,
body.pharmacymentor-child .ray-product-hero__content .quantity-cartbtn {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

body.pharmacymentor-child .ray-product-hero__content .woo-variation-action-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

body.pharmacymentor-child .ray-product-hero__content form.cart div.quantity,
body.pharmacymentor-child .ray-product-hero__content .quantity {
  float: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
}

body.pharmacymentor-child .ray-product-hero__content .quantity .qty,
body.pharmacymentor-child .ray-product-hero__content input.qty {
  width: 72px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1.5px solid var(--color-border-strong) !important;
  border-radius: 12px !important;
  background: var(--color-white) !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center;
  box-shadow: none !important;
}

body.pharmacymentor-child .ray-product-hero__content .quantity .qty:focus {
  border-color: var(--color-gold) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(221, 181, 84, 0.28) !important;
}

body.pharmacymentor-child .ray-product-hero__content .single_add_to_cart_button,
body.pharmacymentor-child .ray-product-hero__content .button.alt,
body.pharmacymentor-child .ray-product-hero__content a.button,
body.pharmacymentor-child .ray-product-hero__content .cart .button,
body.pharmacymentor-child .ray-product-hero__content .theme-btn-primary {
  display: inline-flex !important;
  flex: 1 1 180px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 28px !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  background: var(--color-gold) !important;
  background-image: none !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition-fast), filter var(--transition-ui);
}

body.pharmacymentor-child .ray-product-hero__content .single_add_to_cart_button:hover,
body.pharmacymentor-child .ray-product-hero__content a.button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  color: var(--color-dark) !important;
  background: var(--color-gold) !important;
}

body.pharmacymentor-child .ray-product-hero__content .single_add_to_cart_button.disabled,
body.pharmacymentor-child .ray-product-hero__content .single_add_to_cart_button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

body.pharmacymentor-child .ray-product-hero__content .product_meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-muted);
}

body.pharmacymentor-child .ray-product-hero__content .sku_wrapper .sku {
  font-weight: 600;
  color: var(--color-dark);
}

/* ---------- Product info tabs (product-detail.html) ---------- */
body.pharmacymentor-child.single-product .ray-product-info.product-info,
body.pharmacymentor-child.single-product .product-info.ray-product-info {
  background: var(--color-white);
  padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
}

body.pharmacymentor-child.single-product .ray-product-info .home-section__container {
  max-width: var(--canvas-width, 1440px);
  margin: 0 auto;
  padding: 0 var(--content-inset, 50px);
}

body.pharmacymentor-child.single-product .product-info__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 -2px;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid var(--color-border);
}

body.pharmacymentor-child.single-product .product-info__tab {
  flex: 1 1 auto;
  min-width: max-content;
  height: 61px;
  padding: 0 16px;
  border: 2px solid var(--color-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background-color: transparent;
  opacity: 0.75;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-dark);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1;
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
}

body.pharmacymentor-child.single-product .product-info__tab:not(:first-child) {
  border-radius: 0 10px 0 0;
  margin-left: -2px;
}

body.pharmacymentor-child.single-product .product-info__tab.is-active {
  background-color: var(--color-white);
  opacity: 1;
  border-bottom: 2px solid var(--color-white);
  position: relative;
  z-index: 1;
  box-shadow: inset 0 -2px 0 var(--color-gold);
}

body.pharmacymentor-child.single-product .product-info__tab:hover:not(.is-active) {
  opacity: 0.9;
  background-color: rgba(255, 255, 255, 0.66);
}

body.pharmacymentor-child.single-product .product-info__panel {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 28px);
  margin-top: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-dark);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  background: var(--color-surface-muted);
  border: 2px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

body.pharmacymentor-child.single-product .product-info__panel[hidden] {
  display: none !important;
}

body.pharmacymentor-child.single-product .product-info__panel > h2:first-child {
  margin-top: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--color-dark);
}

body.pharmacymentor-child.single-product .product-info__panel h2,
body.pharmacymentor-child.single-product .product-info__panel h3,
body.pharmacymentor-child.single-product .product-info__panel .product-info__subheading {
  display: block;
  margin: 1.35em 0 0.5em;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.3;
  color: var(--color-dark);
}

body.pharmacymentor-child.single-product .product-info__panel h2:first-child,
body.pharmacymentor-child.single-product .product-info__panel h3:first-child {
  margin-top: 0;
}

body.pharmacymentor-child.single-product .product-info__panel p {
  margin: 0 0 1em;
}

body.pharmacymentor-child.single-product .product-info__panel p:last-child {
  margin-bottom: 0;
}

body.pharmacymentor-child.single-product .product-info__panel ul,
body.pharmacymentor-child.single-product .product-info__panel ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

/* FAQ accordion inside tabs */
body.pharmacymentor-child.single-product .product-info__panel .faq-accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.pharmacymentor-child.single-product .product-info__panel .faq-accordion .card {
  border: 1.5px solid var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-white);
  overflow: hidden;
}

body.pharmacymentor-child.single-product .product-info__panel .faq-accordion .card-header {
  padding: 0;
  background: transparent;
  border: none;
}

body.pharmacymentor-child.single-product .product-info__panel .faq-accordion .btn-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-dark) !important;
  text-decoration: none !important;
  padding: 16px 18px;
  width: 100%;
}

body.pharmacymentor-child.single-product .product-info__panel .faq-accordion .card-body {
  padding: 0 18px 16px !important;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-dark);
}

/* Hide legacy WC tabs if anything still outputs them */
body.pharmacymentor-child.single-product .woocommerce-tabs {
  display: none !important;
}

/* ---------- How to get started on PDP ---------- */
body.pharmacymentor-child.single-product .home-steps {
  background: var(--color-white);
  padding: clamp(48px, 7vw, 80px) 0;
}

body.pharmacymentor-child.single-product .home-steps .home-steps__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Related ---------- */
body.pharmacymentor-child .ray-product-related.product-related {
  background: var(--color-cream-2);
  padding: clamp(48px, 7vw, 80px) 0 0;
}

body.pharmacymentor-child .ray-product-related .home-products__grid,
body.pharmacymentor-child .ray-product-related .products.ray-shop-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 35px);
  margin-bottom: 32px;
}

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

body.pharmacymentor-child .ray-product-after {
  padding: 0 !important;
}

body.pharmacymentor-child .ray-product-after > .container {
  max-width: none;
  padding: 0;
  width: 100%;
}

body.pharmacymentor-child .ray-product-after > .container > .row {
  margin: 0;
}

body.pharmacymentor-child .ray-product-after > .container > .row > [class*="col-"] {
  padding: 0;
  max-width: 100%;
  flex: 0 0 100%;
}

/* Hide default WC related title when our section wraps content — we use custom related */
body.pharmacymentor-child.single-product .related.products > h2,
body.pharmacymentor-child.single-product section.related > h2 {
  display: none;
}

@media (max-width: 1023px) {
  body.pharmacymentor-child .ray-product-hero__layout.product-hero__layout {
    grid-template-columns: 1fr;
  }

  body.pharmacymentor-child .ray-product-related .home-products__grid,
  body.pharmacymentor-child .ray-product-related .products.ray-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.pharmacymentor-child.single-product .ray-product-info .home-section__container {
    padding: 0 16px;
  }

  body.pharmacymentor-child.single-product .product-info__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  body.pharmacymentor-child.single-product .product-info__tab {
    flex: 0 0 auto;
    height: 52px;
    font-size: 14px;
    padding: 0 14px;
  }

  body.pharmacymentor-child .ray-product-after .woocommerce-tabs,
  body.pharmacymentor-child .ray-product-tabs-section .woocommerce-tabs {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.pharmacymentor-child .ray-product-hero__content .ray-product-atc__row {
    flex-direction: column;
    align-items: stretch;
  }

  body.pharmacymentor-child .ray-product-hero__content .quantity,
  body.pharmacymentor-child .ray-product-hero__content .quantity .qty {
    width: 100% !important;
  }

  body.pharmacymentor-child .ray-product-hero__content .single_add_to_cart_button,
  body.pharmacymentor-child .ray-product-hero__content a.button {
    width: 100% !important;
    flex: 1 1 auto;
  }

  body.pharmacymentor-child .ray-product-related .home-products__grid,
  body.pharmacymentor-child .ray-product-related .products.ray-shop-grid {
    grid-template-columns: 1fr;
  }
}
