/* ==========================================
   СТРАНИЦА ТОВАРА
   ========================================== */

.product-page {
    padding: 35px 0 80px;
}


/* ==========================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================== */

.product-page .breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 35px;

    color: #6B7280;
    font-size: 15px;
}

.product-page .breadcrumbs a {
    color: var(--primary);
}

.product-page .breadcrumbs strong {
    color: #6B7280;
}


/* ==========================================
   ОСНОВНОЙ БЛОК ТОВАРА
   ========================================== */

/*
   В style.css есть:
   section {
       padding: 100px 0;
   }

   Поэтому обязательно сбрасываем padding
   именно у этих секций.
*/

.product-layout {
    display: grid;

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

    gap: 35px;

    align-items: stretch;

    padding: 0;
}


/* ==========================================
   ФОТО
   ========================================== */

.product-gallery {
    min-height: 560px;

    background: #fff;

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

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

    padding: 35px;

    overflow: hidden;

    box-shadow: 0 15px 40px rgba(0,0,0,.06);
}

.product-gallery img {
    display: block;

    width: 100%;
    height: 480px;

    object-fit: contain;
}


/* ==========================================
   ИНФОРМАЦИЯ О ТОВАРЕ
   ========================================== */

.product-summary {
    min-height: 560px;

    background: #fff;

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

    padding: 40px;

    display: flex;
    flex-direction: column;

    box-shadow: 0 15px 40px rgba(0,0,0,.06);
}

.product-summary h1 {
    margin: 0 0 30px;

    color: #252525;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
}


/* ==========================================
   ХАРАКТЕРИСТИКИ
   ========================================== */

.product-specs {
    border-top: 1px solid #E5E7EB;
}

.product-spec {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 17px 0;

    border-bottom: 1px solid #E5E7EB;
}

.product-spec span {
    color: #6B7280;

    font-size: 15px;
}

.product-spec strong {
    color: #252525;

    font-size: 15px;

    text-align: right;
}

.product-spec .in-stock {
    color: #16A34A;
}


/* ==========================================
   ЦЕНА
   ========================================== */

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

    padding-top: 25px;

    color: var(--primary);

    font-size: 40px;
    line-height: 1;

    font-weight: 800;
}


/* ==========================================
   КНОПКИ
   ========================================== */

.product-actions {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 25px;
}

.product-actions .btn-primary,
.product-actions .btn-secondary {
    width: 100%;
    min-height: 52px;

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

    padding: 15px 25px;

    border-radius: 7px;

    font-size: 15px;
    font-weight: 600;
}


/*
   В style.css .btn-secondary белая,
   потому что она предназначена для тёмного Hero.

   На белой странице товара она должна быть
   синей/контурной.
*/

.product-actions .btn-secondary {
    border: 1px solid var(--primary);

    color: var(--primary);

    background: #fff;
}

.product-actions .btn-secondary:hover {
    background: var(--primary);

    color: #fff;
}


/* ==========================================
   ОПИСАНИЕ
   ========================================== */

.product-description {
    margin-top: 45px;

    padding: 0;
}

.product-description h2 {
    margin: 0 0 20px;

    color: #252525;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.product-description .content {
    background: #fff;

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

    padding: 30px;

    color: #475569;

    font-size: 16px;
    line-height: 1.8;
}


/* ==========================================
   ПОХОЖИЕ ТОВАРЫ
   ========================================== */

.related-products {
    margin-top: 60px;

    padding: 0;
}

.related-products .section-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    max-width: none;

    margin: 0 0 30px;

    text-align: left;
}

.related-products .section-header h2 {
    margin: 0;

    color: #252525;

    font-size: 30px;
    line-height: 1.2;
}

.related-products .section-header a {
    color: var(--primary);

    font-weight: 600;
}


/* ==========================================
   АДАПТИВ
   ========================================== */

@media (max-width: 1000px) {

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery,
    .product-summary {
        min-height: auto;
    }

}


@media (max-width: 700px) {

    .product-page {
        padding: 25px 0 60px;
    }

    .product-layout {
        gap: 20px;
    }

    .product-gallery {
        min-height: 350px;

        padding: 20px;
    }

    .product-gallery img {
        height: 320px;
    }

    .product-summary {
        padding: 25px;
    }

    .product-summary h1 {
        font-size: 28px;
    }

    .product-spec {
        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }

    .product-spec strong {
        text-align: left;
    }

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

    .product-description .content {
        padding: 22px;
    }

    .related-products .section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

}
