.product-details-page {
  color: #183300;
  background: #fff;
}

.product-detail-hero {
  position: relative;
  isolation: isolate;
  height: clamp(360px, 39vw, 749px);
  min-height: 360px;
  overflow: hidden;
  color: #fff;
  background: #07190e;
}

.product-detail-hero-background,
.product-detail-hero-shade {
  position: absolute;
  inset: 0;
}

.product-detail-hero-background {
  z-index: -3;
  background: url("../assets/shop-detail-bg.png") center / cover no-repeat;
  transform: scale(1.025);
}

.product-detail-hero-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 52%, rgba(2, 15, 8, 0.02), rgba(0, 9, 4, 0.42) 88%),
    linear-gradient(90deg, rgba(0, 12, 5, 0.38), rgba(4, 23, 12, 0.03) 50%, rgba(0, 12, 5, 0.42));
}

.product-details-page .site-header {
  top: clamp(14px, 1.7vw, 32px);
  right: clamp(14px, 1.5vw, 29px);
  left: clamp(14px, 1.5vw, 29px);
  color: #fff;
}

.product-detail-foliage {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.product-detail-foliage img {
  display: block;
  width: 100%;
  height: auto;
}

.product-detail-foliage-left-top {
  top: 0;
  left: 0;
  width: clamp(220px, 20vw, 390px);
}

.product-detail-foliage-right-top {
  top: 0;
  right: 0;
  width: clamp(190px, 21vw, 350px);
}

.product-detail-foliage-left-bottom {
  bottom: 0;
  left: 0;
  width: clamp(190px, 21vw, 350px);
}

.product-detail-foliage-right-bottom {
  right: 0;
  bottom: 0;
  width: clamp(230px, 22vw, 420px);
}

.product-detail-hero-title-wrap {
  position: absolute;
  z-index: 8;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.product-detail-hero-title-wrap h1 {
  margin: 0;
  color: #9bdf35;
  background: linear-gradient(180deg, #f4f5ef 0%, #e9eee2 36%, #a9e74b 70%, #62bd04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 4px 2px rgba(0, 12, 5, 0.38));
  font-family: var(--heading-font);
  font-size: clamp(4rem, 7vw, 8.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.018em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-detail-title-parrot {
  position: absolute;
  z-index: 2;
  top: -142%;
  left: -14%;
  width: clamp(125px, 16vw, 250px);
  max-width: none;
  height: auto;
  pointer-events: none;
}

.product-purchase-section {
  padding: clamp(70px, 9vw, 150px) 0 clamp(60px, 7vw, 115px);
  background: linear-gradient(180deg, #dcecf4 0%, #f6fafc 60%, #fff 100%);
}

.product-purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  gap: clamp(28px, 5.2vw, 98px);
  width: min(82.5%, 1585px);
  min-height: clamp(510px, 52vw, 1010px);
  padding: clamp(18px, 1.2vw, 23px);
  overflow: hidden;
  border: 1px solid #70b4de;
  border-radius: clamp(18px, 1.45vw, 28px);
  background-color: #c4edff;
  background-image: url("../assets/div-product-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-gallery {
    display: grid;
    place-items: center;
    min-height: 100%;
    overflow: hidden;
    border-radius: clamp(13px, 1vw, 20px);
    background-color: rgba(255, 255, 255, 0.8);
    background-image: url(../assets/bottle-bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.product-gallery img {
  display: block;
  width: auto;
  height: min(70%, 710px);
  max-width: 54%;
  object-fit: contain;
  filter: drop-shadow(14px 18px 16px rgba(13, 39, 20, 0.18));
}

.product-purchase-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3.2vw, 60px) clamp(18px, 4.1vw, 78px) clamp(20px, 3vw, 58px) 0;
}

.product-purchase-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.25vw, 2.7rem);
  font-weight: 500;
  line-height: 1.1;
}

.product-purchase-heading p {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 10px 0 0;
}

.selected-price {
  color: #0c1b0d;
  font-size: clamp(1.75rem, 2.25vw, 2.7rem);
  font-weight: 500;
}

.regular-price {
  color: #758078;
  font-size: clamp(0.95rem, 1.1vw, 1.3rem);
}

.product-size-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(24px, 2.5vw, 46px);
}

.product-size-options > span {
  margin-right: 10px;
  font-size: clamp(0.72rem, 0.75vw, 0.9rem);
}

.product-size-options button {
  min-width: clamp(80px, 7vw, 110px);
  min-height: clamp(30px, 3vw, 42px);
  padding: 8px 18px;
  cursor: pointer;
  color: #13280d;
  border: 1px solid #b8ccaa;
  border-radius: 999px;
  background: rgb(206, 227, 241);
  font: inherit;
  font-size: 12px;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-size-options button:hover,
.product-size-options button:focus-visible,
.product-size-options button.is-active {
  color: #fff;
  border-color: #6EC200;
  background: #6EC200;
  transform: translateY(-1px);
}

.product-order-type {
  min-width: 0;
  margin: clamp(24px, 2.4vw, 44px) 0 0;
  padding: 0;
  border: 0;
}

.product-order-type legend {
  margin-bottom: clamp(24px, 2vw, 36px);
  color: #6f7d72;
  font-size: clamp(0.72rem, 0.75vw, 0.9rem);
  text-transform: uppercase;
}

.product-order-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1vw, 18px);
}

.product-order-card {
  position: relative;
  min-height: clamp(220px, 23vw, 410px);
  display: flex;
  flex-direction: column;
  padding: clamp(23px, 2vw, 38px);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: clamp(14px, 1.1vw, 20px);
  background: #F0FAFF;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.product-order-card--subscription-preview {
  cursor: default;
}

.product-order-card:hover,
.product-order-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(36, 83, 111, 0.12);
}

.product-order-card.is-selected {
  border-color: #4ea8df;
  background: rgba(255, 255, 255);
}

.product-order-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.product-discount {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 76%;
  padding: 7px 14px;
  color: #fff;
  border-radius: 999px;
  background: #4ea8df;
  font-size: clamp(0.55rem, 0.62vw, 0.75rem);
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.product-order-name {
  display: block;
  margin-bottom: 9px;
  font-size: clamp(0.82rem, 0.95vw, 1.12rem);
  font-weight: 500;
}

.product-order-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: clamp(12px, 1.2vw, 20px);
  border-bottom: 1px solid rgba(38, 73, 35, 0.22);
}

.product-order-price strong {
  font-size: clamp(1.25rem, 1.55vw, 1.85rem);
  font-weight: 500;
}

.product-order-price del {
  color: #758078;
  font-size: 0.75rem;
}

.product-benefits {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.55vw, 10px);
  margin-top: clamp(14px, 1.3vw, 23px);
  font-size: clamp(0.65rem, 0.67vw, 0.8rem);
  line-height: 1.35;
}

.product-benefits > span {
  position: relative;
  padding-left: 13px;
}

.product-benefits > span::before {
  content: "\2713";
  position: absolute;
  top: 0;
  left: 0;
  color: #58a600;
  font-weight: 700;
}

.delivery-frequency {
  width: 100%;
  min-height: clamp(42px, 2.6vw, 50px);
  margin-top: 25px;
  padding: 7px clamp(44px, 3vw, 58px) 7px clamp(18px, 2vw, 36px);
  appearance: none;
  -webkit-appearance: none;
  color: #142d05;
  border: 2px solid #71b91b;
  border-radius: 999px;
  outline: 0;
  background-color: #edf5f8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M2 2l10 10L22 2' fill='none' stroke='%232e5008' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-position: right clamp(18px, 1.6vw, 30px) center;
  background-size: clamp(14px, 1vw, 19px) auto;
  background-repeat: no-repeat;
  box-shadow: none;
  font: inherit;
  font-size: clamp(0.68rem, 0.72vw, 0.88rem);
  cursor: pointer;
}

.delivery-frequency:hover,
.delivery-frequency:focus,
.delivery-frequency:focus-visible {
  border-color: #71b91b;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(113, 185, 27, 0.14);
}

.product-purchase-actions {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) 1fr;
  gap: 12px;
  margin-top: clamp(22px, 2vw, 36px);
}

.quantity-control,
.product-detail-add-cart {
  min-height: clamp(52px, 4vw, 68px);
  border-radius: 999px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.quantity-control button {
  align-self: stretch;
  cursor: pointer;
  color: #42603c;
  border: 0;
  background: transparent;
  font: 1.15rem/1 var(--body-font);
}

.quantity-value {
  font-size: clamp(0.7rem, 0.75vw, 0.9rem);
  text-align: center;
}

.product-detail-add-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(24px, 2vw, 38px);
  cursor: pointer;
  color: #fff;
  border: 0;
  background: #58920c;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.product-detail-add-cart:hover,
.product-detail-add-cart:focus-visible {
  background: #347804;
  transform: translateY(-1px);
}

.product-detail-add-cart svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.related-products {
  padding: clamp(50px, 5vw, 90px) 0 clamp(90px, 9vw, 160px);
  color: #183300;
  background: #fff;
}

.related-products-inner {
  width: min(calc(100% - clamp(40px, 9.4vw, 180px)), 1640px);
}

.related-products h2 {
  margin: 0;
  color: #66ae09;
  background: linear-gradient(180deg, #2f5b03 0%, #477e02 48%, #86cf16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--heading-font);
  font-size: clamp(3.1rem, 4.5vw, 5.6rem);
  font-weight: 400;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.4vw, 27px);
  margin-top: clamp(42px, 5vw, 86px);
}

.related-products .product-card {
  color: #17300e;
  box-shadow: none;
}

.related-products .product-visual {
  aspect-ratio: 1.08 / 1;
}

@media (max-width: 1100px) {
  .product-purchase-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
  }

  .product-purchase-content {
    padding-right: 20px;
  }

  .product-order-card {
    padding: 24px 18px;
  }
}

@media (max-width: 1024px) {
  /* .product-detail-title-parrot {
    display: none;
  } */
  .product-detail-title-parrot {
    top: -150%;
    left: 0px;
    right:0px;
    margin:0px auto;
  }
}

@media (max-width: 900px) {

  .product-purchase-section {
    padding: 60px 20px 70px;
  }

  .product-purchase-panel,
  .related-products-inner {
    width: 100%;
  }

  .product-purchase-panel {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }

  .product-gallery {
    min-height: 520px;
  }

  .product-gallery img {
    height: 76%;
  }

  .product-purchase-content {
    padding: 42px 22px 24px;
  }

  .product-order-card {
    min-height: 310px;
  }

  .related-products {
    padding-right: 20px;
    padding-left: 20px;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-detail-hero {
    height: 430px;
  }

  .product-detail-hero-background {
    background-position: 53% center;
  }

  .product-detail-hero-title-wrap h1 {
    font-size: 35px;
    white-space: normal;
  }

  .product-detail-foliage-left-top {
    width: 180px;
  }

  .product-detail-foliage-right-top {
    width: 165px;
  }

  .product-detail-foliage-left-bottom,
  .product-detail-foliage-right-bottom {
    width: 180px;
  }

  .product-purchase-section {
    padding: 42px 14px 55px;
  }

  .product-purchase-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .product-gallery {
    min-height: 390px;
  }

  .product-gallery img {
    height: 79%;
    max-width: 64%;
  }

  .product-purchase-content {
    padding: 32px 10px 10px;
  }

  .product-size-options {
    flex-wrap: wrap;
  }

  .product-size-options > span {
    width: 100%;
  }

  .product-order-options,
  .product-purchase-actions,
  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .product-order-options {
    gap: 20px;
  }

  .product-order-card {
    min-height: 280px;
  }

  .product-order-card:last-child {
    min-height: 190px;
  }

  .product-purchase-actions {
    gap: 10px;
  }

  .related-products {
    padding: 52px 14px 80px;
  }

  .related-products h2 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .related-products-grid {
    margin-top: 36px;
  }
  .product-detail-title-parrot {
    top: -230%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail-foliage,
  .product-order-card,
  .product-size-options button,
  .product-detail-add-cart {
    transition: none;
  }
}
