

/* Start:/local/templates/marketplace/product/style.css?178890068611729*/
/* ==========================================
   Product Page
========================================== */

.product-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-top {
    display: grid;
    grid-template-columns: 560px minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

/*
 * Позволяет колонкам CSS Grid корректно сжиматься.
 * Важно для правильного переноса длинных названий.
 */
.product-top > * {
    min-width: 0;
}


/* ==========================================
   Gallery
========================================== */

.product-gallery-main {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    overflow: hidden;
}

.product-gallery-main img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 30px;

    transition: .2s;
}

.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    overflow-x: auto;
}

.product-thumb {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;

    box-sizing: border-box;

    border-radius: 12px;
    border: 2px solid #e7e7e7;

    object-fit: cover;
    cursor: pointer;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.product-thumb:hover {
    border-color: #0065ff;
}

.product-thumb.active {
    border-color: #0065ff;
    box-shadow: inset 0 0 0 1px #0065ff;
}


/* ==========================================
   Right
========================================== */

.product-title {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;

    color: #111827;

    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;

    /*
     * Корректные переносы.
     * Не разбиваем слова и стараемся
     * равномерно распределить текст по строкам.
     */
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;

    -webkit-hyphens: none !important;
    hyphens: none !important;

    text-wrap: balance;
}

.product-meta {
    margin-top: 12px;

    color: #888;

    font-size: 14px;
}

.product-price {
    margin-top: 30px;

    font-size: 42px;
    font-weight: 700;

    color: #111;
}

.product-stock {
    margin-top: 12px;

    color: #18a64a;

    font-weight: 600;
}

.product-quantity {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 30px;
}

.qty-minus,
.qty-plus {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 10px;

    background: #f3f3f3;

    cursor: pointer;

    font-size: 20px;
}

.qty-input {
    width: 70px;
    height: 42px;

    text-align: center;

    border: 1px solid #ddd;
    border-radius: 10px;

    font-size: 16px;
}

.product-buy {
    width: 100%;
    height: 56px;

    margin-top: 25px;

    border: none;
    border-radius: 14px;

    background: #111;
    color: #fff;

    font-size: 18px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.product-buy:hover {
    background: #000;
}

.product-seller {
    margin-top: 35px;

    padding: 24px;

    border: 1px solid #ececec;
    border-radius: 16px;

    background: #fafafa;
}


/* ==========================================
   Bottom
========================================== */

.product-tabs {
    margin-top: 60px;
}

.product-block {
    min-width: 0;

    margin-bottom: 35px;

    padding: 35px;

    border: 1px solid #ececec;
    border-radius: 18px;

    background: #fff;
}

.product-block h2 {
    margin: 0 0 25px;

    font-size: 28px;
}

.product-properties {
    width: 100%;

    border-collapse: collapse;
}

.product-properties td {
    padding: 14px 0;

    border-bottom: 1px solid #eee;
}

.product-properties td:first-child {
    width: 35%;

    color: #777;
}


/* ==========================================
   Другие товары продавца
========================================== */

.seller-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-top: 24px;

    width: 100%;
    min-width: 0;
}

.seller-product-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    text-decoration: none;
    color: inherit;

    border: 1px solid #e8edf5;
    border-radius: 16px;

    overflow: hidden;

    transition: .25s;

    background: #fff;
}

.seller-product-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.seller-product-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    background: #f7f8fa;

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

    overflow: hidden;
}

.seller-product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.seller-product-name {
    min-width: 0;

    padding: 16px 16px 8px;

    font-weight: 600;
    line-height: 1.4;

    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;

    -webkit-hyphens: none !important;
    hyphens: none !important;

    text-wrap: balance;
}

.seller-product-price {
    margin-top: auto;

    padding: 0 16px 16px;

    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}


/* ==========================================
   Блок продавца
========================================== */

.product-seller-card {
    margin-top: 32px;

    padding: 24px;

    border: 1px solid #ececec;
    border-radius: 18px;

    background: #fff;
}

.product-seller-card__title {
    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 600;

    color: #7b7b7b;
}

.product-seller-card__info {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 22px;
}

.product-seller-card__logo {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    border-radius: 18px;

    overflow: hidden;

    background: #f3f5f8;

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

    font-size: 24px;
    font-weight: 700;

    color: #222;
}

.product-seller-card__logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.product-seller-card__text {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-width: 0;
}

.product-seller-card__name {
    font-size: 18px;
    font-weight: 700;

    color: #111;

    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;

    text-wrap: balance;
}

.product-seller-card__status {
    font-size: 14px;

    color: #13a552;
}

.product-seller-card .btn {
    width: 100%;

    justify-content: center;
}


/* ==========================================
   Tablet
========================================== */

@media (max-width: 991px) {

    .product-page {
        margin: 28px auto;
    }

    .product-top {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .product-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .product-price {
        font-size: 34px;
    }

    .seller-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 16px;
    }
}


/* ==========================================
   Mobile
========================================== */

@media (max-width: 600px) {

    .product-page {
        width: 100%;
        max-width: 100%;

        margin: 20px auto;

        padding: 0 16px;

        box-sizing: border-box;

        overflow: hidden;
    }

    .product-top {
        gap: 26px;
    }

    .product-gallery-main img {
        padding: 16px;
    }

    .product-thumb {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .product-title {
        font-size: 25px;
        line-height: 1.22;
        letter-spacing: -0.015em;

        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;

        -webkit-hyphens: none !important;
        hyphens: none !important;

        text-wrap: balance;
    }

    .product-price {
        margin-top: 22px;

        font-size: 30px;
    }

    .product-tabs {
        margin-top: 40px;
    }

    .product-block {
        width: 100%;
        min-width: 0;

        margin-bottom: 24px;

        padding: 20px 16px;

        border-radius: 16px;

        box-sizing: border-box;

        overflow: hidden;
    }

    .product-block h2 {
        margin-bottom: 20px;

        font-size: 26px;
        line-height: 1.15;
    }


    /* ==========================================
       Другие товары продавца
    ========================================== */

    .seller-products-grid {
        width: 100%;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;

        margin-top: 20px;
    }

    .seller-product-card {
        width: 100%;
        min-width: 0;

        border-radius: 14px;
    }

    .seller-product-image {
        width: 100%;
        height: auto;

        aspect-ratio: 1 / 1;
    }

    .seller-product-image img {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }

    .seller-product-name {
        min-width: 0;

        padding: 12px 10px 6px;

        font-size: 14px;
        line-height: 1.3;
        font-weight: 600;

        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;

        -webkit-hyphens: none !important;
        hyphens: none !important;

        text-wrap: balance;

        display: -webkit-box;

        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .seller-product-price {
        margin-top: auto;

        padding: 6px 10px 12px;

        font-size: 18px;
        line-height: 1.2;
        font-weight: 700;

        white-space: nowrap;
    }


    /* ==========================================
       Характеристики
    ========================================== */

    .product-properties td {
        display: block;

        width: 100% !important;

        padding: 6px 0;

        border-bottom: 0;
    }

    .product-properties tr {
        display: block;

        padding: 10px 0;

        border-bottom: 1px solid #eee;
    }


    /* ==========================================
       Продавец
    ========================================== */

    .product-seller-card {
        padding: 18px;
    }

    .product-seller-card__logo {
        width: 52px;
        height: 52px;

        border-radius: 14px;
    }

    .product-seller-card__name {
        font-size: 16px;
    }
}


/* ==========================================
   Очень маленькие экраны
========================================== */

@media (max-width: 360px) {

    .seller-products-grid {
        gap: 10px;
    }

    .seller-product-name {
        padding: 10px 8px 5px;

        font-size: 13px;
    }

    .seller-product-price {
        padding: 5px 8px 10px;

        font-size: 16px;
    }
}

/* ==========================================
   Coming Soon
========================================== */

.product-coming-soon {
    width: 100%;
    margin: 22px 0 4px;
    padding: 24px;

    border: 1px solid #e5e5e5;
    border-radius: 16px;

    background: #f6f6f6;

    text-align: center;
}

.product-coming-soon__title {
    margin: 0;

    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.product-coming-soon__text {
    margin-top: 8px;

    color: #777;
    font-size: 14px;
    line-height: 1.45;
}
/* End */
/* /local/templates/marketplace/product/style.css?178890068611729 */
