.site-main.product-page {
    padding-block: 32px 64px;
}

.product-page > .container {
    width: min(1576px, calc(100% - 48px));
    margin-inline: auto;
}

.product-page,
.product-page *,
.product-page *::before,
.product-page *::after {
    box-sizing: border-box;
}

.product-page [hidden] {
    display: none !important;
}

.product-page .sv-breadcrumbs {
    margin-bottom: 32px;
}

.product-page .product-details {
    display: block;
    min-width: 0;
}

.product-page .product-information,
.product-page .product-description,
.product-page .product-related {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    min-width: 0;
}

.product-page .product-description,
.product-page .product-related {
    margin-top: 64px;
    padding: 0;
    border: 0;
}

.product-page .product-section-title {
    margin: 0;
    color: #000;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    overflow-wrap: anywhere;
}

.product-page .product-information__main,
.product-page .product-description__content {
    min-width: 0;
}

.product-page .product-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    margin-bottom: 24px;
}

.product-page .product-name {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #000;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    overflow-wrap: anywhere;
}

.product-page .product-sku {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    max-width: 35%;
    margin: 0;
    color: #9e9e9e;
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.product-page .product-sku > span {
    min-width: 0;
}

.product-page .product-information__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    min-width: 0;
}

/* Галерея */

.product-page .product-gallery {
    position: relative;
    isolation: isolate;
    min-width: 0;
}

.product-page .product-gallery__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
}

.product-page .product-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 180ms ease-out;
}

.product-page .product-gallery.is-loading
.product-gallery__image {
    opacity: 0.55;
}

.product-page .product-gallery__badge {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    padding: 6px 16px;
    border-radius: 8px;
    color: #fff;
    background: #ee6a00;
    font-size: 16px;
    line-height: 24px;
}

.product-page .product-gallery__control {
    position: absolute;
    z-index: 2;
    top: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    margin: 0;
    padding: 12px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;

    color: #0093ee;
    background: #e8f6ff;

    cursor: pointer;

    transition:
            color 180ms ease-out,
            background-color 180ms ease-out;
}

.product-page .product-gallery__control--previous {
    left: 0;
}

.product-page .product-gallery__control--next {
    right: 0;
}

.product-page .product-gallery__arrow,
.product-page .product-installation__arrow {
    display: block;
    flex: 0 0 16px;

    width: 16px;
    height: 16px;

    background: currentColor;

    -webkit-mask:
            url("/images/icons/category-arrow-circle-right-108e708090425cc357a8bbe11386d3d1.svg")
            center / contain no-repeat;

    mask:
            url("/images/icons/category-arrow-circle-right-108e708090425cc357a8bbe11386d3d1.svg")
            center / contain no-repeat;
}

.product-page
.product-gallery__control--previous
.product-gallery__arrow {
    transform: rotate(180deg);
}

/* Панель покупки */

.product-page .product-summary {
    min-width: 0;
    margin: 0;
    padding: 24px;

    border: 3px solid #f5f5f5;
    border-radius: 16px;

    background: #fff;
}

/* Плашка наявності */

.product-page .product-availability {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    max-width: 100%;
    margin: 0 0 24px;
    padding: 1px 6px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 400;
    line-height: 16px;

    overflow-wrap: anywhere;
}

.product-page .product-availability.is-available {
    border-color: #c8e7dd;
    color: #377d6b;
    background: #effaf6;
}

.product-page .product-availability.is-unavailable {
    border-color: #e5e5e5;
    color: #757575;
    background: #f5f5f5;
}

.product-page .product-availability__icon {
    display: block;
    flex: 0 0 12px;

    width: 12px;
    height: 12px;

    color: inherit;
}

/* Ціни та дії */

.product-page .product-purchase {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;

    min-width: 0;
}

.product-page .product-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.product-page .product-old-price,
.product-page .product-price {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;

    margin: 0;
    white-space: nowrap;
}

.product-page .product-old-price {
    color: #9e9e9e;
    font-size: 16px;
    line-height: 24px;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.product-page .product-price {
    color: #000;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
}

.product-page .product-buy-form {
    margin: 0;
    padding: 0;
}

.product-page .product-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-height: 40px;
    margin: 0;
    padding: 8px 16px;

    border: 0;
    border-radius: 20px;

    color: #fff;
    background: #0093ee;

    font: inherit;
    font-size: 16px;
    line-height: 24px;

    cursor: pointer;

    transition: background-color 180ms ease-out;
}

.product-page .product-buy-button svg {
    display: block;
    flex: 0 0 24px;

    width: 24px;
    height: 24px;
}

.product-page .product-summary__actions {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 40px;
}

.product-page .product-summary__actions
.sv-product-card__action {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    padding: 0;
}

.product-page .product-summary__actions
.sv-product-card__action svg {
    display: block;
    flex: 0 0 32px;

    width: 32px;
    height: 32px;
}

/* Монтаж */

.product-page .product-installation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;

    margin-top: 24px;
    padding-block: 24px;

    border-top: 1px solid #e8f6ff;
    border-bottom: 1px solid #e8f6ff;
}

.product-page .product-installation__button {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-height: 40px;
    max-width: 100%;
    padding: 8px 16px;

    border-radius: 20px;

    color: #0093ee;
    background: #e8f6ff;

    font-size: 16px;
    line-height: 24px;
    text-decoration: none;

    transition: color 180ms ease-out;
}

.product-page .product-installation__button > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-page .product-installation > p {
    flex: 1 1 180px;
    min-width: 0;
    margin: 0;

    color: #0093ee;

    font-size: 14px;
    line-height: 20px;

    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Доставка та оплата */

.product-page .product-conditions {
    display: grid;
    gap: 24px;

    margin-top: 24px;
    padding-top: 24px;

    border-top: 1px solid #e8f6ff;
}

.product-page .product-installation + .product-conditions {
    padding-top: 0;
    border-top: 0;
}

.product-page .product-condition h3 {
    margin: 0 0 8px;

    color: #202020;

    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.product-page .product-condition p {
    margin: 0;

    color: #555;

    font-size: 14px;
    line-height: 20px;

    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Компактні картки гарантії та повернення */

.product-page .product-assurances {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;

    min-width: 0;
}

.product-page .product-assurance {
    flex: 0 1 auto;

    min-width: 0;
    max-width: 100%;
    padding: 20px;

    border: 3px solid #f5f5f5;
    border-radius: 16px;

    background: #fff;
}

.product-page .product-assurance h3 {
    margin: 0 0 4px;

    color: #9e9e9e;

    font-size: 14px;
    font-weight: 400;
    line-height: 20px;

    overflow-wrap: anywhere;
}

.product-page .product-assurance p {
    margin: 0;

    color: #555;

    font-size: 14px;
    font-weight: 400;
    line-height: 20px;

    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Вкладки «Опис / Характеристики» */

.product-page .product-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;

    min-width: 0;
    margin: 0 0 32px;
    padding: 0;

    border: 0;
}

.product-page .product-tabs__button {
    position: relative;
    flex: 0 0 auto;

    margin: 0;
    padding: 8px;

    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;

    color: #555;
    background: transparent;

    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;
    appearance: none;

    transition:
            color 180ms ease-out,
            border-color 180ms ease-out;
}

.product-page .product-tabs__button[aria-selected="true"] {
    border-bottom-color: #0093ee;
    color: #555;
}

.product-page .product-tab-panel {
    min-width: 0;
}

.product-page .product-tab-panel + .product-tab-panel {
    margin-top: 32px;
}

.product-page .product-description__content.is-enhanced
.product-tab-panel {
    margin-top: 0;
}

.product-page .product-panel-heading {
    margin: 0 0 16px;
    color: #202020;
    font-size: 20px;
    line-height: 28px;
}

.product-page .product-description__text {
    margin: 0;
    color: #202020;
    font-size: 16px;
    line-height: 24px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.product-page .product-description__text.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 12;
    overflow: hidden;
}

.product-page .product-description__toggle {
    display: inline-flex;

    margin-top: 16px;
    padding: 0;

    border: 0;

    color: #0093ee;
    background: transparent;

    font: inherit;
    font-size: 16px;
    line-height: 24px;

    cursor: pointer;

    transition: color 180ms ease-out;
}

/* Таблиця характеристик */

.product-page .product-specifications {
    width: 100%;
    margin: 0;

    border: 0;
    border-collapse: collapse;
    border-spacing: 0;

    table-layout: fixed;

    color: #555;
    background: #fff;

    font-size: 14px;
    line-height: 20px;
}

.product-page
.product-specifications__name-column {
    width: 320px;
}

.product-page .product-specifications tr {
    background: #fff;
}

.product-page .product-specifications th,
.product-page .product-specifications td {
    min-width: 0;
    padding: 14px 16px;

    border: 0;
    border-bottom: 1px solid #f5f5f5;

    background: transparent;

    font-size: 14px;
    line-height: 20px;

    text-align: left;
    vertical-align: top;

    overflow-wrap: anywhere;
    word-break: normal;

    transition: background-color 180ms ease-out;
}

.product-page .product-specifications th {
    width: auto;

    color: #555;
    font-weight: 700;
}

.product-page .product-specifications tbody
> tr:first-child > th {
    font-weight: 400;
}

.product-page .product-specifications td {
    color: #555;
    font-weight: 400;

    white-space: pre-line;
}

.product-page .product-specifications tbody
> tr:last-child > th,
.product-page .product-specifications tbody
> tr:last-child > td {
    border-bottom: 0;
}

.product-page .product-empty-text {
    margin: 0;
    color: #757575;
    font-size: 16px;
    line-height: 24px;
}

/* Схожі товари */

.product-page .product-related__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;

    min-width: 0;
    margin: 0;
    padding: 0;

    list-style: none;
}

.product-page .product-related__list > li {
    display: flex;
    min-width: 0;
}

.product-page .product-related__list .sv-product-card {
    width: 100%;
    min-width: 0;
    height: 100%;
}

/* Доступність */

.product-page .product-page__sr-only {
    position: absolute;

    display: block;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;

    overflow: hidden;
    clip-path: inset(50%);

    border: 0;

    white-space: nowrap;
}

.product-page .product-gallery:focus-visible,
.product-page .product-gallery__control:focus-visible,
.product-page .product-buy-button:focus-visible,
.product-page .product-installation__button:focus-visible,
.product-page .product-tabs__button:focus-visible,
.product-page .product-description__toggle:focus-visible,
.product-page .product-tab-panel:focus-visible {
    outline: 2px solid #0093ee;
    outline-offset: 4px;
}

/* Наведення мишею */

@media (hover: hover) and (pointer: fine) {
    .product-page .product-gallery__control:hover,
    .product-page .product-installation__button:hover,
    .product-page .product-tabs__button:hover,
    .product-page .product-description__toggle:hover {
        color: #ee6a00;
    }

    .product-page .product-buy-button:hover {
        background: #ee6a00;
    }

    .product-page .product-specifications th:hover,
    .product-page .product-specifications td:hover {
        background: #e8f6ff;
    }
}

.product-page .product-buy-button:active {
    background: #0082a7;
}

/* Адаптація */

@media (max-width: 1439px) {
    .product-page .product-related__list {
        gap: 16px;
    }
}

@media (max-width: 1279px) {
    .product-page .product-information,
    .product-page .product-description,
    .product-page .product-related {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .product-page .product-related__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-page
    .product-specifications__name-column {
        width: 40%;
    }
}

@media (max-width: 1023px) {
    .product-page .product-information,
    .product-page .product-description,
    .product-page .product-related {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .site-main.product-page {
        padding-block: 24px 42px;
    }

    .product-page .product-information__columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-page .product-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .product-page .product-sku {
        justify-content: flex-start;
        max-width: 100%;
    }

    .product-page .product-summary {
        padding: 20px;
    }

    .product-page .product-purchase {
        gap: 16px;
    }

    .product-page .product-assurances {
        gap: 16px;
    }

    .product-page .product-description,
    .product-page .product-related {
        margin-top: 42px;
    }

    .product-page .product-tabs {
        gap: 16px;
        margin-bottom: 24px;
    }

    .product-page
    .product-specifications__name-column {
        width: 44%;
    }

    .product-page .product-specifications th,
    .product-page .product-specifications td {
        padding: 12px 8px;
        font-size: 14px;
        line-height: 20px;
    }

    .product-page .product-related__list {
        gap: 12px;
    }
}

@media (max-width: 359px) {
    .product-page .product-summary {
        padding: 16px;
    }

    .product-page .product-price {
        font-size: 28px;
        line-height: 36px;
    }

    .product-page .product-related__list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-page .product-gallery__image,
    .product-page .product-gallery__control,
    .product-page .product-buy-button,
    .product-page .product-installation__button,
    .product-page .product-tabs__button,
    .product-page .product-description__toggle,
    .product-page .product-specifications th,
    .product-page .product-specifications td {
        transition: none;
    }
}