.product-details-page {
    --pd-radius: var(--radius-lg);
    --pd-card-shadow: var(--shadow-card);
    --pd-border: var(--clr-border);
    --pd-muted: var(--clr-text-muted);
    --pd-dark: var(--clr-dark);
    --pd-gallery-bg: var(--clr-primary-tint);
    --pd-band: var(--clr-primary);
    
    --container-content: 1320px;
}

@media (max-width: 1399.98px) {
    .product-details-page {
        --container-content: 1116px;
    }
}

@media (max-width: 1199.98px) {
    .product-details-page {
        --container-content: 936px;
    }
}

.pd-title {
    font-family: var(--ff-display);
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.pd-lines > span {
    display: block;
}

.pd-lead {
    font-family: var(--ff-body);
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--clr-text-muted);
}

.pd-intro {
    padding-top: clamp(3.5rem, 2.5rem + 3.5vw, 6rem);
    overflow: hidden;
}

.pd-intro__header {
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
}

.pd-intro__text {
    margin-top: 1.5rem;
}

.pd-price {
    margin-top: 2.5rem;
    font-family: var(--ff-display);
    font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
    font-weight: 600;
}

.pd-price__value {
    color: var(--clr-primary-light);
}

.pd-colours {
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 10;
}

.pd-colour-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-colour {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: center;
    transition: transform var(--motion-dur-fast, 0.2s) var(--motion-ease, ease);
}

.pd-colour:hover {
    transform: translateY(-3px);
}

.pd-colour:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm, 6px);
}

.pd-colour:focus:not(:focus-visible) {
    outline: none;
}

.pd-colour__dot {
    width: 64px;
    height: 64px;
    border: 3px solid transparent;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    transition: border-color var(--motion-dur-fast, 0.2s) var(--motion-ease, ease),
                transform var(--motion-dur-fast, 0.2s) var(--motion-ease, ease),
                box-shadow var(--motion-dur-fast, 0.2s) var(--motion-ease, ease);
}

.pd-colour:hover .pd-colour__dot {
    border-color: rgba(230, 0, 18, 0.45);
}

.pd-colour.is-active .pd-colour__dot,
.pd-colour[aria-checked="true"] .pd-colour__dot {
    border-color: var(--clr-primary);
    transform: scale(1.08);
    box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.pd-colour__name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.pd-showcase {
    position: relative;
    isolation: isolate;
    margin-top:-6rem;
}

.pd-showcase__band {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 108vw;
    height: clamp(120px, 14vw, 210px);
    background-color: var(--pd-band);
    transform: translate(-50%, -10%);
}

.pd-showcase__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.pd-showcase__row > * {
  position: relative;
}

.pd-showcase__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(260px, 28vw, 420px);
  aspect-ratio: var(--img-aspect-showcase);
  overflow: visible;
}

.pd-showcase__side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(140px, 16vw, 240px);
  aspect-ratio: var(--img-aspect-showcase);
  opacity: 0.95;
  transition: opacity 0.3s var(--ease);
  overflow: visible;
}

.pd-showcase__row img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-showcase__row.is-swapping img {
  opacity: 0;
  transform: scale(0.96);
}

.pd-showcase__row > *::after {
  content: "";

  position: absolute;
  width: 70%;
  height: 15%;

  left: 15%;
  bottom: 2%;

  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;

  filter: blur(15px);

  transform:
    perspective(300px)
    rotateY(7deg)
    scaleX(1.3);

  z-index: -1;
  pointer-events: none;
}

.pd-showcase__side img.is-photo,
.pd-showcase__side img[src$=".jpg"],
.pd-showcase__side img[src$=".jpeg"] {
    display: none;
}

.pd-showcase__main img[src$=".png"],
.pd-showcase__main img[src$=".PNG"],
.pd-showcase__main img.is-cutout,
.pd-showcase__main img:not(.is-photo) {
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25));
    background: transparent;
}

.pd-showcase__main img.is-photo,
.pd-showcase__main img[src$=".jpg"],
.pd-showcase__main img[src$=".jpeg"] {
    filter: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.pd-intro__colours {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.pd-specs {
    padding-top: var(--section-space);
}

.pd-spec-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    padding: 0;
    max-width: 1000px;
    list-style: none;
    text-align: center;
}

.pd-spec + .pd-spec {
    border-left: 1px solid var(--pd-border);
}

.pd-spec__label {
    font-family: var(--ff-display);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pd-spec__value {
    margin-top: 0.5rem;
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--clr-primary-light);
}

.pd-spec__unit {
    margin-left: 0.15rem;
    font-size: 0.4em;
    font-weight: 600;
    color: var(--clr-black);
}

.pd-features {
    padding-top: var(--section-space);
}

.pd-features__header {
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
}

.pd-features__text {
    margin-top: 1.25rem;
}

.pd-feature-list {
    display: grid;
    gap: 24px;
    margin: 3.4rem 0 0;
    padding: 0;
    list-style: none;
}

.pd-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: 1.5rem;
    border-bottom: 2px solid transparent;
    border-radius: var(--pd-radius);
    background-color: var(--clr-white);
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.pd-feature:hover {
    border-bottom-color: var(--clr-primary);
    box-shadow: var(--pd-card-shadow);
}

.pd-feature:nth-child(even) .pd-feature__media {
    order: 2;
}

.pd-feature__media {
    aspect-ratio: 614 / 400;
    overflow: hidden;
    border-radius: 18px;
    background-color: var(--clr-grey-100);
}

.pd-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.pd-feature:hover .pd-feature__media img {
    transform: scale(1.04);
}

.pd-feature__body {
    padding-block: 1rem;
}

.pd-feature__title {
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-transform: none;
}

.pd-feature__text {
    max-width: 570px;
    margin-top: 1.75rem;
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--clr-text-muted);
}

.pd-parts {
    margin-top: var(--section-space);
}

.pd-parts__grid {
    display: grid;
    grid-template-columns: minmax(0, 684fr) minmax(0, 916fr);
    align-items: stretch;
}

.pd-parts__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4.5rem);
    padding-left: max(12px, calc((100vw - var(--container-content)) / 2));
    background-color: var(--pd-dark);
    color: var(--clr-white);
    text-align: center;
}

.pd-parts__inner {
    max-width: 440px;
    margin-inline: auto;
}

.pd-parts__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.12;
    text-transform: uppercase;
}

.pd-parts__text {
    margin-top: 1.5rem;
    font-family: var(--ff-body);
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.pd-parts__cta {
    align-self: center;
    margin-top: 2rem;
    padding: 0.85rem 1.6rem;
    font-size: 1.0625rem;
    text-transform: none;
}

.pd-parts__media {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.pd-parts__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-gallery {
    margin-top: var(--section-space);
    padding-block: var(--section-space);
    background-color: var(--pd-gallery-bg);
}

.pd-gallery__header {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.pd-gallery__text {
    margin-top: 1.25rem;
}

.pd-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
}

.pd-gallery__grid li {
    overflow: hidden;
    border-radius: 18px;
    background-color: var(--clr-grey-100);
}

.pd-gallery__grid li:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.pd-gallery__grid li:nth-child(2),
.pd-gallery__grid li:nth-child(5),
.pd-gallery__grid li:nth-child(6) {
    grid-column: span 2;
}

.pd-gallery__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.pd-gallery__grid li:hover img {
    transform: scale(1.05);
}

.pd-missing {
    padding-block: 6rem 7rem;
    text-align: center;
}

.pd-missing__text {
    margin: 1rem auto 2rem;
    max-width: 520px;
}

.pd-missing .btn-tvs {
    color: var(--clr-black);
    text-transform: none;
}

.pd-missing .btn-tvs:hover {
    color: var(--clr-white);
}

@media (max-width: 1199.98px) {
    .pd-intro {
        padding-top: 5rem;
    }

    .pd-colour__dot {
        width: 54px;
        height: 54px;
    }

    .pd-parts__media {
        min-height: 340px;
    }
}

@media (max-width: 991.98px) {
    .pd-lines > span {
        display: inline;
    }

    .pd-specs {
        padding-top: 3rem;
    }

    .pd-features {
        padding-top: 5rem;
    }

    .pd-parts {
        margin-top: 5rem;
    }

    .pd-parts__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-parts__panel {
        padding: 3rem 1.5rem;
    }

    .pd-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .pd-feature:nth-child(even) .pd-feature__media {
        order: 0;
    }

    .pd-feature__body {
        padding-block: 0 0.5rem;
    }

    .pd-feature__text {
        max-width: none;
        margin-top: 1rem;
    }

    .pd-gallery {
        margin-top: 3rem;
        padding-block: 4rem;
    }

    .pd-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 160px;
        gap: 14px;
    }

    .pd-turntable {
        height: 70px;
        margin-top: -1.5rem;
    }

    .pd-turntable::before {
        height: 110px;
    }

    .pd-turntable__pill {
        top: 42px;
    }
}

@media (max-width: 767.98px) {
    
    .pd-intro__colours {
        justify-content: center;
        margin-top: 2rem;
    }

    .pd-colours {
        grid-auto-flow: column;
        gap: 1.5rem;
    }

    .pd-showcase__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .pd-showcase__side {
        display: none;
    }

    .pd-showcase__main {
        height: clamp(200px, 45vw, 320px);
        max-width: 520px;
        margin-inline: auto;
    }

    .pd-showcase__band {
        height: 150px;
    }

    .pd-spec-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .pd-spec + .pd-spec {
        padding-top: 1.5rem;
        border-left: 0;
        border-top: 1px solid var(--pd-border);
    }

    .pd-feature {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .pd-gallery__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 200px;
    }

    .pd-gallery__grid li:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .pd-colour__dot {
        width: 46px;
        height: 46px;
    }
}
