.catalog-body[data-catalog-mode="detail"] {
  --catalog-bg: #fff;
  --catalog-ink: #183829;
  --catalog-muted: #405e59;
  --catalog-gold: #086644;
  --catalog-line: #d9e5e8;
  --product-green: #087047;
  --product-mint: #e7f2ed;
  --product-ice: #e6eff3;
}

[data-catalog-mode="detail"] .shell { width: min(85%, 76.5rem); }
[data-catalog-mode="detail"] .catalog-skip { z-index: 2147483001; }
[data-catalog-mode="detail"] #main-content:focus { outline: none; }

.product-header {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  border-color: #dde7eb;
  background: #fffffffa;
  box-shadow: none;
}

.product-mobile-menu { display: none; }

.product-hero {
  overflow: visible;
  padding-block: 7.8rem clamp(1.8rem, 3vw, 2.45rem);
  background: none;
}

.product-hero .catalog-crumb { gap: .5rem; }

.product-hero-layout {
  grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
  grid-template-areas: "visual copy";
  gap: clamp(1.35rem, 4vw, 3.5rem);
  align-items: center;
  padding-block-start: 1rem;
}

.product-copy { grid-area: copy; padding: 0; }
.product-visual { grid-area: visual; align-self: stretch; }

.product-category {
  padding: .33rem .85rem;
  border: 0;
  border-radius: 99px;
  background: #e5f0ec;
  color: var(--catalog-gold);
  font-size: .9rem;
  line-height: 1.45;
}

.product-copy h1 {
  margin: clamp(.85rem, 2.2vw, 1.45rem) 0 .25rem;
  font-size: clamp(2.25rem, 4.65vw, 4.15rem);
  font-weight: 500;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.product-latin {
  margin: 0;
  color: var(--catalog-muted);
  font: 300 clamp(1.1rem, 1.9vw, 1.5rem)/1.4 Peyda, Arial, sans-serif;
}

.product-lead {
  margin: clamp(.8rem, 2.2vw, 1.75rem) 0 clamp(1rem, 2vw, 1.55rem);
  color: var(--catalog-muted);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.75;
}

.product-spec {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0;
  padding-block: .95rem;
}

.product-spec > div { flex: 1 1 25%; min-width: 0; }
.product-spec > div + div { padding-inline-start: .72rem; }
.product-spec--long > div { flex-basis: 28%; }
.product-spec--long > div:first-child { flex-grow: 0; }
.product-spec dt { line-height: 1.55; }
.product-spec dd { font-size: clamp(.95rem, 1.4vw, 1.24rem); line-height: 1.65; text-align: right; }
.product-spec--long dd { font-size: clamp(.93rem, 1.2vw, 1.08rem); }

.product-actions {
  gap: .65rem 1.3rem;
  margin-block-start: clamp(1.1rem, 2.4vw, 2.15rem);
}

.product-actions .catalog-action {
  justify-content: space-between;
  min-width: min(13rem, 100%);
  min-height: 3.2rem;
  border-radius: .6rem;
  background: var(--product-green);
  color: white;
}

.product-actions .catalog-action:hover { background: #075b3b; }

.product-actions .product-all-link,
.product-related-heading > a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .75rem;
  color: var(--catalog-gold);
  font-weight: 500;
  text-decoration: none;
}

.product-actions .product-all-link:hover,
.product-related-heading > a:hover { text-decoration: underline; text-underline-offset: .28em; }

.product-pack {
  height: 100%;
  min-height: clamp(18rem, 32.3vw, 29rem);
  overflow: hidden;
  border: 1px solid #c6ddd3;
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 55% 73% at -6% -10%, transparent 91%, #eff8efba 91.4% 91.7%, transparent 92.1% 96%, #eff8efcc 96.5% 96.8%, transparent 97.2%),
    radial-gradient(ellipse 46% 55% at 115% 113%, transparent 95%, #d8eadd72 95.4% 95.8%, transparent 96.2%),
    linear-gradient(140deg, #ebf5ea, #d6ebdf 51%, #a6cdbb);
}
.product-hero .product-pack::before { bottom: 10%; width: 64%; height: 11%; opacity: .56; }

.product-pack img {
  width: 79%;
  height: clamp(12.5rem, 26vw, 23rem);
  object-fit: contain;
  filter: none;
}

.product-pack img[src$="/product-memorex.png"] { transform: scale(1.14); }

.product-zoom {
  position: absolute;
  inset: auto .85rem .85rem auto;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #d1e4de;
  border-radius: .65rem;
  background: white;
  color: var(--catalog-gold);
}

.product-zoom:hover { background: var(--product-mint); }
.product-zoom svg { width: 1.14rem; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; }

.product-image-dialog {
  width: min(52rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 3.4rem 1rem 1rem;
  border: 1px solid var(--catalog-line);
  border-radius: 1rem;
  background: white;
}

.product-image-dialog::backdrop { background: #102d25bc; }
.product-image-dialog img { display: block; width: auto; height: auto; max-height: 74vh; margin: auto; object-fit: contain; }
.product-image-dialog form { position: absolute; inset-block-start: .5rem; inset-inline-end: .65rem; }
.product-image-dialog button { width: 2.7rem; height: 2.7rem; border: 1px solid var(--catalog-line); border-radius: .55rem; background: white; font-size: 1.65rem; line-height: 1; }

.product-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .5rem;
  border: 1px solid var(--catalog-line);
  border-radius: .72rem;
  background: white;
}

.product-jump a {
  border: 0;
  border-radius: .45rem;
  padding: .6rem .95rem;
  color: var(--catalog-muted);
  font-size: .92rem;
  font-weight: 500;
}

.product-jump a:hover { background: var(--product-mint); }
.product-jump a[aria-current] { background: #146a49; color: white; }

.product-description {
  grid-template-columns: minmax(0, 2.12fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem) clamp(2.1rem, 4vw, 3.15rem);
}

.product-description,
.product-description details,
.product-reference { scroll-margin-block-start: 7.4rem; }

.product-information h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.65rem, 2.85vw, 2.3rem);
  font-weight: 500;
}

.product-information > p { margin: 0 0 1.1rem; color: var(--catalog-muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.product-information details { margin: 0; border: 0; border-block-end: 1px solid var(--catalog-line); border-radius: 0; }
.product-information summary { min-height: 3.5rem; padding-inline: 1.1rem; font-weight: 500; }
.product-information details p { padding: 0 1.1rem 1rem; }
.product-information details[open] { border: 1px solid #d5e9e0; border-inline-start: 3px solid #51916e; border-radius: .7rem; background: var(--product-mint); }

.product-reference {
  padding: 1.15rem clamp(1rem, 1.7vw, 1.45rem);
  border: 1px solid var(--catalog-line);
  border-radius: .88rem;
  background: white;
}

.product-reference h2 { margin: 0 .05rem .6rem; font-size: 1.25rem; font-weight: 500; }
.product-extra-spec { display: block; margin: 0; border-block-start: 1px solid var(--catalog-line); }
.product-extra-spec > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; padding-block: .62rem; }
.product-extra-spec > div + div { border-block-start: 1px solid var(--catalog-line); }
.product-extra-spec dt { min-width: max-content; }
.product-extra-spec dd { margin: 0; min-width: 0; }
.product-source { margin-block-start: .65rem; }

.product-enquiry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  margin-block-start: 1rem;
  padding: .75rem 1rem;
  border: 1px solid #d7e5ec;
  border-radius: .75rem;
  background: var(--product-ice);
}

.product-enquiry strong { display: block; font-weight: 500; }
.product-enquiry small { color: var(--catalog-gold); font-size: .82rem; }
.product-enquiry > span:last-child { display: grid; flex: 0 0 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: #d3e5ec; color: var(--catalog-gold); }
.product-enquiry:hover { border-color: #80a59d; }

.catalog-related { padding-block: 1.9rem 3.8rem; }
.product-related-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-block-end: .8rem; }
.product-related-heading h2 { margin: 0; font-weight: 500; }
.catalog-related-grid { gap: clamp(.75rem, 2.6vw, 2rem); }

.catalog-related-card {
  grid-template-columns: minmax(4.6rem, 26%) minmax(0, 1fr) auto;
  min-height: 8rem;
  gap: clamp(.6rem, 1.35vw, 1.15rem);
  padding: .6rem;
  background: white;
}

.product-related-photo { display: grid; height: 7rem; place-items: center; border-radius: .58rem; background: #e9f2ef; overflow: hidden; }
.tone-blush > .product-related-photo { background: #f1f2f6; }
.tone-blue > .product-related-photo { background: #e7f0f4; }
.catalog-related-card img { width: 100%; height: 6rem; padding: .2rem; }
.catalog-related-card span { color: var(--catalog-gold); }
.catalog-related-card .product-related-arrow { padding-inline-end: .45rem; font-size: 1.1rem; }

[data-catalog-mode="detail"] .site-footer { background: #123f36; border-block-start: 2px solid #74a59a; }
[data-catalog-mode="detail"] .site-footer__logo { display: grid; width: 10rem; min-height: 4.1rem; padding: .55rem; place-items: center; background: #fafdfe; }
[data-catalog-mode="detail"] .site-footer__logo img { filter: none; opacity: 1; }
[data-catalog-mode="detail"] .site-footer h2 { color: #bcded4; }

@media (max-width: 900px) {
  .product-header .product-desktop-nav { display: none; }
  .product-mobile-menu { display: block; }
  .product-mobile-menu summary { list-style: none; }
  .product-mobile-menu summary::-webkit-details-marker { display: none; }

  .product-mobile-menu[open] nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    display: grid;
    gap: 0;
    max-height: calc(100dvh - 100px);
    overflow: auto;
    padding: 8px 18px;
    border: 1px solid var(--catalog-line);
    border-radius: 16px;
    background: white;
    direction: rtl;
  }

  .product-mobile-menu nav a { padding: 12px 0; }
  .product-mobile-menu nav a::after { display: none; }
  .product-mobile-menu nav .active { color: var(--catalog-gold); text-decoration: underline; }

  [data-catalog-mode="detail"] .shell { width: min(92%, 76.5rem); }
  .product-hero { padding-block-start: 6.15rem; }
  .product-hero-layout { grid-template-columns: minmax(0,.92fr) minmax(0,1fr); }
  .product-description, .product-description details, .product-reference { scroll-margin-block-start: 6rem; }
}

@media (max-width: 700px) {
  .product-hero-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "copy"; }
  .product-pack { min-height: clamp(16rem, 68vw, 22rem); }
  .product-pack img { height: clamp(12rem, 51vw, 17rem); }
  .product-copy h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .product-description { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 540px) {
  .product-jump a { padding-inline: .55rem; font-size: .85rem; }
  .product-related-heading { gap: .25rem; }
  .catalog-related-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-related-card { min-height: 6.5rem; }
  .product-related-photo { height: 5.5rem; }
  .catalog-related-card img { height: 5.2rem; }
}

@media (max-width: 540px) {
  .product-spec--long {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-spec--long > .product-spec-pack {
    grid-row: 2;
    grid-column: 1 / -1;
    padding: .55rem 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--catalog-line);
  }
}
