.endo-product-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: clip;
    color: var(--text);
    background:
        radial-gradient(ellipse 36% 15% at 98% 7%,
            rgba(228, 45, 150, .13) 0%,
            rgba(228, 45, 150, .055) 42%,
            transparent 78%),
        radial-gradient(ellipse 30% 14% at -5% 46%,
            rgba(0, 61, 196, .055) 0%,
            rgba(0, 61, 196, .02) 44%,
            transparent 80%),
        var(--bg);
}

body.single-endo_product {
    position: relative;
}

body.single-endo_product .site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    background: transparent;
}

.endo-product-page>section {
    background: transparent;
}

.endo-product-page .container {
    width: min(1058px, calc(100% - 48px));
    margin-inline: auto;
}

/* Hero */

.endo-product-hero {
    position: relative;
    padding: 148px 0 74px;
}

.endo-product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 38px;
    color: rgba(10, 10, 10, .42);
    font-size: 10px;
    line-height: 1.4;
}

.endo-product-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.endo-product-breadcrumb a:hover {
    color: var(--blue);
}

.endo-product-breadcrumb [aria-current="page"] {
    max-width: 280px;
    overflow: hidden;
    color: var(--blue);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endo-product-hero__statement {
    max-width: 790px;
    margin: 0 0 clamp(58px, 7vw, 88px);
    color: var(--text);
    font-size: clamp(43px, 5.5vw, 67px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.055em;
}

.endo-product-hero__statement span,
.endo-product-hero__statement strong {
    display: block;
}

.endo-product-hero__statement strong {
    color: var(--blue);
    font-weight: inherit;
}

.endo-product-hero__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: clamp(54px, 8vw, 108px);
    align-items: center;
}

.endo-product-hero__media {
    position: relative;
    min-width: 0;
}

.endo-product-hero__featured {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 15px;
    border-radius: 999px;
    color: #fff;
    background: #f3b51b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.endo-product-hero__image {
    display: block;
    width: 100%;
    min-height: 500px;
    aspect-ratio: 1.08 / 1;
    border-radius: 30px;
    background: rgba(224, 224, 224, .7);
    object-fit: cover;
}

.endo-product-hero__image--placeholder {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .45),
            rgba(218, 218, 218, .78));
}

.endo-product-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.endo-product-hero__category {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 22px;
    padding: 0 17px;
    border-radius: 999px;
    color: #fff;
    background: var(--pink);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.endo-product-hero__category:hover {
    background: #c92182;
    transform: translateY(-1px);
}

.endo-product-hero__title {
    max-width: 470px;
    margin: 0;
    color: var(--text);
    font-size: clamp(31px, 3.4vw, 43px);
    font-weight: 800;
    line-height: 1.01;
    letter-spacing: -.045em;
}

.endo-product-hero__price {
    margin: 8px 0 0;
    color: var(--blue);
    font-size: clamp(25px, 2.4vw, 33px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
}

.endo-product-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 19px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.endo-product-hero__description {
    max-width: 470px;
    margin-top: 23px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.48;
}

.endo-product-hero__description> :first-child {
    margin-top: 0;
}

.endo-product-hero__description> :last-child {
    margin-bottom: 0;
}

.endo-product-hero__description p {
    margin: 0 0 12px;
}

.endo-product-hero__description ul,
.endo-product-hero__description ol {
    margin: 14px 0;
    padding-left: 20px;
}

.endo-product-hero__action {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 470px);
    min-height: 52px;
    margin-top: 30px;
    padding: 0 23px;
    border-radius: 10px;
    color: #fff;
    background: var(--blue);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        box-shadow .22s ease,
        transform .22s ease;
}

.endo-product-hero__action:hover {
    box-shadow: 0 14px 30px rgba(0, 61, 196, .18);
    transform: translateY(-2px);
}

.endo-product-hero__action .material-symbols-outlined {
    font-size: 18px;
    transition: transform .22s ease;
}

.endo-product-hero__action:hover .material-symbols-outlined {
    transform: translateX(3px);
}

/* Details */

.endo-product-details {
    position: relative;
    padding: 0 0 clamp(86px, 10vw, 132px);
}

.endo-product-details__layout {
    display: grid;
    gap: clamp(38px, 6vw, 72px);
    align-items: stretch;
}

.endo-product-details__layout--complete {
    grid-template-columns:
        minmax(0, 1.18fr) minmax(290px, .72fr);
}

.endo-product-details__layout--image-only,
.endo-product-details__layout--parameters-only {
    grid-template-columns: minmax(0, 1fr);
}

.endo-product-details__layout--image-only .endo-product-details__media {
    max-width: 720px;
}

.endo-product-details__layout--parameters-only .endo-product-details__parameters {
    width: min(100%, 460px);
    margin-inline: auto;
}

.endo-product-details__media {
    min-width: 0;
    margin: 0;
}

.endo-product-details__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 470px;
    border-radius: 28px;
    background: rgba(224, 224, 224, .7);
    object-fit: cover;
}

.endo-product-details__parameters {
    align-self: stretch;
    min-width: 0;
    padding: 34px 38px;
    border: 1px solid rgba(10, 10, 10, .035);
    border-radius: 28px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 20px 50px rgba(10, 10, 10, .035);
    backdrop-filter: blur(12px);
}

.endo-product-details__title {
    margin: 0 0 24px;
    color: var(--blue);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.endo-product-details__parameter-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.endo-product-details__parameter {
    padding: 14px 0;
    border-bottom: 1px solid rgba(10, 10, 10, .1);
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
}

.endo-product-details__parameter:first-child {
    padding-top: 0;
}

.endo-product-details__parameter:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

/* Error */

.endo-product-error {
    display: grid;
    min-height: 72vh;
    padding: 150px 0 90px;
    place-items: center;
}

.endo-product-error__panel {
    width: min(100%, 680px);
    padding: clamp(34px, 6vw, 68px);
    border: 1px solid rgba(10, 10, 10, .05);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .8);
    text-align: center;
}

.endo-product-error__eyebrow {
    margin: 0 0 15px;
    color: var(--pink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.endo-product-error__panel h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -.045em;
}

.endo-product-error__panel p:not(.endo-product-error__eyebrow) {
    max-width: 480px;
    margin: 22px auto 0;
    color: var(--muted);
    line-height: 1.55;
}

.endo-product-error__action {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 24px;
    border-radius: 10px;
    color: #fff;
    background: var(--blue);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* Related products */

.endo-product-page > .endo-product-related {
    position: relative;
    padding: 0 0 clamp(92px, 11vw, 146px);
    background:
        radial-gradient(
            ellipse 48% 26% at 82% 100%,
            rgba(228, 45, 150, .11) 0%,
            rgba(228, 45, 150, .045) 44%,
            transparent 78%
        ),
        radial-gradient(
            ellipse 34% 22% at 10% 100%,
            rgba(228, 45, 150, .065) 0%,
            rgba(228, 45, 150, .025) 46%,
            transparent 80%
        ),
        var(--bg);
}

.endo-product-related__header {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.endo-product-related__title {
    margin: 0;
    color: var(--text);
    font-size: clamp(26px, 2.8vw, 35px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.042em;
}

.endo-product-related__title span {
    color: var(--blue);
}

.endo-product-related__archive-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.endo-product-related__archive-link .material-symbols-outlined {
    font-size: 17px;
    transition: transform .2s ease;
}

.endo-product-related__archive-link:hover .material-symbols-outlined {
    transform: translateX(3px);
}

.endo-product-related__grid {
    display: grid;
    grid-template-columns: repeat(4,
            minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
}

/* Responsive */

@media (max-width: 920px) {
    .endo-product-hero__layout {
        grid-template-columns:
            minmax(0, 1fr) minmax(290px, .82fr);
        gap: 44px;
    }

    .endo-product-hero__image {
        min-height: 430px;
    }

    .endo-product-details__layout--complete {
        grid-template-columns:
            minmax(0, 1fr) minmax(270px, .72fr);
        gap: 38px;
    }

    .endo-product-details__parameters {
        padding: 30px;
    }

    .endo-product-related__grid {
        grid-template-columns: repeat(2,
                minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.single-endo_product .site-header {
        padding: 0;
    }

    .endo-product-page .container {
        width: min(100% - 36px, 1058px);
    }

    .endo-product-hero {
        padding: 116px 0 64px;
    }

    .endo-product-breadcrumb {
        margin-bottom: 30px;
    }

    .endo-product-hero__statement {
        margin-bottom: 50px;
    }

    .endo-product-hero__layout,
    .endo-product-details__layout--complete {
        grid-template-columns: 1fr;
    }

    .endo-product-hero__layout {
        gap: 38px;
    }

    .endo-product-hero__image {
        min-height: 440px;
    }

    .endo-product-hero__content {
        padding-inline: 4px;
    }

    .endo-product-details__layout {
        gap: 30px;
    }

    .endo-product-details__image {
        min-height: 420px;
    }

    .endo-product-details__parameters {
        padding: 30px 32px;
    }
}

@media (max-width: 520px) {
    .endo-product-page .container {
        width: min(100% - 28px, 1058px);
    }

    .endo-product-hero {
        padding: 100px 0 54px;
    }

    .endo-product-breadcrumb {
        margin-bottom: 25px;
        font-size: 9px;
    }

    .endo-product-breadcrumb [aria-current="page"] {
        max-width: 150px;
    }

    .endo-product-hero__statement {
        margin-bottom: 42px;
        font-size: 41px;
    }

    .endo-product-hero__image {
        min-height: 360px;
        border-radius: 24px;
    }

    .endo-product-hero__featured {
        top: 18px;
        left: 18px;
    }

    .endo-product-hero__category {
        margin-bottom: 18px;
    }

    .endo-product-hero__title {
        font-size: 33px;
    }

    .endo-product-hero__description {
        font-size: 13px;
        line-height: 1.52;
    }

    .endo-product-hero__action {
        min-height: 50px;
    }

    .endo-product-details {
        padding-bottom: 82px;
    }

    .endo-product-details__image {
        min-height: 330px;
        border-radius: 24px;
    }

    .endo-product-details__parameters {
        padding: 27px 25px;
        border-radius: 24px;
    }

    .endo-product-related {
        padding-bottom: 82px;
    }

    .endo-product-related__header {
        align-items: flex-end;
        margin-bottom: 28px;
    }

    .endo-product-related__archive-link span:first-child {
        display: none;
    }

    .endo-product-related__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .endo-product-breadcrumb a,
    .endo-product-hero__category,
    .endo-product-hero__action,
    .endo-product-hero__action .material-symbols-outlined {
        transition: none;
    }
}