/*
Theme Name: برادران محمدی
Author: مسعود مهدیان
Requires at least: 5.3
Tested up to: 6.3
Requires PHP: 7.4
Version: 15.0
*/

/*xs: 0,*/
/*sm: 576px,*/
/*md: 768px,*/
/*lg: 992px,*/
/*xl: 1200px,*/
/*xxl: 1400px*/

@charset "UTF-8";

:root {
    --moha-color-1: #424999;
    --moha-color-2: #a35151;
}

/* shop */
#shop-product-filter li.sub-cat-open > div svg.sub-cats-toggle-arrow {
    transform: rotate(-90deg);
    transform-origin: center;
}

#shop-product-filter li.sub-cat-open > ul {
    display: block !important;
}

/* post */
.mohamadi-post-content {
    text-align: justify;
}

/* star rating */
.mo-star-rating {
    display: flex;
}

.mo-star-rating label {
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.mo-star-rating label svg {
    position: absolute;
}

.mo-star-rating label svg:nth-child(2) {
    display: none;
}

/* pagination */
.mo-pagination .page-numbers {
    min-width: 20px;
    padding: 2px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.mo-pagination .current {
    background-color: var(--moha-color-1);
    min-width: 30px;
    color: #fff;
}

/* brand */
#brand-content {
    line-height: 2 !important
}

#brand-content p {
    margin-bottom: 1.5rem !important;
}

/* footer */
#footer {
    #footer-content {
        background-color: var(--moha-color-1);
        margin-right: 250px;
        padding: 30px;
        border-radius: 30px 30px 0 30px;

        #footer-site-introduction {
            background-color: var(--moha-color-2);
            max-width: 420px;
            margin-right: -280px;
            padding: 30px;
            border-radius: 30px 30px 30px 0;

            h2 {
                font-size: 22px;
            }
        }

        a {
            color: #ffffff;
        }

        .footer-menu {
            h2 {
                margin-bottom: 20px;
                font-size: 18px;
                font-weight: bold;
            }

            ul {
                margin: 0;
                display: flex;
                flex-direction: column;
                gap: 10px;
                padding: 0;
                list-style: none;
            }

            li {
                display: flex;
                align-items: center;
                gap: 15px;
            }

            li:before {
                background-color: #ffffff;
                width: 7px;
                height: 7px;
                content: '';
                display: inline-block;
                transform: translate(50%) rotate(45deg);
                border-radius: 2px;
            }
        }

        #social-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;

            & > span:first-child {
                font-size: 14px;
            }

            a {
                padding: 8px;
                display: flex;
                align-items: center;
                justify-content: flex-end;
                gap: 15px;
                font-size: 18px;
                border: 1px solid #ffffff;
                border-radius: 15px;
            }

            svg {
                width: 34px;
                height: 34px;
            }
        }

        #footer-licences {
            display: flex;
            flex-direction: column;
            gap: 10px;

            .licence {
                background-color: #ffffff;
                padding: 10px;
                border-radius: 10px;

                img {
                    width: 50px;
                    object-fit: contain;
                }
            }
        }

        @media (max-width: 1200px) {
            margin-right: unset;
            flex-wrap: wrap;

            #footer-site-introduction {
                max-width: unset;
                margin-right: unset;
            }
        }
    }
}