.product-page {
  padding-top: clamp(20px, 4vw, 44px);
}

.product-breadcrumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-breadcrumbs li + li::before {
  content: "/";
  margin-right: 9px;
  color: #777d86;
}

.product-breadcrumbs [aria-current] {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.product-gallery {
  margin: 0;
  min-width: 0;
}

.product-gallery .gallery-stage {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.product-gallery .gallery-stage img,
.product-gallery .gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery .gallery-thumbnails button {
  width: clamp(48px, 13vw, 72px);
}

.product-gallery .gallery-thumbnails[hidden] {
  display: none;
}

.product-gallery .gallery-caption {
  justify-content: space-between;
}

.product-summary {
  min-width: 0;
  padding-top: clamp(6px, 2vw, 22px);
}

.product-summary h1 {
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  overflow-wrap: anywhere;
}

.product-presentation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  color: var(--muted);
  margin: 12px 0 18px;
  font-size: 0.95rem;
}

.product-variant {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #e9e9e6;
  color: var(--ink);
  font-size: 0.875rem;
}

.product-price {
  margin: 0;
  font-size: 1.4rem;
}

.product-description {
  max-width: 52ch;
  margin: 12px 0 0;
}

.product-note {
  background: #e8eaed;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #363940;
  padding: 10px 13px;
  max-width: 52ch;
}

.product-order {
  display: grid;
  grid-template-columns: minmax(78px, 90px) minmax(0, max-content);
  align-items: stretch;
  gap: 6px 10px;
  margin-top: 22px;
}

.product-order label {
  grid-column: 1 / -1;
  margin: 0;
}

.product-order input {
  padding: 8px 10px;
}

.product-order button:disabled {
  cursor: default;
  opacity: 0.65;
}

.product-cart-status {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-cart-status:empty {
  margin: 0;
}

.product-cart-status.product-cart-error {
  color: #922d32;
}

.product-stock {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-actions,
.product-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 15px;
}

.product-quick-links {
  font-size: 0.9rem;
}

.product-quick-links a,
.product-research-source a,
.product-editorial figcaption a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
  list-style: none;
}

.product-tags li {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 9px;
}

.product-information {
  margin-top: 32px;
}

.product-information h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.product-information details {
  border-top: 1px solid var(--line);
}

.product-information details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.product-information summary {
  padding: 13px 2px;
  cursor: pointer;
  font-weight: 700;
}

.product-information summary:focus-visible {
  outline: 2px solid #626e84;
  outline-offset: 2px;
}

.product-detail-copy {
  max-width: 58ch;
  padding: 0 2px 12px;
  overflow-wrap: anywhere;
}

.product-detail-copy p {
  margin: 0 0 8px;
}

.product-key-ingredients {
  margin: 0 0 11px;
  padding-inline-start: 1.25em;
}

.product-inci-label {
  font-weight: 700;
}

.product-inci-copy {
  white-space: pre-line;
}

.product-research-source {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.product-editorial {
  width: min(520px, 100%);
  margin: clamp(24px, 5vw, 58px) auto 0;
}

.product-editorial img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.product-editorial figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.product-related {
  padding: 0;
  margin: clamp(28px, 6vw, 62px) 0;
}

.product-related h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.product-related-card a {
  display: block;
  height: 100%;
}

.product-related-card a:focus-visible {
  outline-offset: -4px;
}

.product-related-card a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.product-related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f1f1ef;
}

.product-related-card a div {
  padding: 10px 12px 14px;
}

.product-related-card h3 {
  font-size: clamp(1.2rem, 2.25vw, 1.75rem);
  overflow-wrap: anywhere;
}

@media (min-width: 900px) and (min-height: 700px) {
  .product-layout--premium .product-gallery {
    position: sticky;
    top: 16px;
  }

  .product-layout--premium .gallery-stage {
    width: min(100%, 60vh);
    width: min(100%, 60svh);
  }
}

@media (max-width: 720px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .product-summary {
    padding-top: 0;
  }

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