:root {
    --pcb-product-cards-width: 365px;
    --product-card-gray: rgb(94, 94, 94);
}

.pcb__catalogue__header {
    --backg-color: rgb(230, 230, 230);
    --btn-font-sz: 17px;

    height: 55px;
    padding: 5px 30px;
    text-align: right;

    button {
        display: inline-grid;
        grid-template-columns: auto 22px;
        gap: 4px;
        place-items: center;
        height: 45px;
        cursor: pointer;
        background-color: var(--backg-color);
        border-radius: var(--border-radius);
        border: 2px solid var(--backg-color);
        color: var(--font-color);
        padding: 0 12px;
        font-size: var(--btn-font-sz);

        &:hover {
            background-color: white;
            transition: 0.5s;
        }

        svg {
            height: var(--btn-font-sz);
            width: var(--btn-font-sz);
        }
    }
}


.pcb__catalogue__body {
    display: grid;
    place-items: center;
}


.pcb__catalogue_cards {
    display: grid;
    background-color: whitesmoke;
    gap: 12px;
    grid-auto-flow: dense;
    grid-auto-rows: var(--pcb-product-cards-width);
    grid-template-columns: repeat(auto-fill, var(--pcb-product-cards-width));
    padding: 1%;
    justify-content: center;
    width: 100%;
}

.pcb__product_card {
    display: grid;
    padding: 1.6%;
    width: var(--pcb-product-cards-width);
    border-radius: var(--border-radius);
    align-items: center;
    justify-items: center;
    text-align: center;
    background-color: white;

    .title {
        color: var(--bic-color);
        font-size: 20px;
        font-weight: bold;
    }

    .img {
        max-height: 150px;
        max-width: 100%;
    }

    .key {
        color: var(--product-card-gray);
        font-size: 16px;
    }

    .price {
        opacity: 0.85;
        font-weight: bold;
        font-size: 0.9rem;
        padding: 6px;
        color: var(--product-card-gray);

        span {
            color: var(--bic-color);
            font-size: 1.05rem;
        }
    }

    .buttons_box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        border-top: 1px solid rgb(219, 219, 219);
        padding-top: 15px;

        a {
            display: inline-grid;
            place-items: center;
            font-size: 16px;

            border-radius: var(--border-radius);
            border: 2px solid var(--bic-color);
            color: var(--bic-color);

            &.quote_now {
                padding: 7px 5px 7px 35px;
                grid-template-columns: auto 45px;
                width: max-content;
                background-color: var(--bic-color);
                color: white;

                svg {
                    height: 15px;
                    width: 15px;

                    & g {
                        fill: white;
                        stroke: white;
                    }
                }
            }
        }
    }

    .families_box {

        a {
            margin: 2.5px 5px;
            text-wrap: nowrap;

            &.pcb__best_option_family {
                text-decoration: underline;
                text-decoration-color: var(--contrast-color);
                text-decoration-thickness: 2px;
            }
        }
    }

    .footer_warning {
        font-size: 0.8rem;
        color: var(--product-card-gray);
    }
}

.pcb__catalogue__modal_wrapper {
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.493);
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;

    .pcb__catalogue__sort_modal {
        display: grid;
        position: fixed;
        width: 50%;
        height: 600px;
        overflow: auto;
        background-color: white;
        border-radius: var(--long-border-radius);
    }
}

.pcb__modal_wrapper {
    display: none;

    .accept_btn,
    .reset_btn {
        padding: 6px 12px;
        width: fit-content;
        cursor: pointer;
        font-size: 18px;
        background-color: white;
        border-radius: var(--border-radius);
        font-weight: bold;
    }

    .accept_btn {
        border: 2px solid var(--bic-color);
        color: var(--bic-color);
    }

    .reset_btn {
        border: 2px solid var(--invisible);
        background-color: whitesmoke;
        color: var(--font-color);
    }

    &#sort-modal {

        form {
            display: grid;
            gap: 12px;
            height: 100%;
            grid-template-rows: auto 60px;

            .sort_body {
                display: grid;
                justify-content: center;
                margin-right: 100px;

                .container {
                    font-size: 18px;
                    padding: 5px;

                    input {
                        height: 18px;
                        width: 18px;
                        cursor: pointer;
                    }

                    label {
                        cursor: pointer;
                    }
                }
            }

            .sort_buttons {
                display: flex;
                flex-flow: row-reverse;
                padding: 9px 12px;
            }
        }
    }

    &#filter-modal {

        form {
            display: grid;
            gap: 12px;
            height: 100%;
            grid-template-rows: auto 60px;

            .filter_body {
                overflow-x: scroll;
                display: grid;
                padding: 0 45px;
                font-size: 18px;
                gap: 12px;
                display: grid;
                justify-content: center;
                margin-right: 100px;

                @media screen and (max-width: 700px) {
                    margin-right: 0px;
                }

                .container {
                    input {
                        height: 18px;
                        width: 18px;
                        cursor: pointer;
                    }

                    label {
                        cursor: pointer;
                    }
                }

            }

            .filter_buttons {
                display: flex;
                flex-flow: row-reverse;
                padding: 9px 12px;
                gap: 15px;
            }
        }
    }
}


h1 {
    margin: 7px 14px;
    color: var(--font-color);
}
