.container {
    margin-top: 120px;
}

.product-card--detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(500px, 40vw, 640px);
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: none;
    margin-top: 40px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.product-card--detail::before {
    display: none;
}

.detail-mobile-title {
    display: none;
}

.detail-slider {
    display: grid;
    grid-template-columns: 61px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
    justify-self: center;
}

.detail-slider-thumbs {
    width: 61px;
    height: 500px;
}

.detail-slider-thumbs .swiper-wrapper {
    display: flex;
    flex-direction: column;
}

.detail-slider-thumbs .swiper-slide {
    width: 61px !important;
    height: 61px !important;
    box-sizing: border-box;
    border-radius: var(--ui-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: .45;
    border: 1px solid transparent;
    transition: opacity .2s ease, border-color .2s ease;
}

.detail-slider-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-slider-thumbs .swiper-slide:first-child img {
    object-fit: contain;
}

.detail-slider-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #252525;
}

.product-card--detail .product-card__gallery {
    width: 100%;
    height: 500px;
    margin: 0;
    border-radius: var(--ui-radius);
    overflow: hidden;
}

.product-card--detail .product-card__gallery .swiper-slide {
    width: 100%;
    height: 100%;
}

.product-card--detail .product-card__gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card--detail .product-card__gallery .swiper-slide:first-child img {
    object-fit: contain;
    transform: scale(0.9);
    transform-origin: center center;
}

.product-card--detail .product-card__inner {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    gap: 20px !important;
}

.product-card--detail .product_link {
    pointer-events: none;
}

.detail-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.product-card--detail .product_title {
    margin: 0;
    height: auto;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
    min-height: 0;
    text-align: left;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 600;
    max-width: 100%;
}

.product-card--detail .product-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    line-height: 1;
    color: #1f232b;
    margin-bottom: 2px;
    white-space: nowrap;
}

.product-card--detail .product-card__rating-star {
    color: #f1c40f;
    font-size: 24px;
}

.product-card--detail .product-card__rating-value,
.product-card--detail .product-card__reviews,
.product-card--detail .product-card__reviews-count {
    font-size: 16px;
    font-weight: 500;
    color: #242832;
    text-transform: none;
}

.product-card--detail .product-card__reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-card--detail .product-card__reviews-icon {
    width: 20px;
    height: 20px;
}

.product-card--detail .product-card__reviews-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-card--detail .product-card__reviews-icon circle {
    fill: currentColor;
}

.product-card--detail .product_price {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
        "discount old ."
        "price unit .";
    column-gap: 10px;
    row-gap: 4px;
    align-items: end;
    margin: 0;
}

.product-card--detail .product-card__discount {
    grid-area: discount;
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #cf0000;
    color: #fff;
    border-radius: 0;
    font-size: 1vw;
    line-height: 1;
    font-weight: 700;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.product-card--detail .product-card__discount--hidden {
    display: none !important;
}

.product-card--detail .product_price h4 {
    grid-area: price;
    margin: 0;
    font-size: 1.8vw;
    line-height: .95;
    font-weight: 700;
    color: #c40000;
}

.product-card--detail .product_price__unit {
    grid-area: unit;
    align-self: end;
    margin-bottom: 5px;
    font-size: 1vw;
    line-height: 1;
    font-weight: 700;
    color: #c40000;
    text-transform: none;
}

.product-card--detail .product_price__old {
    grid-area: old;
    align-self: center;
    margin: 0;
    font-size: 1vw;
    font-weight: 500;
    line-height: 1;
    color: #1f232b;
    text-decoration: line-through;
    text-decoration-color: #d10000;
    text-decoration-thickness: 3px;
}

.product-card--detail .product_price__old--hidden {
    display: none !important;
}

.product-card--detail .product-card__description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    color: #3a3a3a;
}

.product-card--detail .product_stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 32px;
    margin: 0;
    justify-content: stretch;
}

.product-card--detail .product_stats .stats_group {
    width: auto;
    max-width: none;
    flex: none;
    border: 0;
    padding: 0;
    text-align: left;
}

.product-card--detail .product_stats .stats_group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card--detail .product_stats .stats_group li {
    text-align: left;
    padding: 0;
    font-size: 16px;
    line-height: 1.2;
}

.product-card--detail .product_stats .stats_group li + li {
    margin-top: 4px;
    font-weight: 600;
}

.product-card--detail .product-card__swatches {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card--detail .product-card__swatches-label {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: #1f232b;
    text-transform: none;
}

.product-card--detail .product-card__swatches-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-card--detail .product-card__swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    display: inline-block;
    background: var(--swatch-color, #d8d8d8);
}

.product-card--detail .product-card__swatch.is-active {
    background: var(--swatch-color, #d8d8d8);
}

.product-card--detail .detail-basket-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    width: 424px;
    max-width: 424px;
    height: var(--site-button-primary-height, 56px);
    min-height: var(--site-button-primary-height, 56px);
}

.product-card--detail .detail-basket-actions .basket-actions__counter {
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-right: 0;
    border-radius: var(--ui-radius-buttons) 0 0 var(--ui-radius-buttons);
    background: #fff;
    color: #7e7e7e;
    padding: 0 20px;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    max-height: 100%;
    max-width: none;
}

.product-card--detail .detail-basket-actions .product-counter__button svg rect {
    fill: #9b9b9b;
}

.product-card--detail .detail-basket-actions .product-counter__value,
.product-card--detail .detail-basket-actions .product-counter label:after {
    color: #8f8f8f;
}

.product-card--detail .detail-basket-actions .basket-actions__add {
    box-sizing: border-box;
    border-radius: 0 var(--ui-radius-buttons) var(--ui-radius-buttons) 0;
    border: 0;
    box-shadow: none;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    line-height: 1;
    background: #8FA34E;
    color: #f7f4f0;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .2px;
    transition: background .2s ease;
}

.product-card--detail .detail-basket-actions .basket-actions__add::after {
    content: none;
    display: none;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23ffffff' d='M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z'/%3E%3C/svg%3E");
    transform: rotate(270deg);
    position: relative;
    left: 0;
}

.product-card--detail .detail-basket-actions .basket-actions__add:hover {
    background: #7f9445;
}

.product-card--detail .detail-basket-actions .basket-actions__add.is-in-cart::after {
    content: "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23ffffff' d='M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z'/%3E%3C/svg%3E");
    transform: rotate(270deg);
    position: relative;
    left: 0;
}

.product-card--detail .detail-basket-actions .basket-actions__add.is-in-cart:hover::after {
    animation: productCardDetailsArrowShift .75s ease-in-out infinite;
}

.product-card--detail .detail-basket-actions .basket-actions__add.is-in-cart {
    background: #8FA34E;
    color: #f7f4f0;
}

.product-card--detail .detail-basket-actions .basket-actions__add.is-in-cart:hover {
    background: #7f9445;
}

.our_advants {
    width: 100%;
}

.swiper3 {
    width: 100%;
}

.montage-slider {
    height: 100%;
}

@media (max-width: 1200px) {
    .product-card--detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .detail-slider {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-slider-thumbs {
        order: 2;
        width: 100%;
        height: auto;
    }

    .detail-slider-thumbs .swiper-wrapper {
        flex-direction: row;
    }

    .detail-slider-thumbs .swiper-slide {
        width: 56px !important;
        height: 56px !important;
    }

    .product-card--detail .product-card__gallery {
        height: 520px;
    }

    .product-card--detail .product_title {
        font-size: 24px;
    }

    .product-card--detail .product-card__rating,
    .product-card--detail .product-card__rating-star,
    .product-card--detail .product-card__rating-value,
    .product-card--detail .product-card__reviews,
    .product-card--detail .product-card__reviews-count {
        font-size: 14px;
    }

    .product-card--detail .product-card__description p {
        font-size: 15px;
    }
    .product-card--detail .product_stats .stats_group li {
        font-size: 14px;
    }

    .product-card--detail .product_price h4 {
        font-size: 42px;
    }

    .product-card--detail .product_price__unit,
    .product-card--detail .product_price__old,
    .product-card--detail .product-card__discount {
        font-size: 28px;
    }

    .product-card--detail .detail-basket-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        max-width: 100%;
    }

    .product-card--detail .detail-basket-actions .basket-actions__add {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 80px;
    }

    .navigation {
        gap: 22px;
    }

    .navigation > .detail-mobile-title {
        display: flex;
        min-height: 50px;
        align-items: center;
        margin: 0;
        padding-right: 64px;
        font-size: 24px;
        font-weight: 600;
        line-height: 1.2;
        transform: translateY(4px);
    }

    .product-card--detail {
        margin-top: 24px;
        margin-bottom: 50px;
        gap: 18px;
    }

    .product-card--detail .product_link {
        display: none;
    }

    .product-card--detail .product-card__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px !important;
        row-gap: 18px !important;
        align-items: end;
    }

    .product-card--detail .detail-head {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: end;
        align-items: flex-end;
        margin-bottom: 0;
    }

    .product-card--detail .product_price {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .product-card--detail .product-card__swatches {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        align-self: start;
    }

    .product-card--detail .product-card__description {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .product-card--detail .product_stats {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .product-card--detail .detail-basket-actions {
        grid-column: 1 / -1;
        grid-row: 5;
    }

    .product-card--detail .product-card__rating {
        justify-content: flex-end;
        margin-bottom: 0;
    }

    .detail-slider-thumbs .swiper-slide {
        width: 48px !important;
        height: 48px !important;
    }

    .product-card--detail .product-card__gallery {
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: var(--ui-radius);
    }

    .product-card--detail .product_stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .product-card--detail .product-card__description p {
        font-size: 15px;
        line-height: 1.25;
    }

    .product-card--detail .product_price h4 {
        font-size: 30px;
    }

    .product-card--detail .product_price__unit,
    .product-card--detail .product_price__old,
    .product-card--detail .product-card__discount {
        font-size: 14px;
    }
    .product-card--detail .detail-basket-actions {
        height: var(--site-button-primary-height, 56px);
        min-height: var(--site-button-primary-height, 56px);
    }

    .product-card--detail .detail-basket-actions .basket-actions__counter,
    .product-card--detail .detail-basket-actions .basket-actions__add {
        min-height: 100%;
        height: 100%;
    }

    .product-card--detail .detail-basket-actions .basket-actions__counter {
        padding: 0 14px;
    }
}

@media (max-width: 550px) {
    .product-card--detail .detail-basket-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: var(--site-button-primary-height, 56px);
        min-height: var(--site-button-primary-height, 56px);
        gap: 0;
    }

    .product-card--detail .detail-basket-actions .basket-actions__counter {
        border-radius: var(--ui-radius-buttons) 0 0 var(--ui-radius-buttons);
        border-right: 0;
    }

    .product-card--detail .detail-basket-actions .basket-actions__add {
        border-radius: 0 var(--ui-radius-buttons) var(--ui-radius-buttons) 0;
    }
}

@media (max-width: 980px) {
    .montage-slider .swiper-wrapper {
        height: 100% !important;
    }

    .montage-slider .swiper-wrapper .swiper-slide {
        max-height: 100% !important;
    }
}
