$white: #ffffff;
$veryLightGray: #f8f9fa;
$lightGray: #f3f3f3;
$midLightGray: #929faa;
$gray: #6c757d;
$darkGray: #212529;
$veryDarkGray: #545454;
$green: #4CAF50;
$red: #ED4028;

html,
body {
    margin: 0px;
    padding: 0px;
    background-color: $white;
    direction: ltr;
    top: 0 !important;
}

.main-nav {
    padding-block: .5em;

    >.container {
        >.row {
            align-items: center;
            text-align: center;
        }

        .navbar-brand {
            margin: 0;

            img {
                width: 75px;
            }
        }

        .navbar-language {
            .select2-container {
                .select2-selection--single {
                    height: unset;
                    background-color: transparent !important;
                    border: none;

                    .select2-selection__rendered {
                        line-height: 0;
                        padding: 0;
                    }

                    .select2-selection__arrow {
                        display: none;
                    }
                }
            }
        }
    }
}

.advertisements {
    .item {
        background-size: cover;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border-radius: 2em;
    }

    .owl-dots {
        position: absolute;
        bottom: 10px;
        width: 100%;

        .owl-dot {
            &:nth-of-type(n+7) {
                display: none !important;
            }

            span {
                margin: 5px;
                background-color: $lightGray;

                &:hover {
                    background-color: $darkGray
                }
            }

            &.active {
                span {
                    background-color: $darkGray
                }
            }
        }
    }
}

#about {
    .col-12 {
        >div {
            box-shadow: 0 0 4px 0 $gray;
            text-align: center;
            padding: 1.5em .75em;
            border-radius: 2em;

            .title {
                color: $darkGray;
                margin-bottom: 1em;
            }

            .text {
                font-weight: 300;

                p {
                    font-size: .9em;
                    line-height: 1.75em;
                }
            }
        }
    }
}

#services {
    .item {
        a {
            text-decoration: none;
            color: $darkGray;
            text-align: center;

            >div {
                width: 175px;

                img {
                    border-top-right-radius: 2em;
                    border-top-left-radius: 2em;
                    height: 150px;
                    width: 100%;
                }
            }

            p {
                margin-bottom: 0;
                background-color: $lightGray;
                padding-block: 1em;
                border-bottom-right-radius: 2em;
                border-bottom-left-radius: 2em;
            }
        }
    }
}

#contact {
    background-color: $veryLightGray;
    padding-block: 2em;
    margin-top: 2em;

    .col-6,
    .col-12 {
        text-decoration: none;
        color: $darkGray;

        >div {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-color: $white;
            height: 100px;
            box-shadow: 0 0 4px 0 $gray;
            border-radius: 2em;

            .social-links {
                list-style: none;
                padding: 0;
                display: flex;
                justify-content: space-evenly;
                width: 100%;

                li {
                    padding: .5em;

                    a {
                        text-decoration: none;
                        color: $darkGray;

                        img {
                            width: 25px;
                        }
                    }
                }
            }

            >.las {
                font-size: 1.5em;
                margin-bottom: .20em;
            }

            >p {
                margin-bottom: 0;
                font-size: .6em;
            }
        }
    }
}

.main-footer {
    text-align: center;
    background-color: $darkGray;
    color: $white;
    padding-block: 2em;
}

.section-header {
    display: flex;
    align-items: center;
    margin-inline: 2em;

    >div {
        flex: 0 0 auto;
        width: 25%;
        height: 1px;
        background-color: $darkGray;
    }

    .title {
        width: 50%;
        text-align: center
    }
}

#showOrdersModal {
    .modal-content {
        border: 0;
        border-radius: 0;

        .modal-header {
            border-bottom: 0;
            padding-bottom: 0;

            .btn-close {
                margin: 0;
                padding-block: 0;
            }
        }

        .modal-body {
            padding-block: 1em;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;

            >h3 {
                color: $veryDarkGray;
                font-weight: bold;
            }

            .orders-container {
                width: 100%;

                .order {
                    display: flex;
                    align-items: center;
                    padding-block: 1rem;
                    background-color: $veryLightGray;
                    border-radius: 1rem;
                    margin-bottom: 1rem;
                    overflow: scroll;

                    >div {
                        flex-grow: 1;
                        flex-basis: 100%;
                        margin-inline: .5rem;

                        &.actions {
                            width: 10%;

                            a {
                                text-decoration: none;

                                i {
                                    padding: 6px !important;
                                }
                            }
                        }
                    }
                }
            }

            .ok {
                color: $white;
                padding-inline: 2rem;
            }
        }
    }
}

.footer-buttons {
    position: fixed;
    bottom: 3%;
    inset-inline-end: 3%;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    z-index: 3;

    .footer-cart {
        >a {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            position: relative;
            border-radius: 50%;
            font-size: 30px;
            background-color: $green;

            .items-count {
                position: absolute;
                inset-inline-start: 10px;
                top: 8px;
                font-size: 8px;
                font-weight: 600;
                background: #ffffff;
                width: 12px;
                border-radius: 12px;
                text-align: center;
                color: $green;
            }
        }
    }

    .footer-order {
        >a {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 30px;
            background-color: $veryDarkGray;
            z-index: 3;
        }
    }
}

#metadataModal {
    .modal-content {
        border: 0;
        border-radius: 0;

        .modal-header {
            display: none !important;
        }

        .modal-body {
            padding: 0;

            .main-title {
                color: $white;
                padding: 1em;
                display: flex;
                justify-content: space-between;
                align-items: center;

                h3 {
                    font-size: 1.25em;
                    margin-bottom: 0;
                    display: flex;
                    align-items: center;
                }
            }

            .header {
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: $veryLightGray;
                color: $darkGray;
                padding: 10px 20px;
                cursor: pointer;

                .title {
                    font-weight: 600;
                }
            }

            .order-type {
                background: $lightGray;
                padding: .5em;
                border-radius: 0.75em;
                font-size: 1rem;
                cursor: pointer;
                text-align: center;
                font-size: 0.9rem;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                height: 100%;

                i {
                    font-size: 1.5rem;
                }

                &.active {
                    background-color: $green;
                    color: $white;

                    .description {
                        color: $white;
                    }
                }

                .description {
                    font-size: .7rem;
                    color: $midLightGray;
                }
            }

            .form-text {
                font-size: .7em;
                color: $midLightGray;
                margin-top: 0;
                margin-bottom: .25rem;
            }

            .actions {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 20px;
                background-color: $veryDarkGray;

                .quantity {
                    display: grid;
                    grid-template-columns: 30% 40% 30%;
                    align-items: center;
                    text-align: center;
                    width: 50%;
                    padding-inline-end: 40px;

                    .plus {
                        .las {
                            padding: 5px;
                            border-radius: 50%;
                            background-color: $green;
                            color: $white;
                            cursor: pointer;
                        }
                    }

                    input {
                        text-align: center;
                        border: none;
                        color: $white;
                        background-color: $veryDarkGray;

                        &:focus {
                            border: none;
                            outline: none;
                        }
                    }

                    .minus {
                        .las {
                            padding: 5px;
                            border-radius: 50%;
                            background-color: $red;
                            color: $white;
                            cursor: pointer;
                        }
                    }
                }

                button {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    background-color: $green;
                    font-size: .9em;
                    width: 100%;
                }
            }
        }
    }
}

@import "components/google_translate";
@import "rtl";