.npd-product-detail,
.npd-product-detail * {
    box-sizing: border-box;
}

.npd-product-detail {
    width: 100%;
    padding: 0;
    overflow: visible;
    color: #20293d;
    font-size: 16px;
    line-height: 1.35;
    border: 0;
    position: static;

    margin-top: 20px;
}

.product_detail.npd-product-detail {
    padding: 0;
    overflow: visible;
    border: 0;
    position: static;
}

.npd-product-detail button,
.npd-product-detail input {
    font: inherit;
    letter-spacing: 0;
}

.npd-product-detail__top {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .86fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.npd-gallery-card,
.npd-summary-card,
.npd-info-card,
.npd-files {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(24, 43, 77, .08);
}

.npd-gallery-card {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    grid-template-rows: minmax(405px, 1fr) auto;
    gap: 18px 22px;
    min-height: 560px;
    padding: 28px 26px 16px;
}

.npd-gallery-card:not(.npd-gallery-card_has-features) {
    grid-template-columns: minmax(0, 1fr);
}

.npd-feature-list {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

.npd-feature-list.props_img_labels {
    position: static;
    left: auto;
    top: auto;
}

.npd-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    min-height: 122px;
    padding: 14px 8px;
    text-align: center;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    box-shadow: 0 12px 22px rgba(28, 45, 77, .08);
}

.npd-feature-list.props_img_labels .npd-feature-card {
    width: 90px;
    height: auto;
    min-height: 122px;
    margin: 0;
    padding: 14px 8px;
    color: #293346;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 70%;
    border: 1px solid #eef2f7;
    border-radius: 8px;
}

.npd-feature-list.props_img_labels .npd-feature-card.particle_size {
    background-size: 70%;
}

.npd-feature-list.props_img_labels .npd-feature-card.particle_size span {
    margin-top: -30px;
    font-size: 15px;
}

.npd-feature-list.props_img_labels .min_foil_thickness .npd-feature-card__value {
    margin-top: 25px;
}

.npd-feature-list.props_img_labels .max_foil_thickness .npd-feature-card__value {
    margin-top: 20px;
}

.npd-feature-list.props_img_labels .perforation_plates .npd-feature-card__value {
    margin-top: -10px;
}

.npd-feature-list.props_img_labels .volume_block_70 .npd-feature-card__value {
    margin-top: -30px;
    margin-right: -15px;
}

.npd-feature-list.props_img_labels .format .npd-feature-card__value {
    font-size: 14px;
}

.npd-feature-card__icon {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.npd-feature-list.props_img_labels .npd-feature-card span {
    margin: 0;
}

.npd-feature-card__value {
    display: block;
    max-width: 100%;
    margin-top: 54px;
    color: #293346;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.npd-feature-list.props_img_labels .npd-feature-card__value {
    margin-top: 54px;
    color: #293346;
    font-size: 18px;
}

.npd-feature-card__unit {
    display: block;
    margin-top: 4px;
    color: #293346;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.npd-feature-list.props_img_labels .npd-feature-card__unit {
    margin-top: 4px;
    color: #293346;
    font-size: 14px;
}

.npd-gallery-card__stage {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 405px;
    padding: 4px 12px;
}

.npd-gallery-card_has-features .npd-gallery-card__stage {
    grid-column: 2;
}

.npd-gallery-card__main {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.npd-gallery-card__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 320px;
    color: #7b879a;
    text-align: center;
    background: #f6f8fb;
    border-radius: 8px;
}

.npd-thumbs {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #edf1f6;
}

.npd-thumbs__track {
    display: flex;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.npd-thumbs__track::-webkit-scrollbar {
    display: none;
}

.npd-thumbs__item {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    padding: 5px;
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.npd-thumbs__item.is-active {
    border-color: #176bff;
    box-shadow: 0 0 0 1px #176bff;
}

.npd-thumbs__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.npd-thumbs__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #536176;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 50%;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.npd-thumbs__arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.npd-thumbs__arrow:hover,
.npd-thumbs__arrow:focus-visible {
    color: #0b69df;
    border-color: #9ec3ff;
    box-shadow: 0 0 0 3px rgba(23, 107, 255, .12);
    outline: none;
}

.npd-summary-card {
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 32px 34px;
}

.npd-summary-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

.npd-summary-card__article {
    align-self: flex-start;
    padding: 9px 14px;
    color: #294067;
    font-size: 15px;
    line-height: 1.2;
    background: #eaf2ff;
    border-radius: 7px;
}

.npd-summary-card__status {
    align-self: flex-start;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 7px;
}

.npd-summary-card__status_available {
    color: #168044;
    background: #e9f8f0;
}

.npd-summary-card__status_order {
    color: #d7332b;
    background: #fff0ef;
}

.npd-summary-card__title {
    margin: 0 0 28px;
    color: #1f293d;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.32;
}

.npd-summary-card__price {
    margin-bottom: 32px;
    color: #0b68d8;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.npd-actions {
    display: grid;
    grid-template-columns: minmax(150px, 186px) minmax(190px, 1fr);
    grid-template-areas: "quantity order";
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.npd-order-button {
    grid-area: order;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 14px 22px;
    color: #fff;
    font-size: 19px !important;
    font-weight: 700;
    text-align: center;
    background: #168044;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 9px 20px rgba(22, 128, 68, .2);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.npd-order-button:hover,
.npd-order-button:focus-visible {
    background: #126f3a;
    box-shadow: 0 11px 24px rgba(22, 128, 68, .25);
    outline: none;
}

.npd-order-button:active {
    transform: translateY(1px);
}

input.npd-quantity__input {
    grid-area: quantity;
    place-self: center;
    width: 54px;
    height: 42px;
    padding: 0;
    color: #263248;
    font-size: 19px;
    text-align: center;
    background: transparent;
    border: 0;
    outline: none;
    z-index: 1;
}

button.npd-quantity__button {
    grid-area: quantity;
    align-self: stretch;
    width: 58px;
    padding: 0;
    color: #8c97aa;
    font-size: 30px;
    line-height: 1;
    background: transparent;
    border: 1px solid #d5ddea;
    cursor: pointer;
    z-index: 2;
    transition: color .2s ease, background .2s ease;
}

.npd-quantity__button:hover,
.npd-quantity__button:focus-visible {
    color: #0b68d8;
    background: #f6f9ff;
    outline: none;
}

.npd-quantity__button_minus {
    justify-self: start;
    border-radius: 8px 0 0 8px;
    border-right: 0;
}

.npd-quantity__button_plus {
    justify-self: end;
    border-radius: 0 8px 8px 0;
    border-left: 0;
}

.npd-actions::before {
    content: "";
    grid-area: quantity;
    display: block;
    min-height: 72px;
    border: 1px solid #d5ddea;
    border-radius: 8px;
    pointer-events: none;
}

.npd-summary-card__separator {
    width: 100%;
    height: 1px;
    margin: 0 0 24px;
    background: #e4e9f1;
}

.npd-delivery {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
    color: #293346;
    font-size: 16px;
    line-height: 1.35;
}

.npd-delivery__icon {
    width: 31px;
    height: 31px;
    color: #0b68d8;
    fill: #0b68d8;
}

.npd-delivery__icon path {
    fill: #0b68d8;
    stroke: none;
}

.npd-delivery a {
    color: #0b68d8;
    text-decoration: none;
}

.npd-delivery a:hover {
    text-decoration: underline;
}

.npd-compare-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.npd-compare-block__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #293346;
    cursor: pointer;
}

.npd-compare-block__label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.npd-compare-block__box {
    position: relative;
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    background: #fff;
    border: 1px solid #cbd3df;
    border-radius: 4px;
}

.npd-compare-block__box::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 8px;
    height: 14px;
    border: solid #0b68d8;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
}

.npd-compare-checkbox:checked + .npd-compare-block__box {
    border-color: #0b68d8;
    background: #f4f8ff;
}

.npd-compare-checkbox:checked + .npd-compare-block__box::after {
    opacity: 1;
}

.npd-compare-block__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0b68d8;
    text-decoration: none;
    white-space: nowrap;
}

.npd-compare-block__link svg {
    width: 28px;
    height: 28px;
    color: #0b68d8;
    fill: none !important;
    stroke: #0b68d8 !important;
    stroke-width: 2.5;
    stroke-linecap: square;
}

.npd-compare-block__link svg path {
    fill: none !important;
    stroke: #0b68d8 !important;
}

.npd-compare-block__link:hover {
    text-decoration: underline;
}

.npd-info-card {
    padding: 24px 34px 28px;
    margin-bottom: 24px;
}

.npd-tabs__nav {
    display: flex;
    align-items: flex-end;
    margin: 0 0 -1px;
}

.npd-tabs__button {
    width: min(250px, 50%);
    min-height: 48px;
    padding: 12px 20px;
    color: #1f293d;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    background: #f3f5f9;
    border: 1px solid #e4eaf2;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.npd-tabs__button.is-active {
    position: relative;
    color: #0b68d8;
    background: #fff;
}

.npd-tabs__button.is-active::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 4px;
    background: #176bff;
}

.npd-tabs__panel {
    display: none;
    padding: 26px 24px;
    border: 1px solid #dce4ef;
    border-radius: 0 8px 8px;
}

.npd-tabs__panel.is-active {
    display: block;
}

.npd-properties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.npd-properties__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .45fr);
    gap: 18px;
    align-items: center;
    min-height: 39px;
    padding: 9px 0;
    color: #3f4a5f;
    border-bottom: 1px solid #e4e9f1;
}

.npd-properties__name,
.npd-properties__value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.npd-properties__value {
    color: #2f394d;
    text-align: right;
}

.npd-detail-text {
    color: #3f4a5f;
}

.npd-detail-text p:first-child {
    margin-top: 0;
}

.npd-detail-text p:last-child {
    margin-bottom: 0;
}

.npd-tabs__empty {
    color: #7b879a;
}

.npd-files {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 22px;
}

.npd-files__item {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    color: #0b68d8;
    text-decoration: none;
    background: #f4f8ff;
    border: 1px solid #dbe8ff;
    border-radius: 7px;
}

.npd-files__item:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .npd-product-detail__top {
        grid-template-columns: 1fr;
    }

    .npd-summary-card {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .npd-gallery-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(280px, auto) auto;
        min-height: 0;
        padding: 18px;
    }

    .npd-feature-list {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .npd-feature-card {
        flex: 0 0 88px;
        min-height: 112px;
    }

    .npd-gallery-card__stage,
    .npd-gallery-card_has-features .npd-gallery-card__stage {
        grid-column: 1;
        grid-row: 2;
        min-height: 280px;
        padding: 0;
    }

    .npd-gallery-card__main {
        max-height: 340px;
    }

    .npd-thumbs {
        grid-row: 3;
        grid-template-columns: minmax(0, 1fr);
    }

    .npd-thumbs__arrow {
        display: none;
    }

    .npd-summary-card {
        padding: 24px 20px;
    }

    .npd-summary-card__title {
        font-size: 25px;
    }

    .npd-summary-card__price {
        font-size: 34px;
    }

    .npd-compare-block {
        grid-template-columns: 1fr;
    }

    .npd-info-card {
        padding: 18px 14px;
    }

    .npd-tabs__panel {
        padding: 18px 14px;
    }

    .npd-properties {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 540px) {
    .npd-product-detail {
        font-size: 15px;
    }

    .npd-product-detail__top {
        gap: 16px;
        margin-bottom: 18px;
    }

    .npd-actions {
        grid-template-columns: 1fr;
        grid-template-areas:
			"quantity"
			"order";
        gap: 12px;
    }

    .npd-order-button,
    .npd-actions::before {
        min-height: 60px;
    }

    .npd-tabs__button {
        padding: 10px 8px;
        font-size: 13px;
    }

    .npd-properties__row {
        grid-template-columns: 1fr;
        gap: 4px;
        align-items: start;
    }

    .npd-properties__value {
        text-align: left;
        font-weight: 700;
    }
}
