/* app/public/css/product-page.css
   Оформление страницы товара. Подключается в layouts/main.php.
   Работает одинаково и на самой странице, и внутри модалки товара. */

/* --- шапка: картинка, заголовок, краткое описание ------------------------ */

.productPage .title-and-others h1 {
    margin: 0;
}

.productPage .product-lead {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 26px;
    color: #4b5563;
}

/* --- подробное описание --------------------------------------------------- */

/* justify рвал строки на узкой колонке — выключаем */
.productPage .content-body {
    text-align: left;
    max-width: 760px;
}

.productPage .content-body > h3 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #031633;
    margin: 36px 0 14px;
    padding-top: 20px;
    border-top: 1px solid #eceff3;
}

.productPage .content-body > h3:first-child {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
}

.productPage .content-body > h4 {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #031633;
    margin: 22px 0 6px;
}

.productPage .content-body p {
    margin: 0 0 14px;
    line-height: 27px;
}

.productPage .content-body ul,
.productPage .content-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.productPage .content-body li {
    line-height: 26px;
    margin-bottom: 9px;
}

.productPage .content-body li:last-child {
    margin-bottom: 0;
}

.productPage .content-body li strong {
    color: #031633;
}

.productPage .content-body em {
    color: #6b7280;
    font-size: 14px;
    line-height: 22px;
}

.productPage .content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.productPage .content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
}

.productPage .content-body td,
.productPage .content-body th {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
}

/* --- карточка заказа справа ---------------------------------------------- */

/* без этого aside растягивался во всю высоту описания и справа
   висела пустая серая колонка на весь экран */
.productPage aside.aside-region-right {
    align-self: flex-start;
}

/* Липкую карточку заказа сюда добавить нельзя: у body стоит overflow-y: auto,
   а скроллится html — position: sticky в такой связке не срабатывает.
   Понадобится — сначала убираем overflow у body, но это влияет на все страницы. */

/* --- «Другие товары» отдельной секцией внизу ------------------------------ */

.other-products--section {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.other-products--section .other-products__title {
    font-size: 20px;
    font-weight: 700;
    color: #031633;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 16px;
}

.other-products--section .other-products__list {
    gap: 16px;
    padding-bottom: 12px;
}

.other-products--section .other-products__item {
    width: 160px;
    padding: 12px;
    gap: 10px;
}

.other-products--section .other-products__img {
    height: 110px;
}

.other-products--section .other-products__name {
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .productPage .content-body > h3 {
        font-size: 20px;
        margin-top: 28px;
        padding-top: 16px;
    }

    .other-products--section {
        margin-top: 28px;
        padding-top: 20px;
    }

    .other-products--section .other-products__item {
        width: 130px;
    }

    .other-products--section .other-products__img {
        height: 90px;
    }
}
