/* ===========================
   Single Product — Full CSS
   =========================== */

/* Page layout tweaks */
body.single-product main.site-main {
  padding: 180px 0 80px;
}

/* Prevent body content shift when modal opens */
body.mh-modal-open {
  overflow: hidden;
}

/* Main product grid */
.mh-single-product {
  font-family: "Nunito", sans-serif;
  color: #eef5ef;
}
.mh-single-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin: 0 0 48px 0;
}

/* Image sits on a clean white panel so packshots stay crisp */
.mh-product-media {
  text-align: center;
  padding: 32px;
  border-radius: 28px;
  background: #fff;
}
.mh-single-image {
  width: auto;
  height: auto;
  border-radius: 16px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 500px;
}
.mh-no-image {
  padding: 60px 0;
  color: #556270;
}

/* Gallery thumbnails */
.mh-gallery-row {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.mh-gallery-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(238, 245, 239, .2);
}

/* Summary */
.mh-single-product h1.mh-product-title {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding-bottom: 24px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 400;
  color: #eef5ef;
  text-align: left;
}
.mh-product-price {
  font-size: 1.25rem;
  color: #e2eae1;
  margin-bottom: .75rem;
}
.mh-product-short-desc {
  margin-bottom: 1rem;
  color: rgba(238, 245, 239, .85);
  line-height: 1.6;
}

/* Keep list spacing consistent */
.mh-product-short-desc ul,
.mh-product-short-desc ol,
.mh-tabs-content ul,
.mh-tabs-content ol {
  margin: 0;
  padding: 0 0 20px 20px;
}

/* Actions: mint pill with dark arrow chip, like the theme buttons */
.mh-product-actions {
  width: fit-content;
  max-width: 100%;
  padding-top: 24px;
}
.mh-product-actions .mh-button,
.mh-product-actions .button,
.mh-product-actions .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 0 8px 0 32px;
  background: #e3eae1;
  color: #16211d;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.mh-product-actions .mh-button::after {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #16211d url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 10.5l7-7M4.5 3.5h6v6'/></svg>") center / 14px 14px no-repeat;
}
.mh-product-actions .mh-button:hover,
.mh-product-actions .mh-button:focus,
.mh-product-actions .button:hover,
.mh-product-actions .single_add_to_cart_button:hover {
  background: #fff;
  color: #16211d;
  transform: translateY(-2px);
}
.mh-product-actions .mh-button:focus-visible {
  outline: 2px solid #e2eae1;
  outline-offset: 3px;
}

/* Meta */
.mh-product-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgb(238 245 239 / 12%);
  color: rgba(238, 245, 239, .7);
  font-size: .92rem;
}
.mh-product-meta > div + div { margin-top: 6px; }
.mh-product-meta strong { color: #eef5ef; font-weight: 500; }
.mh-product-meta a {
  color: #eef5ef;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tabs */
.mh-product-details-tabs {
  margin-top: 36px;
  padding-bottom: 40px;
}
.mh-tabs-nav {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid rgb(238 245 239 / 12%);
}
.mh-tabs-nav li {
  margin-bottom: -1px;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  color: rgba(238, 245, 239, .65);
  cursor: pointer;
  transition: color .2s ease;
}
.mh-tabs-nav li:hover { color: #eef5ef; }
.mh-tabs-nav li.active {
  border-bottom-color: #e2eae1;
  color: #fff;
  font-weight: 600;
}
.mh-tab { display: none; }
.mh-tab.active {
  display: block;
  color: rgba(238, 245, 239, .85);
  line-height: 1.7;
}
.mh-tab h2,
.mh-tab h3,
.mh-tab h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: #eef5ef;
}

/* Additional info table */
.mh-attributes {
  width: 100%;
  border-collapse: collapse;
  margin-top: .5rem;
}
.mh-attributes th {
  text-align: left;
  padding: .75rem;
  background: #16211d;
  color: #eef5ef;
  width: 30%;
}
.mh-attributes td {
  padding: .75rem;
  border-bottom: 1px solid rgb(238 245 239 / 12%);
}

/* Related products reuse the shared product cards (product-cards.css) */
.mh-related-products {
  margin-top: 40px;
}
.mh-related-products > h2 {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 24px;
  line-height: 50px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: #eef5ef;
}

/* Responsive adjustments */
@media (max-width:991px) {
  .mh-single-wrapper {
    grid-template-columns: 1fr;
  }


  body.single-product main.site-main {
    padding-top: 180px;
  }

  .mh-single-product h1.mh-product-title { font-size: 36px; }
}

@media (max-width:767px) {
  body.single-product main.site-main {
    padding-top: 130px;
  }
}

/* ===== Modal base (class-based visibility) ===== */
.mh-modal {
  position: fixed;
  inset: 0;
  display: flex;              /* keep flex for centering */
  align-items: center;
  justify-content: center;
  z-index: 99999;

  /* Start hidden via opacity/visibility/pointer-events to allow transitions */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(.2,.95,.2,1), visibility 320ms linear;
}

/* When open, add this class (JS toggles .active-popup) */
.mh-modal.active-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop overlay */
.mh-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 13, 0.7);

  opacity: 0;
  transition: opacity 320ms ease;
}

/* When active, backdrop becomes visible */
.mh-modal.active-popup .mh-modal-overlay {
  opacity: 1;
}

/* Modal panel styling + animation */
.mh-modal-panel {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 94%;
  background: #273F30;
  color: #eef5ef;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);


  opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.95,.2,1), opacity 0.35s ease;
  transform: translateY(20px) scale(0.97);

}

/* Panel when modal active */
.mh-modal.active-popup .mh-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
.mh-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent !important;
  color: #eef5ef !important;
  padding: 10px !important;
  border: none;
  font-size: 28px !important;
  font-weight: normal;
  line-height: 1;
  cursor: pointer;
  outline: 0;
}

/* Modal title & product title */
.mh-modal {
  font-family: "Nunito", sans-serif;
}
.mh-modal h2 {
  margin-top: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: #eef5ef;
}

.mh-modal-product-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
  color: #eef5ef;
  background: #142A1C;
  padding: 15px 15px;
  border-radius: 12px;
}

/* CF7 form adjustments inside modal */
.f12-captcha { padding: 0; }

.mh-modal .wpcf7 form { margin: 0; }

/* Small utilities used in modal content */
.mh-team-modal-photo,
.mh-modal .mh-team-modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 18px;
  float: left;
}

.mh-team-details-inner h2 {
  margin-top: 0;
  color: var(--e-global-color-1064516);
}

.mh-team-modal-content {
  padding-top: 20px;
}

.mh-team-modal-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-team-modal-content ul li {
  padding: 8px 20px;
  display: inline-block;
  border-radius: 50px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.pop-qualification { margin-bottom: 0; }
.pop-designation { margin-bottom: 0; color: #1895D4; }

/* Allow visible overflow on smaller screens if needed */
@media (max-width: 1199px) {
  .swiper_wrap .mh-swiper-container.swiper-container {
    overflow: visible;
  }
}

/* Accessibility: focus ring for panel (keyboard users) */
.mh-modal.active-popup .mh-modal-panel:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(10,112,90,0.08);
}

/* Reduced-motion: remove animations/transitions */
@media (prefers-reduced-motion: reduce) {
  .mh-modal,
  .mh-modal .mh-modal-overlay,
  .mh-modal .mh-modal-panel {
    transition: none !important;
    transform: none !important;
  }
}