.product-detail-page {
    background: #f6f8fa;
    padding: 2.25rem 0 4rem;
}

.product-detail-shell {
    margin: 0 auto;
    max-width: 1220px;
    padding: 0 1.25rem;
}

.product-breadcrumb {
    margin-bottom: 1.4rem;
}

.product-breadcrumb .breadcrumb {
    align-items: center;
    font-size: 0.82rem;
    gap: 0.15rem;
    margin-bottom: 0;
}

.product-breadcrumb a {
    color: #607286;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--brand-primary);
}

.product-breadcrumb .active {
    color: #1d2b38;
    font-weight: 700;
}

.product-hero {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
}

.product-media {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    position: relative;
}

.single-product-image,
.product-media .carousel-item img {
    display: block;
    height: min(460px, 56vw);
    max-width: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 180ms ease;
    width: 100%;
}

.product-media.is-zoomable .single-product-image,
.product-media.is-zoomable .product-zoom-source {
    cursor: zoom-in;
}

.product-media.is-zoomable.is-zooming .single-product-image,
.product-media.is-zoomable.is-zooming .carousel-item.active .product-zoom-source {
    transform: scale(1.08);
}

.product-zoom-trigger {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe4ea;
    border-radius: 999px;
    bottom: 1rem;
    color: #1d2b38;
    display: inline-flex;
    height: 2.45rem;
    justify-content: center;
    position: absolute;
    right: 1rem;
    width: 2.45rem;
    z-index: 4;
}

.product-zoom-trigger:hover {
    border-color: #b8c7d4;
    color: var(--brand-primary);
}

#productCarousel {
    width: 100%;
}

.product-media .carousel-control-prev,
.product-media .carousel-control-next {
    filter: invert(1);
    opacity: 0.4;
}

.empty-product-image {
    align-items: center;
    color: #6d7f90;
    display: flex;
    font-weight: 700;
    height: 360px;
    justify-content: center;
    width: 100%;
}

.product-summary {
    min-width: 0;
}

.product-category-line {
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

.product-name {
    color: var(--brand-ink);
    font-size: clamp(2.15rem, 4.8vw, 4.25rem);
    font-weight: 800;
    line-height: 1.02;
    margin: 0 0 1rem;
    max-width: 760px;
}

.product-ref {
    color: #526779;
    font-size: 0.86rem;
    font-weight: 800;
    margin: 0 0 1.4rem;
}

.product-variant-selector {
    border-bottom: 1px solid #e5ecf2;
    margin: -0.55rem 0 1.05rem;
    padding-bottom: 1rem;
}

.variant-selector-label {
    color: #607286;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
}

.variant-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-option {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe5ec;
    border-radius: 999px;
    color: #233545;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 0.42rem;
    line-height: 1;
    padding: 0.46rem 0.72rem;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.variant-option:hover {
    border-color: #9fb3c4;
    color: var(--brand-primary);
}

.variant-option.is-active {
    background: #eaf3ff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
    color: var(--brand-primary);
}

.variant-option-note {
    align-items: center;
    color: #607286;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1;
    padding: 0.46rem 0.1rem;
}

.variant-color-dot {
    border: 1px solid rgba(31, 41, 51, 0.18);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
    display: inline-block;
    flex: 0 0 auto;
    height: 0.88rem;
    width: 0.88rem;
}

.variant-color-dot.color-black { background: #111827; }
.variant-color-dot.color-blue { background: #2f80ed; }
.variant-color-dot.color-green { background: #2f9e44; }
.variant-color-dot.color-pink { background: #f5a3b7; }
.variant-color-dot.color-red { background: #e03131; }
.variant-color-dot.color-white { background: #ffffff; }
.variant-color-dot.color-yellow { background: #f2c94c; }
.variant-color-dot.color-orange { background: #f2994a; }
.variant-color-dot.color-purple { background: #7b61ff; }
.variant-color-dot.color-gray,
.variant-color-dot.color-grey { background: #9aa5b1; }
.variant-color-dot.color-clear,
.variant-color-dot.color-natural {
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 52%, #d9ecff 100%);
}

.related-color-dots {
    align-items: center;
    display: inline-flex;
    gap: 0.22rem;
}

.product-quote-button {
    margin-top: 0.1rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.related-products {
    margin-top: 3rem;
}

.related-products-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

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

.related-product-card {
    background: #ffffff;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    overflow: hidden;
}

.related-product-image {
    align-items: center;
    background: #ffffff;
    display: flex;
    height: 190px;
    justify-content: center;
    padding: 1rem;
    text-decoration: none;
}

.related-product-image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.related-product-image span {
    color: #6d7f90;
    font-size: 0.9rem;
    font-weight: 700;
}

.related-product-body {
    border-top: 1px solid #edf1f4;
    padding: 1rem;
}

.related-product-body p {
    color: #637789;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.related-product-body h3 {
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 0.8rem;
}

.related-variant-summary {
    align-items: center;
    color: #607286;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.42rem;
    margin: -0.35rem 0 0.75rem;
}

.related-variant-summary .variant-color-dot {
    height: 0.74rem;
    width: 0.74rem;
}

.related-product-body a {
    color: #0d6efd;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.related-product-body a:hover {
    text-decoration: underline;
}

.product-lightbox {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    position: fixed;
    z-index: 1060;
}

.product-lightbox.is-open {
    display: flex;
}

.product-lightbox-backdrop {
    background: rgba(9, 19, 29, 0.88);
    inset: 0;
    position: absolute;
}

.product-lightbox-panel {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: 92vh;
    max-width: min(1080px, 94vw);
    position: relative;
    width: 100%;
    z-index: 1;
}

.product-lightbox-image {
    background: #ffffff;
    border-radius: 8px;
    max-height: 92vh;
    max-width: 100%;
    object-fit: contain;
    padding: clamp(0.5rem, 2vw, 1rem);
}

.product-lightbox-close,
.product-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(219, 228, 234, 0.7);
    border-radius: 999px;
    color: #1d2b38;
    display: inline-flex;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.product-lightbox-close {
    font-size: 1.6rem;
    height: 2.75rem;
    line-height: 1;
    right: 0.5rem;
    top: 0.5rem;
    width: 2.75rem;
}

.product-lightbox-nav {
    font-size: 2.4rem;
    height: 3.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3.2rem;
}

.product-lightbox-prev {
    left: 0.5rem;
}

.product-lightbox-next {
    right: 0.5rem;
}

.product-lightbox-open {
    overflow: hidden;
}

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

@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
    }

    .product-media {
        min-height: 320px;
    }

    .single-product-image,
    .product-media .carousel-item img {
        height: min(390px, 80vw);
    }
}

@media (max-width: 640px) {
    .product-detail-page {
        padding-top: 1.4rem;
    }

    .product-detail-shell {
        padding: 0 0.9rem;
    }

    .product-name {
        font-size: clamp(2rem, 13vw, 3.4rem);
    }

    .related-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-product-image,
    .product-media .carousel-item img {
        transition: none;
    }

    .product-media.is-zoomable.is-zooming .single-product-image,
    .product-media.is-zoomable.is-zooming .carousel-item.active .product-zoom-source {
        transform: none;
    }
}

/* B2B purchasing layout refinements */
.product-detail-shell {
    max-width: 1160px;
}

.product-hero {
    align-items: start;
    gap: clamp(1.4rem, 3.2vw, 2.6rem);
    grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
}

.product-media {
    min-height: 390px;
}

.single-product-image,
.product-media .carousel-item img {
    height: min(430px, 46vw);
}

.product-summary {
    background: #ffffff;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    min-width: 0;
    padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.product-name {
    font-size: clamp(2rem, 3.1vw, 3.15rem);
    line-height: 1.04;
    max-width: 600px;
}

.product-ref {
    border-bottom: 1px solid #e5ecf2;
    color: #526779;
    margin-bottom: 1.05rem;
    padding-bottom: 0.85rem;
}

.procurement-summary {
    margin-bottom: 1.2rem;
    margin-top: 0.15rem;
}

.procurement-summary h2 {
    color: var(--brand-ink);
    font-size: 0.98rem;
    font-weight: 850;
    margin: 0 0 0.7rem;
}

.procurement-summary-list {
    color: #233545;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.procurement-terms-list {
    border-top: 1px solid #dde7ef;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.procurement-summary-row {
    align-items: start;
    border-bottom: 1px solid #eef3f6;
    display: grid;
    gap: 1rem;
    grid-template-columns: 122px minmax(0, 1fr);
    line-height: 1.42;
    padding: 0.56rem 0;
}

.procurement-summary-row:first-child {
    padding-top: 0;
}

.procurement-summary-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.procurement-summary-row dt {
    color: #5f7284;
    font-size: 0.82rem;
    font-weight: 850;
    margin: 0;
    padding-top: 0.05rem;
    text-transform: none;
}

.procurement-summary-row dd {
    color: #152331;
    font-size: 0.96rem;
    font-weight: 760;
    margin: 0;
    min-width: 0;
}

.product-information {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 1.6rem;
    padding: 0;
}

.product-information > :only-child {
    grid-column: 1 / -1;
}

.product-info-panel {
    background: #ffffff;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
    min-height: 178px;
    padding: clamp(1.2rem, 2vw, 1.55rem);
    position: relative;
}

.product-info-panel::before {
    background: #e7334f;
    border-radius: 999px;
    content: "";
    height: 3px;
    left: clamp(1.2rem, 2vw, 1.55rem);
    position: absolute;
    top: 0;
    width: 42px;
}

.product-info-panel h2 {
    color: var(--brand-ink);
    font-size: 1.08rem;
    font-weight: 850;
    margin: 0 0 0.75rem;
}

.product-info-panel .product-content-rich-text {
    color: #3f5264;
    font-size: 0.98rem;
    line-height: 1.68;
    text-align: left;
    white-space: normal;
}

.product-info-list {
    color: #3f5264;
    display: grid;
    gap: 0.42rem;
    line-height: 1.65;
    margin: 0;
    padding-left: 1.1rem;
}

@media (max-width: 980px) {
    .product-hero,
    .product-information {
        grid-template-columns: 1fr;
    }

    .product-summary {
        padding: 1.15rem;
    }
}

@media (max-width: 640px) {
    .product-name {
        font-size: clamp(1.85rem, 10vw, 2.7rem);
    }

    .procurement-summary-row {
        gap: 0.18rem;
        grid-template-columns: 1fr;
    }

    .procurement-summary-row dt {
        font-size: 0.82rem;
        text-transform: uppercase;
    }
}
