@import url("../components/tabs-block.css"); /* Блок с табами */
@import url("../components/form-block.css"); /* Блок с формой */
@import url("../components/mini_banners.css"); /* Мини баннеры */
@import url("../components/reviews-block.css"); /* Отзывы и фото */
@import url("../components/item_slider.css"); /* Слайдер товаров */

.product {
    margin-top: 40px;
    margin-bottom: 55px;
}

.product:last-child {
    margin-bottom: 0;
}

.product_wrap {
    display: flex;
    gap: 66px;
}

.product_media {
    width: 51.351%;
    flex-shrink: 0;
}

.product__media_inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 20px;
}

.product_img {
    position: relative;
    width: 100%;
    aspect-ratio: 1.126 / 1;
    overflow: hidden;
}

.product_img__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product_img__inner .slick-list,
.product_img__inner .slick-track {
    height: 100%;
}

.product_img__slide.slick-slide {
    display: flex;
}

.product_img__slide,
.product_img__slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.product_img__slide img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.product_img .arrow_block__item {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
}

.product_img .arrow_block__item--next {
    left: auto;
    right: 24px;
}

.product_img .arrow_block__item--prev {
    transform: translateY(-50%) rotate(180deg);
}

.product_gallery {
    container-type: inline-size;
}

.product_gallery__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product_gallery__slide {
    aspect-ratio: 1 / 1;
    width: calc(100cqw / 7 - 10px * 6 / 7);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition: outline 0.3s ease-out;
    border-radius: 5px;
}

.product_gallery__slide.is-active,
.product_gallery__slide.slick-current {
    outline-color: var(--accent-color);
}

.product__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
}

.product__label {
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    text-align: center;
    color: var(--white-color);
    border-radius: 5px;
    padding: 7px;
}

.product__label--green {
    background-color: var(--new-color);
}

.product__label--red {
    background-color: var(--hit-color);
}

.product__info {
    width: calc(100% - 51.351% - 66px);
}

.product__info > *:last-child {
    margin-bottom: 0;
}

.product__title {
    margin-bottom: 5px;
}

.product__hints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 8px;
}

.product__hint {
    font-size: 14px;
    color: var(--grey-color);
}

.product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    align-items: center;
    margin-bottom: 20px;
}

.product__availability {
    font-size: 14px;
    padding-left: 20px;
    position: relative;
    white-space: nowrap;
}

.product__availability:before {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.product__availability--available:before {
    background-color: var(--new-color);
}

.product__availability--order:before {
    background-color: var(--hit-color);
}

.product__action {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.product__action .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    padding: 3px;
    flex-shrink: 0;
    border: 1px solid var(--white-color);
    transition: all 0.3s ease-out;
}

.product__action .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--main-color);
    transition: fill 0.3s ease-out;
}

.product__action .text {
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.3s ease-out;
}

.product__compare .text-on,
.product__compare--active .text-off {
    display: none;
}

.product__compare--active .text-on {
    display: block;
}

.product__compare--active .icon {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.product__compare--active .icon svg {
    fill: var(--white-color);
}

.product__share .cloud {
    position: absolute;
    text-align: center;
    white-space: nowrap;
    background: var(--accent-color);
    color: #fff;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 14px;
    line-height: 20px;
    left: 0;
    display: none;
    bottom: calc(100% + 5px);
}

.product__share.active .cloud {
    display: block;
}

.product__share .cloud:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent-color);
    transform: rotate(-45deg);
}

.product__favourite {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--grey-color-200);
    background-color: var(--white-color);
    transition: all 0.3s ease-out;
}

.product__favourite--active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.product__favourite svg {
    fill: var(--accent-color);
    transition: all 0.3s ease-out;
}

.product__favourite--active svg {
    fill: var(--white-color);
}

.product__prices {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
}

.product__price {
    white-space: nowrap;
}

.product__price--current {
    font-size: 30px;
    font-weight: 600;
}

.product__price--old {
    font-size: 24px;
    position: relative;
    color: var(--grey-color);
    position: relative;
}

.product__price--old:after {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grey-color);
    transform: rotate(-7deg);
}

.product__split {
    border-radius: 5px;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px 14px;
    background-color: var(--light-grey-color);
    margin-bottom: 20px;
}

.product__prices + .product__split {
    margin-top: -10px;
}

.product__split_icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__split_icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product__split_info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product__split_title {
    font-size: 14px;
    color: var(--grey-color);
}

.product__split_text {
    font-weight: 500;
    font-size: 14px;
}

.product__options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.product__option {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--grey-color-200);
}

.product__option:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.product__option_title {
    font-weight: 500;
    font-size: 16px;
}

.product__option_head {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product__option_hint {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.product__option_hint:hover:before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 200px;
    background-color: transparent;
    height: 5px;
}

.product__option_hint_icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__option_hint_icon svg {
    fill: var(--main-color);
}

.product__option_hint_cloud {
    position: absolute;
    bottom: calc(100% + 7px);
    right: 0;
    box-shadow: 0 10px 30px 0 var(--accent-color-op-10);
    background: var(--white-color);
    border-radius: 5px;
    width: 200px;
    display: none;
}

.product__option_hint:hover .product__option_hint_cloud {
    display: block;
}

.product__option_hint_cloud:after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--white-color);
    box-shadow: 0 10px 30px 0 rgba(111, 115, 238, 0.1);
    transform: rotate(-45deg);
}

.product__option_hint_cloud__inner {
    position: relative;
    z-index: 1;
    padding: 10px;
    font-size: 14px;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: clip;
}

.product__option_hint_cloud__inner::-webkit-scrollbar {
    width: 10px;
}

.product__option_hint_cloud__inner::-webkit-scrollbar-track {
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

.product__option_hint_cloud__inner::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: var(--accent-color);
    background-clip: content-box;
    border: 3px solid transparent;
}

.product__option_hint_cloud__inner p {
    font-size: 14px;
    margin-bottom: 5px;
}

.product__option_hint_cloud__inner p:last-child {
    margin-bottom: 0;
}

.product__option_list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product__option_item {
    width: calc(50% - 10px);
    border-radius: 10px;
    border: 1px solid var(--grey-color-200);
    outline: 1px solid transparent;
    outline-offset: -2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 24px 20px;
    transition: all 0.3s ease-out;
}

.product__option_item--active {
    border-color: var(--accent-color);
    outline-color: var(--accent-color);
}

.product__option_item > *:last-child {
    margin-bottom: 0;
}

.product__option_item__title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
}

.product__option_item__text {
    font-size: 14px;
    text-align: center;
    color: var(--grey-color);
}

.product__option_item__icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.product__option_item__icon img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product__option_timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.product__option_timer .title {
    font-size: 14px;
    color: var(--grey-color);
    white-space: nowrap;
}

.product__option_timer .value {
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
}

.product__gift {
    margin-bottom: 20px;
    background-color: var(--light-grey-color);
    border-radius: 10px;
    padding: 20px;
}

.product__gift:last-child {
    margin-bottom: 0;
}

.product__gift_title {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 20px;
}

.product__gift_title:last-child {
    margin-bottom: 0;
}

.product__gift_list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.product__gift_item {
    width: calc(50% - 10px);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.product__gift_img {
    border-radius: 5px;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: var(--accent-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__gift_img img {
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
}

.product__gift_name {
    font-size: 12px;
    line-height: 1.25;
    text-wrap: balance;
    min-height: 46px;
    align-self: center;
    display: flex;
    align-items: center;
}

.product__total {
    background-color: var(--light-grey-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.product__total:last-child {
    margin-bottom: 0;
}

.product__total_main {
    border-bottom: 1px solid var(--grey-color-200);
    padding-bottom: 26px;
    margin-bottom: 31px;
}

.product__total_main:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.product__cost {
    font-weight: 600;
    font-size: 35px;
}

.product__delivery {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.product__delivery:last-child {
    margin-bottom: 0;
}

.product__delivery_icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product__delivery_icon svg {
    width: 100%;
    height: 100%;
    fill: var(--main-color);
}

.product__delivery_icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product__delivery_text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
}

.product__delivery_hint {
    font-size: 16px;
    line-height: 1.25;
}

.product__total_action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product__button {
    height: 53px;
    flex-grow: 1;
}

.product__button--out,
.product--out .product__quantity,
.product--out .product__button.j-add-to-cart {
    display: none;
}

.product--out .product__button--out {
    display: block;
}

.product__quantity {
    display: none;
    gap: 5px;
    align-items: center;
    border: 1px solid var(--grey-color-200);
    border-radius: 5px;
    padding: 5px;
    height: 53px;
}

.product__total_action:has(.product__button--active) .product__quantity {
    display: flex;
}

.product__quantity_button {
    height: 100%;
    width: 41px;
    flex-shrink: 0;
    background: var(--grey-color-200);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out;
}

.product__quantity_button[disabled] {
    cursor: auto;
    opacity: 0.5;
}

.product__quantity_button svg {
    fill: var(--main-color);
}

.product__quantity_input {
    padding: 10px 0;
    text-align: center;
    font-size: 16px;
    width: 46px;
    flex-shrink: 0;
    text-overflow: ellipsis;
    background: transparent;
}

.product__link {
    text-align: center;
    color: var(--accent-color);
    transition: color 0.3s ease-out;
    font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
    .product__action:hover .text {
        color: var(--accent-color);
    }

    .product__action:not(.product__compare--active):hover .icon svg {
        fill: var(--accent-color);
    }

    .product__favourite:hover {
        border-color: var(--accent-color);
    }

    .product__option_item:hover {
        border-color: var(--accent-color);
    }

    .product__quantity_button:not([disabled]):hover {
        opacity: 0.8;
    }

    .product__link:hover {
        color: var(--accent-color-muted);
    }
}

@media (max-width: 1199px) {
    .product_wrap {
        gap: 40px;
    }
}

@media (max-width: 1023px) {
    .product {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .product_wrap {
        flex-direction: column;
    }

    .product_media {
        width: 100%;
    }

    .product_gallery__inner {
        flex-wrap: nowrap;
        width: 100vw;
        margin-left: -15px;
        padding: 0 15px;
        overflow: scroll;
    }

    .product_gallery__inner.slick-slider {
        padding-right: 0;
        overflow: clip;
    }

    .product_gallery__inner.slick-slider:has(.slick-dots) {
        padding-bottom: 20px;
    }

    .product_gallery__inner .slick-track {
        display: flex;
        gap: 10px;
    }

    .product_gallery__slide.slick-slide {
        height: auto;
        display: flex;
    }

    .product__option_item {
        min-height: 60px;
        padding: 16px 20px;
    }

    .product__option_item__title {
        font-size: 16px;
    }

    .product__total {
        padding: 20px;
    }

    .product__total_main {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .product__cost {
        font-size: 30px;
    }

    .product__delivery {
        margin-bottom: 20px;
    }

    .product_gallery__inner .slick-dots li.slick-active {
        background-color: var(--accent-color);
    }
}

@media (max-width: 767px) {
    .product_img__arrows {
        display: none;
    }

    .product_gallery__slide {
        width: calc(100cqw / 4 - 10px * 3 / 4);
    }

    .product__title {
        font-size: 30px;
    }

    .product__price--current {
        font-size: 24px;
    }

    .product__price--old {
        font-size: 20px;
    }

    .product__price--old:after {
        height: 1px;
    }

    .product__option_list {
        gap: 15px;
    }

    .product__option_item {
        min-height: 50px;
        padding: 15px;
    }

    .product__option_item__title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .product__option_item__text {
        font-size: 12px;
    }

    .product__option_head:has(.product__option_timer) {
        flex-wrap: wrap;
    }

    .product__option_timer {
        margin-left: 0;
    }

    .product__gift {
        padding: 15px;
    }

    .product__gift_title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .product__gift_item {
        width: 100%;
    }

    .product__option_item__icon {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }

    .product__total {
        padding: 15px;
    }

    .product__total_main {
        padding-bottom: 16px;
        margin-bottom: 15px;
    }

    .product__cost {
        font-size: 26px;
    }

    .product__delivery_text {
        font-size: 14px;
    }

    .product__delivery_hint {
        font-size: 14px;
    }

    .product__button {
        height: auto;
    }
}

@media (max-width: 449px) {
    .product__availability {
        width: 100%;
    }

    .product__actions {
        gap: 10px 15px;
    }
}