/* =========================================================
   Products Page (products.html)
   Product hero, card catalog, treatment highlights
   ========================================================= */

/* ---------- Hero Section ---------- */
.products-heroo {
  background-color: var(--purple-primary);
  padding: 6rem 0;
  text-align: center;
}

.products-heroo h1 {
  font-family: "Rische", serif;
  font-size: 4rem;
}

.products-heroo p {
  font-size: 2rem;
}

.products-heroo .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.products-heroo img {
  width: 10rem;
  margin-bottom: 2rem;
}

.products-heroo .underline-text {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  margin-bottom: 2rem;
}

.products-heroo .underline-svg {
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 100%;
  height: 48px;
}

.products-heroo .underline-svg path {
  stroke: #549471;
  stroke-width: 12;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: hero-underline-draw 1.4s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes hero-underline-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Introductory Copy ---------- */
.products-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.products-text-main {
  width: 60rem;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
}

/* ---------- Product Cards ---------- */
.product-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-card {
  display: flex;
  flex-direction: row;
  width: 60rem;
  border: 1px solid var(--purple-dark);
  gap: 4rem;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  background-color: var(--white);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-card .left,
.product-card .right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.product-card h4 {
  font-size: 2rem;
  font-family: "Rische", serif;
  color: var(--purple-dark);
}

.product-img .img-fluid {
  width: 10rem;
  border: 1px solid var(--purple-dark);
  border-radius: 20px;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.product-info p {
  width: 35rem;
  font-size: 1.5rem;
  color: var(--purple-dark);
}

/* ---------- Serum Highlight Sections ---------- */
.products-hair {
  background-color: var(--purple-light);
  padding: 5rem;
  margin-top: 6rem;
}

.products-pfb {
  background-color: var(--white);
  
}

.purple-section {
  display: flex;
  justify-content: center;
  width: 100vw;
  padding: 1rem 20rem;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.product-image-left,
.product-image-right {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-left img,
.product-image-right img {
  max-width: 8rem;
  height: auto;
  display: block;
  margin: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.14))
    drop-shadow(0 3px 14px rgba(0, 0, 0, 0.12));
  transition: all 0.3s ease;
}

.product-image-left img {
  margin: 0 6rem 0 0;
}

.product-image-right img {
  margin: 0 0 0 6rem;
}

.product-image-left img:hover,
.product-image-right img:hover {
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25)) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.18))
    drop-shadow(0 5px 18px rgba(0, 0, 0, 0.16));
  transform: scale(1.05);
}

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.product-title {
  font-size: 2.0em;

  text-align: left;
  font-family: "Rische", serif;
  margin-bottom: 10px;
  line-height: 1.15;
  color: var(--purple-dark);
}

.product-subtitle {
  font-size: 1.4em;
  font-weight: normal;
  text-align: left;
  margin-bottom: 22px;
  color: var(--purple-dark);
  font-style: italic;
}

.product-description {
  max-width: 40rem;
  text-align: left;
  font-size: 0.98em;
  line-height: 1.75;
  margin-bottom: 28px;
  color: #f5f5f5;
}

.features-title {
  font-size: 1.05em;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  color: var(--purple-dark);
}

.features-list {
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.features-list li {
  font-size: 0.92em;
  margin-bottom: 9px;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
  color: var(--white);
}

.features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--purple-dark);
  font-size: 1.3em;
}

/* ---------- PFB Feature Grid ---------- */
.green-section {
  width: 100vw;
  background-color: var(--green-primary);
  padding: 70px 90px;
  text-align: center;
  position: relative;
}

.pfb-title {
  font-size: 3.2em;
  font-weight: bold;
  font-family: "Rische", serif;
  margin-bottom: 30px;
  color: var(--white);
}

.pfb-description {
  font-size: 1.08em;
  line-height: 1.85;
  max-width: 920px;
  margin: 0 auto 55px auto;
  color: #f5f5f5;
}

.pfb-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 70px auto;
  position: relative;
  gap: 0;
}

.pfb-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 48%;
  z-index: 1;
}

.pfb-center {
  width: 16%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
  margin: 0 -60px;
}

.pfb-center img {
  width: 8rem;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.14))
    drop-shadow(0 3px 14px rgba(0, 0, 0, 0.12));
  transition: all 0.3s ease;
}

.pfb-center img:hover {
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25)) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.18))
    drop-shadow(0 5px 18px rgba(0, 0, 0, 0.16));
  transform: scale(1.05);
}

.pfb-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.pfb-column.right .pfb-item {
  justify-content: flex-start;
}

.pfb-box {
  background-color: rgba(45, 60, 55, 0.6);
  padding: 22px 35px;
  border-radius: 10px;
  font-size: 1.05em;
  font-weight: bold;
  color: var(--white);
  width: 20rem;
  height: 4rem;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

.pfb-column.left .pfb-box {
  justify-content: flex-end;
  text-align: right;
  padding-right: 50px;
}

.pfb-column.right .pfb-box {
  justify-content: flex-start;
  text-align: left;
  padding-left: 50px;
}

.pfb-product {
  max-width: 220px;
  height: auto;
  display: block;
}

/* ---------- Responsive Behaviour ---------- */
@media (max-width: 991.98px) {
  .products-text-main {
    width: 100%;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
  }

  .product-cards {
    gap: 1.5rem;
  }

  .product-card {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .product-card .left,
  .product-card .right {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .product-img .img-fluid {
    width: min(60vw, 220px);
  }

  .product-info {
    align-items: center;
    text-align: center;
  }

  .product-info p {
    width: 100%;
    font-size: 1.1rem;
  }

  .products-hair,
  .products-pfb {
    padding: 3rem 1.5rem;
    border-radius: 0;
  }

  .products-hair {
    width: 100vw;
  }

  .pfb-title {
    font-size: 2rem !important;
  }

  .purple-section,
  .product-row {
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 2rem;
    align-items: center;
  }

  .product-image-left,
  .product-image-right {
    flex: 0 0 auto;
  }

  .product-image-left img,
  .product-image-right img {
    margin: 0 auto;
    width: 5rem;
  }

  .product-content,
  .pfb-description,
  .product-description {
    text-align: center;
    align-items: center;
  }

  .product-title,
  .product-subtitle {
    text-align: center;
  }

  .pfb-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .pfb-column {
    width: 100%;
    gap: 1rem;
    align-items: stretch;
  }

  .pfb-item {
    justify-content: center !important;
    width: 100%;
  }

  .pfb-box {
    width: 100%;
    justify-content: center !important;
    text-align: center !important;
    padding: 1rem;
  }

  .pfb-product {
    max-width: min(60vw, 220px);
    margin: 0 auto;
  }

  .pfb-center img {
  width: 4rem;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.14))
    drop-shadow(0 3px 14px rgba(0, 0, 0, 0.12));
  transition: all 0.3s ease;
}

  .pfb-column.left .pfb-box,
  .pfb-column.right .pfb-box {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 1024px) {
  .purple-section,
  .green-section {
    padding: 50px 60px;
  }

  .product-row {
    gap: 50px;
  }

  .product-title {
    font-size: 2em;
  }

  .pfb-title {
    font-size: 2.8em;
  }
}

@media (max-width: 768px) {
  .green-section {
    padding: 40px 30px;
  }
}
 html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }