﻿/* پایان  تیکت یوزر */
.ticket-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

    .ticket-item:hover {
        background: #f8f9fa;
    }

.status-label {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.status-open {
    background: #28a745;
    color: white;
}

.status-in-progress {
    background: #ffc107;
    color: black;
}

.status-closed {
    background: #dc3545;
    color: white;
}

.chat-section {
    padding: 20px 0;
}

.ticket-list-container {
    background: #f9f9f9;
    border-right: 1px solid #ddd;
    height: 100vh;
    overflow-y: auto;
}

.ticket-header {
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.ticket-list {
    padding: 10px;
}

.ticket-item {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

    .ticket-item:hover {
        background: #f1f1f1;
    }

.chat-box-container {
    background: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 10px;
    background: #6c757d;
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
}

.message {
    margin-bottom: 10px;
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
}

.user-message {
    background: #007bff;
    color: white;
    align-self: flex-end;
    text-align: right;
}

.support-message {
    background: #f1f1f1;
    color: black;
    align-self: flex-start;
    text-align: left;
}


/* پایان  تیکت یوزر */
/* دکمه شناور */
.online-chat-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f1c40f;
    color: #000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* موقعیت خاص برای دسکتاپ */
@media (min-width: 992px) {
    .online-chat-button {
        left: 330px;
    }
}

    .online-chat-button:hover {
        border-radius: 30px;
        width: auto;
        padding: 10px 20px;
    }

    .online-chat-button .chat-text {
        margin-left: 10px;
        /* opacity: 0;*/
        transition: opacity 0.3s ease;
        font-size: 14px;
    }

    .online-chat-button:hover .chat-text {
        opacity: 1;
    }

    .online-chat-button i {
        font-size: 28px;
    }

/* باکس چت */
.chat-box {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 320px;
    height: 500px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.chat-box-header {
    background: #f1c40f;
    color: #000;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

.chat-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-submit-btn {
    background: #f1c40f;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .chat-submit-btn:hover {
        background: #000;
        color: #f1c40f;
    }
/* فرم اطلاعات کاربر */
.chat-user-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%; /* ارتفاع کامل بخش محتوا */
}

.chat-form-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.chat-input {
    width: 90%;
    max-width: 280px; /* حداکثر عرض */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.chat-submit-btn {
    width: 90%;
    max-width: 280px; /* هم‌اندازه با ورودی‌ها */
    padding: 10px;
    background: #f1c40f;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .chat-submit-btn:hover {
        background: #000;
        color: #f1c40f;
    }

.chat-error-message {
    margin-top: 10px;
    font-size: 14px;
    color: red;
    display: none;
}


/*General styles for sub-menus */
@media (min-width: 769px) { /* فقط برای دسکتاپ و بزرگ‌تر از 768px */
    .sub-menu {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
        grid-auto-rows: 50px; /* Fixed row height */
        gap: 1px; /* Adjust gap between items */
        padding: 10px;
        grid-auto-flow: dense; /* Ensure items flow densely into available grid cells */
        overflow-y: visible; /* Prevent vertical scrolling */
        position: absolute; /* Fixed the position based on parent */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: rgba(255, 255, 255, 0%); /* Semi-transparent background */
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: none; /* Disable max-height to prevent vertical scroll */
        width: max-content; /* Adjust width based on content size */
        min-width: 250px; /* Minimum width for one column */
        max-width: 56rem; /* Maximum width based on your setting */
        border-radius: 6px;
        transition: all 0.3s ease-in-out;
        font-weight: 500; /* Apply font weight */
    }

        /* List item styles */
        .sub-menu li {
            list-style: none;
            margin: 0; /* Remove default margins */
        }

            /* Links within the sub-menu */
            .sub-menu li a {
                padding: 8px 12px; /* Adjust padding for a cleaner look */
                background-color: #f9f9f9;
                text-align: left;
                color: #333;
                text-decoration: none;
                border: 1px solid #ddd;
                transition: background-color 0.3s ease;
                font-size: 14px;
                font-weight: 500; /* Apply font weight to links */
                border-radius: 4px;
                display: block;
                height: 50px; /* Fixed height for each item */
                white-space: nowrap; /* Prevent text wrapping */
                overflow: hidden; /* Ensure text does not overflow */
                text-overflow: ellipsis; /* Handle long text with ellipsis */
            }

                /* Hover effect for links */
                .sub-menu li a:hover {
                    background-color: #eaeaea;
                }

    .main_menu ul li ul.sub-menu, .dropdown-menu_topbar {
        position: absolute;
        width: max-content;
        max-width: 56rem;
        background-color: rgba(255, 255, 255, 0); /* Semi-transparent background */
        padding: 10px;
        border-radius: 6px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }
}

/* حذف تنظیمات برای موبایل */
@media (max-width: 768px) {
    .sub-menu {
        position: relative;
        display: flex;
        flex-direction: column;
        background-color: #fff;
        box-shadow: none;
    }
}


/*اتمام متو محصول و مقالات */
.list-group-item.active {
    background-color: #007bff;
    color: white;
}

.hero-slider-content {
    text-align: right;
}

.hero-slider-area {
    direction: ltr;
}

.hero-slider-button i {
    margin-left: 5px;
    margin-right: 0;
}

.hero-slider-content p.slider-title--small {
    width: auto;
    text-align: right;
}

.single-category-item__content {
    right: 30px;
    left: unset;
}

    .single-category-item__content a i {
        margin-right: 5px;
        margin-left: unset;
    }

.single-grid-product__category-rating .rating {
    float: left;
}

.single-grid-product__price .discounted-price {
    margin-right: unset;
    margin-right: 10px;
}

.tab-slider-wrapper .tab-product-navigation .nav .nav-item:last-child {
    margin-right: 10px;
}

.header-cart-icon .counter {
    left: 0;
    right: 100%;
}

.header-icon-wrapper > ul > li {
    margin-left: unset;
    margin-right: 30px;
}

#scroll-top span {
    margin-left: 15px;
    margin-right: unset;
}

.mini-cart .single-cart-item .content {
    padding-right: 10px;
    padding-left: unset;
}

.mini-cart .single-cart-item .remove-icon {
    left: 0;
    right: unset;
}

.copyright-social-wrapper .copyright-social li:last-child {
    margin-right: 40px;
}


.pagination-area__right .pagination-section {
    text-align: left;
}

.single-grid-product__image .hover-icons {
    justify-content: center;
}

    .single-grid-product__image .hover-icons a {
        border-right: unset;
    }

.product-description-review-container nav .nav-tabs a.nav-link {
    margin-right: unset;
    margin-left: 50px;
}

.rating-list {
    float: right;
}

    .rating-list .sin-list:last-child {
        margin-right: 30px;
    }

.rating-author {
    float: right;
}

.sin-ratings .rating-author h3 {
    float: right;
}

.rating-form h5 {
    float: right;
    margin-right: unset;
    margin-left: 10px;
}

.rating-form .rating-star i {
    float: right;
}

.product-actions .product-buttons .cart-btn {
    margin-top: 0;
}

.single-sidebar-widget__category-list li.has-children > ul {
    margin-left: unset;
    margin-right: 15px;
}

.single-sidebar-widget__category-list li a span {
    right: unset;
    left: 0;
}

.single-block .image {
    margin-right: unset;
    margin-left: 5px;
}

.blog-single-post-container .post-content blockquote {
    margin: 41px 40px 40px 0px;
    border-right: 5px solid #e33;
}

.comment-container .single-comment span.reply-btn {
    left: 30px;
    right: unset;
}

.cart-summary .cart-summary-wrap h2 span {
    float: left;
}

.cart-summary .cart-summary-wrap p span {
    float: left;
}

.search-form form button {
    right: unset;
    left: 0;
}

.search-form form input {
    padding: 0 15px 0 50px;
}

.offcanvas-mobile-search-area button {
    right: unset;
    left: 20px;
}

.product-details-small-image-slider-wrapper .slick-prev {
    left: 0;
}

.item_slider-baner-homepage .container img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.card-img-top {
    object-fit: cover;
    width: 100%;
    height: 300px; /* اندازه تصاویر اخرین پستها را اینجا تنظیم کنید */
}
/*تنظیم شده برای دکمه های منو ورود و کاربر */
.user-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
}

.user-icon i {
    font-size: 1.5rem;
    color: #f7c948; /* استفاده از رنگ زرد مشابه با تم پروژه */
}

.user-name {
    font-weight: bold;
    color: #333;
}

.btn {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
}


    .btn:hover {
        opacity: 0.8;
    }

/*پایان  */

/*بخش تنظیمات نوشته های اسلاید   */


/* استایل منوی کاربری موبایل به فایل simple-mobile-menu.css منتقل شد */

/* نمایش منو هنگام هاور */
@media print {
    body {
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%; /* اجازه تطبیق با محتوای موجود */
        width: 100%; /* پهنای کامل صفحه */
    }

    #printable-area {
        text-align: center; /* متن در وسط */
        max-width: 800px; /* محدود کردن عرض به اندازه مناسب */
        margin: auto; /* مرکزیت در صفحه */
        padding: 20px; /* فاصله مناسب از لبه‌ها */
        box-sizing: border-box; /* شامل padding و border در محاسبات */
        page-break-inside: avoid; /* جلوگیری از شکستن محتوا به صفحات دیگر */
    }

    body * {
        visibility: hidden; /* مخفی کردن سایر عناصر */
    }

    #printable-area, #printable-area * {
        visibility: visible; /* نمایش فقط محتوای موردنظر */
    }

    /* جلوگیری از پرینت صفحات دوم به بعد */
    @page {
        size: A4 portrait; /* تنظیم اندازه صفحه به صورت عمودی */
        margin: 10mm; /* تنظیم حاشیه */
    }

    /* فقط محتوای صفحه اول */
    @media print {
        #printable-area {
            page-break-after: avoid; /* جلوگیری از شکستن صفحه */
        }
    }
}


.equal-btn {
    width: 200px; /* عرض ثابت */
    text-align: center; /* تراز متن به مرکز */
    display: inline-block; /* برای هماهنگی با لینک‌ها */
}

.area-btn-checkout .btn {
    /*height: 50px;*/ /* ارتفاع ثابت برای همه دکمه‌ها */
    line-height: 1.5; /* تنظیم فاصله خط برای محتوای دکمه */
}

/* تنظیمات آیکون چت آنلاین برای موبایل */
@media (max-width: 991px) {
    .online-chat-button {
        display: flex !important; /* اطمینان از نمایش در موبایل */
        bottom: 90px; /* بالاتر از نوار پایین موبایل */
        left: 20px !important; /* انتقال به سمت چپ */
        right: auto !important; /* حذف فاصله از راست */
        transform: none; /* حذف transform */
        margin-left: 0; /* حذف margin */
        width: 50px; /* کمی کوچکتر در موبایل */
        height: 50px;
        z-index: 9998 !important; /* کمتر از نوار پایین اما بالاتر از محتوا */
    }
    
    .online-chat-button i {
        font-size: 24px; /* اندازه آیکون در موبایل */
    }
    
    .online-chat-button .chat-text {
        display: none; /* مخفی کردن متن در موبایل */
    }
    
    .online-chat-button:hover {
        width: 50px; /* عدم تغییر اندازه در هاور در موبایل */
        border-radius: 50%;
        padding: 0;
    }
    
    /* تنظیم موقعیت باکس چت در موبایل */
    .chat-box {
        bottom: 150px; /* بالاتر از دکمه چت که حالا در 90px است */
        left: 10px !important;
        right: auto !important;
        transform: none !important;
        width: calc(100% - 20px);
        max-width: 320px;
        height: 450px;
    }
}

/* تنظیمات خاص برای موقعیت دقیق‌تر در موبایل‌های کوچک */
@media (max-width: 576px) {
    .online-chat-button {
        bottom: 85px; /* کمی پایین‌تر برای موبایل‌های کوچک */
        left: 15px !important; /* تنظیم برای صفحات کوچکتر */
    }
}

/* تنظیمات نوار پایین موبایل */
.area-widget-header-fixed {
    z-index: 9999 !important; /* بالاترین لایه برای همه سایزها */
    padding: 0.5rem 1rem !important; /* padding کاهش یافته */
}

table th,
table td {
    font-size: 12px; /* تنظیم اندازه متن */
    text-transform: uppercase; /* تبدیل حروف به حروف بزرگ */
    padding: 5px 10px; /* کاهش فضای داخلی سلول‌ها */
    white-space: nowrap; /* جلوگیری از شکستن متن به خطوط جدید */
    text-align: center; /* وسط‌چین کردن متن */
}

table th {
    font-weight: bold; /* تاکید بیشتر برای عنوان ستون‌ها */
    background-color: #f9f9f9; /* رنگ پس‌زمینه برای عنوان ستون‌ها */
    border-bottom: 2px solid #ddd; /* خط زیرین برای تفکیک بهتر */
}

table td {
    border-bottom: 1px solid #ddd; /* خط زیرین برای ردیف‌ها */
    vertical-align: middle; /* وسط‌چین کردن عمودی */
}

table {
    width: 100%; /* عرض کامل جدول */
    border-collapse: collapse; /* حذف فاصله بین سلول‌ها */
}

/* استایل خاص برای ستون‌های اعداد */
.numeric {
    text-align: right; /* راست‌چین برای اعداد */
    direction: ltr; /* جهت اعداد */
}

/* Wishlist Button Styling - Make button look exactly like anchor tag */
.product_cart button.link-wishlist-icon {
    z-index: 1;
    position: absolute;
    left: 9%;
    top: 11%;
    border-radius: 100%;
    border: 2px solid #b6b6b6;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #fff;
    color: #b6b6b6;
    font-size: 1.5rem;
    padding-top: 0.1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

/* Also apply same styling to .link-wishlist (without icon suffix) */
button.link-wishlist {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: inherit;
    text-decoration: none;
    display: inline;
    line-height: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    vertical-align: baseline;
    box-sizing: content-box;
}

/* Heart icon styling for buttons */
button.link-wishlist-icon i.fal.fa-heart {
    font-weight: 900;
    font-size: 1.35rem;
}

/* Show button on product hover */
.product_cart:hover button.link-wishlist-icon {
    opacity: 1;
    visibility: visible;
}

/* Button hover effect - red background and white heart */
.product_cart button.link-wishlist-icon:hover {
    background-color: #e10000;
    color: #fff;
    border-color: #e10000;
}


/* Mobile Navigation Fixes - از فایل mobile-fixes.css منتقل شده */
@media (max-width: 991px) {
    /* رفع موقعیت دکمه scroll-to-top در موبایل */
    a.scroll-To-top {
        bottom: 90px !important; /* بالاتر از نوار پایین موبایل */
        z-index: 10000 !important;
    }
}
