
:root {
    --nesa-dark: #11181E;
    --nesa-charcoal: #222B32;
    --nesa-text: #3B444B;
    --nesa-blue: #0C6AB5;
    --nesa-blue-hover: #095694;
    --nesa-bright-blue: #26B2F8;
    --nesa-border: #E4E8EC;
    --nesa-bg: #F5F7F9;
    --nesa-white: #FFFFFF;
}

.nesa-product-page {
    width: 100%;
    background: var(--nesa-white);
    color: var(--nesa-dark);
}

.nesa-product-shell {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.nesa-breadcrumb {
    margin-bottom: 24px;
    color: #687078;
    font-size: 13px;
}

.nesa-breadcrumb-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nesa-breadcrumb a {
    color: #687078;
    text-decoration: none;
}

.nesa-breadcrumb a:hover {
    color: var(--nesa-blue);
}

.nesa-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 40fr) minmax(0, 38fr) minmax(240px, 22fr);
    gap: 28px;
    align-items: start;
}

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

.nesa-main-image-link {
    position: relative;
    display: flex;
    min-height: 460px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--nesa-border);
    border-radius: 16px;
    background: var(--nesa-white);
    text-decoration: none;
}

.nesa-main-product-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
}

.nesa-zoom-label {
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--nesa-blue);
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(17, 24, 30, 0.12);
}

.nesa-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.nesa-product-thumbnail {
    overflow: hidden;
    padding: 4px;
    border: 1px solid var(--nesa-border);
    border-radius: 10px;
    background: var(--nesa-white);
    cursor: pointer;
}

.nesa-product-thumbnail:hover,
.nesa-product-thumbnail:focus {
    border-color: var(--nesa-blue);
    outline: none;
}

.nesa-product-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.nesa-product-summary {
    min-width: 0;
    padding-top: 10px;
}

.nesa-product-title {
    margin: 0 0 16px;
    color: var(--nesa-dark);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.12;
    font-weight: 700;
}

.nesa-product-code-list {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.nesa-product-code-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    background: var(--nesa-bg);
}

.nesa-product-code-row span {
    color: var(--nesa-text);
}

.nesa-product-code-row strong {
    color: var(--nesa-dark);
    text-align: right;
}

.nesa-product-excerpt {
    color: var(--nesa-text);
    font-size: 15px;
    line-height: 1.7;
}

.nesa-product-excerpt p {
    margin: 0 0 12px;
}

.nesa-product-categories {
    margin-top: 16px;
    color: #687078;
    font-size: 13px;
}

.nesa-product-categories span {
    margin-right: 4px;
}

.nesa-product-categories a {
    color: var(--nesa-blue);
    text-decoration: none;
}

.nesa-offer-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--nesa-border);
    border-radius: 16px;
    background: var(--nesa-bg);
}

.nesa-offer-card h2 {
    margin: 0;
    color: var(--nesa-blue);
    font-size: 23px;
    line-height: 1.15;
    font-weight: 700;
}

.nesa-offer-card p {
    margin: 0 0 8px;
    color: var(--nesa-text);
    font-size: 14px;
    line-height: 1.55;
}

.nesa-offer-button {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: 160ms ease;
}

.nesa-offer-button--blue {
    background: var(--nesa-blue);
    color: var(--nesa-white);
}

.nesa-offer-button--blue:hover {
    background: var(--nesa-blue-hover);
    color: var(--nesa-white);
}

.nesa-offer-button--dark {
    background: var(--nesa-dark);
    color: var(--nesa-white);
}

.nesa-offer-button--dark:hover {
    background: var(--nesa-charcoal);
    color: var(--nesa-white);
}

.nesa-offer-button--outline {
    border-color: var(--nesa-blue);
    background: var(--nesa-white);
    color: var(--nesa-blue);
}

.nesa-offer-button--outline:hover {
    background: #EDF5FC;
    color: var(--nesa-blue);
}

.nesa-product-accordion {
    display: grid;
    gap: 7px;
    margin-top: 34px;
}

.nesa-product-accordion details {
    overflow: hidden;
    border: 1px solid var(--nesa-border);
    border-radius: 9px;
    background: var(--nesa-white);
}

.nesa-product-accordion summary {
    position: relative;
    padding: 15px 48px 15px 18px;
    background: var(--nesa-bg);
    color: var(--nesa-dark);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.nesa-product-accordion summary::-webkit-details-marker {
    display: none;
}

.nesa-product-accordion summary::before {
    content: '+';
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--nesa-blue);
    font-size: 22px;
    line-height: 1;
    transform: translateY(-50%);
}

.nesa-product-accordion details[open] {
    border-color: var(--nesa-blue);
}

.nesa-product-accordion details[open] summary {
    background: var(--nesa-white);
    color: var(--nesa-blue);
}

.nesa-product-accordion details[open] summary::before {
    content: '−';
}

.nesa-accordion-content {
    padding: 18px;
    border-top: 1px solid var(--nesa-border);
    color: var(--nesa-text);
}

.nesa-product-description {
    line-height: 1.75;
}

.nesa-product-description > *:first-child {
    margin-top: 0;
}

.nesa-product-description > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 1080px) {
    .nesa-product-shell {
        width: min(100% - 32px, 1100px);
    }

    .nesa-product-hero {
        grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    }

    .nesa-offer-card {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(170px, 1fr));
        align-items: center;
    }

    .nesa-offer-card h2,
    .nesa-offer-card p {
        grid-column: 1;
    }

    .nesa-offer-card p {
        margin-bottom: 0;
    }

    .nesa-offer-button {
        grid-row: 1 / span 2;
    }
}

@media (max-width: 767px) {
    .nesa-product-shell {
        width: min(100% - 24px, 680px);
        padding-top: 18px;
    }

    .nesa-product-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .nesa-main-image-link {
        min-height: 320px;
    }

    .nesa-product-title {
        font-size: 30px;
    }

    .nesa-offer-card {
        display: flex;
    }

    .nesa-product-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .nesa-main-image-link {
        min-height: 260px;
    }

    .nesa-product-code-row {
        flex-direction: column;
        gap: 4px;
    }

    .nesa-product-code-row strong {
        text-align: left;
    }
}
