/*
 * PivotLab - product (views/pages/product.php): the old view's <style> block, every rule scoped
 * under [data-pl-view="product"], with its nested rules as the old file had them. The old `main`
 * rule is the site's .site-main, and only while this page is in it.
 */


.site-main:has([data-pl-view="product"]) {
    border-radius: 30px 30px 0 0;

    @media (min-width: 992px) {
        background: #fbfbfb;
        padding-top: 42px;
    }
}

[data-pl-view="product"] {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 1366px;

    @media (max-width: 1199px) {
        padding-left: 0;
        padding-right: 0;
    }

    h2 {
        font-size: 14px;
        font-weight: 400;
    }

    .tech-draw-img {
        max-width: 100%;
        margin: 16px auto;
        display: block;
    }
}

[data-pl-view="product"] .product-wrapper {
    border-radius: 30px;

    @media (min-width: 1200px) {
        border: 1px solid #EFEFF0;
    }
}


/* ------------------------------ hero section ------------------------------ */
[data-pl-view="product"] .img-cover-wrapper {
    position: relative;
    background-color: #D9D9D9;
    padding-bottom: 40px;
    padding-top: 10px;
    border-radius: 30px 30px 0 0;

    .cover-img {
        /* border-radius: 30px 30px 0 0; */
        transition: transform 0.3s;
        width: 100%;
        object-fit: contain;
        aspect-ratio: 400 / 250;
        mix-blend-mode: multiply;
    }

    @media (min-width: 768px) {
        .cover-img {
            height: 480px;
            aspect-ratio: inherit;
        }
    }

    .back-link {
        color: var(--bs-body-color);
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #EFEFF0;
        border-radius: 100px;
        position: absolute;
        top: 21px;
        left: 21px;
    }

    .bookmark {
        color: var(--bs-body-color);
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #EFEFF0;
        border-radius: 100px;
        position: absolute;
        top: 21px;
        right: 21px;
        border: none;
    }

    .bookmark.active {
        background-color: var(--bs-primary);
        color: #fff;
    }
}

/* --------------------------------- content -------------------------------- */
[data-pl-view="product"] .product-content {
    background-color: #fff;
    border-radius: 30px;
    margin-top: -30px;
    z-index: 1;
    padding: 24px;
    position: relative;

    .product-title {
        font-size: 19px;
        font-weight: 600;
        text-align: center;
        line-height: 140%;
    }

    .product-subtitle {
        font-size: 14px;
        text-align: center;
    }

    .options-btn {
        color: var(--bs-body-color);
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #EFEFF0;
        border-radius: 100px;
        border: none;
    }


    .description-block {
        .description-title {
            text-transform: uppercase;
            font-weight: 600 !important;
            font-size: 15px !important;
            line-height: 150%;

        }

        p {
            font-size: 13px;
        }
    }
}

[data-pl-view="product"] #product-features {
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 1rem;

    .name {
        font-size: 12px;
    }
}

[data-pl-view="product"] .download-file-link {
    border: 1px solid #767676;
    color: #1E1E1E !important;
    text-decoration: none;
    padding: 8px;
    font-size: 12px;
    margin-bottom: 8px;
    margin-right: 8px;

    .extension {
        font-weight: 600;
    }
}

