/* настройка хедеров */
.header-main {
    display: none;
}

.header-cont-1 {
    display: none;
}

.header-cont-2 {
    display: flex;
}
/* конец настройки хэдеров */

img.scheme {
    object-fit: contain !important;
}

.product-detail {
    padding: calc(20px + 48px) 0 100px;
    width: calc(100vw - 20px * 2);

    display: flex;
    flex-direction: column;
    gap: 80px;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-detail-info-cont {
    display: flex;
    gap: 93px;
    justify-content: space-between;
}

.product-detail-info-cont-gallery {
    width: 59.583vw;
    min-width: 738px;
    max-width: 1525px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-detail-info-cont-about {
    width: 32.448vw;
    max-width: 830px;
    min-width: 516px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.product-detail-info-cont-about-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-sticker {
    padding: 6px 8px;
    border-radius: 24px;

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

    font-size: 14px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.2px;

    text-transform: lowercase; 

    width: fit-content;
}

.status-sticker.in {
    background-color: var(--color-foreground-primary);
    color: var(--color-background-primary);
}

.status-sticker.out {
    background-color: var(--color-background-primary);
    color: var(--color-foreground-primary);
    border: .8px solid var(--color-foreground-primary);
}

.product-title {
    font-size: 48px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--color-foreground-primary);

    text-transform: lowercase;
}

.product-detail-info-cont-about-down {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-option {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-label {
    font-size: 24px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--color-foreground-primary);

    text-transform: lowercase;
}

.option-values {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn,
.material-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border: .8px solid var(--color-foreground-primary);
    border-radius: 24px;
    cursor: pointer;

    font-size: 16px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--color-foreground-primary);
    text-transform: lowercase;
}

.color-dot-block {
    width: 42px;
    height: 42px;
    border-radius: 140px;

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

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 140px;
}

.size-btn.active,
.material-btn.active {
    background-color: var(--color-foreground-primary);
    color: var(--color-background-primary);
}

.color-dot-block:has(.color-btn.active) {
    border: 1px solid var(--color-foreground-primary);
}

.size-btn.disabled,
.material-btn.disabled,
.color-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.current-price {
    font-size: 64px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--color-foreground-primary);

    text-transform: lowercase;
}

.info-parent {
    display: flex;
    gap: 12px;
    position: relative;
}

.info-block {
    display: flex;
    align-items: start;
    gap: 6px;
}

.info-block-t {
    font-size: 13px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--color-foreground-primary);

    display: none;
}

.info-parent.color .info-block-t {
    width: 323px;
    height: 26px;
}

.info-parent.color .info-block {
    align-items: center;
}

.info-parent.price .info-block-t {
    width: 194px;
}

.info-block-t a {
    border-bottom: 1px solid var(--color-foreground-primary);
    font-size: 13px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--color-foreground-primary);
}

.info-block-icon {
    width: 22px;
    height: 22px;

    border: 0.8px solid var(--color-foreground-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.info-block-icon svg {
    width: 11px;
    height: 12px;
}

.info-block-icon svg path {
    fill: var(--color-foreground-primary);
}

.info-block:hover .info-block-t {
    display: inline;
}

.info-block:hover .info-block-icon {
    background-color: var(--color-foreground-primary);
}

.info-block:hover .info-block-icon svg path {
    fill: var(--color-background-primary);
}

.product-actions {
    display: flex;
    gap: 12px;
}

.dop-to-cart,
.dop-to-favourites {
    cursor: pointer;
}

.dop-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    height: 48px;
    padding: 0 48px;

    border: 0.8px solid var(--color-foreground-primary);
    color: var(--color-foreground-primary);
    border-radius: 24px;
}

.in-cart-icon {
    display: block;

    width: 20px;
    height: 20px;
    object-fit: contain;
}

.dop-to-favourites-cont {
    border: 0.8px solid var(--color-foreground-primary);
    height: 48px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.dop-to-favourites {
    height: 20px;
    width: 23px;
    background-image: url(../../img/general/favourites-small-icon.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.dop-to-favourites.added {
    background-image: url(../../img/general/favourites-small-dark-icon.svg);
}

.dop-to-favourites.animate {
    animation: like-bounce 0.6s ease-in-out;
}

/* галерея */
.gallery-main {
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 690px;
    object-fit: cover;
}

.gallery-main .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    border-radius: 9999px;
    background-color: var(--color-foreground-primary);

    position: absolute;
    top: 315px;

    cursor: pointer;
}

.gallery-main .arrow.next {
    right: 32px;
}

.gallery-main .arrow.prev {
    transform: rotate(-180deg);
    left: 32px;
}

.gallery-main .arrow div {
    width: 31px;
    height: 15px;
    background-image: url(/static/img/general/arrow-right-light-icon.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.gallery-main .arrow.dis {
    opacity: 50%;
}

.gallery-thumbnails {
    display: flex;
    gap: 16px;
}

.gallery-thumbnails-mini {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.gallery-thumbnails-mini::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.thumbnail {
    width: 167px;
    height: 100px;
    opacity: 50%;
    flex-shrink: 0;

    cursor: pointer;
}

.thumbnail.d3 {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-foreground-opacity);
    opacity: 100%;
}

.thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.thumbnail.d3 img {
    width: 31.2px;
    height: 31.2px;

    object-fit: contain;
}

.thumbnail.active {
    border: 1px solid var(--color-foreground-primary);
    opacity: 100%;
}

.thumbnail.active.d3 {
    border: 1px solid var(--color-foreground-opacity);
}

.all-t {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tabs {
    display: flex;
    gap: calc(16px * 2 + 9px);
}

.tabs > input[type="radio"] {
  display: none;
}

.tabs label::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 26px;
    background-image: url('/static/img/general/breadcrumbs-sep-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tabs label:first-of-type::before,
.tabs .first::before {
    display: none;
}

.tabs label {
    font-size: 24px;
    line-height: 110%;
    font-weight: 500;
    color: var(--color-foreground-opacity);

    text-transform: lowercase;

    cursor: pointer;
    position: relative;
}

.tabs > input[type="radio"]:checked + label {
  color: var(--color-foreground-primary);
}

.tabs-content-info {
    width: 877.74px;

    font-size: 16px;
    line-height: 110%;
    font-weight: 500;
    color: var(--color-foreground-opacity);

    text-transform: lowercase;
}

/* Стили для табов */
.tab-text-container {
    position: relative;
}

.tab-text {
    max-height: 90px;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;

    background: linear-gradient(to bottom, rgba(144, 53, 53, .5) 0%, rgb(241, 236, 229) 95%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.tab-text.no-gradient {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--color-foreground-opacity);
}

.read-more-btn {
    background: none;
    border: none;

    font-size: 16px;
    line-height: 110%;
    color: var(--color-foreground-primary);

    cursor: pointer;
    margin-top: 4px;
    padding: 0;
}

/* Скрываем кнопку, если текст не обрезан */
.tab-text-container.expanded .read-more-btn {
    display: none;
}

.tab-text-container.expanded .tab-text {
    max-height: fit-content;
    color: var(--color-foreground-opacity);
    background: transparent;
}

/* Другие товары */
.another-products {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.another-products-title-block {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.another-products-title-block-t {
    font-size: 64px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--color-foreground-primary);

    text-transform: lowercase;
}

.another-products-title-block-transform {
    display: flex;
    gap: 9px;
}

.another-products-title-block-transform-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    border-radius: 9999px;
    border: 1px solid var(--color-foreground-primary);

    cursor: pointer;
}

.another-products-title-block-transform-circle.prev {
    transform: rotate(-180deg);
}

.another-products-title-block-transform-circle div {
    width: 31px;
    height: 15px;
    background-image: url(/static/img/general/arrow-right-icon.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.another-products-title-block-transform-circle.dis {
    opacity: 50%;
}

.another-products-content {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}

.another-products-content-container {
    display: flex;
    gap: 20px;
}

.products-product-cont {
    position: relative;
    width: 455px;
    flex-shrink: 0;
}

.products-product {
    width: 100%;
    height: fit-content;
    gap: 20px;


    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-product-img {
    width: 100%;
    height: 360px;
}

.products-product-img img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.products-product-img.scheme img {
    object-fit: contain;
}

.products-product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price {
    font-size: 24px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--color-foreground-primary);

    text-transform: lowercase; 
}

.name {
    font-size: 16px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--color-foreground-primary);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;

    text-transform: lowercase; 
}

.another-products .dop-to-favourites {
    height: 27px;
    width: 24px;
    background-image: url(../../img/general/favourites-small-icon.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    right: 30px;
    top: 30px;
}

.another-products .dop-to-favourites.added {
    background-image: url(../../img/general/favourites-small-dark-icon.svg);
}

/* модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background-primary);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: flex;
    gap: 24px;
    width: 100%;
    height: 100%;
    padding: 20px 20px 20px calc(24px + 48px + 20px);
}

.modal-content-container {
    width: 100%;
    height: 100%;

    position: relative;
}

.close {
    cursor: pointer;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Адаптация на маленькие экраны (< 1920)*/
/* 1440 */
@media screen and (max-width: 1575px) {
    .product-detail-info {
        gap: 24px;
    }

    .product-detail-info-cont {
        gap: 39px;
    }

    .product-detail-info-cont-gallery {
        width: 51.25vw;
        max-width: 1144px;
        min-width: 696px;
    }

    .product-detail-info-cont-about {
        gap: 48px;
        max-width: 623px;
        width: 43.264vw;
        min-width: 516px;
    }

    .product-title {
        font-size: 32px;
        line-height: 110%;
    }

    .current-price {
        font-size: 48px;
        line-height: 110%;
    }

    /* галерея */
    .gallery-main img {
        height: 445px;
    }

    .gallery-main .arrow {
        width: 64px;
        height: 48px;

        top: 199px;
    }

    .gallery-main .arrow.next {
        right: 24px;
    }

    .gallery-main .arrow.prev {
        left: 24px;
    }

    .tabs-content-info {
        width: 738px;
    }

    /* Стили для табов */
    .tab-text {
        max-height: 108px;
    }

    /* Другие товары */
    .another-products-title-block-t {
        font-size: 48px;
        line-height: 110%;
    }
}

/* 1280 */
@media screen and (max-width: 1280px) {
    .product-detail-info-cont {
        gap: 28px;
    }

    .product-detail-info-cont-gallery {
        width: 54.375vw;
        max-width: 738px;
        min-width: 54.375vw;
    }

    .product-detail-info-cont-about {
        width: 623px;
        max-width: 516px;
        min-width: initial;
    }

    .info-block-t {
        font-size: 12px;
        line-height: 110%;
    }

    .info-parent.price .info-block-t {
        width: 154px;
    }

    .info-block-t a {
        font-size: 12px;
        line-height: 110%;
    }

    /* галерея */
    .gallery-main img {
        height: 420px;
    }

    .gallery-main .arrow {
        top: 186px;
    }

    .tabs label {
        font-size: 20px;
        line-height: 110%;
    }

    .tabs-content-info {
        width: 696px;
    }

    /* Стили для табов */
    .tab-text {
        max-height: 126px;
    }

    /* Другие товары */
    .another-products {
        gap: 32px;
    }

    .another-products-title-block-t {
        font-size: 48px;
        line-height: 110%;
    }

    .another-products-title-block-transform-circle {
        width: 63px;
        height: 48px;
    }

    .products-product-cont {
        width: 400px;
    }
}

/* 768 */
@media screen and (max-width: 1200px) {
    .product-detail-info-cont {
        gap: 48px;
        flex-direction: column;
    }

    .product-detail-info-cont-gallery {
        width: 100%;
        min-width: initial;
        max-width: initial;
    }

    .product-detail-info-cont-about {
        width: 100%;
        max-width: initial;
    }

    .product-detail-info-cont-about-down {
        gap: 24px;
    }

    .size-btn,
    .material-btn {
        font-size: 14px;
        line-height: 110%;
    }

    .product-actions {
        gap: 11px;
    }

    /* галерея */
    .gallery-main img {
        height: 439px;
    }

    .gallery-main .arrow {
        display: none;
    }

    .thumbnail {
        width: 167px;
        height: 100px;
    }

    .tabs label {
        font-size: 18px;
        line-height: 110%;
    }

    .tabs-content-info {
        width: 716px;
    }

    /* Стили для табов */
    .tab-text {
        max-height: 90px;
    }

    .read-more-btn {
        font-size: 14px;
        line-height: 110%;
    }

    /* Другие товары */
    .another-products {
        gap: 24px;
    }

    .another-products-title-block-t {
        font-size: 32px;
        line-height: 110%;
    }

    .another-products-title-block-transform {
        display: none;
    }

    .products-product-cont {
        width: 354px;
    }

    .name {
        font-size: 14px;
        line-height: 110%;

        height: 30px;
    }

    /* модальное окно */
    .modal-content {
        gap: 16px;
        flex-direction: column-reverse;
        align-items: end;
        padding: 20px;
    }

    .close {
        width: 32px;
        height: 32px;
    }
}

/* 375 */
@media screen and (max-width: 725px) {
    .product-detail {
        width: calc(100vw - 12px * 2);
    }

    .product-detail-info-cont {
        gap: 32px;
    }

    .product-detail-info-cont-gallery {
        gap: 16px;
    }

    .product-detail-info-cont-about {
        gap: 32px;
    }

    .status-sticker {
        padding: 4px 6px;

        gap: 4px;

        font-size: 10px;
        line-height: 110%;
    }

    .product-title {
        font-size: 24px;
        line-height: 110%;
    }

    .option-label {
        font-size: 20px;
        line-height: 110%;
    }

    .current-price {
        font-size: 32px;
        line-height: 110%;
    }

    .info-block-t {
        font-size: 10px;
        line-height: 110%;
    }

    .info-parent.color .info-block-t {
        width: 262px;
        height: 22px;
    }

    .info-parent.price .info-block-t {
        width: 124px;
    }

    .info-block-t a {
        font-size: 10px;
        line-height: 110%;
    }

    .dop-to-cart {   
        padding: 0;
        flex: 1;
    }

    /* галерея */
    .gallery-main img {
        height: 250px;
    }

    .gallery-thumbnails {
        gap: 8px;
    }

    .gallery-thumbnails-mini {
        gap: 8px;
    }

    .thumbnail {
        width: 134px;
        height: 80px;
    }

    .tabs {
        gap: calc(8px * 2 + 7px);
    }

    .tabs label::before {
        width: 7px;
        height: 20px;

        left: -14px;
    }

    .tabs-content-info {
        width: 100%;
    }

    /* Стили для табов */
    .tab-text {
        max-height: 180px;
    }

    /* Другие товары */
    .another-products {
        gap: 16px;
    }

    .another-products-title-block-t {
        font-size: 24px;
        line-height: 110%;
    }

    .products-product-cont {
        width: 172px;
    }

    .products-product-img {
        height: 156px;
    }

    .products-product-info {
        gap: 8px;
    }

    .price {
        font-size: 18px;
        line-height: 110%;
        height: 44px;
    }

    .name {
        font-size: 12px;
        line-height: 110%;

        height: 26px;
    }

    .another-products .dop-to-favourites {
        height: 22px;
        width: 18px;

        right: 12px;
        top: 12px;
    }

    /* модальное окно */
    .modal-content {
        gap: 66px;
        padding: 12px;
    }

    .close {
        width: 24px;
        height: 24px;
    }
}