﻿body {
    direction: rtl;
    text-align: right;

   }
.img-oval{
    border-radius:50%;
    width:90px;
    height:60px;
}
.img-oval-customer {
    border-radius: 50%;
    width: 55px;
    height: 35px;
}
.hero-slider-item-wrapper .container img {
    position: absolute;
    top: 0;
    /*left: 0;*/
    height: 70%;
    width: 70%;
  
}
.hero-slider-item-wrapper .container {
    display: flex;
    justify-content: center; /* برای وسط قرار دادن افقی */
}
.hero-slider-content { text-align: center; }

.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-left: 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 {
  /*  direction: ltr;*/
    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; }

.navigation-menu-wrapper .sub-menu {
    left: unset;
    right: -20px;
   
}

    .navigation-menu-wrapper .sub-menu li.menu-item-has-children > a::after {
        float: left;
        content: '\f3d2';
        margin-left: 20px;
    }

.navigation-menu-wrapper .sub-menu .sub-menu {
    right: 100%;
    left: auto;
}

.navigation-menu-wrapper nav > ul > li.menu-item-has-children > a::after {
    float: left;
    margin-right: 5px;
    margin-left: 20px;
}

.navigation-menu-wrapper nav > ul > li:last-child {
    margin-right: 50px;
}

.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;
}
/* استایل برای دکمه همبرگری */
.hamburger-menu-toggle {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333; /* رنگ آیکون همبرگری */
    padding: 10px;
    /* این دکمه به طور پیش فرض توسط کلاس d-lg-none در عرض‌های بزرگ پنهان می‌شود */
    /* نیازی به display: none در اینجا نیست مگر اینکه بخواهید رفتار بوت استرپ را override کنید */
}

/* اگر دکمه همبرگری در Bootstrap با d-block d-lg-none تعریف شده،
   این media query تنها برای اطمینان از نمایش آن در breakpoint های کوچکتر است.
   اگر از d-lg-none استفاده کرده باشید، خودش هندل می‌شود. */
/* @media (max-width: 991.98px) {
    .hamburger-menu-toggle {
        display: block;
    }
} */


/* استایل برای منوی کشویی موبایل (Off-Canvas Menu) */
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    /* برای راست به چپ (RTL) */
    right: -300px; /* در ابتدا پنهان باشد، خارج از صفحه */
    /* اگر چپ به راست (LTR) هستید، از left: -300px; استفاده کنید */

    width: 300px; /* عرض منوی کشویی */
    height: 100%;
    background-color: #f8f8f8; /* رنگ پس‌زمینه منو */
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: right 0.3s ease-in-out; /* انیمیشن باز و بسته شدن */
    overflow-y: auto; /* برای اسکرول در صورت طولانی بودن منو */
    padding-top: 60px; /* فضای بالا برای دکمه بستن */
}

    /* کلاس برای نمایش منوی موبایل */
    .mobile-menu-wrapper.open {
        /* برای راست به چپ (RTL) */
        right: 0;
        /* اگر چپ به راست (LTR) هستید، از left: 0; استفاده کنید */
    }

/* استایل دکمه بستن منوی موبایل */
.mobile-menu-close-button {
    position: absolute;
    top: 10px;
    /* برای راست به چپ (RTL) */
    left: 15px;
    /* اگر چپ به راست (LTR) هستید، از right: 15px; استفاده کنید */

    font-size: 30px;
    cursor: pointer;
    color: #555;
    background: none;
    border: none;
}

/* استایل‌های لیست منوی موبایل */
.mobile-menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .mobile-menu-wrapper ul li {
        border-bottom: 1px solid #eee;
    }

        .mobile-menu-wrapper ul li:last-child {
            border-bottom: none;
        }

        .mobile-menu-wrapper ul li a {
            display: block;
            padding: 15px 20px;
            text-decoration: none;
            color: #333;
            font-weight: bold;
        }

            .mobile-menu-wrapper ul li a:hover {
                background-color: #e0e0e0;
            }

/* استایل برای زیرمنوهای موبایل (اگر دارید) */
.mobile-menu-wrapper .sub-menu {
    padding-right: 20px; /* برای راست به چپ */
    /* اگر چپ به راست (LTR) هستید، از padding-left: 20px; استفاده کنید */
    background-color: #ececec;
}

    .mobile-menu-wrapper .sub-menu li {
        border-bottom: 1px dashed #ddd;
    }

/* کلاس برای جلوگیری از اسکرول بدنه اصلی وقتی منو باز است */
.no-scroll {
    overflow: hidden;
}
/*سبد خرید*/
.header-icons-wrapper {
    position: relative !important;
}
.main-menu-desktop {
    display: flex;
    flex-wrap: nowrap; /* مهم: آیتم‌ها را در یک خط نگه می‌دارد */
    justify-content: space-around; /* آیتم‌ها را از ابتدا (راست در RTL) تراز می‌کند */
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%; /* منو کل عرض کانتینر والدش (col-xl-8) را اشغال کند */
}

    .main-menu-desktop li {
        /* تنظیمات قبلی */
        margin-left: 0px; /* یا مقدار کمتر، مثلاً 15px یا 10px */
        white-space: nowrap;
        flex-shrink: 0; /* از کوچک شدن آیتم‌ها جلوگیری می‌کند */       
    }
    
    /* برای لینک‌های داخل li (اگر لینک دارید) */
     
    .main-menu-desktop li a {
     
        display: block; /* برای اینکه پدینگ و مارجین به خوبی روی لینک اعمال شود */
        padding: 0; /* پدینگ اضافی از روی لینک بردارید */
     
        }

        .main-menu-desktop li:last-child {
             margin-left: 35px;
        }
        /*slider --------------------------------*/

/* 1. تنظیمات اصلی محفظه اسلایدر */
#slides {
    position: relative; /* بسیار مهم: این محفظه را به نقطه مرجع برای موقعیت‌های مطلق تبدیل می‌کند */
    width: 100%;
    height: 500px; /* مثال: ارتفاع ثابت برای اسلایدر */
    overflow: hidden; /* پنهان کردن هر محتوای اضافی */

}

/* 2. تنظیمات هر اسلاید (که شامل عکس و متن است) */
.slide {
    position: absolute; /* بسیار مهم: برای اینکه اسلایدها روی هم قرار بگیرند */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* در ابتدا همه مخفی هستند */
    transition: opacity 1s ease-in-out; /* برای یک افکت محو شدن زیبا */
    display: flex; /* فعال کردن فلکس باکس */
    justify-content: center; /* وسط‌چین کردن محتویات به صورت افقی */
    align-items: center;
}

    /* 3. فقط اسلاید فعال نمایش داده می‌شود */
    .slide.active {
        opacity: 1; /* اسلاید فعال را نمایش بده */
        z-index: 10;
    }

    /* 4. تنظیمات خود عکس */
    .slide img {
        width: 900px;
        height: 600px;
        object-fit: cover; /* مطمئن شدن از پوشش کامل محفظه */
    }

/* 5. تنظیمات نوشته روی عکس (لایه متن) */
.overlay-text {
    position: absolute; /* موقعیت‌دهی نسبت به .slide (مرجع) */
    /* مثال: قرار دادن متن در مرکز پایین */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); /* این دستور متن را کاملاً وسط (از نظر افقی) قرار می‌دهد */
    /* تنظیمات ظاهری متن */
    color: white; /* رنگ متن */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* سایه برای خوانایی بهتر روی هر عکسی */
    text-align: center;
    padding: 10px 20px;
    /*background-color: rgba(0, 0, 0, 0.4);*/ /* پس‌زمینه نیمه‌شفاف برای خوانایی بهتر */
    /*border-radius: 5px;*/
    width: 80%; /* محدود کردن عرض متن */
    box-sizing: border-box;
}
/*cart page---------------------------------------------------------------------------*/
/* کانتینر اصلی Grid */
.responsive-cart-wrapper {
    width: 100%;
}

/* تعریف Grid برای ردیف‌های هدر و آیتم */
.cart-header-row,
.cart-item-row {
    display: grid;
    /* این خط چیدمان ستون‌ها را برای دسکتاپ تعریف می‌کند */
    grid-template-columns: 100px 3fr 1fr 1fr 1fr 50px; /* تنظیم اندازه ستون‌ها: تصویر، محصول، قیمت، تعداد، جمع، حذف */
    gap: 10px;
    align-items: center; /* تراز کردن عمودی محتوا */
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* استایل‌های هدر */
.cart-header-row {
    font-weight: bold;
    background-color: #f7f7f7;
    border-top: 1px solid #eee;
}

/* استایل‌های سلول‌ها */
.cart-item-row .cell {
    /* در دسکتاپ، label پنهان است */
    padding: 5px;
    text-align: center;
}

/* تصویر محصول */
.pro-thumbnail img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

/* فیلد تعداد */
.pro-quantity input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* Media Query برای موبایل (زیر 768 پیکسل) */
@media (max-width: 767px) {

    /* پنهان کردن هدر جدول در موبایل */
    .cart-header-row {
        display: none;
    }

    /* تبدیل هر ردیف به یک Grid عمودی (کارت) */
    .cart-item-row {
        display: grid;
        /* یک ستون برای کل عرض، چیدمان داخلی را مدیریت می‌کنیم */
        grid-template-columns: 1fr;
        padding: 15px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        gap: 0; /* فاصله بین ردیف‌ها را صفر می‌کنیم */
    }

        /* استایل سلول‌ها در موبایل */
        .cart-item-row .cell {
            display: flex; /* از فلکس باکس برای چیدمان داخلی استفاده می‌کنیم */
            /*justify-content: space-between;*/ /* برچسب سمت راست، مقدار سمت چپ */
            align-items: center;
            border-bottom: 1px dotted #eee;
            padding: 10px 0;
            text-align: right;
        }

            .cart-item-row .cell:last-child {
                border-bottom: none; /* حذف خط جداکننده از آیتم آخر */
            }

            /* نمایش برچسب (Label) در موبایل */
            .cart-item-row .cell::before {
                /* از data-label در HTML برای نمایش عنوان استفاده می‌کنیم */
                content: attr(data-label) ":";
                font-weight: bold;
                color: #555;
                margin-left: 10px;
            }

    /* تنظیمات خاص برای تصویر */
    .pro-thumbnail.cell {
        justify-content: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

        /* در موبایل، برچسب تصویر را حذف می‌کنیم یا پنهان می‌کنیم */
        .pro-thumbnail.cell::before {
            content: none;
        }

    .pro-thumbnail img {
        max-width: 100px;
        margin: 0 auto;
    }
}
/*page checkout-----------------------------------------------*/
/* ------------------------------------------- */
/* A. استایل‌های مشترک Grid برای Checkout (دسکتاپ) */
/* ------------------------------------------- */
.responsive-checkout-table-wrapper {
    margin-bottom: 30px;
}

/* تعریف ستون‌ها برای صفحه پرداخت (8 ستون) */
.checkout-header-row,
.checkout-item-row {
    display: grid;
    /* ستون‌ها: عکس (100پیکسل)، عنوان (2.5 واحد)، قیمت واحد (1.5 واحد)، تعداد (1 واحد)، مبالغ (هرکدام 1.5 واحد) */
    grid-template-columns: 100px 2.5fr 1.5fr 1fr 1.5fr 1.5fr 1.5fr 1.5fr;
    gap: 10px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-header-row {
    font-weight: bold;
    background-color: #f7f7f7;
    border-top: 1px solid #eee;
}

/* استایل سلول‌های دسکتاپ */
.checkout-item-row .cell {
    padding: 5px;
    text-align: center;
}

.pro-thumbnail img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

/* ------------------------------------------- */
/* B. واکنش‌گرایی: تبدیل به کارت در موبایل */
/* ------------------------------------------- */
@media (max-width: 991px) { /* از 991px به پایین (اندازه استاندارد تبلت) */

    /* پنهان کردن هدر جدول */
    .checkout-header-row {
        display: none;
    }

    .checkout-body {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* تبدیل هر آیتم به یک کارت مجزا */
    .checkout-item-row {
        display: grid;
        /* در موبایل، تمام آیتم‌ها در دو ستون نمایش داده می‌شوند: برچسب (1 واحد) و مقدار (3 واحد) */
        grid-template-columns: 1fr 3fr;
        gap: 10px;
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

        /* استایل سلول‌ها در حالت کارت */
        .checkout-item-row .cell {
            display: flex;
            /*justify-content: space-between;*/
            align-items: center;
            border-bottom: 1px dotted #eee;
            padding: 8px 0;
            text-align: right;
        }

            /* حذف خط جداکننده از آیتم آخر */
            .checkout-item-row .cell:last-child {
                border-bottom: none;
            }

            /* نمایش برچسب با استفاده از data-label */
            .checkout-item-row .cell::before {
                content: attr(data-label) ":";
                font-weight: bold;
                color: #555;
                margin-left: 10px;
                /* اطمینان از اینکه برچسب در سمت راست قرار گیرد */
                justify-content: flex-start;
                text-align: right;
            }

    /* تنظیمات خاص برای تصویر (تصویر باید در مرکز باشد) */
    .pro-thumbnail.cell {
        grid-column: 1 / span 2; /* تصویر کل عرض را بگیرد */
        justify-content: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

        /* پنهان کردن برچسب برای تصویر */
        .pro-thumbnail.cell::before {
            content: none;
        }

    .pro-thumbnail img {
        max-width: 120px;
        margin: 0 auto;
    }
}

/* ------------------------------------------- */
/* C. استایل‌های بخش پرداخت (برای هر دو حالت) */
/* ------------------------------------------- */

.checkout-payment-method {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px; /* فاصله از ردیف خلاصه فاکتور */
}

.single-method {
    margin-bottom: 10px;
}

    .single-method input[type="radio"] {
        margin-left: 10px;
    }

.payment-description {
    padding-right: 25px; /* هم‌تراز کردن توضیحات با برچسب رادیو دکمه */
    font-size: 0.9rem;
    color: #666;
}

/* اطمینان از اینکه در موبایل هم دو ستون 6 تایی به خوبی رفتار کنند */
.checkout-footer-row .col-lg-6 {
    padding-right: 15px;
    padding-left: 15px;
}

/* در موبایل ممکن است نیاز باشد ستون‌ها عمودی شوند */
@media (max-width: 767px) {
    .checkout-footer-row {
        flex-direction: column;
    }

        .checkout-footer-row .col-lg-6 {
            flex: auto; /* اجازه دهید عرض خود را بر اساس محتوا تنظیم کنند */
            width: 100%;
        }
}

/* برای اعمال سریع جاوا اسکریپت تعامل با رادیو دکمه‌ها */
.payment-description {
    display: none;
}

.single-method input[type="radio"]:checked ~ .payment-description {
    display: block;
}
/* ------------------------------------------- */
/* A. استایل‌های مشترک Grid برای Checkout (دسکتاپ) */
/* ------------------------------------------- */
.responsive-checkout-table-wrapper {
    margin-bottom: 30px;
}

/* تعریف ستون‌ها برای صفحه پرداخت (8 ستون) */
.checkout-header-row,
.checkout-item-row {
    display: grid;
    /* ستون‌ها: عکس (100پیکسل)، عنوان (2.5 واحد)، قیمت واحد (1.5 واحد)، تعداد (1 واحد)، مبالغ (هرکدام 1.5 واحد) */
    grid-template-columns: 100px 2.5fr 1.5fr 1fr 1.5fr 1.5fr 1.5fr 1.5fr;
    gap: 10px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-header-row {
    font-weight: bold;
    background-color: #f7f7f7;
    border-top: 1px solid #eee;
}

    /* استایل سلول‌ها و هدر در دسکتاپ */
    .checkout-item-row .cell,
    .checkout-header-row > div { /* این قسمت مهم است: اعمال استایل به div های داخل هدر */
        padding: 5px;
        text-align: center; /* وسط چین کردن متن داخل سلول و هدر */
    }

.pro-thumbnail img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

/* ... بقیه استایل‌های موبایل و پرداخت بدون تغییر ... */
/* استایل دهی به هدرهای جدول در صفحه سبد خرید و پرداخت */
.checkout-header-row > div, /* هدر صفحه پرداخت */
.cart-header-row > div { /* هدر صفحه سبد خرید */
    padding: 5px;
    text-align: center; /* وسط چین کردن متن داخل سلول و هدر */
}
@media (max-width: 991px) {
    /* ---------------------------------------------------- */
    /* 1. تنظیم ساختار دو ستونی آیتم ها (حفظ شده) */
    /* ---------------------------------------------------- */
    .checkout-item-row,
    .cart-item-row {
        display: grid !important;
        grid-template-columns: max-content 1fr !important;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

        /* 2. راست‌چین کردن مقادیر (حفظ شده) */
        .checkout-item-row > div.cell:nth-child(2),
        .cart-item-row > div.cell:nth-child(2) {
            text-align: right !important;
            direction: rtl !important;
            white-space: normal;
            word-break: break-word;
        }

        /* 3. راست‌چین کردن عناوین (حفظ شده) */
        .checkout-item-row > div.cell:nth-child(1),
        .cart-item-row > div.cell:nth-child(1) {
            text-align: right !important;
            direction: rtl;
        }

    /* ---------------------------------------------------- */
    /* 4. اقدام جدید: حذف کامل عناوین هدر در حالت موبایل */
    /* ---------------------------------------------------- */
    .checkout-header-row,
    .cart-header-row {
        display: none !important;
    }
}








