/**
 * Product detail hero — scoped to .pd-hero only.
 * Does not modify global theme rules outside this section.
 */

.pd-hero {
  --pd-cream: #e8e1d6;
  --pd-purple-deep: #4c1d95;
  --pd-purple-mid: #6d28d9;
  --pd-inner-max: 1320px;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  /* Section fills one viewport; scroll inside if content is taller (e.g. stacked mobile) */
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  background-color: #5b21b6;
  background-image: url("../images/product-detail-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(1.2rem, 3vw, 1.75rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

/* Decorative gradient blobs/curve disabled so the hero photo reads clearly */
.pd-hero__blobs {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pd-hero__blobs::before,
.pd-hero__blobs::after {
  display: none;
}

.pd-hero__curve {
  display: none;
}

.pd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--pd-inner-max);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1.25rem, 4vw, 3.5rem) 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

/* ——— Grid ——— */
.pd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  flex: 1;
  min-height: 0;
}

.pd-hero__content {
  min-width: 0;
}

.pd-hero__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 0.85rem;
}

.pd-hero__titles {
  min-width: 0;
}

.pd-hero__title {
  margin: 0;
  font-family: var(--font-heading-family, "Beanstalker", sans-serif);
  font-size: clamp(3.6rem, 7.5vw, 6.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fafafa;
}

.pd-hero__subtitle {
  margin: 0.75rem 0 0;
  font-family: var(--font-museo-sans-family, "Quicksand", sans-serif);
  font-size: clamp(1.4rem, 1.65vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.95);
}

.pd-hero__price {
  margin: 0.35rem 0 0;
  flex-shrink: 0;
  font-family: var(--font-heading-family, "Beanstalker", sans-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: right;
}

.pd-hero__desc {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  max-width: 38rem;
}

.pd-hero__desc-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-museo-slab-family, "Quicksand", sans-serif);
  font-size: clamp(1.5rem, 1.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pd-hero__desc-text {
  margin: 0;
  font-family: var(--font-museo-sans-family, "Quicksand", sans-serif);
  font-size: clamp(1.35rem, 1.45vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.pd-hero__features {
  list-style: none;
  margin: clamp(1.75rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 2rem;
  max-width: 36rem;
  font-family: var(--font-museo-slab-family, "Quicksand", sans-serif);
  font-size: clamp(1.35rem, 1.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pd-hero__features li:nth-child(3) {
  grid-column: 1;
}

/* ——— Nutrition row ——— */
.pd-hero__nutrition {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 38rem;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  padding-top: 1.1rem;
}

.pd-hero__nutrition-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-museo-slab-family, "Quicksand", sans-serif);
  font-size: clamp(1.45rem, 1.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  -webkit-transition: opacity 0.25s linear;
  transition: opacity 0.25s linear;
}

.pd-hero__nutrition-toggle:hover,
.pd-hero__nutrition-toggle:focus-visible {
  opacity: 0.88;
  outline: none;
}

.pd-hero__nutrition-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
  border-radius: 4px;
}

.pd-hero__nutrition-chev {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  -webkit-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
}

.pd-hero__nutrition-chev i {
  font-size: 1.2rem;
  line-height: 1;
}

.pd-hero__nutrition.is-open .pd-hero__nutrition-chev {
  transform: rotate(180deg);
}

.pd-hero__nutrition-panel {
  display: none;
  margin-top: 1rem;
  padding-bottom: 0.25rem;
  font-family: var(--font-museo-sans-family, "Quicksand", sans-serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.pd-hero__nutrition.is-open .pd-hero__nutrition-panel {
  display: block;
}

/* ——— Actions ——— */
.pd-hero__actions {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.pd-hero__qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  min-height: 4.6rem;
  background: var(--pd-cream);
  border-radius: 999px;
  color: var(--pd-purple-deep);
  font-family: var(--font-museo-slab-family, "Quicksand", sans-serif);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
}

.pd-hero__qty button {
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: background 0.25s linear, transform 0.2s ease;
  transition: background 0.25s linear, transform 0.2s ease;
}

.pd-hero__qty button:hover,
.pd-hero__qty button:focus-visible {
  background: rgba(76, 29, 149, 0.08);
  outline: none;
}

.pd-hero__qty button:active {
  transform: scale(0.94);
}

.pd-hero__qty-value {
  min-width: 2.4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pd-hero__add-cart {
  flex: 1 1 auto;
  min-width: min(100%, 18rem);
  min-height: 4.6rem;
  padding: 0.8rem 2.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--pd-cream);
  color: var(--pd-purple-deep);
  font-family: var(--font-museo-slab-family, "Quicksand", sans-serif);
  font-size: clamp(1.35rem, 1.45vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-transition: background 0.3s linear, color 0.3s linear, transform 0.2s ease;
  transition: background 0.3s linear, color 0.3s linear, transform 0.2s ease;
}

.pd-hero__add-cart:hover,
.pd-hero__add-cart:focus-visible {
  background: #fff;
  color: var(--pd-purple-mid);
  outline: none;
}

.pd-hero__add-cart:active {
  transform: scale(0.98);
}

/* ——— Media ——— */
.pd-hero__media {
  min-width: 0;
}

.pd-hero__media-frame {
  position: relative;
  border-radius: clamp(2rem, 4vw, 3.2rem);
  background: var(--pd-cream);
  min-height: clamp(280px, 52vw, 520px);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(31, 7, 58, 0.22);
}

.pd-hero__media-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ——— Responsive ——— */
@media screen and (max-width: 989px) {
  .pd-hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 3.5rem);
  }

  .pd-hero__media {
    order: 2;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .pd-hero__content {
    order: 1;
  }
}

@media screen and (max-width: 749px) {
  .pd-hero__title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-hero__price {
    text-align: left;
    margin-top: 0.25rem;
  }

  .pd-hero__features {
    grid-template-columns: 1fr;
  }

  .pd-hero__features li:nth-child(3) {
    grid-column: auto;
  }

  .pd-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-hero__qty {
    justify-content: center;
  }

  .pd-hero__add-cart {
    width: 100%;
    min-width: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Product detail only: same fixed transparent navbar over hero as index.html */
/* (mirrors body.template-index .section-header--gossip-overlay rules)        */
/* -------------------------------------------------------------------------- */

body.template-product-detail #MainContent > .pd-hero:first-child {
  margin-top: 0 !important;
}

body.template-product-detail .pd-hero {
  padding-top: 0;
}

body.template-product-detail .pd-hero__inner {
  padding-top: clamp(5rem, 12vw, 8rem);
}

@media screen and (max-width: 749px) {
  body.template-product-detail .pd-hero__inner {
    padding-top: clamp(4.25rem, 16vw, 6.75rem);
  }
}

body.template-product-detail .section-header--gossip-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  z-index: 100 !important;
  margin-bottom: 0 !important;
}

body.template-product-detail .section-header--gossip-overlay.shopify-section-header-sticky {
  position: fixed !important;
  top: 0 !important;
}

body.template-product-detail .section-header--gossip-overlay.shopify-section-header-hidden {
  top: 0 !important;
}

body.template-product-detail .section-header--gossip-overlay.shopify-section-header-hidden.menu-open {
  top: 0 !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header-wrapper.color-scheme-2.gradient,
body.template-product-detail .section-header--gossip-overlay sticky-header.header-wrapper.color-scheme-2.gradient * {
  --color-background: transparent !important;
  --gradient-background: transparent !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header-wrapper.color-scheme-2.gradient {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.template-product-detail .section-header--gossip-overlay .header {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body.template-product-detail .section-header--gossip-overlay.section-header,
body.template-product-detail .section-header--gossip-overlay sticky-header {
  background: transparent !important;
  background-color: transparent !important;
}

body.template-product-detail .section-header--gossip-overlay .header__menu-item,
body.template-product-detail .section-header--gossip-overlay .header__heading-link,
body.template-product-detail .section-header--gossip-overlay .header__icon,
body.template-product-detail .section-header--gossip-overlay .link--text,
body.template-product-detail .section-header--gossip-overlay .header__active-menu-item {
  color: #ffffff !important;
  transition: color 0.25s ease;
}

body.template-product-detail .section-header--gossip-overlay .header svg path[fill="#004600"],
body.template-product-detail .section-header--gossip-overlay .header svg circle[fill="#004600"] {
  fill: #ffffff !important;
}

body.template-product-detail .section-header--gossip-overlay .header svg path[stroke="#004600"] {
  stroke: #ffffff !important;
}

body.template-product-detail .section-header--gossip-overlay .header__icons .header__icon svg {
  stroke: currentColor;
}

body.template-product-detail .section-header--gossip-overlay .header__icons .header__icon .svg-wrapper > i.fa-regular,
body.template-product-detail .section-header--gossip-overlay .header__icons .header__icon .svg-wrapper > svg.icon {
  color: inherit;
}

body.template-product-detail .section-header--gossip-overlay .header__heading-logo {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

body.template-product-detail .section-header--gossip-overlay .header_right_new > nav,
body.template-product-detail .section-header--gossip-overlay .Header_right_button_new,
body.template-product-detail .section-header--gossip-overlay .Header_mobile_store_new {
  display: none !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header {
  position: relative !important;
  top: auto !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled.header-wrapper.color-scheme-2.gradient,
body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled.header-wrapper.color-scheme-2.gradient * {
  --color-background: 255, 255, 255 !important;
  --gradient-background: #ffffff !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled.header-wrapper.color-scheme-2.gradient {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header {
  background: transparent !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header__menu-item,
body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header__heading-link,
body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header__icon,
body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .link--text,
body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header__active-menu-item {
  color: #5a5a5a !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header svg path[fill="#004600"],
body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header svg circle[fill="#004600"] {
  fill: #5a5a5a !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header svg path[stroke="#004600"] {
  stroke: #5a5a5a !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header svg circle[fill="#FFE700"] {
  fill: #e8e8e8 !important;
}

body.template-product-detail .section-header--gossip-overlay sticky-header.header--gossip-scrolled .header__heading-logo {
  filter: none !important;
}
