:root {
    --ns-pd-primary: #215884;
    --ns-pd-primary-dark: #173f60;
    --ns-pd-text: #1a1a1a;
    --ns-pd-muted: #64717c;
    --ns-pd-surface: #f2f2f2;
    --ns-pd-border: rgba(33, 88, 132, .16);
    --ns-pd-shadow: 0 20px 55px rgba(28, 55, 77, .1);
}

.ns-product-detail-page {
    overflow-x: hidden;
    background: #fff;
    color: var(--ns-pd-text);
}

.ns-pd-main {
    min-height: 60vh;
    background: #fff;
}

.ns-pd-shell {
    width: min(1320px, calc(100% - 64px));
    margin-inline: auto;
}

.ns-pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 25px 12px;
    overflow: hidden;
    color: #6a7781;
    font-size: 13px;
    white-space: nowrap;
}

.ns-pd-breadcrumb a {
    color: #405b70;
}

.ns-pd-breadcrumb a:hover,
.ns-pd-breadcrumb a:focus-visible {
    color: var(--ns-pd-primary);
}

.ns-pd-breadcrumb span[aria-current] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ns-pd-hero {
    padding: 28px 0 90px;
}

.ns-pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(42px, 6vw, 88px);
    align-items: start;
}

.ns-pd-gallery {
    position: sticky;
    top: 126px;
    min-width: 0;
}

.ns-pd-gallery__stage {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--ns-pd-border);
    border-radius: 24px;
    background: var(--ns-pd-surface);
    box-shadow: 0 10px 35px rgba(33, 88, 132, .06);
}

.ns-pd-media {
    position: absolute;
    inset: 0;
    display: none;
    margin: 0;
}

.ns-pd-media.is-active {
    display: block;
}

.ns-pd-media__zoom {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.ns-pd-media img,
.ns-pd-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ns-pd-media video {
    background: #0c1820;
    object-fit: contain;
}

.ns-pd-media__zoom-icon {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ns-pd-primary);
    box-shadow: 0 8px 22px rgba(17, 45, 66, .14);
    transition: transform .2s ease, background-color .2s ease;
}

.ns-pd-media__zoom:hover .ns-pd-media__zoom-icon,
.ns-pd-media__zoom:focus-visible .ns-pd-media__zoom-icon {
    transform: scale(1.06);
    background: #fff;
}

.ns-pd-media__zoom:focus-visible,
.ns-pd-thumb:focus-visible,
.ns-pd-variant input:focus-visible + span,
.ns-pd-button:focus-visible,
.ns-pd-lightbox button:focus-visible {
    outline: 3px solid rgba(33, 88, 132, .3);
    outline-offset: 3px;
}

.ns-pd-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ns-pd-thumb {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--ns-pd-surface);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ns-pd-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
}

.ns-pd-thumb:hover,
.ns-pd-thumb.is-active {
    border-color: var(--ns-pd-primary);
    box-shadow: 0 0 0 2px rgba(33, 88, 132, .1);
}

.ns-pd-thumb--video {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    color: var(--ns-pd-primary);
    font-size: 11px;
}

.ns-pd-thumb--video i {
    font-size: 21px;
}

.ns-pd-summary {
    min-width: 0;
    padding-top: 10px;
}

.ns-pd-eyebrow {
    margin: 0 0 13px;
    color: var(--ns-pd-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ns-pd-summary h1 {
    max-width: 720px;
    margin: 0;
    color: var(--ns-pd-text);
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.ns-pd-subtitle {
    margin: 20px 0 0;
    color: #31495c;
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 500;
    line-height: 1.5;
}

.ns-pd-description {
    margin: 14px 0 0;
    color: var(--ns-pd-muted);
    font-size: 15px;
    line-height: 1.75;
}

.ns-pd-commerce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
    padding: 19px 0;
    border-top: 1px solid var(--ns-pd-border);
    border-bottom: 1px solid var(--ns-pd-border);
}

.ns-pd-price {
    display: flex;
    align-items: baseline;
    gap: 11px;
}

.ns-pd-price__current {
    color: var(--ns-pd-primary-dark);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.ns-pd-price__compare {
    color: #8a949c;
    font-size: 16px;
}

.ns-pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e9f5ed;
    color: #23663a;
    font-size: 12px;
    font-weight: 600;
}

.ns-pd-stock i {
    font-size: 7px;
}

.ns-pd-stock.is-unavailable {
    background: #f8eceb;
    color: #9a302d;
}

.ns-pd-variants {
    margin: 26px 0 0;
    padding: 0;
    border: 0;
}

.ns-pd-variants legend,
.ns-pd-benefits h2 {
    margin: 0 0 11px;
    color: #243b4c;
    font-size: 14px;
    font-weight: 600;
}

.ns-pd-variants__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ns-pd-variant {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.ns-pd-variant input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ns-pd-variant span {
    display: block;
    padding: 11px 15px;
    border: 1px solid #cdd9e1;
    border-radius: 10px;
    background: #fff;
    color: #344b5c;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ns-pd-variant:hover span,
.ns-pd-variant input:checked + span {
    border-color: var(--ns-pd-primary);
    background: #edf4f8;
    color: var(--ns-pd-primary-dark);
}

.ns-pd-benefits {
    margin-top: 27px;
}

.ns-pd-benefits ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ns-pd-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #344b5c;
    font-size: 14px;
    line-height: 1.6;
}

.ns-pd-benefits i {
    display: grid;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    margin-top: 1px;
    place-items: center;
    border-radius: 50%;
    background: #e6f0f6;
    color: var(--ns-pd-primary);
    font-size: 10px;
}

.ns-pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.ns-pd-tags span {
    padding: 7px 11px;
    border: 1px solid var(--ns-pd-border);
    border-radius: 999px;
    background: #fff;
    color: #466174;
    font-size: 12px;
}

.ns-pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.ns-pd-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border: 1px solid var(--ns-pd-primary);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.ns-pd-button--primary {
    background: var(--ns-pd-primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(33, 88, 132, .2);
}

.ns-pd-button--primary:hover {
    background: var(--ns-pd-primary-dark);
    color: #fff;
}

.ns-pd-button--secondary {
    background: #fff;
    color: var(--ns-pd-primary);
}

.ns-pd-button--secondary:hover {
    background: #edf4f8;
    color: var(--ns-pd-primary-dark);
}

.ns-pd-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 28px 0 0;
    overflow: hidden;
    border: 1px solid var(--ns-pd-border);
    border-radius: 13px;
    background: var(--ns-pd-border);
}

.ns-pd-meta div {
    min-width: 0;
    padding: 12px 14px;
    background: #fff;
}

.ns-pd-meta div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.ns-pd-meta dt {
    margin-bottom: 3px;
    color: #77838c;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ns-pd-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #2d4658;
    font-size: 13px;
}

.ns-pd-section {
    padding: clamp(72px, 8vw, 108px) 0;
}

.ns-pd-story {
    background: var(--ns-pd-surface);
}

.ns-pd-copy-shell {
    max-width: 1040px;
}

.ns-pd-section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.ns-pd-section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.ns-pd-section-heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--ns-pd-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ns-pd-section-heading h2 {
    margin: 0;
    color: var(--ns-pd-text);
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.ns-pd-section-heading p {
    margin: 14px auto 0;
    color: var(--ns-pd-muted);
    font-size: 15px;
    line-height: 1.7;
}

.ns-pd-richtext {
    overflow-wrap: anywhere;
    color: #344754;
    font-size: 16px;
    line-height: 1.85;
}

.ns-pd-richtext h1,
.ns-pd-richtext h2,
.ns-pd-richtext h3,
.ns-pd-richtext h4 {
    margin: 1.6em 0 .65em;
    color: #1d3f58;
    font-weight: 500;
    line-height: 1.25;
}

.ns-pd-richtext h2 { font-size: clamp(27px, 3vw, 38px); }
.ns-pd-richtext h3 { font-size: clamp(21px, 2vw, 27px); }

.ns-pd-richtext p,
.ns-pd-richtext ul,
.ns-pd-richtext ol {
    margin: 0 0 1.2em;
}

.ns-pd-richtext img,
.ns-pd-richtext video,
.ns-pd-richtext iframe {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.ns-pd-richtext table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.ns-pd-information {
    background: #fff;
}

.ns-pd-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ns-pd-info-card {
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--ns-pd-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(28, 55, 77, .06);
}

.ns-pd-info-card--warning {
    background: #fffaf7;
}

.ns-pd-info-card__icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 12px;
    background: #e9f1f6;
    color: var(--ns-pd-primary);
}

.ns-pd-info-card--warning .ns-pd-info-card__icon {
    background: #f7e9df;
    color: #a45328;
}

.ns-pd-info-card h3,
.ns-pd-data-card h3 {
    margin: 0 0 12px;
    color: #1e4058;
    font-size: 20px;
    font-weight: 500;
}

.ns-pd-info-card p {
    margin: 0;
    color: #566875;
    font-size: 14px;
    line-height: 1.75;
}

.ns-pd-info-card__secondary {
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid var(--ns-pd-border);
}

.ns-pd-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.ns-pd-data-card {
    padding: clamp(24px, 3vw, 34px);
    border-radius: 20px;
    background: var(--ns-pd-surface);
}

.ns-pd-data-card dl {
    margin: 0;
}

.ns-pd-data-card dl > div {
    display: grid;
    grid-template-columns: minmax(110px, .6fr) minmax(0, 1.4fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(33, 88, 132, .12);
}

.ns-pd-data-card dl > div:last-child {
    border-bottom: 0;
}

.ns-pd-data-card dt {
    color: #476176;
    font-size: 13px;
    font-weight: 600;
}

.ns-pd-data-card dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #566875;
    font-size: 13px;
    line-height: 1.6;
}

.ns-pd-related {
    background: var(--ns-pd-surface);
}

.ns-pd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ns-pd-related-card {
    overflow: hidden;
    border: 1px solid rgba(33, 88, 132, .1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(28, 55, 77, .06);
}

.ns-pd-related-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e9ecee;
}

.ns-pd-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ns-pd-related-card:hover .ns-pd-related-card__media img {
    transform: scale(1.035);
}

.ns-pd-related-card > div {
    padding: 20px;
}

.ns-pd-related-card h3 {
    margin: 0 0 13px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
}

.ns-pd-related-card h3 a {
    color: #203f55;
}

.ns-pd-text-link {
    color: var(--ns-pd-primary);
    font-size: 13px;
    font-weight: 600;
}

.ns-pd-prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-block: 35px 75px;
}

.ns-pd-prev-next a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid var(--ns-pd-border);
    border-radius: 14px;
    color: #2d4a5f;
}

.ns-pd-prev-next a:hover {
    border-color: var(--ns-pd-primary);
    background: #f4f8fa;
}

.ns-pd-prev-next a > span {
    color: #7a8790;
    font-size: 11px;
}

.ns-pd-prev-next strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-pd-prev-next__next {
    align-items: flex-end;
    text-align: right;
}

.ns-pd-lightbox[hidden] {
    display: none;
}

.ns-pd-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: center;
    gap: 18px;
    padding: 72px 34px 34px;
    background: rgba(7, 19, 28, .94);
}

.ns-pd-lightbox img {
    width: 100%;
    max-width: min(980px, 78vw);
    max-height: calc(100vh - 110px);
    margin: auto;
    object-fit: contain;
}

.ns-pd-lightbox button {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
}

.ns-pd-lightbox__close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
}

.ns-pd-lightbox__nav {
    width: 52px;
    height: 52px;
}

@media (max-width: 1024px) {
    .ns-pd-shell {
        width: min(100% - 40px, 960px);
    }

    .ns-pd-layout {
        gap: 38px;
    }

    .ns-pd-gallery {
        top: 108px;
    }

    .ns-pd-summary h1 {
        font-size: clamp(32px, 4.8vw, 46px);
    }

    .ns-pd-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ns-pd-shell {
        width: min(100% - 28px, 680px);
    }

    .ns-pd-breadcrumb {
        padding-top: 18px;
    }

    .ns-pd-hero {
        padding: 12px 0 65px;
    }

    .ns-pd-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ns-pd-gallery {
        position: static;
    }

    .ns-pd-gallery__stage {
        border-radius: 18px;
    }

    .ns-pd-thumb {
        flex-basis: 70px;
        width: 70px;
        height: 70px;
    }

    .ns-pd-summary {
        padding-top: 0;
    }

    .ns-pd-summary h1 {
        font-size: clamp(31px, 10vw, 43px);
    }

    .ns-pd-commerce {
        align-items: flex-start;
        flex-direction: column;
    }

    .ns-pd-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ns-pd-meta,
    .ns-pd-info-grid,
    .ns-pd-data-grid,
    .ns-pd-related-grid {
        grid-template-columns: 1fr;
    }

    .ns-pd-section {
        padding: 68px 0;
    }

    .ns-pd-section-heading {
        margin-bottom: 28px;
    }

    .ns-pd-richtext {
        font-size: 15px;
    }

    .ns-pd-data-card dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .ns-pd-prev-next {
        grid-template-columns: 1fr;
        padding-bottom: 55px;
    }

    .ns-pd-lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 6px;
        padding-inline: 10px;
    }

    .ns-pd-lightbox__nav {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-pd-media__zoom-icon,
    .ns-pd-thumb,
    .ns-pd-variant span,
    .ns-pd-button,
    .ns-pd-related-card__media img {
        transition: none !important;
    }
}
