.product-detail-page {
  --product-ink: #18151c;
  --product-muted: #5e5962;
  color: var(--product-ink);
  background: #fff;
}

.product-detail-page a {
  color: inherit;
}

.product-hero-section {
  background: linear-gradient(110deg, var(--product-accent-soft) 0 49%, #fff 49% 100%);
}

.product-hero-grid,
.product-section-container {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: 2rem 3.5rem;
}

.product-gallery {
  min-width: 0;
}

.product-main-image-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  aspect-ratio: 1 / .96;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--product-accent-soft);
}

.product-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(24, 21, 28, .14);
  border-radius: 50%;
  background: #fff;
  color: var(--product-ink);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(24, 21, 28, .12);
}

.product-gallery-arrow-prev {
  left: .75rem;
}

.product-gallery-arrow-next {
  right: .75rem;
}

.product-gallery-arrow:hover {
  background: var(--product-accent);
  color: #fff;
}

.product-gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}

.product-gallery-thumbnail {
  width: clamp(4.25rem, 10vw, 6.25rem);
  aspect-ratio: 1;
  padding: .2rem;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: .75rem;
  background: #fff;
}

.product-gallery-thumbnail.is-active {
  border-color: var(--product-accent);
}

.product-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: .5rem;
  object-fit: cover;
}

.product-gallery-thumbnail:focus-visible,
.product-gallery-arrow:focus-visible,
.product-button:focus-visible,
.product-bottom-actions a:focus-visible {
  outline: 3px solid var(--product-accent);
  outline-offset: 3px;
}

.product-hero-copy {
  padding-block: 1rem;
}

.product-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 2.25rem;
  padding: 0;
  color: var(--product-muted);
  font-size: .88rem;
  list-style: none;
}

.product-breadcrumbs li + li::before {
  content: "/";
  margin-right: .5rem;
  color: #9a949d;
}

.product-breadcrumbs a {
  text-decoration: none;
}

.product-breadcrumbs a:hover {
  text-decoration: underline;
}

.product-eyebrow {
  margin: 0 0 .5rem;
  color: var(--product-accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-hero-copy h1 {
  max-width: 16ch;
  margin: 0 0 .75rem;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.product-intro {
  max-width: 54ch;
  margin: 0;
  color: var(--product-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.product-format {
  margin: 1rem 0 1.25rem;
  color: var(--product-ink);
  font-size: .9rem;
  font-weight: 600;
}

.product-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.product-benefits li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: .25rem .5rem;
  border-right: 1px solid #e7e3e8;
  text-align: center;
}

.product-benefits li:last-child {
  border-right: 0;
}

.product-benefits i {
  color: var(--product-accent);
  font-size: 1.65rem;
}

.product-benefits span {
  max-width: 12ch;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.product-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem 1.35rem;
  border: 1px solid var(--product-accent);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.product-button:hover {
  transform: translateY(-1px);
}

.product-button-primary {
  background: var(--product-accent);
  color: #fff !important;
}

.product-button-primary:hover {
  background: var(--product-ink);
  border-color: var(--product-ink);
}

.product-button-secondary {
  background: transparent;
  color: var(--product-accent) !important;
}

.product-button-secondary:hover {
  background: var(--product-accent-soft);
}

.product-enjoy-section {
  padding-block: clamp(3rem, 6vw, 5.25rem);
  background: #fffdf4;
}

.product-section-heading {
  margin-bottom: 1.5rem;
}

.product-section-heading h2,
.product-ingredients h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.product-section-heading > p:last-child,
.product-detail-subtitle {
  margin: 0;
  color: var(--product-muted);
}

.product-enjoy-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, .9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.product-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-method-card {
  min-width: 0;
  padding: .9rem;
  border: 1px solid #eee9dc;
  border-radius: 1rem;
  background: #fff;
}

.product-method-heading {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  gap: .65rem;
  margin-bottom: .7rem;
}

.product-method-heading img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.product-method-heading h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.product-method-heading p {
  margin: .12rem 0 0;
  color: var(--product-muted);
  font-size: .78rem;
}

.product-method-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  border-radius: .65rem;
  object-fit: cover;
}

.product-method-instruction {
  margin: .75rem 0 0;
  color: var(--product-muted);
  font-size: .83rem;
  line-height: 1.5;
}

.product-enjoy-feature,
.product-meal-feature {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--product-accent-soft);
}

.product-enjoy-feature > img,
.product-meal-feature > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.product-enjoy-feature-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(20, 16, 22, .8));
  color: #fff;
}

.product-enjoy-feature-copy .product-eyebrow {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: .025em;
}

.product-enjoy-feature-copy p:last-child {
  margin: 0;
  font-size: .9rem;
}

.product-heating-note {
  margin: 1.25rem 0 0;
  color: var(--product-muted);
  font-size: .85rem;
  line-height: 1.6;
}

.product-heating-note a {
  display: inline-block;
  margin-left: .3rem;
  color: var(--product-accent);
  font-weight: 700;
}

.product-details-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #fff;
}

.product-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.product-ingredients h2 {
  margin-bottom: .35rem;
}

.product-detail-subtitle {
  margin-bottom: 1.5rem;
}

.product-ingredients h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}

.product-ingredients > p:not(.product-eyebrow):not(.product-detail-subtitle) {
  color: var(--product-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.product-ingredients > p.product-ingredient-note {
  margin: .25rem 0 .8rem;
  font-size: .78rem;
}

.product-ingredients .product-allergen {
  margin: .8rem 0 0;
}

.product-allergen strong {
  color: var(--product-ink);
}

.product-nutrition-card {
  padding: .9rem 1rem;
  border: 1px solid #d9d5da;
  border-radius: .65rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(24, 21, 28, .06);
}

.product-nutrition-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  line-height: 1.35;
}

.product-nutrition-card caption {
  padding: 0 0 .5rem;
  color: var(--product-ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
}

.product-nutrition-card th,
.product-nutrition-card td {
  padding: .32rem .2rem;
  border-bottom: 1px solid #d9d5da;
  text-align: left;
  vertical-align: top;
}

.product-nutrition-card th {
  font-weight: 600;
}

.product-nutrition-card thead th {
  font-size: .68rem;
}

.product-nutrition-card th:last-child,
.product-nutrition-card td:last-child {
  text-align: right;
  white-space: nowrap;
}

.product-nutrition-card .product-calories th,
.product-nutrition-card .product-calories td {
  border-bottom: 2px solid var(--product-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.product-dv-note {
  margin: .55rem 0 0;
  color: var(--product-muted);
  font-size: .68rem;
  line-height: 1.4;
}

.product-meal-feature {
  min-height: 400px;
}

.product-meal-feature > img {
  position: absolute;
  inset: 0;
}

.product-meal-feature > div {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(20, 16, 22, .78));
  color: #fff;
}

.product-meal-feature h2 {
  margin: 0 0 .5rem;
  font-size: 1.55rem;
  line-height: 1.15;
}

.product-meal-feature p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.product-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e7e3e8;
}

.product-bottom-actions p {
  margin: 0 auto 0 0;
  font-weight: 600;
}

.product-bottom-actions > a:not(.product-button) {
  color: var(--product-accent);
  font-weight: 700;
  text-decoration: none;
}

.product-bottom-actions > a:not(.product-button):hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .product-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-top: 1.25rem;
  }

  .product-gallery {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .product-main-image-frame {
    min-height: 320px;
  }

  .product-hero-copy {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .product-breadcrumbs ol {
    margin-bottom: 1.5rem;
  }

  .product-details-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr);
  }

  .product-meal-feature {
    grid-column: 1 / -1;
    min-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .product-hero-grid,
  .product-section-container {
    width: min(100% - 2rem, 600px);
  }

  .product-hero-section {
    background: linear-gradient(180deg, var(--product-accent-soft) 0 34%, #fff 34% 100%);
  }

  .product-main-image-frame {
    min-height: 250px;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
  }

  .product-gallery-thumbnails {
    gap: .5rem;
  }

  .product-gallery-thumbnail {
    width: min(20vw, 5rem);
  }

  .product-hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .product-benefits {
    margin-block: 1.2rem;
  }

  .product-benefits li {
    padding-inline: .25rem;
  }

  .product-benefits i {
    font-size: 1.35rem;
  }

  .product-benefits span {
    font-size: .7rem;
  }

  .product-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-enjoy-grid,
  .product-methods,
  .product-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-methods {
    gap: .8rem;
  }

  .product-method-card {
    padding: .8rem;
  }

  .product-method-photo {
    aspect-ratio: 1.6 / 1;
  }

  .product-enjoy-feature > img {
    min-height: 320px;
    max-height: 440px;
  }

  .product-nutrition-card {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .product-meal-feature {
    grid-column: auto;
    min-height: 330px;
  }

  .product-meal-feature > img {
    min-height: 330px;
  }

  .product-bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-bottom-actions p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-button {
    transition: none;
  }
}
