﻿    
  :root{

            --brand:#550AE0;
            --brand-soft:#7B3BF0;
            --brand-tint:#edebfc;
            --ink:#1E1B2E;
            --muted:#6E6A82;
            --line: rgba(85,10,224,0.10);
            --page-bg:#FBFAFE;
            --glass-bg: rgba(255,255,255,0.72);
            --glass-bg-strong: rgba(255,255,255,0.88);
            --glass-border: rgba(85,10,224,0.14);
            --cols:2;
          }
        .nice-select ul
        {
         column-count: 2;
    column-gap: 0px;
        }

        @font-face {
    font-family: Shabnam;
    src: url(../fonts/shabnam/eot/Shabnam-Medium-FD.eot);
    src: url(../fonts/shabnam/eot/Shabnam-Medium-FD.eot?#iefix) format('embedded-opentype'), url(../fonts/shabnam/woff2/Shabnam-Medium-FD.woff2) format('woff2'), url(../fonts/shabnam/woff/Shabnam-Medium-FD.woff) format('woff'), url(../fonts/shabnam/ttf/Shabnam-Medium-FD.ttf) format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'IRANSansWeb';
    src: url('./fonts/IRANSansWeb.eot');
    src: url('./fonts/IRANSansWeb.eot#iefix')format('eot'), url('./fonts/IRANSansWeb.woff')format('woff'), url('./fonts/IRANSansWeb.ttf')format('truetype');
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'IRANSansWeb_Bold';
    src: url('./fonts/IRANSansWeb_Bold.eot');
    src: url('./fonts/IRANSansWeb_Bold.eot#iefix')format('eot'), url('./fonts/IRANSansWeb_Bold.woff')format('woff'), url('./fonts/IRANSansWeb_Bold.ttf')format('truetype');
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'IRANSansWeb_Medium';
    src: url('./fonts/IRANSansWeb_Medium.eot');
    src: url('./fonts/IRANSansWeb_Medium.eot#iefix')format('eot'), url('./fonts/IRANSansWeb_Medium.woff')format('woff'), url('./fonts/IRANSansWeb_Medium.ttf')format('truetype');
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'IRANSansWeb_Light';
    src: url('./fonts/IRANSansWeb_Light.eot');
    src: url('./fonts/IRANSansWeb_Light.eot#iefix')format('eot'), url('./fonts/IRANSansWeb_Light.woff')format('woff'), url('./fonts/IRANSansWeb_Light.ttf')format('truetype');
    font-weight: normal;
    font-style: normal
}

/* Fonts */
:root {
    --default-font:Shabnam, "IRANSansWeb", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: Shabnam,"IRANSansWeb", sans-serif;
    --nav-font: Shabnam,"IRANSansWeb", sans-serif;
    --pfamily:Shabnam, 'Rubik', sans-serif;
}


        .form-select.mycity {
            height: auto;
    background-color: var(--primary)!important; /* بنفش Bootstrap */
    color: #ffffff !important;             /* متن سفید */
    border: none;
    background-image:
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14l-4.796-5.481A.5.5 0 0 1 2.704 5h10.592a.5.5 0 0 1 .353.84l-4.796 5.481a.5.5 0 0 1-.706 0z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

/* ---- وقتی فوکوس یا باز می‌شود ---- */
.form-select.mycity:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
    background-color: var(--primary)!important;
    color: #ffffff !important;
}

/* ---- آیتم‌های لیست بازشونده ---- */
.form-select.mycity option {
    background-color: #ffffff; /* زمینه سفید */
    color: #000000;            /* متن مشکی */
}

/* ---- غیرفعال یا انتخاب نشده ---- */
.form-select.mycity option[value="0"] {
    color: #777;
}

/* ---- برای راست‌چین (در صورت نیاز) ---- */
html[dir="rtl"] .form-select.mycity {
    background-position: left 0.0rem center;
}




#sub_cat_modual .modal-dialog {
  max-width: 80vw;   /* عرض مودال: ۸۰٪ از عرض صفحه */
  width: 80vw;
  margin: auto;      /* وسط‌چین افقی */
}

/* محتوای مودال */
#sub_cat_modual .modal-content {
  background-color: #ffffff !important; /* پس‌زمینه سفید */
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  height: auto;       /* ارتفاع خودکار */
}

/* اطمینان از اینکه ارتفاع با محتوا تنظیم شود */
#sub_cat_modual .modal-body {
  background-color: #fff;
  max-height: none;
  overflow: visible;  /* جلوگیری از اسکرول بی‌دلیل */
  padding: 1.5rem;
}

/* در موبایل تمام عرض را بگیرد */
@media (max-width: 768px) {
  #sub_cat_modual .modal-dialog {
    max-width: 95vw;
    width: 95vw;
  }
}

/* MENU FirstPage Def1 */
/* ===================== ISOLATED NAV FRAME — glass/white pill ===================== */
.navwrap-def1 {
    position: sticky;
    top: 14px;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 14px 16px 0;
}

.navbar-def1 {
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 10px 24px -16px rgba(85,10,224,0.18);
}

.navbar-inner-def1 {
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 58px;
}

.navlist-def1 {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

    .navlist-def1 > li {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

.navlink-def1 {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 42px;
    padding: 0 13px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 11px;
    transition: background .18s ease, color .18s ease;
}

    .navlink-def1 .nico-def1 {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        color: var(--brand);
        opacity: .85;
    }

    .navlink-def1:hover, .navlink-def1:focus-visible, li.open-def1 > .navlink-def1 {
        /* color: var(--brand); */
        background: rgba(79, 94, 212, 0.08);
    }

.caret-def1 {
    width: 9px;
    height: 9px;
    transition: transform .2s ease;
    opacity: .7;
}

li.open-def1 .caret-def1 {
    transform: rotate(180deg);
}

.navlink-def1:focus-visible, .brand:focus-visible, .icon-btn:focus-visible, .drop-item:focus-visible, .cta-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media(max-width: 1140px) {
    .navwrap-def1 {
        display: none;
    }
}

/* ===================== DROPDOWN ===================== */
.dropdown-def1 {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 300px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 14px 32px -18px rgba(85,10,224,0.20);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s;
    will-change: transform, opacity;
    overflow: hidden;
}

.navlist-def1 > li.open-def1 > .dropdown-def1 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navlist-def1 > li.open-def1 > .navlink-def1 .caret-def1 {
    transform: rotate(180deg);
}

.dropdown-def1::before, .dropdown-def1::after {
    content: "";
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background: var(--page-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
}

.dropdown-def1::before {
    right: -10px;
}

.dropdown-def1::after {
    left: -10px;
}

.drop-head-def1 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px dashed var(--glass-border);
}

    .drop-head-def1 .hico-def1 {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--brand-tint);
        flex-shrink: 0;
    }

        .drop-head-def1 .hico-def1 svg {
            width: 16px;
            height: 16px;
            color: var(--brand);
        }

    .drop-head-def1 .cat-name-def1 {
        font-weight: 800;
        font-size: 14px;
        color: var(--ink);
        display: block;
    }

    .drop-head-def1 .cat-count-def1 {
        font-size: 11px;
        color: var(--muted);
        font-weight: 500;
    }

.drop-list-def1 {
    list-style: none;
    margin: 0;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(var(--cols, 1), 1fr);
    gap: 2px;
}

.drop-item-def1 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

    .drop-item-def1 .ico-def1 {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: var(--muted);
        transition: color .15s ease, transform .15s ease;
    }

    .drop-item-def1:hover {
        background: var(--brand-tint);
    }

        .drop-item-def1:hover .ico-def1 {
            color: var(--brand);
            transform: scale(1.1);
        }

.drop-foot-def1 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 16px 14px;
    border-top: 1px dashed var(--glass-border);
}

.view-all-def1 {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .view-all-def1 svg {
        width: 12px;
        height: 12px;
    }

.dropdown-def1.wide {
    min-width: 480px;
}

    .dropdown-def1.wide .drop-list-def1 {
        --cols:2;
    }


       html {
  scroll-behavior: smooth;
}

/* استایل فیلد نامعتبر */
.is-invalid {
    border-color: #dc3545 !important; /* قرمز ملایم استاندارد */
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* پیام خطای الزامی بودن زیر فیلد */
.invalid-feedback-custom {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: bold;
    /* اعمال انیمیشن چشمک‌زن */
    animation: blink-animation 1.2s infinite steps(2, start);
}

/* تعریف انیمیشن چشمک‌زن */
@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}
