/* Product scenes fill a square canvas; packaging views retain the complete image. */
.full-card .product-visual {
  aspect-ratio: 1;
}

.full-card .product-visual[data-kind="scene"] > img,
.pdp-main-image[data-kind="scene"] > img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.full-card .product-visual[data-kind="scene"]:hover > img {
  transform: none;
}

.full-card .product-visual[data-kind="packaging"] > img,
.pdp-main-image[data-kind="packaging"] > img {
  object-fit: contain;
  object-position: center;
}

.gallery-thumb[data-kind="scene"] {
  padding: 0;
}

.gallery-thumb[data-kind="scene"] img {
  display: block;
  object-fit: contain;
}

.gallery-caption {
  margin: 12px 0 0;
  color: var(--theme-muted, #c7ccd3);
  font-size: .875rem;
  line-height: 1.65;
}

.gallery-caption + .gallery-thumbs {
  margin-top: 12px;
}

.image-dialog-image {
  display: block;
  max-height: calc(92dvh - 180px);
}

.image-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--theme-border, #414750);
}

.image-dialog-footer .gallery-caption {
  margin: 0;
}

.image-full-size {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--theme-text, #f4f5f7);
}

.image-full-size:hover {
  color: var(--phase-accent, #f44b46);
}

.pdp-facts-button {
  min-height: 48px;
  margin: 0 0 22px;
  padding: 12px 18px;
  font-size: .9375rem;
  line-height: 1.5;
}

.pdp-facts-button .icon {
  width: 20px;
  height: 20px;
}

.preview-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.preview-price {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  border: 1px solid var(--theme-border, #414750);
  background: #191b1d;
}

.preview-price--subscription {
  border-color: #4aa7da;
}

.preview-price > span {
  font-weight: 700;
  font-size: 1rem;
}

.preview-price > strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.preview-price > small,
.preview-label-note,
.preview-availability {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--theme-muted, #c7ccd3);
}

.preview-availability,
.preview-label-note {
  margin-top: 20px;
}

.label-source-note {
  padding-left: 16px;
  border-left: 3px solid #4aa7da;
}

.planned-links .planned-link-with-image {
  padding-top: 18px;
}

.planned-links.planned-links-single {
  grid-template-columns: minmax(0, 1fr);
}

#purchase-options {
  scroll-margin-top: 140px;
}

.planned-link-with-image > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 20px;
}

.pdp-main-image:is([data-kind="facts"], [data-kind="information"]) {
  background: #fff;
}

.pdp-main-image:is([data-kind="facts"], [data-kind="information"]) .product-label {
  display: none;
}

.pdp-main-image:is([data-kind="facts"], [data-kind="information"]) > img {
  width: 100%;
  height: 100%;
  padding: 72px 16px 16px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.gallery-thumb:is([data-kind="facts"], [data-kind="information"]) {
  padding: 4px;
  background: #fff;
}

.gallery-thumb:is([data-kind="facts"], [data-kind="information"]) img {
  object-fit: contain;
}

.image-dialog-close {
  min-width: 44px;
  min-height: 44px;
}

.image-dialog:is([data-kind="facts"], [data-kind="information"]) {
  overflow: hidden;
}

.image-dialog:is([data-kind="facts"], [data-kind="information"]) .image-dialog-body {
  max-height: calc(92dvh - 98px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.image-dialog:is([data-kind="facts"], [data-kind="information"]) .image-dialog-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #fff;
}

.image-dialog-body:focus-visible {
  outline: 2px solid var(--phase-accent, #f44b46);
  outline-offset: -2px;
}

.label-serving {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 24px;
}

.label-serving dt {
  color: var(--theme-muted, #c7ccd3);
  font-size: .875rem;
  line-height: 1.65;
}

.label-serving dd {
  margin: 4px 0 0;
  color: var(--theme-text, #f4f5f7);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
}

.label-details h3 {
  margin: 24px 0 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
}

.faqs .faq-answer .label-verbatim {
  padding-right: 0;
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.label-panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .image-dialog-image {
    max-height: calc(94dvh - 180px);
  }

  .image-dialog-footer {
    gap: 4px 16px;
    padding-inline: 8px;
  }

  .image-dialog:is([data-kind="facts"], [data-kind="information"]) .image-dialog-body {
    max-height: calc(94dvh - 86px);
  }

  .label-serving {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


.label-amounts {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--theme-text, #f4f5f7);
  font-size: 1rem;
  line-height: 1.6;
}
.label-amounts caption { text-align: left; font-weight: 800; margin-bottom: 10px; }
.label-amounts th, .label-amounts td { padding: 10px 0; border-bottom: 1px solid var(--theme-border, #414750); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.label-amounts th { width: 72%; padding-right: 18px; font-weight: 500; }
.label-amounts thead th { font-size: .875rem; font-weight: 800; color: var(--theme-muted, #c7ccd3); }
.label-amounts th:last-child, .label-amounts td:last-child { width: 28%; text-align: right; padding-right: 0; }
