@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb(FaNum).eot');
    src: url('../fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
    url('../fonts/IRANSansWeb(FaNum).woff2') format('woff2'),
    url('../fonts/IRANSansWeb(FaNum).woff') format('woff'),
    url('../fonts/IRANSansWeb(FaNum).ttf') format('truetype');
}
@font-face {
    font-family: 'Yekan';
    src: url('../fonts/yekan.eot');
    src: url('../fonts/yekan.eot?#iefix') format('embedded-opentype'),
    url('../fonts/yekan.woff') format('woff'),
    url('../fonts/yekan.ttf') format('truetype');
}
body {
    direction: rtl;
    padding: 0;
    margin: 0;
    font-family: 'IRANSansWeb';
    font-size: 14px;
    color: #333333;
    background:#F5F5F5;
}

a,a:hover,a:focus,figure,figure:hover,figcaption,i,i:hover,img,i{
    text-decoration: none;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    color: #000000;
}
a:hover,a:focus{
    color: #2151f1;

}

.header-menu a {
    color: #000000;
}
.header-menu a:hover {
    color: #2151f1;
}
.dropdown-menu a{
    color: #000000;
}

.dropdown-menu-custome {
    width: 100%;
    top: 46px;
    text-align: right;
}

.nav-item:hover > .dropdown-menu {
    display: block;
    color: black;
}

.design-service ul li {
    list-style: none;
    padding-bottom: 15px;
}

.details-card {
    border-radius: 15px;
}
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -1px;
    display: none;
    position: absolute;
}
.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.details-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border: 0px;
}

.search-input-wrapper {
    position: relative;
}
.search-input-wrapper input {
    padding-right: 35px; /* فضای کافی برای آیکون داخل input */
}
.search-input-wrapper .fa-search {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.search-input-wrapper .btn {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}


.carousel .item {
    color: #747d89;
    min-height: 325px;
    text-align: center;
    overflow: hidden;
}
.carousel .thumb-wrapper {
    padding: 25px 15px;
    background: #fff;
    border-radius: 6px;
    text-align: center;
    position: relative;
}
.carousel .item .img-box {
    height: 120px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}
.carousel .item img {
    max-width: 100%;
    max-height: 100%;
    display: inline-block;
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    left: 0;
    right: 0;
}
.carousel .item h4 {
    font-size: 18px;
}
.carousel .item h4, .carousel .item p, .carousel .item ul {
    margin-bottom: 5px;
}
.carousel .thumb-content .btn {
    color: #2151f1;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    background: none;
    border: 1px solid #0d6efd;
    padding: 6px 14px;
    margin-top: 5px;
    line-height: 16px;
    border-radius: 20px;
}
.carousel .thumb-content .btn:hover, .carousel .thumb-content .btn:focus {
    color: #fff;
    background: #2151f1;
    box-shadow: none;
}
.carousel .thumb-content .btn i {
    font-size: 14px;
    font-weight: bold;
    margin-left: 5px;
}
.carousel .item-price {
    font-size: 13px;
    padding: 2px 0;
}
.carousel .item-price strike {
    opacity: 0.7;
    margin-right: 5px;
}
.carousel-control-prev, .carousel-control-next {
    height: 44px;
    width: 40px;
    background: #2151f1;
    margin: auto 0;
    border-radius: 4px;
    opacity: 0.8;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    background: #0d6efd;
    opacity: 1;
}
.carousel-control-prev i, .carousel-control-next i {
    font-size: 36px;
    position: absolute;
    top: 50%;
    display: inline-block;
    margin: -19px 0 0 0;
    z-index: 5;
    left: 0;
    right: 0;
    color: #fff;
    text-shadow: none;
    font-weight: bold;
}
.carousel-control-prev i {
    margin-left: -2px;
}
.carousel-control-next i {
    margin-right: -4px;
}
.carousel-indicators {
    bottom: -50px;
}
.carousel-indicators li, .carousel-indicators li.active {
    width: 10px;
    height: 10px;
    margin: 4px;
    border-radius: 50%;
    border: none;
}
.carousel-indicators li {
    background: rgba(0, 0, 0, 0.2);
}
.carousel-indicators li.active {
    background: rgba(0, 0, 0, 0.6);
}
.carousel .wish-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 99;
    cursor: pointer;
    font-size: 16px;
    color: #abb0b8;
}
.carousel .wish-icon .fa-heart {
    color: #ff6161;
}

.services-section img {
    margin: auto;
    display: block;
}

.releated-posts i{
    padding-left: 5px;
}
.svg-inline--fa{
    vertical-align:-4px !important;
}
.releated-posts li a{
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px;
    font-size: 15px;
    display: block;
    box-shadow: 0 0 1px;
    -webkit-box-shadow: 0 0 1px;
    -moz-box-shadow: 0 0 1px;
    -o-box-shadow: 0 0 1px;
    margin: 5px 0;
    border-radius: 3px;
    color: #000000;
    background: #ffffff;
}
.releated-posts li a:hover{
    background-color: #0d6efd;
    color: #fff;
    padding-right: 10px;
}

.menu-user ul {
    list-style: none;
}

.menu-user a {
    color: #686e71;
}

.menu-user a:hover {
    color: #333333;
}
.cf::before, .cf::after{
    display: table;
    content: '';
}

.cf::after{
    clear:both;
}


.text-justify-custom {
    text-align: justify;
}

.hover-border {
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.hover-border:hover {
    border-color: #083ef5 !important;
}
.cf::before, .cf::after{
    display: table;
    content: '';
}

.cf::after{
    clear:both;
}
.text-justify-custom {
    text-align: justify;
}
/*owl indicator css*/
.carousel-indicator .owl-nav button{
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 2px !important;
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
}
.carousel-indicator.owl-theme .owl-nav [class*=owl-]:hover{
    background: #2556fa;
}
.carousel-indicator .owl-nav button:focus{
    outline: none;
    box-shadow: none;
}
.carousel-indicator .owl-nav button i{
    font-size: 22px;
    line-height: 28px;
}
.star-rating {
    direction: rtl;
}
.star {
    color: gray;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 22px;
}

.star:hover,
.star:hover ~ .star {
    color: gold;
}

.nav-pills .nav-link {
    color: #000 !important;
}

.nav-pills .nav-link:hover {
    color: #0d6efd !important;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.search-input-wrapper {
    position: relative;
}
.search-input-wrapper input {
    padding-right: 35px;
}

.search-input-wrapper .btn {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.nav-pills .nav-item:not(:last-child) {
    border-left: 1px solid #ccc;
    margin-left: 10px;
    padding-left: 10px;
}


.sidmenu {
    position: relative;
}

.sidmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.sidmenu ul li {
    position: relative;
}

.sub-menu ul {
    display: none;
    padding-left: 0;
    margin: 0;
    background: transparent;
    position: relative;
}

.sub-menu ul li {
    padding-right: 10px;
    margin-bottom: 2px;
    position: relative;
    border-right: none;
}

.sub-menu ul li::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: #ccc;
}

.sidmenu ul li:hover {
    background: #f0f0f0;
}

.sidmenu ul li a {
    display: block;
    padding: 12px 18px;
    color: #000;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    border-left: none;
}

.menu-title:hover {
    color: #3498db;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.toggle-icon {
    cursor: pointer;
    padding: 0 8px;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s;
}

.toggle-icon:hover {
    color: #3498db;
}

.sidmenu ul ul li a {
    border-left: 4px solid transparent;
    padding: 8px 18px;
    font-size: 0.95em;
}

.sidmenu ul ul li a:hover {
    color: #3498db;
}

.sidmenu ul li a.active {
    background: #3498db;
    color: #fff;
    border-left: 4px solid #1d70b8;
}

.sub-menu ul li ul li {
    padding-right: 20px;
}

.sub-menu ul li ul li ul li {
    padding-right: 20px;
}

.sub-menu ul li .toggle-icon {
    margin-left: 20px;
}

.sub-menu ul li ul li .toggle-icon {
    margin-left: 30px;
}

.sub-menu ul li ul li ul li .toggle-icon {
    margin-left: 50px;
}

.two-line-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
    line-height: 1.4em;
}

.hover-card {
    position: relative;
    overflow: hidden;
}

.hover-card {
    position: relative;
    display: inline-block; /* یا block اگه کل عرض می‌خوای */
    overflow: hidden; /* مطمئن میشه چیزی بیرون نزنه */
}

.hover-card img {
    display: block;
    width: 100%;
    height: auto;
}

.hover-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
}

.hover-card:hover .overlay {
    opacity: 1;
}
.custom-submenu {
    min-width: 300px;
    text-align: right;
}

@media (min-width: 768px) {
    .custom-submenu {
        min-width: 500px;
    }
}

.submenu-link {
    display: block;
    padding: 6px 10px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.submenu-link:hover {
    background: #f0f0f0;
    color: #000;
}
.offcanvas {
    transition: transform 0.6s ease-in-out;
}
.offcanvas-body{
    padding: 0 !important;
}
.product-img-box {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.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: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0d6efd;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch.small {
    width: 40px;
    height: 20px;
}
.switch.small .slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}
.switch.small input:checked + .slider:before {
    transform: translateX(20px);
}