/* Poster-style landscape-tree feature. All three source photographs remain untouched. */
#products .tree-hero-feature {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(196, 153, 66, 0.76);
  border-radius: 12px;
  background: #042e27;
  box-shadow: 0 28px 70px rgba(5, 40, 31, 0.22);
}

#products .tree-hero-feature::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #032c25 0%, rgba(3, 44, 37, 0.99) 36%, rgba(3, 44, 37, 0.7) 49%, transparent 68%),
    linear-gradient(180deg, transparent 58%, rgba(2, 30, 24, 0.34));
}

#products .tree-hero-feature::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 4.5%;
  bottom: 43%;
  left: 7.4%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(196, 153, 66, 0.86) 20%, rgba(196, 153, 66, 0.86) 82%, transparent);
}

#products .tree-photo-gallery {
  position: absolute;
  z-index: auto;
  inset: 0;
}

#products .tree-photo-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #08261f;
}

#products .tree-photo-main {
  position: absolute;
  inset: 0 0 0 auto;
  width: 70%;
}

#products .tree-photo-gallery img,
#products .tree-hero-feature .product-feature-hero {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: transparent;
  filter: none;
}

#products .tree-photo-pair {
  position: absolute;
  z-index: 4;
  left: 7.1%;
  bottom: 9.4%;
  display: flex;
  align-items: end;
  width: 41%;
}

#products .tree-photo-pair figure {
  position: relative;
  flex: 0 0 56%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid rgba(214, 176, 92, 0.96);
  border-radius: 50%;
  background: #0b352c;
  box-shadow:
    0 0 0 3px rgba(3, 44, 37, 0.55),
    0 16px 38px rgba(0, 0, 0, 0.28);
}

#products .tree-photo-pair figure + figure {
  margin-left: -9%;
}

#products .tree-photo-pair img {
  object-fit: cover;
  object-position: center;
  filter: brightness(1.12) saturate(1.08) contrast(1.03);
}

#products .tree-photo-gallery figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#products .tree-hero-feature .product-feature-content {
  position: absolute;
  z-index: 5;
  top: 8.5%;
  left: 9.4%;
  width: 38%;
  display: grid;
  align-content: start;
  gap: clamp(7px, 1vw, 16px);
  padding: 0;
  color: #f8ecd3;
}

#products .tree-hero-feature .badge {
  border: 0;
  padding: 0;
  color: #cda44d;
  background: transparent;
  font-size: clamp(8px, 0.72vw, 12px);
  letter-spacing: 0.2em;
}

#products .tree-hero-feature .product-feature-content h2 {
  margin: 0;
  color: #f8ecd3;
  font-family: "Noto Serif Thai", var(--font-display);
  font-size: clamp(58px, 7.5vw, 118px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

#products .tree-hero-feature .tree-hero-count {
  margin-top: clamp(3px, 0.5vw, 8px);
  color: #c99b42;
  font-family: "Noto Serif Thai", var(--font-display);
  font-size: clamp(18px, 2.1vw, 33px);
  font-weight: 600;
  line-height: 1.2;
}

#products .tree-hero-feature .product-feature-content .section-copy {
  max-width: 31ch;
  margin: 0;
  color: rgba(255, 251, 241, 0.88);
  font-size: clamp(11px, 1vw, 16px);
  font-weight: 600;
  line-height: 1.55;
}

#products .tree-hero-feature .tree-hero-traits {
  position: absolute;
  z-index: 5;
  left: 11.5%;
  bottom: 3.2%;
  margin: 0;
  color: #d2a950;
  font-size: clamp(10px, 0.95vw, 15px);
  font-weight: 700;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

#products .tree-catalog-tags {
  justify-content: center;
  gap: 8px;
  margin: 18px auto 4px;
}

#products .tree-catalog-tags .tag {
  border-color: rgba(7, 61, 51, 0.18);
  color: #315c49;
  background: rgba(255, 253, 248, 0.74);
  font-size: 12px;
}

@media (max-width: 900px) {
  #products .tree-hero-feature .product-feature-content {
    left: 8.5%;
    width: 41%;
  }

  #products .tree-photo-pair {
    left: 6.5%;
    width: 43%;
  }
}

@media (max-width: 620px) {
  #products .tree-hero-feature {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    border-radius: 10px;
  }

  #products .tree-hero-feature::before,
  #products .tree-hero-feature::after {
    display: none;
  }

  #products .tree-photo-gallery {
    position: relative;
    order: -1;
    width: 100%;
    height: 295px;
    overflow: visible;
  }

  #products .tree-photo-main {
    inset: 0;
    width: 100%;
    border-bottom: 1px solid rgba(196, 153, 66, 0.58);
  }

  #products .tree-photo-pair {
    left: 7%;
    bottom: -54px;
    width: 70%;
  }

  #products .tree-photo-pair figure {
    flex-basis: 52%;
    border-width: 2px;
  }

  #products .tree-hero-feature .product-feature-content {
    position: static;
    width: auto;
    gap: 9px;
    padding: 74px 22px 26px;
  }

  #products .tree-hero-feature .product-feature-content h2 {
    font-size: clamp(54px, 18vw, 76px);
  }

  #products .tree-hero-feature .tree-hero-count {
    font-size: 22px;
  }

  #products .tree-hero-feature .product-feature-content .section-copy {
    font-size: 14px;
  }

  #products .tree-hero-feature .tree-hero-traits {
    position: static;
    order: 1;
    margin: -14px 22px 24px;
    color: #d2a950;
    font-size: 12px;
  }

  #products .tree-catalog-tags {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 2px 5px;
    scrollbar-width: none;
  }

  #products .tree-catalog-tags::-webkit-scrollbar {
    display: none;
  }

  #products .tree-catalog-tags .tag {
    flex: 0 0 auto;
  }
}
