﻿/* ============================================ */
/* 1. RESET & BASE STYLES (استایل‌های پایه)     */
/* ============================================ */

.BoxSizeAsli {
    max-width: 100% !important;
}

@media (max-width: 1240px) {
    .SlidePictureRight {
        display: block;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .RowDarsad {
        width: 100%;
        margin: 0;
    }
}

#owl-demo2 .item {
    box-shadow: 0px 0px 7px #888;
}

.DropDownListRelative1Box {
    display: none;
}

.FactorRegisterCalcField {
    width: 150px;
    max-width: 100%;
}

.FieldTextBoxOption {
    padding-top: 7px;
    padding-bottom: 10px;
}
.CategorySpecialProduct .ItemTitle
{
    color:#000;
}
.spanProductionYear
{
    background-color:#ff0000;
    color:#fff;
    padding:5px 10px;
    font-size:10pt;
    border-radius:5px;
}
.spanFreeInstallation
{
    background-color:#ffff00;
    color:#ff0000;
    padding:5px 10px;
    font-size:10pt;
    border-radius:5px;
}
.spanVahedDetail
{
    color:#ff0000;
    font-size:12pt;
}

.spanErrorTedad
{
    color:#ff0000;
    font-size:12pt;
}
.spanGetCountBaghi
{
    background-color:#006400;
    margin-top:10px;
    color:#fff;
    padding:5px 10px;
    font-size:10pt;
    border-radius:5px;
}
.HeaderTopRight
{
    padding-bottom:10px;
}
.CategorySpecialProduct .ItemTitlePrice
{
    color:#006400;
}
.owl-theme .owl-controls .owl-buttons div, .StatusDetail {
    z-index: 998 !important;
}

.BoxSmallSearchIndex .BoxCenter {
    float: none;
    display: inline-block;
}

.HeaderRes {
    z-index: 999 !important;
}

.FactorRegisterCalcUnit {
    width: 60px !important;
}

.UserRes, .SearchRes, .TellMobile, .navLogin li {
    z-index: 9999 !important;
}

.FactorRegisterCalcRow2 {
    font-weight: 600;
}

.OrderDiscountBox, .FactorRegisterCalc {
    width: calc(100% - 2px) !important;
}

img {
    display: inline-block;
    position: relative;
}

.navCategory li .active {
    color: #ff0000;
}

.TextBoxAutoCapmlet {
    color: #000;
}

article {
    float: none;
}

.SearchBox {
    background-color: #fff;
    background-position: left center;
    background-repeat: no-repeat;
}

.CategorySpecialCategory .Itemn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* تصویر پیش‌فرض برای عکس‌های لود نشده */
img::before {
    content: "📷";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #999;
    font-size: 1.5rem;
}

img::after {
    content: "عکس یافت نشد";
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    text-align: center;
}

.backtotop {
    bottom: 75px;
}

.BoxSmallSearchResButton {
    position: fixed;
    float: right;
    width: 110px;
    background-color: #ff0000;
    color: #fff;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
    bottom: 75px;
    right: 70px;
    z-index: 9999999999;
    border-radius: 15px;
}

@media (max-width: 1240px) {
    .BoxSmallSearchRes {
        text-align: center;
        float: none;
        display: none;
        position: fixed;
        height: calc(100% - 180px);
        right: 0;
        top: 60px;
        overflow: hidden;
        overflow-y: scroll;
        z-index: 99999999;
        padding-left: 30px;
        padding-bottom: 50px;
    }
}

header {
    min-height: 60px;
}
/* ============================================ */
/*  هدر ریسپانسیو موبایل                       */
/* ============================================ */
.HeaderTopMobileTop {
    display: none;
}

.HeaderTopMobile {
    display: none;
}

@media (max-width: 1240px) {

    .CopyRight {
        margin-bottom: 70px;
    }

    .AutoCamplet {
        width: calc(100% - 2px);
        margin-right: 0;
    }

        .AutoCamplet .Item .TitleBox {
            width: calc(100% - 60px);
        }

    .AutoCampletProductBox {
        width: calc(50% - 2px);
    }

    .AutoCampletCategoryProductBox {
        width: 50%;
    }

    .AutoCampletProduct {
        width: 100%;
        border: 0;
    }

    .HeaderTop {
        display: none;
    }

    .LogoMobileNew {
        float: left;
        background-size: 100% 100%;
        height: 40px;
        width: 123px;
        margin-top: 10px;
        margin-left: 10px;
        background-image: url(../Administrator/Files/Design/Logo2.png);
    }

    .TellMobileNew {
        float: right;
        color: #fff;
        margin-top: 17px;
        margin-right: 10px;
    }

    .HeaderTopMobileTop {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        min-height: 60px;
        width: 100%;
        background: #777;
        border-top: solid 1px #aaa;
        z-index: 1000;
        direction: rtl;
        box-shadow: 0px -2px 12px rgba(0, 0, 0, 0.25);
         background-image: url(../Administrator/Files/Design/HeaderTopMobileTop.png);
   }

    .HeaderTopMobile {
        display: block;
        position: fixed;
        bottom: 0;
        right: 0;
        min-height: 60px;
        width: 100%;
        background: #fff;
        border-top: solid 1px #aaa;
        box-shadow: 0px -2px 12px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        direction: rtl;
        padding-top: 10px;
    }

        /* ===== منوی پایین ===== */
        .HeaderTopMobile .mobile-menu {
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 60px;
            padding: 0 10px;
            max-width: 600px;
            margin: 0 auto;
            background: #fff;
            border-radius: 16px 16px 0 0;
        }

            .HeaderTopMobile .mobile-menu a {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-decoration: none;
                color: #000;
                font-size: 13px;
                font-weight: 500;
                transition: all 0.3s ease;
                padding: 4px 8px;
                border-radius: 8px;
                min-width: 44px;
                position: relative;
                gap: 2px;
            }

                .HeaderTopMobile .mobile-menu a::before {
                    font-size: 20px;
                    display: block;
                }

                .HeaderTopMobile .mobile-menu a[href="/"]::before {
                    content: "🏠";
                }

                .HeaderTopMobile .mobile-menu a#btnCategoryMenu::before {
                    content: "📂";
                }

                .HeaderTopMobile .mobile-menu a[href*="OrderInsert"]::before {
                    content: "🛒";
                }

                .HeaderTopMobile .mobile-menu a#btnSearch::before {
                    content: "🔍";
                }

                .HeaderTopMobile .mobile-menu a[href*="UserEdit"]::before {
                    content: "👤";
                }

                .HeaderTopMobile .mobile-menu a:hover {
                    color: #007bff;
                    background: #f0f8ff;
                    transform: translateY(-2px);
                }

                .HeaderTopMobile .mobile-menu a:active {
                    transform: scale(0.95);
                }

                .HeaderTopMobile .mobile-menu a.active {
                    color: #007bff;
                    font-weight: 600;
                }

                    .HeaderTopMobile .mobile-menu a.active::after {
                        content: '';
                        position: absolute;
                        top: 0;
                        width: 60%;
                        height: 3px;
                        background: #007bff;
                        border-radius: 0 0 4px 4px;
                    }

            .HeaderTopMobile .mobile-menu .cart-badge {
                position: absolute;
                top: -4px;
                right: 0px;
                background: #ff4444;
                color: white;
                border-radius: 50%;
                padding: 1px 6px;
                font-size: 10px;
                font-weight: bold;
                min-width: 18px;
                text-align: center;
                box-shadow: 0 2px 6px rgba(255,68,68,0.4);
            }

    /* ===== سایدبار منوی دسته‌بندی ===== */
    .category-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100%;
        background: #ffffff;
        z-index: 2000;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        overflow-y: auto;
        direction: rtl;
        border-radius: 0 0 0 24px;
    }

        .category-sidebar.open {
            right: 0;
        }

    /* هدر سایدبار */
    .category-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        border-radius: 0 0 20px 20px;
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    }

        .category-sidebar-header .close-sidebar {
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            font-size: 40px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

            .category-sidebar-header .close-sidebar:hover {
                background: rgba(255,255,255,0.35);
                transform: rotate(90deg);
            }

    /* بدنه سایدبار */
    .category-sidebar-body {
        padding: 8px 0 20px 0;
    }

        .category-sidebar-body .HeaderTopMobileCategoryUl {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            /* ===== استایل منوی دسته‌بندی ===== */
            .category-sidebar-body .HeaderTopMobileCategoryUl li {
                list-style: none;
                border-bottom: 1px solid #f0f0f0;
                position: relative;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                text-align: right;
            }

                .category-sidebar-body .HeaderTopMobileCategoryUl li:last-child {
                    border-bottom: none;
                }

        /* لینک اصلی - با flex:1 تا فضای باقی‌مونده رو بگیره */
        .category-sidebar-body .HeaderTopMobilemenu-link {
            flex: 1;
            padding: 14px 20px;
            color: #333;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s ease;
            background: #fff;
            border-radius: 0;
            min-width: 0;
            word-break: break-word;
            text-align: right;
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }

            .category-sidebar-body .HeaderTopMobilemenu-link:hover {
                background: #f5f9ff;
                color: #007bff;
            }

            .category-sidebar-body .HeaderTopMobilemenu-link:active {
                background: #e6f0ff;
            }

        /* دکمه باز/بسته کردن زیرمنو */
        .category-sidebar-body .toggle-submenu {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            background: transparent;
            border: none;
            border-left: 1px solid #eee;
            color: #666;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 4px 0;
            border-radius: 8px 0 0 8px;
            order: -1;
            /* دکمه رو به چپ می‌بره */
        }

            .category-sidebar-body .toggle-submenu:hover {
                background: #f0f4ff;
                color: #007bff;
            }

            .category-sidebar-body .toggle-submenu:active {
                transform: scale(0.9);
            }

        /* چرخش دکمه هنگام باز بودن زیرمنو */
        .category-sidebar-body .HeaderTopMobilehas-dropdown.open > .toggle-submenu {
            transform: rotate(180deg);
            color: #007bff;
        }

        /* ===== زیرمنوها ===== */
        .category-sidebar-body .HeaderTopMobilesubmenu {
            list-style: none;
            padding: 0;
            margin: 0;
            background: #f8faff;
            display: none;
            border-right: 3px solid #007bff;
            width: 100%;
            /* تمام عرض رو بگیره */
        }

            .category-sidebar-body .HeaderTopMobilesubmenu.open {
                display: block;
            }

            /* سطح دوم */
            .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilemenu-item {
                border-bottom: 1px solid #f0f4ff;
                padding-right: 15px;
                /* فاصله از راست برای سطح دوم */
            }

            .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilemenu-link {
                padding: 12px 30px;
                font-size: 14px;
                font-weight: 400;
                color: #444;
                background: #f8faff;
                text-align: right;
            }

                .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilemenu-link:hover {
                    background: #eef4ff;
                    color: #0056b3;
                }

            /* دکمه‌های سطح دوم */
            .category-sidebar-body .HeaderTopMobilesubmenu .toggle-submenu {
                border-left-color: #dce4f0;
                height: 42px;
                width: 40px;
                font-size: 13px;
                order: -1;
            }

            /* سطح سوم */
            .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu {
                background: #f0f5ff;
                border-right-color: #0056b3;
            }

                .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilemenu-item {
                    padding-right: 30px;
                    /* فاصله بیشتر برای سطح سوم */
                }

                .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilemenu-link {
                    padding: 10px 38px;
                    font-size: 13px;
                    background: #f0f5ff;
                    text-align: right;
                }

                    .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilemenu-link:hover {
                        background: #e3edff;
                    }

                /* دکمه‌های سطح سوم */
                .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .toggle-submenu {
                    border-left-color: #c8d8f0;
                    height: 38px;
                    width: 36px;
                    font-size: 12px;
                    order: -1;
                }

                /* سطح چهارم */
                .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu {
                    background: #e8f0ff;
                    border-right-color: #003d80;
                }

                    .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilemenu-item {
                        padding-right: 45px;
                        /* فاصله بیشتر برای سطح چهارم */
                    }

                    .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilemenu-link {
                        padding: 10px 46px;
                        font-size: 12px;
                        background: #e8f0ff;
                        color: #333;
                        text-align: right;
                    }

                        .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilemenu-link:hover {
                            background: #dce8ff;
                        }

                    /* دکمه‌های سطح چهارم */
                    .category-sidebar-body .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .HeaderTopMobilesubmenu .toggle-submenu {
                        border-left-color: #b8cce8;
                        height: 36px;
                        width: 34px;
                        font-size: 11px;
                        order: -1;
                    }

    /* ===== اوورلی ===== */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        display: none;
        opacity: 0;
        transition: opacity 0.35s ease;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

        .sidebar-overlay.show {
            display: block;
            opacity: 1;
        }
}

/* اسکرول‌بار برای سایدبار */
.category-sidebar::-webkit-scrollbar {
    width: 4px;
}

.category-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

    .category-sidebar::-webkit-scrollbar-thumb:hover {
        background: #0056b3;
    }


/* ============================================ */
/*  سایدبار جستجو (تمام صفحه)                  */
/* ============================================ */

.SearchBoxBox {
    display: block;
}

/* سایدبار جستجو - تمام صفحه */
.search-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    direction: rtl;
    display: flex;
    flex-direction: column;
}

    .search-sidebar.open {
        right: 0;
    }

/* هدر سایدبار جستجو */
.search-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    flex-shrink: 0;
}

    .search-sidebar-header .close-search {
        background: rgba(255,255,255,0.2);
        border: none;
        color: #fff;
        font-size: 28px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

        .search-sidebar-header .close-search:hover {
            background: rgba(255,255,255,0.35);
            transform: rotate(90deg);
        }

/* بدنه سایدبار جستجو */
.search-sidebar-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8faff;
}



/* اوورلی مخصوص جستجو */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

    .search-overlay.show {
        display: block;
        opacity: 1;
    }

/* ===== اسکرول‌بار برای سایدبار جستجو ===== */
.search-sidebar::-webkit-scrollbar {
    width: 4px;
}

.search-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-sidebar::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

    .search-sidebar::-webkit-scrollbar-thumb:hover {
        background: #0056b3;
    }

/* ===== تنظیمات ریسپانسیو برای صفحه‌های کوچک ===== */
@media (max-width: 480px) {
    .search-sidebar-body {
        padding: 15px;
    }
}

/* ============================================ */
/* 4. TABLE STYLES (استایل‌های جدول)            */
/* ============================================ */

.Box table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: center;
    background-color: #fdfdfd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .Box table tr {
        border-bottom: 1px solid #ccc;
    }

    .Box table th,
    .Box table td {
        padding: 12px 15px;
        border: 1px solid #ddd;
    }

    .Box table th {
        background-color: #36c57d;
        color: #fff;
        font-weight: bold;
    }

    .Box table tr:nth-child(even) {
        background-color: #f3f9f5;
    }

    .Box table tr:hover {
        background-color: #e0f2e9;
        transition: background-color 0.3s ease;
    }

/* جدول ریسپانسیو */
@media screen and (max-width: 768px) {
    .Box table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

        .Box table th,
        .Box table td {
            display: table-cell;
        }

    .FieldRadioRang th, .FieldRadioRang td {
        display: inline-block !important;
        float: right;
    }

    .Box table::after {
        display: block;
        text-align: center;
        font-size: 11px;
        color: #999;
        padding: 8px 0 4px 0;
    }

    /* ===== راه‌حل جدید برای پیام اسکرول ===== */
    .Box table::after {
        content: "↔ برای دیدن بقیه جدول اسکرول کنید";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #999;
        padding: 8px 0 4px 0;
        /* موقعیت‌یابی برای نمایش زیر جدول */
        left: 0;
        right: 0;
        width: 100%;
        background: #fdfdfd; /* هم‌رنگ با پس‌زمینه */
        z-index: 1;
    }
}


/* ============================================ */
/* 5. VIDEO STYLES (استایل‌های ویدئو)           */
/* ============================================ */

video {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    margin: 50px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.35);
    background: #000;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    border: 2px solid rgba(255,255,255,0.08);
}

    video:hover {
        transform: scale(1.03);
        box-shadow: 0 20px 60px rgba(0,255,160,0.4);
        border-color: rgba(0,255,200,0.3);
    }

    video::before {
        content: "▶";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 70px;
        color: rgba(255,255,255,0.85);
        background: rgba(0,0,0,0.3);
        border-radius: 50%;
        padding: 25px 35px 25px 45px;
        transition: all 0.3s ease-in-out;
        opacity: 1;
        pointer-events: none;
    }

    video::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 140px;
        height: 140px;
        background: radial-gradient(circle, rgba(0,255,180,0.3) 0%, rgba(0,0,0,0) 70%);
        transform: translate(-50%, -50%);
        opacity: 0.7;
        filter: blur(15px);
        border-radius: 50%;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    video:hover::before {
        color: #00ffd5;
        text-shadow: 0 0 20px #00ffd5;
        transform: translate(-50%, -50%) scale(1.1);
    }

    video:hover::after {
        opacity: 1;
        filter: blur(25px);
    }

    video:focus::before,
    video:active::before {
        opacity: 0;
    }

/* ویدئو ریسپانسیو */
@media (max-width: 600px) {
    video {
        max-width: 95%;
        border-radius: 14px;
        margin: 25px auto;
    }

        video::before {
            font-size: 50px;
            padding: 20px 28px 20px 38px;
        }
}





/* ============================================ */
/* 7. COLOR & SIZE SELECTION (انتخاب رنگ و سایز) */
/* ============================================ */

.SizeTitleItem {
    float: right;
    width: 60px;
    margin-left: 10px;
    margin-top: 1px;
    border: 1px solid #DDD;
    padding-left: 10px;
    cursor: pointer;
    width: 108px;
    padding-bottom: 1px;
    padding-top: 2px;
    background-color: #fff;
}

.SizeTitleItem2 {
    background-color: #eee;
}

.FieldRadioRang {
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    float: none !important;
}

    .FieldRadioRang tr {
        border: 0 !important;
    }

        .FieldRadioRang tr:hover {
            background-color: transparent !important;
            transition: none !important;
        }

    .FieldRadioRang td {
        padding: 0 !important;
        border: 0 !important;
        margin-left: 2px;
        margin-right: 2px;
        display: inline-block;
        font-size: 8pt;
        cursor: pointer;
        color: #333;
        margin-top: 2px;
        width: 64px;
        background-color: #fff;
        margin: 3px 3px 40px 3px;
    }

        .FieldRadioRang td input {
            cursor: pointer;
            display: none;
        }

        .FieldRadioRang td:hover {
            color: #ff0000;
        }

        .FieldRadioRang td label {
            width: 100%;
            float: right;
            text-align: center;
            cursor: pointer;
            border: solid 2px #ddd;
            border-radius: 50%;
            width: 56px;
            height: 56px;
            padding: 2px;
        }

            .FieldRadioRang td label:hover {
                border: solid 2px #ff0000;
            }

    .FieldRadioRang .ColorDetail,
    .ColorDetail {
        width: 56px;
        height: 56px;
        display: inline-block;
        background-repeat: no-repeat;
        cursor: pointer;
        position: relative;
        background-size: 100% 100%;
        border-radius: 50%;
    }

    .FieldRadioRang .Title {
        float: right;
        width: 100%;
        text-align: center;
        font-size: 8pt;
    }

.SizeTitle2 {
    width: calc(100% - 10px) !important;
    text-align: center !important;
}

.FieldRadio2 {
    font-size: 11pt;
}

.ColorItem {
    width: 10px;
    height: 10px;
    float: right;
    margin-top: 4px;
    margin-left: 5px;
    margin-right: 2px;
    border: 1px solid #ccc;
    cursor: pointer;
}


/* ============================================ */
/* 8. TABLE OF CONTENTS (فهرست مطالب)           */
/* ============================================ */

.table-of-contents {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 1.2rem;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.toc-list {
    list-style: decimal;
    padding-right: 20px;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

    .toc-item a {
        text-decoration: none;
        color: #0066cc;
    }

        .toc-item a:hover {
            text-decoration: underline;
        }


/* ============================================ */
/* 9. TYPOGRAPHY & HEADINGS (تایپوگرافی)       */
/* ============================================ */

article h2 {
    padding: 5px 15px;
    background: #fff2ec;
    border-right: 3px solid #ff6925;
    max-width: max-content;
    width: auto;
    text-align: right !important;
    line-height: 240%;
}


/* ============================================ */
/* 10. OTHER COMPONENTS (سایر کامپوننت‌ها)      */
/* ============================================ */

.BastanMenu {
    background-color: #ff0000;
    color: #fff;
    padding: 5px 15px;
    margin: 10px 0;
    border-radius: 10px;
}

article img {
    width: auto !important;
    max-width: 100% !important;
}

.ProductShowColor {
    margin-top: 0;
}

.ProductCompareItemTitle {
    font-weight: bold;
    color: #000;
}

.CategorySpecialProduct .ItemImage {
    height: 190px !important;
}

.HeaderTopMenu {
    box-shadow: 0px 5px 10px #ccc;
}

#owl-demo .item img {
    width: 70px;
    height: 70px;
}

.OrderRepairStep .Item {
    margin-top: 11px !important;
}


/* ============================================ */
/*-------------------------AdsHomePageGallery - Modern Version-------------------------*/
/* ============================================ */

/*-------------------------AdsHomePageGallery - Modern Version-------------------------*/
.ProductShow {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

    .ProductShow > .ItemAds {
        display: flex !important;
        flex-direction: column !important;
        width: 240px !important;
        max-width: calc(100% - 10px) !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        margin: 0 !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

        .ProductShow > .ItemAds:hover {
            transform: translateY(-5px) !important;
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
        }

        .ProductShow > .ItemAds .ItemImage {
            width: 100% !important;
            height: 200px !important;
            object-fit: cover !important;
            transition: transform 0.3s ease !important;
            display: block !important;
            background: #f0f0f0 !important;
            flex-shrink: 0 !important;
        }

        .ProductShow > .ItemAds:hover .ItemImage {
            transform: scale(1.05) !important;
        }

        .ProductShow > .ItemAds .ItemTitle {
            font-size: 14px !important;
            font-weight: 600 !important;
            color: #1a1a1a !important;
            margin: 10px 10px 5px 10px !important;
            padding: 0 !important;
            line-height: 1.4 !important;
            text-align: right !important;
            word-wrap: break-word !important;
            word-break: break-word !important;
            white-space: normal !important;
            height: auto !important;
            width: auto !important;
        }

        .ProductShow > .ItemAds:hover .ItemTitle {
            color: #e11d48 !important;
        }

        .ProductShow > .ItemAds .ItemTitle2 {
            font-size: 12px !important;
            font-weight: 400 !important;
            color: #6c757d !important;
            margin: 0 10px 12px 10px !important;
            padding: 0 !important;
            line-height: 1.5 !important;
            text-align: center !important;
            width: auto !important;
            float: none !important;
            word-wrap: break-word !important;
            word-break: break-word !important;
            white-space: normal !important;
            height: auto !important;
        }

/* موبایل */
@media (max-width: 640px) {
    .ProductShow {
        gap: 12px !important;
        padding: 10px !important;
        justify-content: space-between !important;
    }

        .ProductShow > .ItemAds {
            width: calc(50% - 8px) !important;
            min-width: 140px !important;
            max-width: calc(50% - 8px) !important;
            height: auto !important;
        }

            .ProductShow > .ItemAds .ItemImage {
                height: 160px !important;
            }

            .ProductShow > .ItemAds .ItemTitle {
                font-size: 12px !important;
                margin: 8px 8px 4px 8px !important;
            }

            .ProductShow > .ItemAds .ItemTitle2 {
                font-size: 11px !important;
                margin: 0 8px 10px 8px !important;
                line-height: 1.45 !important;
            }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    .ProductShow > .ItemAds {
        width: calc(50% - 6px) !important;
        min-width: 130px !important;
    }

        .ProductShow > .ItemAds .ItemImage {
            height: 140px !important;
        }

        .ProductShow > .ItemAds .ItemTitle2 {
            font-size: 10px !important;
            line-height: 1.4 !important;
        }
}

/* ============================================ */
/*-------------------------RepeaterIndexItem - Modern Version-------------------------*/
/* ============================================ */



.RepeaterIndexItem {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    height: auto !important;
}

    .RepeaterIndexItem .ItemAds {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 190px !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        margin: 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        height: auto !important;
    }

        .RepeaterIndexItem .ItemAds:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
        }

    .RepeaterIndexItem .ItemImage {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        display: block !important;
        object-fit: cover !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .RepeaterIndexItem .ItemAds:hover .ItemImage {
        transform: scale(1.03) !important;
    }

    .RepeaterIndexItem .ItemTitle {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        margin: 12px 0 6px 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
        text-align: center !important;
        width: 100% !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        background: transparent !important;
    }

    .RepeaterIndexItem .ItemAds:hover .ItemTitle {
        color: #e11d48 !important;
    }

    .RepeaterIndexItem .ItemDesc {
        font-size: 12px !important;
        font-weight: 400 !important;
        color: #64748b !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.5 !important;
        text-align: center !important;
        width: 100% !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        background: transparent !important;
    }

/* تبلت */
@media (max-width: 768px) {
    .RepeaterIndexItem {
        gap: 16px !important;
        padding: 8px !important;
    }

        .RepeaterIndexItem .ItemAds {
            width: calc(33.33% - 12px) !important;
            min-width: 160px !important;
            padding: 10px !important;
        }

        .RepeaterIndexItem .ItemTitle {
            font-size: 13px !important;
            margin: 10px 0 4px 0 !important;
        }

        .RepeaterIndexItem .ItemDesc {
            font-size: 11px !important;
        }
}

/* موبایل */
@media (max-width: 640px) {
    .RepeaterIndexItem {
        gap: 12px !important;
        justify-content: space-between !important;
    }

        .RepeaterIndexItem .ItemAds {
            width: calc(50% - 8px) !important;
            min-width: 140px !important;
            padding: 10px !important;
        }

        .RepeaterIndexItem .ItemTitle {
            font-size: 12px !important;
            margin: 8px 0 4px 0 !important;
        }

        .RepeaterIndexItem .ItemDesc {
            font-size: 10px !important;
            line-height: 1.4 !important;
        }
}

/* موبایل خیلی کوچک */
@media (max-width: 400px) {
    .RepeaterIndexItem .ItemAds {
        width: calc(50% - 6px) !important;
        min-width: 130px !important;
        padding: 8px !important;
    }
}


/*-------------------------Owl Carousel Support for RepeaterIndexItem-------------------------*/

/* تنظیم کانتینر اصلی */
.RepeaterIndexItem {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

    /* تنظیم owl-carousel برای نمایش افقی */
    .RepeaterIndexItem .owl-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 20px !important;
        padding: 10px 15px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

        /* مخفی کردن اسکرولبار در Webkit (اختیاری) */
        .RepeaterIndexItem .owl-carousel::-webkit-scrollbar {
            height: 4px !important;
        }

        .RepeaterIndexItem .owl-carousel::-webkit-scrollbar-track {
            background: #f1f1f1 !important;
            border-radius: 10px !important;
        }

        .RepeaterIndexItem .owl-carousel::-webkit-scrollbar-thumb {
            background: #c1c1c1 !important;
            border-radius: 10px !important;
        }

            .RepeaterIndexItem .owl-carousel::-webkit-scrollbar-thumb:hover {
                background: #a8a8a8 !important;
            }

        /* آیتم‌های داخل carousel */
        .RepeaterIndexItem .owl-carousel .ItemAds {
            flex: 0 0 auto !important;
            width: 190px !important;
            scroll-snap-align: start !important;
        }

        /* حذف استایل‌های اضافی owl که ممکنه تداخل کنن */
        .RepeaterIndexItem .owl-carousel .owl-stage,
        .RepeaterIndexItem .owl-carousel .owl-stage-outer,
        .RepeaterIndexItem .owl-carousel .owl-wrapper,
        .RepeaterIndexItem .owl-carousel .owl-item {
            display: flex !important;
            flex-wrap: nowrap !important;
        }

        .RepeaterIndexItem .owl-carousel .owl-stage-outer {
            overflow: visible !important;
            width: 100% !important;
        }

        .RepeaterIndexItem .owl-carousel .owl-item {
            float: none !important;
            width: auto !important;
        }

    /* دکمه‌های قبلی/بعدی owl (اگه وجود داره) */
    .RepeaterIndexItem .owl-nav {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        pointer-events: none !important;
        z-index: 10 !important;
    }

        .RepeaterIndexItem .owl-nav button {
            pointer-events: auto !important;
            background: rgba(0,0,0,0.5) !important;
            color: white !important;
            border: none !important;
            border-radius: 50% !important;
            width: 36px !important;
            height: 36px !important;
            font-size: 20px !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
        }

            .RepeaterIndexItem .owl-nav button:hover {
                background: rgba(0,0,0,0.8) !important;
                transform: scale(1.05) !important;
            }

/* ریسپانسیو برای موبایل */
@media (max-width: 640px) {
    .RepeaterIndexItem .owl-carousel {
        gap: 12px !important;
        padding: 8px 12px !important;
    }

        .RepeaterIndexItem .owl-carousel .ItemAds {
            width: 160px !important;
        }

    .RepeaterIndexItem .owl-nav button {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }
}










.CommentFaceBook .DivForm .TextBoxTitle {
    display: inline-block !important;
}

textarea.TextBoxTitle {
    min-height: 120px;
}


/* ============================================ */
/* 6. PRODUCT INDEX REPEATER (تکرارکننده محصول) */
/* ============================================ */

.ProductIndexRepeaterDataList .Item .ItemImageLink {
    height: auto !important;
    margin-top: 5px !important;
}

.ProductIndexRepeaterDataList .Item .ItemImage {
    width: 95% !important;
    max-height: none !important;
    border-radius: 10px 10px 0 0 !important;
    min-height: 100px !important;
    max-width: none !important;
}

.ProductIndexRepeaterDataList .Item {
    height: 328px !important;
    display: inline-block !important;
}

    .ProductIndexRepeaterDataList .Item .CheckBoxMoghayese {
        width: 63px !important;
    }

@media (max-width: 600px) {
    .ProductIndexRepeaterDataList .Item .ItemImage {
        min-height: 150px !important;
    }
}



.ProductIndexRepeaterDataList .Item .ItemType2Box .ItemImageLink .ItemImage2 {
    display: none !important;
}

.ProductIndexRepeaterDataList .Item .ItemType2Box:hover .ItemImageLink .ItemImage {
    display: none !important;
}

.ProductIndexRepeaterDataList .Item .ItemType2Box:hover .ItemImageLink .ItemImage2 {
    display: inline-block !important;
}

.ProductIndexRepeaterDataList .Item .ItemTitle2 {
    display: block !important;
}


.CategorySpecialProduct .Item .ItemImage2 {
    display: none;
}

.CategorySpecialProduct .Item:hover .ItemImage {
    display: none !important;
}

.CategorySpecialProduct .Item:hover .ItemImage2 {
    display: inline-block !important;
}

.CategorySpecialProduct .ItemImage {
    max-width: calc(100% - 20px) !important;
}


.ProductIndexRepeaterDataList {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(194px, 1fr)) !important;
    gap: 5px 5px !important; /* 20px عمودی - 10px افقی */
    row-gap: 15px !important; /* فقط فاصله عمودی بین سطرها */
    direction: rtl !important;
}


@media (max-width: 480px) {
    .ProductIndexRepeaterDataList {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 10px !important; /* 20px عمودی - 10px افقی */
        row-gap: 25px !important; /* فقط فاصله عمودی بین سطرها */
    }

        .ProductIndexRepeaterDataList .Item {
            width: auto !important;
            height: auto !important;
            float: none !important;
            border: solid 2px #eee !important;
        }
}


.ProductIndexRepeaterDataList .Item {
    display: flex !important;
    flex-direction: column !important;
    min-height: 200px;
    height: 100% !important;
    width: auto !important;
    margin: 0 !important;
    padding-bottom: 10px !important;
}

    /* هم اندازه کردن محتوای داخل */
    .ProductIndexRepeaterDataList .Item .ItemType2Box {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .ProductIndexRepeaterDataList .Item .ItemTitle {
        font-weight: 500 !important;
        color: #000 !important;
        width: calc(100% - 10px) !important;
        padding: 0 5px !important;
    }

    .ProductIndexRepeaterDataList .Item .ItemPrice1 {
        height: auto !important;
        font-weight: 600 !important;
        font-size: 12pt !important;
    }

    .ProductIndexRepeaterDataList .Item .ItemTitle2 {
        line-height: 150% !important;
        height: auto !important;
        width: calc(100% - 10px) !important;
        padding: 0 5px !important;
        margin-top: 5px !important;
        color: #555 !important;
    }

    .ProductIndexRepeaterDataList .Item .ItemTitle3 {
        color: #f49020 !important;
    }
/* استایل پیجینگ - در یک خط زیر محصولات */
.Paging {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    direction: rtl !important;
    margin-top: 30px !important;
    display: block !important;
    width: 100% !important;
}



.ProductIndexRepeaterDataList .Item .GiftProduct2 {
    display: block !important;
    height: 34px !important;
    position: absolute !important;
    width: 34px !important;
    z-index: 2 !important;
    top: 70px !important;
    right: 15px !important;
}

.ProductIndexRepeaterDataList .Item .GiftProduct3 {
    display: block !important;
    height: 34px !important;
    position: absolute !important;
    width: 34px !important;
    z-index: 2 !important;
    top: 120px !important;
    right: 15px !important;
}

.ProductIndexRepeaterDataList .Item .GiftProduct4 {
    display: block !important;
    height: 34px !important;
    position: absolute !important;
    width: 34px !important;
    z-index: 2 !important;
    top: 120px !important;
    left: 15px !important;
}


.CategorySpecialProduct .Item .GiftProduct2 {
    display: block !important;
    height: 34px !important;
    position: absolute !important;
    width: 34px !important;
    z-index: 2 !important;
    top: 70px !important;
    right: 15px !important;
}

.CategorySpecialProduct .Item .GiftProduct3 {
    display: block !important;
    height: 34px !important;
    position: absolute !important;
    width: 34px !important;
    z-index: 2 !important;
    top: 120px !important;
    right: 15px !important;
}

.CategorySpecialProduct .Item .GiftProduct4 {
    display: block !important;
    height: 34px !important;
    position: absolute !important;
    width: 34px !important;
    z-index: 2 !important;
    top: 120px !important;
    left: 15px !important;
}

footer {
    float: none !important;
}

.CategorySpecialProduct .Item {
    padding-bottom: 10px !important;
}

.ProductIndexRepeaterDataList .Item .SpecialHaraji {
    right: calc(50% - 16px) !important;
}

.CategorySpecialProduct .Item .SpecialHaraji {
    right: calc(50% - 16px) !important;
}

.ProductIndexRepeaterDataList {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    direction: rtl !important;
}

.ProductShowColorItem {
    margin-top: 10px !important;
}

.ProductShowColor {
    height: auto !important;
}
/* تبلت - ۴ تا */
@media (max-width: 1200px) {
    .ProductIndexRepeaterDataList {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* تبلت کوچک - ۳ تا */
@media (max-width: 992px) {
    .ProductIndexRepeaterDataList {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* موبایل بزرگ - ۲ تا */
@media (max-width: 768px) {
    .ProductIndexRepeaterDataList {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* موبایل کوچک - ۱ تا (اختیاری) */
@media (max-width: 480px) {
    .ProductIndexRepeaterDataList {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}




/* ============================================
   استایل‌های مشترک صفحات احراز هویت
   (ورود، ثبت‌نام، ویرایش، فراموشی رمز)
   ============================================ */

/* ---------- کانتینر اصلی ---------- */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    direction: rtl;
}

/* ---------- تب‌ها ---------- */
.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    user-select: none;
}

    .auth-tab.active {
        color: #4a90e2;
        border-bottom-color: #4a90e2;
        background: #fff;
    }

    .auth-tab:hover:not(.active) {
        color: #4a90e2;
        background: #f1f3f5;
    }

/* ---------- پنل‌ها ---------- */
.auth-panel {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.auth-panelEdit {
    display: block;
}

.auth-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- عنوان ---------- */
.auth-title {
    font-size: 20px;
    font-weight: bold;
    color: #2d3748;
    padding: 25px 30px 0 30px;
    text-align: center;
}

    .auth-title i {
        color: #4a90e2;
        margin-left: 10px;
    }

/* ---------- توضیحات ---------- */
.auth-desc {
    color: #718096;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.8;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
    border-right: 4px solid #4a90e2;
}

/* ---------- فیلدهای فرم ---------- */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #4a5568;
        margin-bottom: 8px;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

    .form-control:focus {
        outline: none;
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
    }

    .form-control:disabled {
        background: #f7fafc;
        cursor: not-allowed;
    }

/* ---------- دکمه‌ها ---------- */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .btn-auth:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(74,144,226,0.3);
    }

    .btn-auth:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* ---------- پیام‌ها ---------- */
.error-msg {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.success-msg {
    color: #38a169;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.warning-msg {
    color: #e67e22;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.text-danger {
    color: #e53e3e;
}

/* ---------- کپچا ---------- */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .captcha-row .form-control {
        flex: 1;
    }

.captcha-img {
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
}

    .captcha-img:hover {
        border-color: #4a90e2;
    }

/* ---------- فوتر ---------- */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #718096;
}

    .auth-footer a {
        color: #4a90e2;
        text-decoration: none;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

/* ---------- سوئیچ (چک‌باکس حقوقی) ---------- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 10px;
    vertical-align: middle;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: #fff;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #4a90e2;
}

    input:checked + .slider:before {
        transform: translateX(24px);
    }



/* ---------- بخش حقوقی ---------- */
.divLegal {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 10px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 600px) {
    .auth-container {
        margin: 20px;
    }

    .auth-panel {
        padding: 20px;
    }

    .auth-title {
        font-size: 18px;
        padding: 20px 20px 0 20px;
    }

    .auth-tab {
        padding: 14px 15px;
        font-size: 14px;
    }

    .auth-desc {
        font-size: 13px;
        padding: 12px;
    }
}



/* ========================================
   استایل‌های نوار کناری سبد خرید
   ======================================== */

/* ---- نوار کناری ---- */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -480px; /* پنهان در ابتدا */
    width: 420px;
    height: 100%;
    background: #ffffff;
    box-shadow: 3px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

    /* حالت باز */
    .cart-sidebar.active {
        left: 0;
    }

    /* ---- اسکرول ---- */
    .cart-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .cart-sidebar::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 10px;
    }

    .cart-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

/* ---- هدر ---- */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 2px solid #f3f4f6;
    background: #fafafa;
    flex-shrink: 0;
}

.cart-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.3px;
}

.cart-close {
    font-size: 30px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0 8px;
    transition: all 0.25s ease;
    line-height: 1;
    user-select: none;
}

    .cart-close:hover {
        color: #ef4444;
        transform: rotate(90deg);
    }

/* ---- محتوای آیتم‌ها ---- */
.cart-items-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* ---- آیتم محصول ---- */
.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background 0.2s ease;
}

    .cart-item:hover {
        background: #fafbfc;
        margin: 0 -12px;
        padding: 14px 12px;
        border-radius: 8px;
    }

.cart-item-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #f9fafb;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-meta {
    font-size: 13px;
    color: #6b7280;
}

.cart-item-price {
    color: #059669;
    font-weight: 600;
}

.cart-item-color,
.cart-item-size {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ---- پیام خالی ---- */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.cart-empty-icon {
    font-size: 52px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.cart-empty p {
    font-size: 15px;
    margin: 0;
    color: #9ca3af;
}

/* ---- فوتر با جمع کل و دکمه‌ها ---- */
.cart-footer {
    flex-shrink: 0;
    padding: 18px 24px 22px;
    border-top: 2px solid #f3f4f6;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding: 0 4px;
}

.cart-total-price {
    color: #059669;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-item-color .ColorDetail {
    width: 18px !important;
    height: 18px !important;
    border: solid 1px #000 !important;
}

/* ---- دکمه مشاهده و ویرایش ---- */
.btn-cart-view {
    flex: 1;
    padding: 12px 16px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-align: center;
    font-family: inherit;
}

    .btn-cart-view:hover {
        background: #e5e7eb;
        border-color: #9ca3af;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .btn-cart-view:active {
        transform: translateY(0);
    }

/* ---- دکمه تسویه ---- */
.btn-cart-checkout {
    flex: 1;
    padding: 12px 16px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s ease;
    text-align: center;
    font-family: inherit;
}

    .btn-cart-checkout:hover {
        background: #047857;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    }

    .btn-cart-checkout:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    }

/* ---- دکمه افزودن به سبد خرید (درون محصول) ---- */
.btn-add-to-cart {
    padding: 10px 28px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .btn-add-to-cart:hover {
        background: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    }

    .btn-add-to-cart:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    }

    .btn-add-to-cart:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

/* ---- overlay ---- */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

    .cart-overlay.active {
        display: block;
    }

/* ---- انیمیشن‌ها ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   ریسپانسیو (موبایل و تبلت)
   ======================================== */

/* تبلت و موبایل بزرگ */
@media screen and (max-width: 768px) {
    .cart-sidebar {
        width: 340px;
        left: -380px;
    }

    .cart-header {
        padding: 14px 18px;
    }

    .cart-title {
        font-size: 16px;
    }

    .cart-items-wrapper {
        padding: 12px 16px;
    }

    .cart-item {
        padding: 12px 0;
    }

    .cart-item-image {
        width: 52px;
        height: 52px;
    }

    .cart-item-title {
        font-size: 13px;
    }

    .cart-footer {
        padding: 14px 18px 18px;
    }

    .cart-total {
        font-size: 14px;
    }

    .cart-total-price {
        font-size: 16px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-cart-view,
    .btn-cart-checkout {
        padding: 11px 14px;
        font-size: 12px;
    }
}

/* موبایل کوچک */
@media screen and (max-width: 375px) {
    .cart-sidebar {
        width: 100%;
        left: -100%;
        border-radius: 0;
    }

        .cart-sidebar.active {
            left: 0;
        }

    .cart-header {
        padding: 12px 16px;
    }

    .cart-title {
        font-size: 15px;
    }

    .cart-items-wrapper {
        padding: 10px 14px;
    }

    .cart-item {
        padding: 10px 0;
        gap: 10px;
    }

    .cart-item-image {
        width: 48px;
        height: 48px;
    }

    .cart-item-title {
        font-size: 12px;
    }

    .cart-item-meta {
        font-size: 11px;
    }

    .cart-footer {
        padding: 12px 14px 16px;
    }

    .cart-total {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .cart-total-price {
        font-size: 15px;
    }

    .btn-cart-view,
    .btn-cart-checkout {
        padding: 10px 12px;
        font-size: 11px;
        border-radius: 6px;
    }

    .cart-empty-icon {
        font-size: 40px;
    }

    .cart-empty p {
        font-size: 13px;
    }
}

/* ---- تخفیف ---- */
.cart-item-discount {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 2px;
}

/* ---- آپشن‌ها ---- */
.cart-item-options {
    margin-top: 4px;
}

.cart-item-option {
    font-size: 11px;
    color: #6b7280;
    padding: 2px 0;
}

.cart-item-options-relative {
    margin-top: 2px;
}

.cart-item-option-relative {
    font-size: 11px;
    color: #6b7280;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    display: inline-block;
    margin: 2px 0;
}

/* ---- آیتم کامل با جزئیات بیشتر ---- */
.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: flex-start; /* تغییر از center به flex-start */
    transition: background 0.2s ease;
}

    .cart-item:hover {
        background: #fafbfc;
        margin: 0 -12px;
        padding: 14px 12px;
        border-radius: 8px;
    }

.cart-item-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #f9fafb;
    margin-top: 4px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-meta {
    font-size: 13px;
    color: #6b7280;
}

.cart-item-price {
    color: #059669;
    font-weight: 600;
}

.cart-item-color,
.cart-item-size {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.cart-item-discount {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 2px;
}

.cart-item-options {
    margin-top: 4px;
}

.cart-item-option {
    font-size: 11px;
    color: #6b7280;
    padding: 2px 0;
}

.cart-item-options-relative {
    margin-top: 2px;
}

.cart-item-option-relative {
    font-size: 11px;
    color: #6b7280;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    display: inline-block;
    margin: 2px 4px 2px 0;
}


/* ---- تسویه نهایی ---- */

.address-shipping-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.address-section,
.shipping-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    min-width: 0; /* جلوگیری از سرریز شدن */
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
    width: 100%;
}

/* ریسپانسیو برای موبایل */
@media screen and (max-width: 768px) {
    .address-shipping-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .address-section,
    .shipping-section {
        padding: 15px;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* برای موبایل‌های خیلی کوچک */
@media screen and (max-width: 480px) {
    .address-shipping-wrapper {
        padding: 5px;
        gap: 10px;
    }

    .address-section,
    .shipping-section {
        padding: 10px;
        border-radius: 5px;
    }
}



/* ============================================
   استایل‌های روش‌های ارسال - Shipping Methods
   ============================================ */

/* کانتینر اصلی روش‌های ارسال */
.shipping-methods-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* هر آیتم روش ارسال */
.shipping-method-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .shipping-method-item:hover {
        border-color: #c0c0c0;
        background: #fafafa;
    }

/* حالت فعال (انتخاب شده) */
.shipping-method-active {
    border-color: #4CAF50 !important;
    background: #f0faf0 !important;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.15);
}

/* تصویر روش ارسال */
.shipping-method-pic {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .shipping-method-pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* اطلاعات روش ارسال */
.shipping-method-info {
    flex: 1;
    min-width: 0;
}

.shipping-method-radio {
    display: none;
}

.shipping-method-info label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: block;
    margin-bottom: 4px;
}

.shipping-method-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* بخش قیمت */
.shipping-method-price {
    flex: 0 0 auto;
    text-align: left;
    min-width: 80px;
}

.shipping-price-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.shipping-price-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.shipping-method-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: block;
    margin-bottom: 4px;
}
/* ============================================
   ریسپانسیو برای موبایل
   ============================================ */

@media screen and (max-width: 768px) {
    .shipping-method-item {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 10px;
    }

    .shipping-method-pic {
        flex: 0 0 45px;
        width: 45px;
        height: 45px;
    }

    .shipping-method-info {
        flex: 1 1 100%;
        order: 2;
        text-align: center;
    }

        .shipping-method-info label {
            font-size: 14px;
        }

    .shipping-method-desc {
        font-size: 12px;
    }

    .shipping-method-price {
        flex: 0 0 auto;
        order: 1;
        margin-right: auto;
    }

    .shipping-price-value {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .shipping-method-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .shipping-method-pic {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .shipping-method-info label {
        font-size: 13px;
    }

    .shipping-method-desc {
        font-size: 11px;
    }

    .shipping-price-value {
        font-size: 13px;
    }
}

/* استایل پیام خطا */
.ErrorUserAddress2 {
    display: none;
    color: #dc3545;
    font-size: 14px;
    padding: 10px 15px;
    background: #fde8e8;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 15px;
}



/* استایل بخش تخفیف */
.discount-box {
    margin-bottom: 20px;
}

.discount-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

    .discount-header:hover {
        background-color: #f0f0f0;
    }

.discount-toggle-icon {
    float: left;
    transition: transform 0.3s ease;
    font-size: 14px;
    margin-right: 10px;
}

    .discount-toggle-icon.open {
        transform: rotate(180deg);
    }

.discount-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

    /* انیمیشن باز و بسته شدن */
    .discount-content.open {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    .discount-content.closed {
        display: none !important;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}





/* ============================================
   دکمه پرداخت و تکمیل خرید
   ============================================ */

.payment-button-wrapper {
    text-align: center;
    margin: 20px 0 10px 0;
    width: 100%;
}

.payment-submit-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 14px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    width: 100%;
    max-width: 100%;
}

    .payment-submit-btn:hover {
        background: #218838;
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
        transform: translateY(-2px);
    }

    .payment-submit-btn:active {
        transform: translateY(0px);
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }

    .payment-submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

.payment-btn-subtext {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

/* ریسپانسیو */
@media screen and (max-width: 768px) {
    .payment-submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .payment-submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}










.btn-official-factor-user {
    display: inline-block;
    background: #8e44ad;
    color: #fff;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-official-factor-user:hover {
        background: #732d91;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
        text-decoration: none;
    }




    /*-------------------------FieldDynamic - Modern Version (Only Visual, No Layout Change)-------------------------*/

/* فقط ظاهر فیلدها - بدون تغییر در float یا display */
.FieldTitle {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    letter-spacing: 0.3px !important;
}

.FieldTextBox {
    background: #ffffff !important;
    border: 1px solid #aaa !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    max-width: calc(100% - 7px);
}

.FieldTextBoxAddress {
    float: right;
    margin-right: 5px;
    background: #ffffff !important;
    border: 1px solid #aaa !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    width: 800px !important;
    max-width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
}

    .FieldTextBox:focus, .FieldTextBoxAddress:focus {
        outline: none !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.1) !important;
    }

.FieldTextBoxArea {
    border-radius: 8px !important;
    font-family: inherit !important;
    resize: vertical !important;
}

.FieldTextBoxNumber {
    text-align: center !important;
}

.FieldDropDownList {
    background: #ffffff !important;
    border: 1px solid #aaa !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

    .FieldDropDownList:focus {
        outline: none !important;
        border-color: #3b82f6 !important;
    }

.FieldRadioButton,
.FieldCheckBox {
    accent-color: #3b82f6 !important;
    cursor: pointer !important;
}

    .FieldRadioButton label,
    .FieldCheckBox label {
        color: #475569 !important;
        font-size: 13px !important;
    }

.FieldButton {
    background: #1e293b !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    width: auto !important;
}

    .FieldButton:hover {
        background: #0f172a !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }

.FieldButtonDownload {
    background: #10b981 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

    .FieldButtonDownload:hover {
        background: #059669 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        color: #ffffff !important;
    }

.FieldFileUpload {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

    .FieldFileUpload:hover {
        border-color: #3b82f6 !important;
        background: #eff6ff !important;
    }

.FieldCaptcha {
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border: 1px solid #e2e8f0 !important;
}

.Validation, .ValidationNormal {
    color: #ef4444;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.ValidationRow {
    background: #fef2f2 !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    color: #dc2626;
    font-size: 13px !important;
    display: inline-block !important;
    width: auto !important;
}

.ValidationRowLogin {
    color: #ef4444;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.FieldUnit {
    color: #94a3b8 !important;
    font-size: 12px !important;
}

.SpanMoney {
    background: #ecfdf5 !important;
    color: #10b981 !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.SpanTitleSearch {
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.SpanRegister {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

/*-------------------------FieldDynamic - Fix TextArea Width-------------------------*/

/* تنظیم عرض textarea مثل textbox های دیگر */
.FieldTextBoxArea {
    width: 250px !important;
    max-width: 100% !important;
    min-height: 80px !important;
    resize: vertical !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

/* اگر textarea داخل کلاس خاصی هست */
textarea.FieldTextBox {
    width: 800px !important;
    max-width: calc(100% - 20px) !important;
    min-height: 200px !important;
}

/* برای اطمینان از هماهنگی با textbox های معمولی */
.FieldTextBoxFormsaz {
    width: 250px !important;
    box-sizing: border-box !important;
}

/* ریسپانسیو برای موبایل - عرض کامل بشه */
@media (max-width: 640px) {
    .FieldTextBoxArea,
    textarea.FieldTextBox,
    .FieldTextBox {
        width: calc(100% - 26px) !important;
        max-width: 100% !important;
    }
}










.CommentFaceBook .DivForm .TextBoxTitle {
    display: inline-block !important;
}

textarea.TextBoxTitle {
    min-height: 120px;
}


.validation-summary {
    background-color: #fff3f3;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #d63031;
    font-size: 14px;
    display: block;
    text-align:justify;
}

.validation-summary ul {
    margin: 10px 0 0 0;
    padding-right: 20px;
    list-style-type: disc;
}

.validation-summary li {
    margin: 5px 0;
    color: #d63031;
}

.validation-header {
    font-weight: bold;
    font-size: 15px;
    color: #c0392b;
}

.validation-error {
    color: #e74c3c;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}




/* ===== پترن‌های آماده (با SVG) ===== */
.pattern-dots-blue {
    background: #e3f2fd url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%2390caf9" fill-opacity="0.3"%3E%3Ccircle cx="20" cy="20" r="3"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

.pattern-dots-pink {
    background: #fce4ec url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23f48fb1" fill-opacity="0.3"%3E%3Ccircle cx="20" cy="20" r="3"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

.pattern-lines-green {
    background: #e8f5e9 url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg stroke="%2381c784" stroke-width="1.5" fill="none" opacity="0.3"%3E%3Cpath d="M10 10 L50 50"/%3E%3Cpath d="M10 20 L50 60"/%3E%3Cpath d="M20 10 L60 50"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

.pattern-grid-blue {
    background: #bbdefb url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="20" height="20" fill="%2364b5f6" fill-opacity="0.15"/%3E%3Crect x="20" y="20" width="20" height="20" fill="%2364b5f6" fill-opacity="0.15"/%3E%3C/svg%3E') repeat !important;
}

.pattern-triangle-orange {
    background: #fff3e0 url('data:image/svg+xml,%3Csvg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M25 5 L35 30 L15 30 Z" fill="%23ffa726" fill-opacity="0.12"/%3E%3C/svg%3E') repeat !important;
}

.pattern-diamond-purple {
    background: #f3e5f5 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M20 0 L30 20 L20 40 L10 20 Z" fill="%23ab47bc" fill-opacity="0.12"/%3E%3C/svg%3E') repeat !important;
}

.pattern-dots-lightblue {
    background: #e1f5fe url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="15" cy="15" r="4" fill="%234fc3f7" fill-opacity="0.2"/%3E%3C/svg%3E') repeat !important;
}

.pattern-lines-gold {
    background: #fff8e1 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg stroke="%23ffd54f" stroke-width="1.5" fill="none" opacity="0.4"%3E%3Cline x1="0" y1="40" x2="40" y2="0"/%3E%3Cline x1="20" y1="40" x2="60" y2="0"/%3E%3Cline x1="-20" y1="40" x2="20" y2="0"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

.pattern-circles-pink {
    background: #fce4ec url('data:image/svg+xml,%3Csvg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="25" cy="25" r="8" stroke="%23f06292" stroke-width="2" fill="none" opacity="0.15"/%3E%3C/svg%3E') repeat !important;
}

.pattern-squares-blue {
    background: #e8eaf6 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="20" height="20" fill="%233f51b5" fill-opacity="0.08"/%3E%3C/svg%3E') repeat !important;
}

.pattern-dots-gold {
    background: #fffde7 url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="15" cy="15" r="3" fill="%23ffd54f" fill-opacity="0.3"/%3E%3C/svg%3E') repeat !important;
}

.pattern-circles-blue {
    background: #e3f2fd url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%2390caf9" fill-opacity="0.2"%3E%3Ccircle cx="10" cy="10" r="6"/%3E%3Ccircle cx="50" cy="30" r="8"/%3E%3Ccircle cx="30" cy="55" r="5"/%3E%3Ccircle cx="55" cy="10" r="7"/%3E%3C/g%3E%3C/svg%3E') repeat fixed !important;
    background-size: 120px 120px !important;
}

.pattern-stars-purple {
    background: #f3e5f5 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M20 0 L24 14 L39 14 L27 23 L31 38 L20 29 L9 38 L13 23 L1 14 L16 14 Z" fill="%23ce93d8" fill-opacity="0.15"/%3E%3C/svg%3E') repeat !important;
}

.pattern-waves-blue {
    background: #e0f7fa url('data:image/svg+xml,%3Csvg width="50" height="30" viewBox="0 0 50 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 20 Q12.5 5 25 20 Q37.5 35 50 20" stroke="%234fc3f7" stroke-width="2" fill="none" opacity="0.25"/%3E%3C/svg%3E') repeat !important;
}

.pattern-dots-color {
    background: #f5f5f5 url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="10" cy="10" r="3" fill="%23ff6b6b" fill-opacity="0.2"/%3E%3Ccircle cx="20" cy="20" r="3" fill="%234ecdc4" fill-opacity="0.2"/%3E%3Ccircle cx="0" cy="20" r="3" fill="%23ffe66d" fill-opacity="0.2"/%3E%3C/svg%3E') repeat !important;
}

.pattern-honeycomb {
    background: #fffde7 url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M30 0 L60 15 L60 45 L30 60 L0 45 L0 15 Z" fill="%23ffd54f" fill-opacity="0.08" stroke="%23ffd54f" stroke-width="0.5"/%3E%3C/svg%3E') repeat !important;
}

.pattern-lines-vertical {
    background: #eceff1 url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cline x1="15" y1="0" x2="15" y2="30" stroke="%23b0bec5" stroke-width="1.5" opacity="0.2"/%3E%3C/svg%3E') repeat !important;
}

.pattern-squares-alt {
    background: #f5f5f5 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Crect x="0" y="0" width="20" height="20" fill="%23e0e0e0" opacity="0.3"/%3E%3Crect x="20" y="20" width="20" height="20" fill="%23e0e0e0" opacity="0.3"/%3E%3C/svg%3E') repeat !important;
}

.pattern-lines-horizontal {
    background: #fafafa url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cline x1="0" y1="15" x2="30" y2="15" stroke="%23e0e0e0" stroke-width="1.5" opacity="0.3"/%3E%3C/svg%3E') repeat !important;
}

.pattern-triangles-blue {
    background: #e3f2fd url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpolygon points="20,5 35,35 5,35" fill="%2364b5f6" fill-opacity="0.08"/%3E%3C/svg%3E') repeat !important;
}

.pattern-circles-purple {
    background: #f3e5f5 url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="30" cy="30" r="10" fill="%23ab47bc" fill-opacity="0.06"/%3E%3Ccircle cx="0" cy="0" r="10" fill="%23ab47bc" fill-opacity="0.06"/%3E%3Ccircle cx="60" cy="0" r="10" fill="%23ab47bc" fill-opacity="0.06"/%3E%3Ccircle cx="0" cy="60" r="10" fill="%23ab47bc" fill-opacity="0.06"/%3E%3Ccircle cx="60" cy="60" r="10" fill="%23ab47bc" fill-opacity="0.06"/%3E%3C/svg%3E') repeat !important;
}

.pattern-dots-teal {
    background: #e0f2f1 url('data:image/svg+xml,%3Csvg width="35" height="35" viewBox="0 0 35 35" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="17.5" cy="17.5" r="4" fill="%2326a69a" fill-opacity="0.15"/%3E%3C/svg%3E') repeat !important;
}


/* ===== پترن‌های شرکتی و رسمی ===== */

/* 1. خطوط مورب ظریف - آبی شرکتی */
.pattern-corporate-lines {
    background: #f0f4f8 url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg stroke="%23b0c4de" stroke-width="0.5" fill="none" opacity="0.3"%3E%3Cpath d="M0 60 L60 0"/%3E%3Cpath d="M-20 60 L40 0"/%3E%3Cpath d="M20 60 L80 0"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

/* 2. نقطه‌های ظریف - خاکستری اداری */
.pattern-corporate-dots {
    background: #f5f7fa url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23c0c8d4" fill-opacity="0.25"%3E%3Ccircle cx="20" cy="20" r="1.5"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

/* 3. خطوط عمودی - آبی ملایم */
.pattern-corporate-vertical {
    background: #eef2f7 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cline x1="20" y1="0" x2="20" y2="40" stroke="%23d0dce8" stroke-width="0.8" opacity="0.4"/%3E%3C/svg%3E') repeat !important;
}

/* 4. شطرنجی ظریف - خاکستری */
.pattern-corporate-grid {
    background: #f8f9fb url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="20" height="20" fill="%23e8ecf1" fill-opacity="0.3"/%3E%3Crect x="20" y="20" width="20" height="20" fill="%23e8ecf1" fill-opacity="0.3"/%3E%3C/svg%3E') repeat !important;
}

/* 5. خطوط افقی - آبی بسیار ملایم */
.pattern-corporate-horizontal {
    background: #f2f6fa url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cline x1="0" y1="20" x2="40" y2="20" stroke="%23d5dfe9" stroke-width="0.8" opacity="0.4"/%3E%3C/svg%3E') repeat !important;
}

/* 6. لوزی‌های ظریف - آبی شرکتی */
.pattern-corporate-diamond {
    background: #f0f4fa url('data:image/svg+xml,%3Csvg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M25 5 L35 25 L25 45 L15 25 Z" fill="%23b8cce4" fill-opacity="0.15"/%3E%3C/svg%3E') repeat !important;
}

/* 7. خطوط مورب معکوس - آبی آسمانی */
.pattern-corporate-diagonal {
    background: #f0f4f8 url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg stroke="%23c5d5e8" stroke-width="0.5" fill="none" opacity="0.4"%3E%3Cpath d="M60 60 L0 0"/%3E%3Cpath d="M80 60 L20 0"/%3E%3Cpath d="M40 60 L-20 0"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

/* 8. مربع‌های توخالی - مدرن */
.pattern-corporate-squares {
    background: #f4f6f9 url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Crect x="5" y="5" width="20" height="20" fill="none" stroke="%23c8d6e5" stroke-width="0.8" opacity="0.3"/%3E%3C/svg%3E') repeat !important;
}

/* 9. نقطه‌های ریز - آبی مات */
.pattern-corporate-mini-dots {
    background: #f5f7fb url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23bccbdb" fill-opacity="0.2"%3E%3Ccircle cx="10" cy="10" r="1"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

/* 10. خطوط دوتایی - شیک */
.pattern-corporate-double-lines {
    background: #f2f5f9 url('data:image/svg+xml,%3Csvg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"%3E%3Cg stroke="%23ccd8e6" stroke-width="0.5" fill="none" opacity="0.3"%3E%3Cline x1="0" y1="15" x2="50" y2="15"/%3E%3Cline x1="0" y1="35" x2="50" y2="35"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

/* 11. مثلث‌های ظریف - آبی روشن */
.pattern-corporate-triangle {
    background: #eef3f8 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpolygon points="20,2 38,38 2,38" fill="%23b8cfe0" fill-opacity="0.08"/%3E%3C/svg%3E') repeat !important;
}

/* 12. راه‌های عمودی نازک - رسمی */
.pattern-corporate-stripes {
    background: #f4f7fb url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="2" height="30" fill="%23d0dce8" opacity="0.2"/%3E%3C/svg%3E') repeat !important;
}

/* 13. لانه زنبوری ملایم - مدرن شرکتی */
.pattern-corporate-honeycomb {
    background: #f0f4f9 url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M30 0 L60 15 L60 45 L30 60 L0 45 L0 15 Z" fill="%23c5d5e8" fill-opacity="0.06" stroke="%23c5d5e8" stroke-width="0.3"/%3E%3C/svg%3E') repeat !important;
}

/* 14. نقطه‌چین ظریف - آبی آرام */
.pattern-corporate-dash {
    background: #f2f6fb url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cg stroke="%23bdcfe0" stroke-width="1" stroke-dasharray="2 4" fill="none" opacity="0.3"%3E%3Cline x1="0" y1="20" x2="40" y2="20"/%3E%3Cline x1="20" y1="0" x2="20" y2="40"/%3E%3C/g%3E%3C/svg%3E') repeat !important;
}

/* 15. موج‌های ظریف - شرکتی */
.pattern-corporate-wave {
    background: #edf2f7 url('data:image/svg+xml,%3Csvg width="50" height="20" viewBox="0 0 50 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 15 Q12.5 5 25 15 Q37.5 25 50 15" stroke="%23bccfe0" stroke-width="0.8" fill="none" opacity="0.25"/%3E%3C/svg%3E') repeat !important;
}

/* 16. شطرنجی ۳D - مدرن شرکتی */
.pattern-corporate-3d-grid {
    background: #f0f4f8 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 20 L20 40 L40 20 L20 0 Z" fill="%23c8d8e8" fill-opacity="0.06"/%3E%3C/svg%3E') repeat !important;
}