﻿
/* #region Main */

:root {
    --sabzPorrang: #086779;
    --sabzKamrang: #00b5ad;
    --surati: #ee8371;
    --narengi: #faad53;
}

body {
    background: url('/Files/Site/Aluminum.png') repeat, linear-gradient(135deg, #e0e0e0, #b0b0b0);
    background-blend-mode: overlay;
}

html {
    direction: rtl;
    font-size: 14px;
}

div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select {
    font-family: IRANSansX !important;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

p, a {
    color: black;
}

/* #endregion */

/* #region font-face */

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/woff/IRANSansX-thin.woff') format('woff'), url('fonts/woff2/IRANSansX-thin.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/woff/IRANSansX-UltraLight.woff') format('woff'), url('fonts/woff2/IRANSansX-UltraLight.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/woff/IRANSansX-light.woff') format('woff'), url('fonts/woff2/IRANSansX-light.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/woff/IRANSansX-medium.woff') format('woff'), url('fonts/woff2/IRANSansX-medium.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/woff/IRANSansX-demibold.woff') format('woff'), url('fonts/woff2/IRANSansX-demibold.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/woff/IRANSansX-extrabold.woff') format('woff'), url('fonts/woff2/IRANSansX-extrabold.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/woff/IRANSansX-black.woff') format('woff'), url('fonts/woff2/IRANSansX-black.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/woff/IRANSansX-bold.woff') format('woff'), url('fonts/woff2/IRANSansX-bold.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/woff/IRANSansX-regular.woff') format('woff'), url('fonts/woff2/IRANSansX-regular.woff2') format('woff2');
}

/*اعداد*/

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/woff/IRANSansXFaNum-thin.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-thin.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/woff/IRANSansXFaNum-UltraLight.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-UltraLight.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/woff/IRANSansXFaNum-light.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-light.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/woff/IRANSansXFaNum-medium.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-medium.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/woff/IRANSansXFaNum-demibold.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-demibold.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/woff/IRANSansXFaNum-extrabold.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-extrabold.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/woff/IRANSansXFaNum-black.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-black.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/woff/IRANSansXFaNum-bold.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-bold.woff2') format('woff2');
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/woff/IRANSansXFaNum-regular.woff') format('woff'), url('fonts/woff2/IRANSansXFaNum-regular.woff2') format('woff2');
}

/* #endregion */

/* #region rrr , bbb , clsMessage */

.rrr {
    border: 1px solid red;
}

.bbb {
    border: 1px solid blue;
}

.yyy {
    border: 1px solid yellow;
}

.www {
    border: 1px solid white;
}

.clsMessage {
    display: block;
    position: fixed;
    top: 90px;
    left: 9px;
    opacity: 1;
    z-index: 999;
    border: 1px solid green;
    width: 300px;
    padding-top: 2px;
}

.clsCloseMessage {
    background-color: white;
    margin-right: -14px;
}

    .clsCloseMessage:hover {
        background-color: lightpink;
    }

#myProgress {
    border-radius: 0px 0px 5px 5px;
    margin-top: 10px;
    margin-right: -14px;
    margin-bottom: -14px;
    width: 298px;
    background-color: #ddd;
}

#myBar {
    width: 1%;
    height: 10px;
    background-color: #04AA6D;
}

/* #endregion */

/* #region scrollmenu clsPBold clsImgProductIndex */

div.scrollmenu {
    overflow: auto;
    white-space: nowrap;
}

.clsPBold {
    font-size: 20px;
    font-weight: bolder;
}

.clsImgProductIndex {
    height: 210px;
}

/* #endregion */

/* #region , clsLoginAndRegister */

.clsLoginAndRegister {
    border-radius: 5px;
    margin-top: 20px;
    padding: 10px 10px;
    border: 1px solid lightgray;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.3);
}

    .clsLoginAndRegister a, .clsLoginAndRegister button {
        width: 120px;
    }

/* #endregion */

/* #region StarsRatings */

input.star {
    display: none;
}

    input.star:checked ~ label.star:before {
        background-image: url(../Files/Site/star-fill-narengiKamrang.png);
        background-size: 15px;
        display: inline-block;
        width: 15px;
        height: 15px;
        content: "";
    }

label.star,
label.starFill,
label.starFillHalf {
    float: right;
    padding: 0px 5px 0px 0px;
}

    label.star:before {
        background-image: url(../Files/Site/star.png);
        background-size: 15px;
        display: inline-block;
        width: 15px;
        height: 15px;
        content: "";
    }

    label.starFill:before {
        background-image: url(../Files/Site/star-fill-narengiKamrang.png);
        background-size: 15px;
        display: inline-block;
        width: 15px;
        height: 15px;
        content: "";
    }

    label.starFillHalf:before {
        background-image: url(../Files/Site/starFillHalf2.png);
        background-size: 15px;
        display: inline-block;
        width: 15px;
        height: 15px;
        content: "";
    }

/* #endregion */

/* #region clsCarousel , clsScrollProduct , clsScrollContent */

.clsCarousel {
    height: 255px;
}

.clsMobileCarousel {
    display: unset;
}

.clsLaptopCarousel {
    display: none;
}

.clsScrollProductInMobile {
    display: unset;
}

.clsScrollProductInLaptop {
    display: none;
}

.clsScrollProduct {
    height: 240px;
}

    .clsScrollProduct .clsFirstDivInScrollProduct {
        width: 200px;
    }

        .clsScrollProduct .clsFirstDivInScrollProduct div:first-child {
            height: 170px;
        }

.clsScrollContent {
    height: 210px;
}

    .clsScrollContent .clsSecondDivInScrollContent {
        width: 170px;
        overflow: hidden;
    }

/* #endregion */

/* #region myBar , carousel-control-next-icon , carousel-control-prev-icon */

.myBar {
    border-radius: 5px;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-color: black;
    color: white;
    border: 1px solid white;
    border-radius: 15px;
}

/* #endregion */

.clsImgAboutUs {
    width: 100px;
}

.clsNameAndDescriptionProduct {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* محدود به دو خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal; /* اطمینان از شکست خطوط */
    word-break: break-word; /* جلوگیری از بُریدن کلمات */
    line-height: 1.5em; /* تنظیم فاصله خطوط */
    max-height: 3em; /* دو برابر line-height برای نمایش دو خط */
    font-size: 11px;
}

footer {
    padding-bottom: 60px;
}

/* Laptop - Laptop - Laptop - Laptop - Laptop - Laptop - Laptop - Laptop - Laptop - Laptop - Laptop - Laptop */
@media (min-width: 992px) {

    /* #region offcanvas , clsNavbarToggler , clsALiLaptopMenu , clsImgProductIndex */

    .offcanvas, .clsNavbarToggler {
        display: none;
    }

    .clsALiLaptopMenu:hover {
        border-bottom: 2px solid blue;
        cursor: pointer;
    }

        .clsALiLaptopMenu:hover .clsDiv2CategoryLaptopMenu {
            display: unset;
        }

    .clsImgProductIndex {
        height: 250px;
    }

    /* #endregion */

    /* #region clsCarousel , clsScrollProduct , clsScrollContent */

    .clsCarousel {
        height: 455px;
    }

        .clsCarousel img {
            width: 1326px;
        }

    .clsMobileCarousel {
        display: none;
    }

    .clsLaptopCarousel {
        display: unset;
    }

    .clsScrollProductInMobile {
        display: none;
    }

    .clsScrollProductInLaptop {
        display: unset;
    }

    .clsScrollProduct {
        /*border: 1px solid red;*/
        height: 400px;
    }

        .clsScrollProduct .clsFirstDivInScrollProduct {
            /*border: 1px solid blue;*/
            width: 300px;
            height: 370px;
        }

            .clsScrollProduct .clsFirstDivInScrollProduct div:first-child {
                /*border: 1px solid red;*/
                height: 300px;
            }

        .clsScrollProduct img {
            width: 340px;
        }

    .clsScrollContent {
        height: 395px;
    }

        .clsScrollContent .clsSecondDivInScrollContent {
            width: 325px;
        }

    .category-list {
        display: flex;
        flex-wrap: wrap; /* اجازه می‌دهد که آیتم‌ها در چند خط قرار بگیرند */
        list-style-type: none; /* حذف نقطه‌های لیست */
        padding: 0; /* حذف padding پیش‌فرض */
        margin: 0; /* حذف margin پیش‌فرض */
    }

        .category-list li {
            flex: 1 0 20%; /* هر آیتم حداقل 30% عرض را اشغال می‌کند */
            box-sizing: border-box; /* برای اینکه padding و margin در محاسبه عرض در نظر گرفته شود */
            padding: 10px; /* فاصله داخلی */
        }

    /* #endregion */

    .clsDiv2CategoryLaptopMenu {
        display: none;
        width: 600px;
        z-index: 999;
        margin-top: -1px;
        cursor: default;
    }

    .clsDiv3CategoryLaptopMenu {
        display: inline-block;
        background-color: aliceblue;
        opacity: 0.9;
    }

    .clsLiCategoryLaptop {
        width: 100px;
        height: 25px;
    }

        .clsLiCategoryLaptop:hover {
            border-bottom: 2px solid blue;
            cursor: pointer;
        }

    .clsImgAboutUs {
        width: 200px;
    }

    .clsNameAndDescriptionProduct {
        font-size: 13px;
    }
}
