/* ==========================================================
   BioBest Product Page — matches site palette
   Primary:   #0077bb
   Text:      #444444
   Soft bg:   #f4f4f4
   Border:    #e5e5e5
   ========================================================== */

.product-page {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #444444;
  background: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
  font-size: 15px;
}

/* ---------- Header ---------- */
.product-page .product-header {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e5e5;
}

.product-page h1 {
  font-size: 26px;
  font-weight: 600;
  color: #0077bb;
  margin: 0 0 10px;
  line-height: 1.3;
}

.product-page .product-sku {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.product-page .product-sku strong {
  color: #444;
}

/* ---------- Gallery ---------- */
.product-page .product-gallery img.product-main-img {
  width: 100%;
  background: #f4f4f4;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 15px;
  box-sizing: border-box;
}

.product-page .gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-page .gallery-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #ffffff;
  padding: 2px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-page .gallery-thumbs img:hover {
  border-color: #0077bb;
}

/* ---------- Price ---------- */
.product-page .product-price {
  margin: 18px 0;
  padding: 12px 16px;
  background: #f4f4f4;
  border-left: 4px solid #0077bb;
  border-radius: 4px;
}

.product-page .product-price .from {
  color: #666;
  font-size: 14px;
  margin-right: 6px;
}

.product-page .product-price .aud {
  font-size: 26px;
  font-weight: 700;
  color: #0077bb;
}

.product-page .product-price .note {
  color: #888;
  font-size: 12px;
  margin-left: 8px;
  font-weight: normal;
}

/* ---------- Enquire button ---------- */
.product-page .btn-enquire {
  display: inline-block;
  padding: 12px 24px;
  background: #0077bb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.2s;
}

.product-page .btn-enquire:hover {
  background: #005f99;
  color: #ffffff;
}

/* ---------- Sections ---------- */
.product-page .product-section {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.product-page .product-section:last-child {
  border-bottom: 0;
}

.product-page h2 {
  font-size: 22px;
  font-weight: 600;
  color: #0077bb;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0077bb;
}

.product-page h3 {
  font-size: 17px;
  font-weight: 600;
  color: #0077bb;
  margin: 22px 0 10px;
  padding-left: 12px;
  border-left: 4px solid #0077bb;
  line-height: 1.2;
}

/* ---------- Feature list ---------- */
.product-page .feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.product-page .feature-list li {
  padding: 10px 12px 10px 24px;
  margin-bottom: 6px;
  position: relative;
  line-height: 1.6;
}

.product-page .feature-list li::before {
  content: "-";
  position: absolute;
  left: 8px;
  color: #888;
  font-weight: bold;
}

.product-page .feature-list li strong {
  color: #0077bb;
  display: block;
  margin-bottom: 2px;
}

/* ---------- Application list ---------- */
.product-page .application-list {
  list-style: none;
  padding-left: 0;
}

.product-page .application-list li {
  padding: 4px 0 4px 20px;
  position: relative;
}

.product-page .application-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #0077bb;
  font-weight: bold;
}

/* ---------- Variant table ---------- */
.product-page .variant-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.product-page .variant-table th {
  background: #0077bb;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #0077bb;
}

.product-page .variant-table td {
  border: 1px solid #e5e5e5;
  padding: 10px 12px;
  vertical-align: top;
}

.product-page .variant-table tr:nth-child(even) td {
  background: #fafbfc;
}

.product-page .variant-table tr:hover td {
  background: #eef6fc;
}

.product-page .variant-table .price-cell {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.product-page .variant-table .price-cell a {
  color: #0077bb;
  text-decoration: none;
}

.product-page .variant-table .price-cell a:hover {
  text-decoration: underline;
}

/* ---------- Rich text (overview / technical HTML) ---------- */
.product-page .rich-text {
  line-height: 1.7;
}

.product-page .rich-text img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  margin: 10px 0;
}

.product-page .rich-text table {
  border-collapse: collapse;
  margin: 12px 0;
  max-width: 100%;
}

.product-page .rich-text table td,
.product-page .rich-text table th {
  border: 1px solid #e5e5e5;
  padding: 8px 10px;
}

/* ---------- Literature / Related lists ---------- */
.product-page .literature-list,
.product-page .related-list {
  list-style: none;
  padding-left: 0;
}

.product-page .literature-list li,
.product-page .related-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px dashed #ececec;
}

.product-page .literature-list li::before,
.product-page .related-list li::before {
  content: "-";
  position: absolute;
  left: 6px;
  color: #888;
  font-weight: bold;
}

.product-page .literature-list a,
.product-page .related-list a {
  color: #0077bb;
  text-decoration: none;
}

.product-page .literature-list a:hover,
.product-page .related-list a:hover {
  color: #005f99;
  text-decoration: underline;
}


/* ---------- Force technical/overview HTML to stay inside its container ---------- */

.product-page .rich-text {
  overflow: hidden;         /* contain any stray floats */
  max-width: 100%;
}

/* Kill any floats inherited from Bioneer's inline HTML */
.product-page .rich-text table,
.product-page .rich-text img,
.product-page .rich-text div {
  float: none !important;
  clear: both;
}

/* Prevent Bioneer's fixed widths from overflowing */
.product-page .rich-text table {
  width: auto !important;
  max-width: 100%;
  margin: 12px 0 !important;   /* override their margin-left: 15px, etc. */
  border-collapse: collapse;
}

.product-page .rich-text img {
  max-width: 100% !important;
  height: auto !important;
  margin: 10px 0 !important;
}

/* Neutralize any fixed-height wrappers from Bioneer */
.product-page .rich-text div[style*="height"] {
  height: auto !important;
}

/* Tables should be readable inside a narrow column */
.product-page .rich-text table td,
.product-page .rich-text table th {
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  vertical-align: top;
  word-wrap: break-word;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .product-page .product-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-page h1 {
    font-size: 22px;
  }
  .product-page h2 {
    font-size: 19px;
  }
  .product-page .variant-table {
    font-size: 13px;
  }
  .product-page .variant-table th,
  .product-page .variant-table td {
    padding: 8px 6px;
  }
}