/*
Theme Name: HealthHub Child Theme
Theme URI: https://healthhub.ancorathemes.com/
Description: HealthHub is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: AncoraThemes
Author URI: https://ancorathemes.com/
Version: 1.10.0
Tested up to: 6.6
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: clinic, dental, doctor, gynecology, health, healthtech, healthyliving, hospital, medical, medicine, nutrition, pediatric, therapy
Text Domain: healthhub
Template: healthhub
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* ================================================
   Page Hero
   ================================================ */

.page-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  height: 65vh;
  max-height: 620px;
  display: flex;
  align-items: center;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center right;
  background-color: #0c2236;
  align-items: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 28, 48, 0.88) 0%,
    rgba(8, 28, 48, 0.55) 42%,
    rgba(8, 28, 48, 0.2) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.page-hero__content {
  max-width: 520px;
}

.page-hero__title {
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  margin: 0 0 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: clamp(0.95rem, 1.15vw, 1.0625rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.75;
  max-width: 460px;
}

.page-hero--no-image {
  background-image: none;
  background-color: #0c2236;
}

.page-hero--no-image .page-hero__overlay {
  background: rgba(8, 28, 48, 0.92);
}

/* Hide duplicate featured image when the page hero is active */
.has-page-hero .wp-block-post-featured-image,
.has-page-hero .post_featured,
.has-page-hero .post_thumb {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero {
    min-height: 420px;
    height: 55vh;
    max-height: 520px;
    background-position: center;
  }

  .page-hero__overlay {
    background: linear-gradient(
      to top,
      rgba(8, 28, 48, 0.92) 0%,
      rgba(8, 28, 48, 0.6) 100%
    );
  }

  .page-hero__inner {
    padding: 0 1.75rem;
  }

  .page-hero__subtitle {
    max-width: none;
  }
}

/* ================================================
   Product catalog (Pfizer-style listing)
   ================================================ */

.product-listings-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 3rem) 4rem;
  box-sizing: border-box;
}

.product-listings {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 3rem 4rem;
  align-items: start;
  margin-bottom: 100px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-listings__heading {
  color: #2d6a3e;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.product-listings__description {
  color: #333;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.product-listings__description p {
  margin: 0;
}

.product-listings .product-listings__search {
  display: flex !important;
  align-items: center !important;
  border: none !important;
  border-bottom: 1px solid #c9c9c9 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  max-width: 100% !important;
  box-shadow: none !important;
  background: transparent !important;
  gap: 0.5rem;
}

.product-listings .product-listings__search-input,
.product-listings input[type="search"].product-listings__search-input {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  flex: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.6rem 0 !important;
  font-size: 0.95rem !important;
  outline: none !important;
  min-width: 0;
  background: transparent !important;
  color: #333 !important;
  -webkit-appearance: none;
  appearance: none;
}

.product-listings .product-listings__search-input::placeholder {
  color: #aaa;
  opacity: 1;
}

.product-listings .product-listings__search-btn,
.product-listings button[type="submit"].product-listings__search-btn {
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  border: 1.5px solid #2d6a3e !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #2d6a3e !important;
  cursor: pointer;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  text-transform: none !important;
  font-size: 0 !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-listings .product-listings__search-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.product-listings .product-listings__search-btn:hover,
.product-listings button[type="submit"].product-listings__search-btn:hover {
  background: #2d6a3e !important;
  color: #fff !important;
}

.product-listings__catalog {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-listings__results {
  background-color: #fff;
  border: 2px solid #c8dac8;
  border-radius: 10px;
  padding: 2rem;
  max-height: 74vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-listings__results::-webkit-scrollbar {
  width: 6px;
}

.product-listings__results::-webkit-scrollbar-track {
  background: transparent;
}

.product-listings__results::-webkit-scrollbar-thumb {
  background: #2d6a3e;
  border-radius: 3px;
}

.product-listings__item--highlight {
  background: rgba(45, 106, 62, 0.1);
  box-shadow: 0 0 0 1px rgba(45, 106, 62, 0.35) inset;
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
}

.product-listings__alpha {
  align-self: start;
}

.product-listings__alpha-list {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-listings__alpha-item {
  display: block;
  margin: 0 0 6px;
}

.product-listings__alpha-link {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d6a3e;
  text-decoration: none;
  line-height: 1.3;
}

.product-listings__alpha-link:hover {
  text-decoration: underline;
}

.product-listings__alpha-link--empty {
  color: #bbb;
  font-weight: 400;
}

.product-listings__section {
  margin-bottom: 2rem;
}

.product-listings__section:last-child {
  margin-bottom: 0;
}

.product-listings__letter {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e5e5e5;
}

.product-listings__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-listings__item {
  margin-bottom: 1.35rem;
}

.product-listings__item:last-child {
  margin-bottom: 0;
}

.product-listings__name {
  display: inline-block;
  color: #2d6a3e;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.product-listings__name:hover {
  text-decoration: underline;
}

.product-listings__medical {
  margin: 0.2rem 0 0;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-listings__empty {
  color: #666;
  font-size: 1rem;
}

/* Single medicine product */
.medicine-single-page .woocommerce-breadcrumb {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem) 0;
}

.medicine-single {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem) 4rem;
}

.medicine-single__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.medicine-single__title {
  color: #2d6a3e;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.medicine-single__medical {
  margin: 0;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.5;
}

.medicine-single__body {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 2.5rem;
  align-items: start;
}

.medicine-single__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.medicine-single__description {
  color: #333;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.medicine-single__description > :first-child {
  margin-top: 0;
}

.medicine-single__links-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 1rem;
}

.medicine-single__links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.medicine-single__link {
  display: inline-flex;
  align-items: center;
  color: #2d6a3e;
  font-weight: 600;
  text-decoration: none;
}

.medicine-single__link:hover {
  text-decoration: underline;
}

.medicine-single__link::before {
  content: '→';
  margin-right: 0.45rem;
}

.product-listings-page .woocommerce-result-count,
.product-listings-page .woocommerce-ordering,
.medicine-single-page .product_meta,
.medicine-single-page .woocommerce-tabs {
  display: none !important;
}

@media (max-width: 900px) {
  body.product-listings-page {
    overflow-x: clip;
  }

  .product-listings-wrap {
    width: 100%;
    max-width: 100%;
    padding: 2rem 1rem 3rem;
    overflow-x: clip;
  }

  .product-listings {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .product-listings__intro,
  .product-listings__catalog,
  .product-listings__results,
  .product-listings__alpha {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-listings__catalog {
    grid-template-columns: 1fr;
  }

  .product-listings__results {
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
    padding: 1.25rem;
  }

  .product-listings__alpha {
    width: 100%;
  }

  .product-listings__alpha-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .product-listings__alpha-item {
    margin: 0;
    flex: 0 0 auto;
  }

  .product-listings .product-listings__search {
    width: 100%;
    max-width: 100%;
  }

  .product-listings__medical {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .medicine-single__body {
    grid-template-columns: 1fr;
  }
}