.ooffer2 {
    max-height: 100px; /* حداکثر ارتفاع مجاز */

}

.content-widgets.archive-desc img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}

.content-widgets.archive-desc p {
    margin-bottom: 16px !important;
    color: #555 !important;
    font-weight: 400 !important;
}

.content-widgets.archive-desc h2,
.content-widgets.archive-desc h3,
.content-widgets.archive-desc h4,
.content-widgets.archive-desc h5 {
    color: #0b6e18 !important;
    margin-top: 30px !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.content-widgets.archive-desc h2 {
    font-size: 28px !important;
}

.content-widgets.archive-desc h3 {
    font-size: 22px !important;
}

.content-widgets.archive-desc h4 {
    font-size: 18px !important;
}

.content-widgets.archive-desc h5 {
    font-size: 16px !important;
    margin-top: 15px !important;
}

.content-widgets.archive-desc strong {
    color: #0b6e18 !important;
}

.content-widgets.archive-desc a {
    color: #10872b !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}
.content-widgets.archive-desc a:hover {
    color: #06600f !important;
    text-decoration: none !important;
}

.content-widgets.archive-desc blockquote {
    background: #f0f9f1 !important;
    border-left: 5px solid #0b6e18 !important;
    margin: 25px 0 !important;
    padding: 15px 25px !important;
    color: #2e6b20 !important;
    font-style: normal !important;
    border-radius: 8px !important;
}




/* Or make it smaller relative to current size */
.g_suggestion-item-name {
    font-size: 0.7em;
}




body {
    zoom: 0.9;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

/* اصلاح نمایش لینک‌های فوتر - روش قوی‌تر */
.footerlinks-box1,
.footerlinks-box2,
.footerlinks-box3 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 15px !important;
}
       /* استایل بهتر با فونت بولد و افکت‌های جذاب */
        .enhanced-iran-ip-notice {
            margin-top: 20px;
            padding: 15px;
            background-color: #f8f9fa;
            border: 2px solid #e74c3c;
            border-radius: 6px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }
        
        .enhanced-iran-ip-notice:before {
            content: "";
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            background: linear-gradient(45deg, rgba(231, 76, 60, 0.1), transparent, rgba(231, 76, 60, 0.1));
            transform: scale(1.2);
            opacity: 0;
            transition: all 0.5s ease;
            z-index: 0;
        }
        
        .enhanced-iran-ip-notice p {
            margin: 0;
            font-family: Tahoma, Arial, sans-serif !important;
            font-size: 16px !important;
            color: #e74c3c !important;
            line-height: 1.6 !important;
            font-weight: bold !important;
            position: relative;
            z-index: 2;
        }
        
        .enhanced-iran-ip-notice p strong {
            position: relative;
            display: inline-block;
        }
        
        .enhanced-iran-ip-notice p strong:after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -2px;
            height: 2px;
            background-color: #e74c3c;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.3s ease;
        }
        
        /* افکت هاور */
        .enhanced-iran-ip-notice:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(231, 76, 60, 0.2);
            border-color: #c0392b;
            background-color: #fff;
        }
        
        .enhanced-iran-ip-notice:hover:before {
            opacity: 1;
            transform: scale(1);
        }
        
        .enhanced-iran-ip-notice:hover p strong:after {
            transform: scaleX(1);
        }
        
        /* آیکون هشدار */
        .enhanced-iran-ip-notice p strong:before {
            content: "⚠️";
            margin-left: 8px;
            font-size: 18px;
            vertical-align: middle;
            opacity: 0.9;
            transition: all 0.3s ease;
        }
        
        .enhanced-iran-ip-notice:hover p strong:before {
            opacity: 1;
            transform: scale(1.1);
        }
        
        /* افکت پالس بهبود یافته */
        @keyframes enhanced-pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
            }
        }
        
        .enhanced-iran-ip-notice {
            animation: enhanced-pulse 2s infinite;
        }
        
        /* افکت شیک برای موبایل */
        @media (max-width: 768px) {
            .enhanced-iran-ip-notice {
                padding: 12px 10px;
            }
            
            .enhanced-iran-ip-notice p {
                font-size: 14px !important;
            }
        }
.footerlinks-box1 h4,
.footerlinks-box2 h4,
.footerlinks-box3 h4 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 15px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.footerlinks-box1 a,
.footerlinks-box2 a,
.footerlinks-box3 a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 10px !important;
    color: #ddd !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

/* اصلاح نمایش لوگو */
[data-aos="fade-up"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

[data-aos="fade-up"] img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    height: auto !important;
}

/* غیرفعال کردن انیمیشن‌های AOS که ممکن است مشکل ایجاد کنند */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
.cat-description {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    position: relative;
    transform: translateY(-20px);
}
.g_suggestion-timer:has(.countdown-timer-single) {
    display: none;
}

.g_blog-post.notifa .owl-blog-post * {
    color: transparent !important;
}

.g_blog-post.notifa .owl-blog-post.owl-loaded * {
    color: inherit !important;
    transition: color 0.1s ease;
}

.products .product {
    position: relative;
}

.discount-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: #ff4444;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

/* اصلاح انیمیشن اسلایدر برای جلوگیری از پرش محتوا */
.swiper-espdesctop {
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 1s;
    opacity: 0;
    max-width: 100%; /* اطمینان از عدم سرریز */
    box-sizing: border-box; /* محاسبه صحیح ابعاد */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bell-icon {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.footerlinks-box3 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}









figure .ooffer:last-of-type {
    display: none !important;
}



/* حذف پس‌زمینه تیره */
.swal2-container.swal2-shown {
    background-color: transparent !important;
    display: none !important;
}

/* اطمینان از عدم نمایش */
body.swal2-shown {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* حذف کلاس‌های اضافه شده به body */
body.swal2-height-auto {
    height: auto !important;
}

/* مخفی کردن بخش نرم‌افزارهای مورد نیاز */
.software-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* استایل کاور سیاه رنگ سفارشی */
#custom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}






















/* نمایش کاور هنگام باز بودن مودال */
body.modal-open #custom-backdrop {
    display: block;
}

/* مخفی کردن کاور پیش‌فرض بوت‌استرپ */
.modal-backdrop {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* اصلاحات برای جلوگیری از بهم ریختگی */
html {
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}







/* اصلاح مشکل سرریز محتوا */
.container, 
.container-fluid, 
.row {
    max-width: 100%;
    box-sizing: border-box;
}

/* اصلاح مشکل تصاویر بزرگ */
img {
    max-width: 100%;
    height: auto;
}

/* اصلاح مشکل مودال‌ها */
.modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

/* اصلاح مشکل منوهای کشویی */
.dropdown-menu {
    max-width: 100%;
}

/* اصلاح مشکل در مرورگرهای خاص */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Chrome و Safari */
    body {
        zoom: 0.9;
    }
}

@-moz-document url-prefix() {
    /* Firefox */
    body {
        transform: scale(0.9);
        transform-origin: top center;
    }
}

/* مخفی کردم اموزشی ویدیو  */

/* مخفی کردن بخش ویدیو فقط در صفحه اصلی */
.home .video-sec {
    display: none !important;
}

/* یا مخفی کردن بخش ویدیو فقط در صفحه محصول */
.single-product .video-sec {
    display: none !important;
}

/* تمومه */

/* حذف عکس بازگشت همه به سوی اوست */

.empty-cart img, 
.empty-cart picture {
    display: none !important;
}

.title-holder.justify-content-between {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative; /* برای قرار دادن کد تخفیف با position: absolute */
}
/* استایل برای بخش کد تخفیف کوچک در وسط */

.modal-dialog {
  max-width: 450px; /* کمی بزرگتر از modal-content */
  margin: 1.75rem auto;
  width: 95%;

}
@media (min-width: 769px) {
    /* تمام استایل‌های شما اینجا قرار می‌گیرند */
   coupon-box-mini {

    background: #f8f9fa;
    border-radius: 6px;
    padding:1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    width: 200px;
    margin: 0 5px;
}
	
    .coupon-input-mini {
    flex: 1;
    border: none;
    background: transparent;
    padding: 5px 10px;
    font-size: 12px;
    color: #2c3e50;
    outline: none;
}

.coupon-btn-mini {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-btn-mini:hover {
    background: #2980b9;
}
}
/* اگر نمی‌توانید HTML را تغییر دهید، این CSS را استفاده کنید */
/* این کد فرض می‌کند که بخش کد تخفیف با کلاس .coupon در جای دیگری از صفحه وجود دارد */
.coupon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    width: 200px;
    z-index: 10;
}

.coupon label {
    display: none; /* پنهان کردن لیبل */
}

.coupon input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 5px 10px;
    font-size: 12px;
    color: #2c3e50;
    outline: none;
}

.coupon button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon button:hover {
    background: #2980b9;
}

/* استایل برای بخش عنوان و آیکون سبد خرید */
.title-holder .d-flex.align-items-center {
    display: flex;
    align-items: center;
}

/* استایل برای آیکون سبد خرید */
.cart-bag-icon {
    position: relative;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.cart-bag-icon:before {
    content: '\f07a'; /* آیکون سبد خرید Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    color: #3498db;
}

/* استایل برای شمارنده سبد خرید */
.cart-bag-icon[data-count]:after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
/* استایل برای عنوان سبد خرید */
.title-holder h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* استایل برای باکس اطلاعات */
.info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    width: 280px;
}

/* سایر استایل‌ها مانند قبل */
/* استایل برای جدول سبد خرید */
table.cart.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* استایل برای هدر جدول */
table.cart thead {
    background: #f8f9fa;
}

table.cart thead th {
    padding: 15px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    border-bottom: 1px solid #e0e0e0;
}








table.cart thead th.edit-col {
    width: 50px;
}

/* استایل برای ردیف‌های جدول */
table.cart tbody tr {
    transition: all 0.3s ease;
}

table.cart tbody tr:hover {
    background-color: #f9f9f9;
}

table.cart tbody tr:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* استایل برای سلول‌های جدول */
table.cart tbody td {
    padding: 15px;
    vertical-align: middle;
    color: #2c3e50;
}

/* استایل برای نام محصول */
table.cart tbody td p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

/* استایل برای قیمت محصول */
table.cart tbody td .woocommerce-Price-amount {
    font-weight: 700;
    color: #3498db;
    font-size: 15px;
}

/* استایل برای بخش تعداد */
table.cart .product-quantity {
    width: 120px;
}

/* استایل برای wrapper دکمه‌های افزایش و کاهش */
.qib-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* استایل برای دکمه‌های افزایش و کاهش */
.qib-button {
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: #34495e;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.qib-button.minus {
    border-radius: 4px 0 0 4px;
}

.qib-button.plus {
    border-radius: 0 4px 4px 0;
}

.qib-button:hover {
    background: #e0e0e0;
}

/* استایل برای فیلد تعداد */
.quantity {
    margin: 0 !important;
}

.quantity .wqpmb_input_text {
    width: 40px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    padding: 0;
    background: #fff;
}

/* حذف فلش‌های افزایش و کاهش از فیلد عددی */
.quantity .wqpmb_input_text::-webkit-outer-spin-button,
.quantity .wqpmb_input_text::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity .wqpmb_input_text[type=number] {
    -moz-appearance: textfield;
}

/* استایل برای دکمه حذف */
.product-remove .trash {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #f8f9fa;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-remove .trash:before {
    content: '\f2ed'; /* آیکون سطل زباله Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: #e74c3c;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-remove .trash:hover {
    background: #fff5f5;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.2);
}

/* استایل برای ردیف تایمر */
.g_cart_timer {
    background: #f0f8ff;
}

.g_cart_timer td {
    padding: 12px 15px;
    text-align: center;
}

.g_cart_timer p {
    margin: 0;
    color: #3498db;
    font-size: 14px;
}

.g_cart_timer strong {
    color: #2980b9;
}

/* استایل برای حالت موبایل */
@media (max-width: 768px) {
    table.cart thead {
        display: none;
    }
    
    table.cart tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    
    table.cart tbody td:before {
        content: attr(data-title);
        font-weight: 600;
        color: #7f8c8d;
    }
    
    table.cart tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    table.cart tbody td:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .product-remove .trash {
        margin-left: auto;
    }
}
/* استایل جدید و شیک برای جدول سبد خرید */
table.cart.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: none;
    position: relative;
}

/* استایل برای هدر جدول */
table.cart thead {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

table.cart thead th {
    padding: 18px 20px;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border: none;
    letter-spacing: 0.5px;
    position: relative;
}

table.cart thead th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

table.cart thead th.edit-col {
    width: 60px;
}

/* استایل برای ردیف‌های جدول */
table.cart tbody tr {
    transition: all 0.3s ease;
    border: none;
}

table.cart tbody tr:nth-child(odd) {
    background-color: #f9fafc;
}

table.cart tbody tr:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
}

/* استایل برای سلول‌های جدول */
table.cart tbody td {
    padding: 20px;
    vertical-align: middle;
    color: #2c3e50;
    border: none;
    border-bottom: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

/* استایل برای نام محصول */
table.cart tbody td p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #34495e;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
    line-height: 1.5;
}

table.cart tbody td p:before {
    content: '•';
    position: absolute;
    right: 0;
    top: 0;
    color: #3498db;
    font-size: 20px;
    line-height: 1;
}

table.cart tbody tr:hover td p {
    color: #2980b9;
    transform: translateX(-3px);
}

/* استایل برای قیمت محصول */
table.cart tbody td .woocommerce-Price-amount {
    font-weight: 700;
    color: #2ecc71;
    font-size: 16px;
    display: inline-block;
    position: relative;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(46, 204, 113, 0.1);
    transition: all 0.3s ease;
}

table.cart tbody td .woocommerce-Price-currencySymbol {
    font-size: 14px;
    font-weight: 600;
    margin-right: 3px;
    color: #27ae60;
}

table.cart tbody tr:hover td .woocommerce-Price-amount {
    background: rgba(46, 204, 113, 0.2);
    transform: scale(1.05);
}

/* استایل برای بخش تعداد */
table.cart .product-quantity {
    width: 140px;
}

/* استایل برای wrapper دکمه‌های افزایش و کاهش */
.qib-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

table.cart tbody tr:hover .qib-button-wrapper {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* استایل برای دکمه‌های افزایش و کاهش */
.qib-button {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: #34495e;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

	
	
	
	
	
	
	
	
.qib-button.minus {
    border-radius: 6px 0 0 6px;
}

.qib-button.plus {
    border-radius: 0 6px 6px 0;
}

.qib-button:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

.qib-button:active {
    transform: translateY(0);
}

/* استایل برای فیلد تعداد */
.quantity {
    margin: 0 !important;
    position: relative;
    z-index: 0;
}

.quantity .wqpmb_input_text {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #3498db;
    padding: 0;
    background: #fff;
    box-shadow: none;
}

/* حذف فلش‌های افزایش و کاهش از فیلد عددی */
.quantity .wqpmb_input_text::-webkit-outer-spin-button,
.quantity .wqpmb_input_text::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity .wqpmb_input_text[type=number] {
    -moz-appearance: textfield;
}

/* استایل برای دکمه حذف */
.product-remove .trash {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.product-remove .trash:before {
    content: '\f2ed'; /* آیکون سطل زباله Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 15px;
    color: #e74c3c;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.product-remove .trash:hover {
    background: #e74c3c;
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.product-remove .trash:hover:before {
    color: #fff;
}

/* استایل برای ردیف تایمر */
.g_cart_timer {
    background: linear-gradient(135deg, #f0f8ff, #e6f7ff);
    border: none !important;
}

.g_cart_timer td {
    padding: 15px 20px !important;
    text-align: center;
    border: none !important;
    position: relative;
}

.g_cart_timer td:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.g_cart_timer p {
    margin: 0;
    color: #3498db;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    display: inline-block;
}

.g_cart_timer strong {
    color: #2980b9;
    position: relative;
}

.g_cart_timer strong:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(41, 128, 185, 0.3);
}

/* افکت‌های اضافی */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

table.cart:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #3498db, #2ecc71, #3498db);
    z-index: -1;
    border-radius: 15px;
    opacity: 0.1;
    filter: blur(10px);
}

/* استایل برای حالت موبایل */
@media (max-width: 768px) {
    table.cart {
        border-radius: 10px;
    }
    
    table.cart thead {
        display: none;
    }
    
    table.cart tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
    }
    
    table.cart tbody td:before {
        content: attr(data-title);
        font-weight: 600;
        color: #7f8c8d;
    }
    
    table.cart tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eef2f7;
        border-radius: 10px;
        overflow: hidden;
    }
    
    table.cart tbody td:not(:last-child) {
        border-bottom: 1px solid #eef2f7;
    }
    
    .product-remove .trash {
        margin-left: auto;
    }
    
    table.cart tbody td p:before {
        display: none;
    }
    
    table.cart tbody td p {
        padding-right: 0;
    }
    
    .g_cart_timer td {
        display: block;
    }
}
/* استایل کاملاً جدید برای سلول حذف و آیکون سطل زباله */
td.product-remove {
    width: 60px !important;
    min-width: 60px !important;
    text-align: center !important;
    padding: 10px !important;
    position: relative !important;
}

.product-remove .trash.remove {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    background: #fff !important;
    border-radius: 50% !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    margin: 0 auto !important;
    text-decoration: none !important;
}

.product-remove .trash.remove:before {
    content: '\f2ed' !important; /* آیکون سطل زباله Font Awesome */
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    color: #e74c3c !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.3s ease !important;
}

.product-remove .trash.remove:hover {
    background: #e74c3c !important;
    transform: rotate(5deg) scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3) !important;
}

.product-remove .trash.remove:hover:before {
    color: #fff !important;
}

/* اصلاح برای حالت موبایل */
@media (max-width: 768px) {
    td.product-remove {
        width: auto !important;
        text-align: right !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
    
    .product-remove .trash.remove {
        margin: 0 !important;
    }
}
/* استایل برای بخش مبلغ کل و تایمر */
.count.d-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.count.d-flex:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border-radius: 3px 0 0 3px;
}

/* استایل برای عنوان "کل مبلغ" */
.count.d-flex > div:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    padding: 8px 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    position: relative;
    margin-left: 15px;
}

.count.d-flex > div:first-child:after {
    content: ':';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 18px;
    font-weight: bold;
}

/* استایل برای مبلغ */
.count.d-flex > div:nth-child(2) {
    flex-grow: 1;
    text-align: center;
}

.count.d-flex .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    position: relative;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.15);
    transition: all 0.3s ease;
}

.count.d-flex .woocommerce-Price-amount:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

.count.d-flex .woocommerce-Price-currencySymbol {
    font-size: 15px;
    margin-right: 3px;
    color: #27ae60;
}

/* استایل برای بخش تایمر */
.count.d-flex > div:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(231, 76, 60, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    margin-right: 15px;
    position: relative;
}

/* آیکون تایمر */
.timer-i {
    width: 24px;
    height: 24px;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    position: relative;
    margin-left: 10px;
}

.timer-i:before {
    content: '\f017'; /* آیکون ساعت Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: #e74c3c;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* تایمر اصلی */
.timer-main {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
    display: flex;
    align-items: center;
}

/* افکت چشمک زن برای تایمر */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.timer-main {
    animation: blink 2s infinite;
}

/* استایل برای حالت موبایل */
@media (max-width: 768px) {
    .count.d-flex {
        flex-direction: column;
        padding: 15px;
    }
    
    .count.d-flex > div {
        width: 100%;
        margin: 5px 0 !important;
        justify-content: center !important;
    }
    
    .count.d-flex > div:first-child:after {
        display: none;
    }
    
    .count.d-flex .woocommerce-Price-amount {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* استایل بهبود یافته برای بخش تایمر با رنگ سفید */
.count.d-flex > div:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #3498db; /* پس‌زمینه آبی پررنگ برای کنتراست بهتر */
    padding: 8px 15px;
    border-radius: 8px;
    margin-right: 15px;
    position: relative;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* آیکون تایمر */
.timer-i {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2); /* پس‌زمینه سفید نیمه‌شفاف */
    border-radius: 50%;
    position: relative;
    margin-left: 10px;
}

.timer-i:before {
    content: '\f017'; /* آیکون ساعت Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: #ffffff; /* رنگ سفید */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* تایمر اصلی */
.timer-main {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff; /* رنگ سفید */
    display: flex;
    align-items: center;
}

/* افکت چشمک زن برای تایمر با رنگ سفید */
@keyframes pulse-white {
    0% { opacity: 1; text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); }
    50% { opacity: 0.9; text-shadow: 0 0 10px rgba(255, 255, 255, 0.9); }
    100% { opacity: 1; text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); }
}

.timer-main {
    animation: pulse-white 2s infinite;
}
/* استایل برای بخش کد تخفیف */
.free.d-flex {
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid #eaeaea;
    flex-wrap: wrap;
}

.free.d-flex:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #f39c12, #e67e22);
    border-radius: 3px 0 0 3px;
}

/* استایل برای عنوان "کد تخفیف" */
.free.d-flex > div:first-child {
    font-size: 15px;
    font-weight: 600;
    color: #34495e;
    padding: 8px 15px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 8px;
    position: relative;
    margin-left: 15px;
    white-space: nowrap;
}

.free.d-flex > div:first-child:after {
    content: ':';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 18px;
    font-weight: bold;
}

/* استایل برای فیلد ورودی کد تخفیف */
.free.d-flex input[type="text"] {
    flex: 1;
    min-width: 150px;
    height: 42px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 0 10px;
}

.free.d-flex input[type="text"]:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
    outline: none;
}

.free.d-flex input[type="text"]::placeholder {
    color: #bdc3c7;
}

/* استایل برای دکمه اعمال کد تخفیف */
.free.d-flex button.button {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    height: 42px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(243, 156, 18, 0.3);
    white-space: nowrap;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.free.d-flex button.button:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.4);
}

.free.d-flex button.button:active {
    transform: translateY(0);
}

/* افکت برای دکمه */
.free.d-flex button.button:before {
    content: '\f02b'; /* آیکون تگ Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 14px;
}

/* استایل برای فیلدهای مخفی */
.free.d-flex input[type="hidden"] {
    display: none;
}

/* استایل برای حالت موبایل */
@media (max-width: 768px) {
    .free.d-flex {
        flex-direction: column;
        padding: 15px;
    }
    
    .free.d-flex > div:first-child,
    .free.d-flex input[type="text"],
    .free.d-flex button.button {
        width: 100%;
        margin: 5px 0;
    }
    
    .free.d-flex > div:first-child:after {
        display: none;
    }
    
    .free.d-flex input[type="text"] {
        text-align: center;
    }
}

}
/* ریسپانسیو سبد پرداخت  در دستگتاپ به پایان رسید */
figure.g_nosale_item {
    min-height: calc(430px - 20px) !important; /* دقیقاً 20px کمتر از ارتفاع فعلی */
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* کاهش فاصله پایینی در figcaption */
figure.g_nosale_item figcaption {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* کاهش فاصله پایینی آخرین المنت داخل figcaption */
figure.g_nosale_item figcaption > div:last-child,
figure.g_nosale_item .g_select-card-links {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}







/* کاهش ارتفاع باکس محصول */
/* کاهش ارتفاع باکس محصول - برای صفحات غیر اصلی */
body:not(.home) .ch-item {
    min-height: 0px;
    padding: 3px 5px;
    margin-top: -20px;
}

/* کاهش ارتفاع باکس محصول - برای صفحه اصلی */
body.home .ch-item {
    min-height: 0px;
    padding: 3px 5px;
    margin-top: -20px;
}

/* کاهش ارتفاع تصویر - برای صفحه اصلی */
body.home .ch-img {
    width: 50px;
    height: 80px;
}

/* کاهش ارتفاع تصویر - برای صفحات غیر اصلی */
body:not(.home) .ch-img {
    width: 50px;
    height: 80px;
}

/* کاهش پدینگ کلی باکس - برای صفحات غیر اصلی */
body:not(.home) .last-holder {
    height: 190px;
    padding: 0px;
    margin-top: -20px;
}

/* کاهش پدینگ کلی باکس - برای صفحه اصلی */
body.home .last-holder {
    height: 190px;
    padding: 0px;
    margin-top: -20px;
}

/* کاهش فاصله عنوان از محتوا - برای صفحات غیر اصلی */
body:not(.home) .changes-title {
    margin-bottom: -8px;
}

/* کاهش فاصله عنوان از محتوا - برای صفحه اصلی */
body.home .changes-title {
    margin-bottom: -8px;
}

/* کاهش فاصله بین متن عنوان و محتوا - برای صفحات غیر اصلی */
body:not(.home) .ch-txt h4 {
    margin-bottom: 8px;
}

/* کاهش فاصله بین متن عنوان و محتوا - برای صفحه اصلی */
body.home .ch-txt h4 {
    margin-bottom: 8px;
}

/* کاهش پدینگ اسلایدر - برای صفحات غیر اصلی */
body:not(.home) .swiper-change {
    padding: 8px 5px;
}

/* کاهش پدینگ اسلایدر - برای صفحه اصلی */
body.home .swiper-change {
    padding: 8px 5px;
}

.inner {
    margin-top: 20px;
}

.woocommerce-result-count {
    margin-top: 30px;
}

.category-page__top-block{
	height:130px;
	margin-top:-4px;
}

@media (max-width: 576px) {
  /* گزینه 1: فقط محصولات در صفحه فروشگاه */
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    clear: none !important;
    float: left !important;
  }
  
  /* گزینه 2: اگر از کلاس خاصی برای کانتینر محصولات استفاده می‌کنید */
  .products-container .g_select-card-item,
  .shop-products .g_select-card-item,
  .product-grid .g_select-card-item {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
  
  /* گزینه 3: استفاده از nth-child برای ایجاد ردیف‌های دو تایی */
  .g_select-card-item {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    float: left !important;
  }
  
  .g_select-card-item:nth-child(2n+1) {
    clear: left !important;
  }
}











@media (max-width: 576px) {
  /* ایجاد فاصله بین باکس‌های محصول */
  .g_select-card-item {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 15px !important;
    position: relative !important;
  }
  
  /* استفاده از border برای ایجاد فاصله مشخص */
  .g_select-card {
    border-bottom: 10px solid transparent !important;
    border-top: 10px solid transparent !important;
    box-sizing: border-box !important;
  }
  
  /* استفاده از before و after برای ایجاد فاصله */
  .g_select-card:before,
  .g_select-card:after {
    content: "" !important;
    display: block !important;
    height: 10px !important;
    width: 100% !important;
    clear: both !important;
  }
  
  /* اضافه کردن margin به صورت مستقیم به کارت */
  .g_select-card {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
  
  /* اطمینان از اینکه ردیف‌ها فاصله کافی دارند */
  .row {
    row-gap: 20px !important;
  }
}




/* تغییر نمایش قیمت در حالت موبایل */
@media only screen and (max-width: 767px) {
    /* کانتینر قیمت را به صورت عمودی نمایش می‌دهیم */
    .g_select-card-price .price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* قیمت اصلی (خط خورده) را کوچکتر می‌کنیم و زیر قیمت تخفیف قرار می‌دهیم */
    .g_select-card-price .price del {
        order: 2; /* تغییر ترتیب نمایش - اول قیمت تخفیف، بعد قیمت اصلی */
        font-size: 0.8em; /* کوچکتر کردن اندازه فونت */
        opacity: 0.7; /* کمی شفاف‌تر */
        margin-top: 5px; /* فاصله از قیمت تخفیف */
    }
    
    /* قیمت تخفیف را اول نمایش می‌دهیم */
    .g_select-card-price .price ins {
        order: 1;
        font-size: 1.1em; /* کمی بزرگتر از حالت عادی */
        font-weight: bold;
        margin-bottom: 2px;
    }
    
    /* مخفی کردن متن‌های مخصوص خوانندگان صفحه در موبایل برای جلوگیری از شلوغی */
    .g_select-card-price .price .screen-reader-text {
        display: none;
    }
}










/* ریسپانسیو سبد پرداخت  در دستگتاپ به پایان رسید */

/* کاهش ارتفاع باکس محصول */
/* کاهش ارتفاع باکس محصول - برای صفحات غیر اصلی */
body:not(.home) .ch-item {
    min-height: 0px;
    padding: 3px 5px;
    margin-top: -20px;
}

/* کاهش ارتفاع تصویر - برای صفحات غیر اصلی */
body:not(.home) .ch-img {
    width: 50px;
    height: 80px;
}













/* استایل‌ها فقط برای کاربران لاگین شده اعمال می‌شود */
body.logged-in a.addcart-button[data-product_id],
body.logged-in .g_select-card-addcart a[data-product_id],
body.logged-in .g_select-card-item figure .g_select-card-addcart a[data-product_id],
body.logged-in a[data-quantity="1"].addcart-button,
body.logged-in a[rel="nofollow"].addcart-button,
body.logged-in .g_select-card-links a[data-quantity="1"],
body.logged-in .g_select-card-addcart a[data-quantity="1"] {
    padding: 10px 15px !important; /* پدینگ بیشتر */
    line-height: 1.5 !important; /* ارتفاع خط بیشتر */
    font-size: 15px !important; /* اندازه فونت بزرگ‌تر */
    font-weight: bold !important; /* فونت ضخیم‌تر */
    text-align: center !important; /* متن وسط‌چین */
    display: block !important; /* نمایش به صورت بلاک */
  
    box-sizing: border-box !important; /* محاسبه پدینگ در عرض */
    border-radius: 4px !important; /* گوشه‌های گرد */
    transition: all 0.3s ease !important; /* انیمیشن هنگام هاور */
    margin-top: 5px !important; /* فاصله از بالا */
    background-color: #4CAF50 !important; /* رنگ پس‌زمینه سبز */
    color: white !important; /* رنگ متن سفید */
    border: none !important; /* بدون حاشیه */
    cursor: pointer !important; /* نشانگر دست */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; /* سایه */
    height: auto !important; /* ارتفاع خودکار */
    min-height: 40px !important; /* حداقل ارتفاع */
}

/* انتخابگر بسیار خاص برای پاراگراف داخل دکمه - فقط برای کاربران لاگین شده */
body.logged-in a.addcart-button[data-product_id] p,
body.logged-in .g_select-card-addcart a[data-product_id] p,
body.logged-in .g_select-card-item figure .g_select-card-addcart a[data-product_id] p,
body.logged-in a[data-quantity="1"].addcart-button p,
body.logged-in a[rel="nofollow"].addcart-button p,
body.logged-in .g_select-card-links a[data-quantity="1"] p,
body.logged-in .g_select-card-addcart a[data-quantity="1"] p {
    margin: 0 !important; /* حذف مارجین */
    padding: 0 !important; /* حذف پدینگ */
    line-height: inherit !important; /* ارتفاع خط مشابه با والد */
    font-size: inherit !important; /* اندازه فونت مشابه با والد */
    color: inherit !important; /* رنگ متن مشابه با والد */
    font-weight: inherit !important; /* وزن فونت مشابه با والد */
}

/* افکت هاور با انتخابگر بسیار خاص - فقط برای کاربران لاگین شده */
body.logged-in a.addcart-button[data-product_id]:hover,
body.logged-in .g_select-card-addcart a[data-product_id]:hover,
body.logged-in .g_select-card-item figure .g_select-card-addcart a[data-product_id]:hover,
body.logged-in a[data-quantity="1"].addcart-button:hover,
body.logged-in a[rel="nofollow"].addcart-button:hover,
body.logged-in .g_select-card-links a[data-quantity="1"]:hover,
body.logged-in .g_select-card-addcart a[data-quantity="1"]:hover {
    background-color: #45a049 !important; /* رنگ پس‌زمینه سبز تیره‌تر */
    transform: translateY(-2px) !important; /* کمی بالاتر */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important; /* سایه بزرگ‌تر */
}

/* اضافه کردن استایل مستقیم با استفاده از ویژگی‌های دقیق از HTML شما - فقط برای کاربران لاگین شده */
body.logged-in a[href*="add-to-cart"][data-quantity="1"].addcart-button {
    padding: 10px 15px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border-radius: 4px !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    min-height: 40px !important;
}

/* استایل برای کانتینر دکمه - فقط برای کاربران لاگین شده */
body.logged-in .g_select-card-addcart {
    margin-top: 8px !important;
    width: 100% !important;
}

/* واکنش‌گرا برای دکمه‌ها - فقط برای کاربران لاگین شده */
@media (max-width: 768px) {
    body.logged-in a.addcart-button[data-product_id],
    body.logged-in .g_select-card-addcart a[data-product_id],
    body.logged-in .g_select-card-item figure .g_select-card-addcart a[data-product_id],
    body.logged-in a[data-quantity="1"].addcart-button,
    body.logged-in a[rel="nofollow"].addcart-button,
    body.logged-in .g_select-card-links a[data-quantity="1"],
    body.logged-in .g_select-card-addcart a[data-quantity="1"],
    body.logged-in a[href*="add-to-cart"][data-quantity="1"].addcart-button {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-height: 35px !important;
    }
}

/* استایل اضافی برای اطمینان از اعمال تغییرات - فقط برای کاربران لاگین شده */
body.logged-in .addcart-button {
    padding: 10px 15px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border-radius: 4px !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    min-height: 40px !important;
}

/* کاهش ارتفاع باکس محصولات ناموجود - فقط برای کاربران لاگین شده */
body.logged-in figure.g_nosale_item {
    height: auto; /* حذف ارتفاع ثابت اگر وجود دارد */
    margin-bottom: 15px !important; /* کاهش فاصله از پایین */
    padding-bottom: 10px !important; /* کاهش پدینگ پایین */
}

/* کاهش ارتفاع باکس محصولات موجود - دقیقاً همان استایل‌های بالا - فقط برای کاربران لاگین شده */
body.logged-in .g_select-card-item figure {
    height: auto; /* حذف ارتفاع ثابت اگر وجود دارد */
    margin-bottom: 15px !important; /* کاهش فاصله از پایین */
    padding-bottom: 10px !important; /* کاهش پدینگ پایین */
}

/* اگر فیگکپشن باعث افزایش ارتفاع می‌شود - برای محصولات ناموجود - فقط برای کاربران لاگین شده */
body.logged-in figure.g_nosale_item figcaption {
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
}

/* اگر فیگکپشن باعث افزایش ارتفاع می‌شود - برای محصولات موجود - فقط برای کاربران لاگین شده */
body.logged-in .g_select-card-item figure figcaption {
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
}

/* کاهش فاصله بین عناصر داخلی - برای محصولات ناموجود - فقط برای کاربران لاگین شده */
body.logged-in figure.g_nosale_item .g_select-card-name,
body.logged-in figure.g_nosale_item .g_select-card-price,
body.logged-in figure.g_nosale_item .g_select-card-links {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}

/* کاهش فاصله بین عناصر داخلی - برای محصولات موجود - فقط برای کاربران لاگین شده */
body.logged-in .g_select-card-item figure .g_select-card-name,
body.logged-in .g_select-card-item figure .g_select-card-price,
body.logged-in .g_select-card-item figure .g_select-card-links {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}

/* کاهش ارتفاع دکمه‌ها - برای محصولات ناموجود - فقط برای کاربران لاگین شده */
body.logged-in figure.g_nosale_item .seepro-button,
body.logged-in figure.g_nosale_item .notif-button {
    padding: 5px 10px !important;
    line-height: 1.2 !important;
}

/* کاهش ارتفاع دکمه‌ها - برای محصولات موجود - فقط برای کاربران لاگین شده */
body.logged-in .g_select-card-item figure .seepro-button {
    padding: 5px 10px !important;
    line-height: 1.2 !important;
}

/* بزرگ‌تر کردن دکمه افزودن به سبد خرید برای همه محصولات - فقط برای کاربران لاگین شده */

/* افکت هاور برای دکمه افزودن به سبد خرید - فقط برای کاربران لاگین شده */
body.logged-in .addcart-button:hover,
body.logged-in a.addcart-button:hover,
body.logged-in .g_select-card-addcart a:hover,
body.logged-in .g_select-card-item figure .g_select-card-addcart a:hover {
    opacity: 0.9 !important; /* کمی شفاف‌تر هنگام هاور */
    transform: translateY(-2px) !important; /* کمی بالاتر هنگام هاور */
}

/* تنظیم پاراگراف داخل دکمه افزودن به سبد خرید - فقط برای کاربران لاگین شده */
/* استایل ساده و شیک برای تب‌ها */
.wc-tabs {
    display: flex;
    justify-content: center;
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
    border: none;
    background: transparent;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.wc-tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
}

.wc-tabs li a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    background-color: #f8f8f8;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.wc-tabs li:hover a {
    background-color: #f0f0f0;
    color: #333;
}

.wc-tabs li.active a {
    background-color: #4CAF50;
    color: white;
    font-weight: 600;
    border-color: #4CAF50;
}

/* استایل برای حالت موبایل */
@media (max-width: 768px) {
    .wc-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .wc-tabs li {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .wc-tabs li a {
        width: 100%;
        text-align: center;
    }
}















/* استایل پایه برای دکمه افزودن به سبد خرید در همه صفحات - برای کاربران لاگین شده */
body.logged-in a.addcart-button[data-product_id],
body.logged-in .g_select-card-addcart a[data-product_id],
body.logged-in .g_select-card-item figure .g_select-card-addcart a[data-product_id],
body.logged-in a[data-quantity="1"].addcart-button,
body.logged-in a[rel="nofollow"].addcart-button,
body.logged-in .g_select-card-links a[data-quantity="1"],
body.logged-in .g_select-card-addcart a[data-quantity="1"] {
    padding: 10px 15px !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
    font-weight: bold !important;
    text-align: center !important;
    display: block !important; /* نمایش به صورت بلاک */
    width: 80% !important; /* عرض 80% برای صفحه اصلی */
    margin-left: auto !important; /* مرکز قرار دادن دکمه */
    margin-right: auto !important; /* مرکز قرار دادن دکمه */
    box-sizing: border-box !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    margin-top: 5px !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    height: auto !important;
    min-height: 40px !important;
}

/* استایل برای دکمه افزودن به سبد خرید در صفحه محصول - برای کاربران لاگین شده */
body.logged-in.single-product a.addcart-button[data-product_id],
body.logged-in.single-product .g_select-card-addcart a[data-product_id],
body.logged-in.single-product .g_select-card-item figure .g_select-card-addcart a[data-product_id],
body.logged-in.single-product a[data-quantity="1"].addcart-button,
body.logged-in.single-product a[rel="nofollow"].addcart-button,
body.logged-in.single-product .g_select-card-links a[data-quantity="1"],
body.logged-in.single-product .g_select-card-addcart a[data-quantity="1"],
body.logged-in.product-template-default a.addcart-button[data-product_id],
body.logged-in.product-template-default .g_select-card-addcart a[data-product_id],
body.logged-in.product-template-default .g_select-card-item figure .g_select-card-addcart a[data-product_id],
body.logged-in.product-template-default a[data-quantity="1"].addcart-button,
body.logged-in.product-template-default a[rel="nofollow"].addcart-button,
body.logged-in.product-template-default .g_select-card-links a[data-quantity="1"],
body.logged-in.product-template-default .g_select-card-addcart a[data-quantity="1"] {
    width: 100% !important; /* عرض 100% برای صفحه محصول */
}

/* اصلاح استایل برای دکمه با href خاص - برای کاربران لاگین شده */
body.logged-in a[href*="add-to-cart"][data-quantity="1"].addcart-button {
    padding: 10px 15px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border-radius: 4px !important;
    display: block !important;
    width: 80% !important; /* عرض 80% برای صفحه اصلی */
    margin-left: auto !important; /* مرکز قرار دادن دکمه */
    margin-right: auto !important; /* مرکز قرار دادن دکمه */
    text-align: center !important;
    min-height: 40px !important;
}

/* اصلاح استایل برای دکمه با href خاص در صفحه محصول - برای کاربران لاگین شده */
body.logged-in.single-product a[href*="add-to-cart"][data-quantity="1"].addcart-button,
body.logged-in.product-template-default a[href*="add-to-cart"][data-quantity="1"].addcart-button {
    width: 100% !important; /* عرض 100% برای صفحه محصول */
}



/* استایل جدید و شیک برای تب‌ها */
.tabs.wc-tabs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: transparent !important;
    gap: 15px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 15px !important;
    width: 100% !important;
    overflow: visible !important;
}

.tabs.wc-tabs::before,
.tabs.wc-tabs::after {
    display: none !important; /* حذف خطوط اضافی */
}

.tabs.wc-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    position: relative !important;
    float: none !important;
    display: block !important;
    z-index: 1 !important;
}

.tabs.wc-tabs li::before,
.tabs.wc-tabs li::after {
    display: none !important; /* حذف خطوط اضافی */
}

.tabs.wc-tabs li a {
    display: block !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-decoration: none !important;
    background-color: #f8f8f8 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border: 1px solid #eee !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    text-align: center !important;
}

.tabs.wc-tabs li:hover a {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.tabs.wc-tabs li.active {
    z-index: 2 !important;
}

.tabs.wc-tabs li.active a {
    background-color: #4CAF50 !important;
    color: white !important;
    font-weight: 600 !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* استایل برای حالت موبایل */
@media (max-width: 768px) {
    .tabs.wc-tabs {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    
    .tabs.wc-tabs li {
        width: 100% !important;
    }
    
    .tabs.wc-tabs li a {
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
}

/* استایل برای محتوای تب‌ها */
.woocommerce-Tabs-panel {
    padding: 25px !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    margin-top: 10px !important;
    border: 1px solid #f0f0f0 !important;
}

.woocommerce-Tabs-panel h2 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
}
 





/* استایل پایه برای المان changes-title */
.changes-title {
    /* استایل‌های موجود حفظ می‌شوند */
}

.changes-title p {
    /* استایل‌های موجود حفظ می‌شوند */
}

/* کاهش ارتفاع و اندازه متن در موبایل */
@media (max-width: 768px) {
    .changes-title {
        padding: 8px 10px !important; /* کاهش پدینگ */
        min-height: auto !important; /* حذف حداقل ارتفاع */
        height: auto !important; /* ارتفاع خودکار */
        margin-bottom: 10px !important; /* کاهش فاصله از پایین */
    }
    
    .changes-title p {
        font-size: 13px !important; /* کاهش اندازه فونت */
        line-height: 1.3 !important; /* کاهش ارتفاع خط */
        margin: 0 !important; /* حذف مارجین */
        padding: 0 !important; /* حذف پدینگ */
    }
}

/* برای موبایل‌های کوچک‌تر */
@media (max-width: 480px) {
    .changes-title {
        padding: 6px 8px !important; /* پدینگ کمتر */
    }
    
    .changes-title p {
        font-size: 12px !important; /* فونت کوچک‌تر */
    }
}
/* کاهش ارتفاع کل باکس اسلایدر فقط در موبایل */
@media (max-width: 768px) {
    /* کاهش ارتفاع کل کانتینر */
    .last-holder.container {
        max-height: 150px !important; /* تنظیم حداکثر ارتفاع کل باکس */
        overflow: hidden !important; /* مخفی کردن محتوای اضافی */
    }
    
    /* کاهش ارتفاع اسلایدر */
    .swiper-change, 
    .swiper-change .swiper-wrapper {
        max-height: 110px !important; /* کاهش ارتفاع اسلایدر */
    }
    
    /* کاهش ارتفاع اسلایدها */
    .swiper-slide {
        max-height: 110px !important;
    }
}

/* برای موبایل‌های کوچک‌تر */
@media (max-width: 480px) {
    /* کاهش بیشتر ارتفاع کل کانتینر */
    .last-holder.container {
        max-height: 130px !important;
    }
    
    /* کاهش بیشتر ارتفاع اسلایدر */
    .swiper-change,
    .swiper-change .swiper-wrapper {
        max-height: 90px !important;
    }
    
    /* کاهش بیشتر ارتفاع اسلایدها */
    .swiper-slide {
        max-height: 90px !important;
    }
}

/* تنظیم موقعیت اسلایدر - 30px بالاتر در موبایل */
@media (max-width: 768px) {
    /* کاهش ارتفاع کل کانتینر */
    .last-holder.container {
        max-height: 150px !important;
        overflow: hidden !important;
    }
    
    /* کاهش فاصله بین عنوان و اسلایدر */
    .changes-title {
        margin-bottom: 0 !important;
    }
    
    /* انتقال اسلایدر 30px به بالا */
    .swiper-change {
        margin-top: -30px !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* اطمینان از نمایش درست محتوای اسلایدر */
    .swiper-change .swiper-wrapper {
        padding-top: 30px !important;
    }
    
    /* کاهش ارتفاع اسلایدر */
    .swiper-change, 
    .swiper-change .swiper-wrapper {
        max-height: 110px !important;
    }
    
    /* کاهش ارتفاع اسلایدها */
    .swiper-slide {
        max-height: 110px !important;
    }
}

/* برای موبایل‌های کوچک‌تر */
@media (max-width: 480px) {
    /* کاهش بیشتر ارتفاع کل کانتینر */
    .last-holder.container {
        max-height: 140px !important;
    }
    
    /* کاهش بیشتر ارتفاع اسلایدر */
    .swiper-change,
    .swiper-change .swiper-wrapper {
        max-height: 100% !important;
    }
    
    /* کاهش بیشتر ارتفاع اسلایدها */
    .swiper-slide {
        max-height: 1110px !important;
			margin-top:-10px;
    }
}

.g_select-card-links {
  margin-top: -12px;
  position: relative;
  z-index: 1;
}

@media only screen and (max-width: 576px) {
  /* استفاده از عرض ثابت و حذف ویژگی‌های اضافی */
  a.addcart-button.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    width: 134px !important;
    height: 25px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    line-height: 25px !important;
    box-sizing: border-box !important;
  }
  
  a.addcart-button.button.product_type_simple.add_to_cart_button.ajax_add_to_cart p {
    margin-top: 7px !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height:  !important;
    text-align: center !important;
  }
}
/* مخفی کردن در صفحه‌نمایش‌های با عرض 768 پیکسل یا کمتر */
@media only screen and (max-width: 568px) {
  .items-3i {
    display: none !important;
  }
  .items-4i {
		    display: none !important;
  }
	
	/* روش 1: استفاده از margin منفی برای عنصر والد */
.g_select-card-title-first, 
.g_select-card-title-first ~ * {
  margin-top: -30px !important;
  position: relative;
  z-index: 1;
}
.g_select-card-title-first {
  position: relative;
  top: -30px !important;
  z-index: 1;
}
.cat-description {
  display: flex !important;
  flex-direction: column !important; /* عناصر را به صورت ستونی (زیر هم) قرار می‌دهد */
  align-items: flex-start !important; /* عناصر از سمت راست تراز می‌شوند */
}

.cat-description > div {
  display: block !important; /* تغییر از inline-block به block */
  max-width: 100% !important; /* استفاده از کل عرض موجود */
  margin-bottom: 10px !important; /* فاصله بین متن و دکمه */
}

.cat-description .btn {
  margin-top: 5px !important; /* فاصله اضافی از بالا */
  align-self: flex-start !important; /* دکمه از سمت راست تراز می‌شود */
}
.ul-holderr {
  height: auto !important; /* حذف محدودیت ارتفاع ثابت */
  max-height: none !important; /* حذف محدودیت حداکثر ارتفاع */
  overflow-y: visible !important; /* حذف اسکرول عمودی */
}

.ul-holderr .fa-ul {
  height: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
}

.ul-holderr .fa-ul li {
  height: auto !important;
  margin-bottom: 15px !important; /* افزایش فاصله بین آیتم‌ها برای خوانایی بهتر */
}

.ul-holderr .fa-ul li p {
  height: auto !important;
  line-height: 1.5 !important; /* افزایش فاصله خطوط برای خوانایی بهتر */
}

	
}
/* Add more spacing between products in mobile view */
@media only screen and (max-width: 767px) {
  .swiper-sameproduct .swiper-slide {
    margin-left: 5px !important;
    margin-right: 5px !important;
  }
  
  /* Adjust the width to account for the new spacing */
  .swiper-sameproduct .swiper-slide {
    width: calc(100% - 40px) !important;
  }
  
  /* Ensure the swiper container has proper padding */
  .swiper-sameproduct {
    padding: 0 0px;
  }
}


@media only screen and (max-width: 576px) {
    .seepro-button, .notif-button, .sms-notif-enable-label {
      width: auto !important;
      max-width: 140px !important;
      height: 25px !important;
      padding: 2px 8px !important;
      font-size: 11px !important;
      line-height: 1.2 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
    }
    .seepro-button p, .notif-button p, .sms-notif-enable-label p {
      margin: 0 !important;
      padding: 0 !important;
      font-size: 11px !important;
      line-height: 1.2 !important;
    }
	.giftcart-items > div {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 -2.5px !important;
}

.g_select-card-item {
  padding: 0 2.5px !important;
  margin-bottom: 5px !important;
}

.g_select-card-item.col-lg-3,
.g_select-card-item.col-md-4,
.g_select-card-item.col-sm-6,
.g_select-card-item.col-8 {
  padding-right: 2.5px !important;
  padding-left: 2.5px !important;
}

.g_select-card-item figure {
  margin: 0 !important;
}

  }

@media only screen and (max-width: 576px) {
  .date-holder {
    position: relative !important;
    top: -100px !important;
    margin-bottom: -40px !important;
  }
}
@media only screen and (max-width: 576px) {
  .dot {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 30px !important;
  }
  .dot p {
margin-top:30px;
    padding: 0 !important;
    line-height: 3.5 !important;
  }
}

@media only screen and (max-width: 576px) {
  .date-box {
    display: none !important;
  }
  .date-holder {
    justify-content: flex-end !important;
  }
}




@media only screen and (max-width: 576px) {.g_suggestion-item-name {
  margin-right: -25px !important;
  text-align: right !important;
}
	.menu-item .nav-link {
  font-size: 12px !important;
}
  /* حذف اسکرول افقی در سبد خرید */
    .right-content {
      overflow-x: hidden !important;
      max-width: 100% !important;
      width: 100% !important;
    }
   a#topDiscount.off-products {
        margin-left: -60px !important;
        position: relative !important;
        left: -60px !important;
        transform: translateX(-60px) !important;
    }
}


/* مخفی کردن ooffer2 در صفحات دسته‌بندی محصولات */
.tax-product_cat .g_select-card-item figure .ooffer2,
.post-type-archive-product .g_select-card-item figure .ooffer2,
body[class*="product-category"] .g_select-card-item figure .ooffer2 {
  display: none !important;
}

/* به طور خاص برای دسته‌بندی پلی استیشن */
.term-playstation-giftcard .g_select-card-item figure .ooffer2,
.product-category-playstation-giftcard .g_select-card-item figure .ooffer2,
body[class*="playstation-giftcard"] .g_select-card-item figure .ooffer2 {
  display: none !important;
}



/* سلکتورهای قوی‌تر برای اطمینان از اعمال تغییرات */
div.ooffer2,
.product-item .ooffer2,
.product-box .ooffer2,
.g_select-card-item .ooffer2,
[class*="product"] .ooffer2 {
    position: relative !important;
    top: 00px !important;
    margin-top: 20px !important;
}

/* تلاش با استفاده از transform */
div.ooffer2,
.product-item .ooffer2,
.product-box .ooffer2,
.g_select-card-item .ooffer2,
[class*="product"] .ooffer2 {
    transform: translateY(-50px) !important;
}





/* استایل‌های مشترک برای figure در همه باکس‌های محصول */
.box-img-pro .g_select-card-item figure,
.swiper-wrapper.giftcart-items .g_select-card-item figure {
  position: relative !important;
  overflow: visible !important; /* اطمینان از نمایش عناصر فرزند که خارج از محدوده هستند */
}

/* تنظیم لیبل تخفیف */
.swiper-wrapper.giftcart-items .g_select-card-item figure .ooffer2 {
  top: 10px !important;
  z-index: 10 !important;
}

/* تنظیم باکس اطلاع‌رسانی قرمز در باکس‌های معمولی */
.box-img-pro .g_select-card-item figure .payamnot {
  font-size: 14px !important;
  position: absolute !important;
  top: 185px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 2px 5px !important;
  line-height: 1.2 !important;
  z-index: 10 !important;
  width: auto !important;
  max-width: 90% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* تنظیم باکس اطلاع‌رسانی قرمز در اسلایدر */
.swiper-wrapper.giftcart-items .g_select-card-item figure .payamnot {
  font-size: 14px !important;
  position: absolute !important;
  top: 185px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 2px 5px !important;
  line-height: 1.2 !important;
  z-index: 10 !important;
  width: auto !important;
  max-width: 90% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* تنظیمات خاص برای اسلایدر با ID مشخص - اگر نیاز به تنظیمات متفاوتی دارد */
#swiper-wrapper-636f363cac272758 .g_select-card-item figure .payamnot {
  font-size: 10px !important;
  top: 25px !important;
}

/* Media query برای موبایل - اطمینان از سازگاری در صفحات نمایش کوچک */
@media only screen and (max-width: 768px) {
  .box-img-pro .g_select-card-item figure .payamnot,
  .swiper-wrapper.giftcart-items .g_select-card-item figure .payamnot {
    font-size: 12px !important;
    top: 150px !important;
    padding: 1px 4px !important;
  }
  
  .swiper-wrapper.giftcart-items .g_select-card-item figure .ooffer2 {
    top: 5px !important;
  }
}



/* کاهش ارتفاع باکس‌های محصول فقط در باکس مشخص شده */
.g_select-card-content#g_19 .g_select-card-item figure {
  min-height: 390px !important;
}

.g_select-card-content#g_19 .g_select-card-item figcaption {
  padding-bottom: 10px !important;
}

.g_select-card-content#g_19 .g_select-card-links {
  margin-top: -10px !important;
}

.g_select-card-content#g_19 .g_select-card-price {
  padding-top: 10px !important;
}

.g_select-card-content#g_19 .g_select-card-name {
  transform: translateY(20px) !important;
  margin-bottom: 5px !important;
}



/* انیمیشن چشمک زدن ساده (فقط تغییر شفافیت) برای نشان فروش ویژه */
.special-sale-badge {
  animation: simple-blink 1.5s infinite !important;
}

@keyframes simple-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
/* تغییر اندازه دکمه ورود/عضویت با سلکتورهای دقیق‌تر و اولویت بالاتر */
@media only screen and (min-width: 577px) {
  html body a.lrm-login.button.addcart-button.digits-login-modal,
  html body a.lrm-login.button.addcart-button.digits-login-modal > span,
  html body a.lrm-login.button.addcart-button.digits-login-modal > span > span {
    max-width: 175px !important;
    width: 185px !important;
    min-width: 185px !important;
    height: 40px !important; /* ارتفاع کمتر */
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 40px !important; /* تنظیم line-height برابر با height */
    font-size: 12px !important;
    padding: 0 8px !important; /* حذف padding عمودی */
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
}
/* انتقال لیبل تخفیف به پایین‌تر (100px) */

/* انتقال لیبل تخفیف فقط در باکس‌های محصول در تب خاص */
#g_19 .g_select-card-item figure .ooffer2 {
    position: relative !important;
    top: 150px !important;
    z-index: 10 !important;
}

/* انتقال لیبل تخفیف به پایین‌تر در باکس‌های محصول */
figure.g_nosale_item .ooffer2 {
    position: relative !important;
    top: -150px !important;
    z-index: 10 !important; /* اطمینان از نمایش روی سایر المان‌ها */
}

/* حذف انیمیشن هاور از وسط دکمه افزودن به سبد خرید */
.addcart-button.button.product_type_simple.add_to_cart_button.ajax_add_to_cart::before,
.addcart-button.button.product_type_simple.add_to_cart_button.ajax_add_to_cart::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    content: none !important;
}

/* اطمینان از عدم نمایش هر نوع المنت اضافی در حالت هاور */
.addcart-button.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover::before,
.addcart-button.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    content: none !important;
}


/* اطمینان از اعمال استایل در موبایل */

    .addcart-button.digits-login-modal,
    .addcart-button.digits-login-modal span,
    .digits-login-modal[type="1"] span {
        font-family: IRANSans, Tahoma, Arial, sans-serif !important;
        font-weight: normal !important;
        font-size: 12px !important;
    }


/* برای اطمینان بیشتر، کلاس عمومی‌تر را نیز هدف قرار می‌دهیم */
/* حذف هاور برای همه دکمه‌های addcart-button */
.addcart-button::before,
.addcart-button::after,
.addcart-button:hover::before,
.addcart-button:hover::after {
    content: none !important;
}

/* بازگرداندن هاور فقط برای دکمه ورود/عضویت */
.digits-login-modal::before,
.digits-login-modal::after,
.digits-login-modal:hover::before,
.digits-login-modal:hover::after {
    content: "" !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* اضافه کردن سایر ویژگی‌های مورد نیاز برای هاور دکمه ورود/عضویت */
}



@media only screen and (max-width: 767px) {
    /* تغییر نمایش سطر جدول به صورت فلکس باکس */
    .woocommerce-cart-form__cart-item {
        display: flex !important;
        flex-wrap: wrap !important;
        position: relative !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #eee !important;
    }
    
    /* مخفی کردن هدر جدول در موبایل */
    .woocommerce-cart-form thead {
        display: none !important;
    }
    
    /* تنظیم سلول نام محصول - عرض کامل */
    .woocommerce-cart-form__cart-item td:first-child {
        width: 100% !important;
        display: block !important;
        text-align: right !important;
        padding: 5px 0 !important;
        order: 1 !important; /* اول نمایش داده شود */
    }
    
    /* تنظیم سلول قیمت - دوم */
    .woocommerce-cart-form__cart-item td:nth-child(2) {
        width: 100% !important;
        display: block !important;
        text-align: right !important;
        padding: 5px 0 !important;
        order: 2 !important; /* دوم نمایش داده شود */
    }
    
    /* تنظیم سلول تعداد - سوم */
    .woocommerce-cart-form__cart-item td.product-quantity {
        display: inline-block !important;
        text-align: right !important;
        padding: 5px 0 !important;
        order: 3 !important; /* سوم نمایش داده شود */
        position: relative !important;
        width: 20% !important; /* کاهش عرض برای فضای آیکون حذف */
    }
    
    /* تنظیم دکمه حذف - کنار بخش تعداد */
    .woocommerce-cart-form__cart-item td.product-remove {
        width: 20% !important;
        display: flex !important; /* تغییر به flex برای مرکز قرار دادن آیکون */
        justify-content: center !important; /* مرکز افقی */
        align-items: center !important; /* مرکز عمودی */
        padding: 5px 0 !important;
        order: 4 !important; /* چهارم نمایش داده شود */

    }
    
    /* اطمینان از نمایش آیکون حذف */
    .woocommerce-cart-form__cart-item td.product-remove a.remove {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 20 !important;
        margin: 0 auto !important; /* مرکز قرار دادن با margin */
    }
    
    /* اگر آیکون یک تصویر یا فونت آیکون است، اطمینان از نمایش صحیح */
    .woocommerce-cart-form__cart-item td.product-remove a.remove:before,
    .woocommerce-cart-form__cart-item td.product-remove a.remove i {
        display: block !important;
        margin: 0 auto !important;
    }
}

    
    .qib-button {
        padding: 2px 5px !important;
        font-size: 12px !important;
    }
    
    .wqpmb_input_text {
        width: 30px !important;
        padding: 2px !important;
        font-size: 12px !important;
    }
    
    /* تنظیم فاصله بین عناصر */
    .woocommerce-cart-form__cart-item td {
        margin-bottom: 5px !important;
    }
    
    /* ایجاد یک container برای بخش تعداد و دکمه حذف */
    .woocommerce-cart-form__cart-item::after {
        content: "";
        display: block;
        clear: both;
        width: 100%;
    }
}


@media only screen and (max-width: 767px) {
    /* تنظیم جهت متن به راست به صورت قوی‌تر */
    .woocommerce-cart-form__cart-item td {
        direction: rtl !important;
        float: right !important;
        text-align: right !important;
    }
    
    /* برای محتوای داخلی سلول‌ها */
    .woocommerce-cart-form__cart-item td p,
    .woocommerce-cart-form__cart-item td span,
    .woocommerce-cart-form__cart-item td a,
    .woocommerce-cart-form__cart-item td .woocommerce-Price-amount {
        direction: rtl !important;
        float: right !important;
        text-align: right !important;
        width: 100% !important;
    }
    
    /* برای سلول حذف محصول */
    .woocommerce-cart-form__cart-item td.product-remove a {
        float: right !important;
        margin-right: 0 !important;
        margin-left: auto !important;
    }
}


/* قرار دادن باکس "کد تخفیف" کاملاً در سمت راست صفحه */
@media only screen and (max-width: 767px) {
    .free.d-flex {
        width: 50% !important;
        margin: 0 !important; /* حذف تمام margin‌ها */
        float: right !important;
        clear: both !important;
        flex-wrap: wrap !important;
        padding: 5px !important;
        border-radius: 10px !important;
        position: relative !important; /* برای اطمینان از عملکرد درست */
        right: 0 !important; /* چسباندن به لبه راست */
    }
    
    /* تنظیمات محتوای داخلی مانند قبل */
    .free.d-flex > div,
    .free.d-flex input[type="text"],
    .free.d-flex button {
        width: 100% !important;
        font-size: 0.8em !important;
        margin: 3px 0 !important;
    }
    
    /* تنظیم container والد */
    .hold {
        position: relative !important; /* برای اطمینان از عملکرد درست */
        overflow: hidden !important;
    }
}

/* تنظیم عرض کمتر و محتوای فشرده‌تر */
@media only screen and (max-width: 767px) {
    /* استفاده از ID یا کلاس منحصر به فرد برای هدف قرار دادن دقیق عنصر */
    #g_cart .count.d-flex,
    .woocommerce-cart-form__cart-item .count.d-flex {
        width: 50% !important; /* عرض کمتر */
    }
}

    
    .count.d-flex > div {
        padding: 3px !important; /* پدینگ کمتر */
    }
    
    .count.d-flex > div:first-child,
    .count.d-flex .woocommerce-Price-amount,
    .count.d-flex .woocommerce-Price-currencySymbol {
        font-size: 0.9em !important; /* متن کوچک‌تر */
    }
    
    .count.d-flex #cartTimer {
        transform: scale(0.7) !important; /* تایمر کوچک‌تر */
    }
    
    .count.d-flex [id^="custom-left-mask-"],
    .count.d-flex [id^="custom-right-mask-"] {
        width: 50px !important; /* ماسک‌های کوچک‌تر */
    }
}

    /* تنظیم عرض جدول سبد خرید و محتوای آن برای موبایل */
@media only screen and (max-width: 767px) {
    /* تنظیم عرض کل جدول و محتوای آن */
    .box-right .woocommerce-cart-form__contents {
        width: 40% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        table-layout: fixed !important;
    }
    
    /* تنظیم عرض بدنه جدول */
    .box-right .woocommerce-cart-form__contents tbody {
        width: 100% !important;
        display: block !important;
    }
    
    /* تنظیم عرض ردیف‌های جدول */
    .box-right .woocommerce-cart-form__contents tr {
        width: 100% !important;
        display: block !important;
    }
    
    /* تنظیم عرض سلول‌های جدول */
    .box-right .woocommerce-cart-form__contents td {
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    /* اطمینان از اعمال عرض روی ردیف محصول */
    .box-right .woocommerce-cart-form__cart-item.cart_item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* کوچک‌تر کردن متن‌ها */
    .box-right .woocommerce-cart-form__contents td p,
    .box-right .woocommerce-cart-form__contents .woocommerce-Price-amount {
        font-size: 0.8em !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }
    
    /* تنظیم اندازه دکمه‌های افزایش/کاهش تعداد */
    .box-right .qib-button-wrapper {
        transform: scale(0.8) !important;
        transform-origin: center !important;
        margin: 0 auto !important;
    }
    
    /* مخفی کردن هدر جدول */
    .box-right .woocommerce-cart-form__contents thead {
        display: none !important;
    }
    
    /* تنظیم عرض برای موبایل‌های کوچک‌تر */
    @media only screen and (max-width: 480px) {
        .box-right .woocommerce-cart-form__contents {
            width: 70% !important;
        }
    }
    
    /* اطمینان از اعمال تغییرات با استفاده از !important */
    .box-right .right-content {
        width: auto !important;
        overflow: visible !important;
    }
    
    /* تنظیم عرض کل بخش سبد خرید */
    .box-right {
        width: auto !important;
        overflow: visible !important;
    }
}







    /* تنظیم بخش تعداد محصول */
    .box-right .product-quantity {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .box-right .qib-button-wrapper {
        margin-right: auto;
    }
}

/* =================== */
/* 1. مخفی کردن قیمت خط‌خورده و درصد تخفیف */
/* =================== */
.g_select-card-price del,
.g_select-card-price .discount-percent {
    display: none !important;
}

.g_select-card-price ins {
    text-decoration: none !important;
}

.g_select-card-item .price del,
.g_select-card-item .price .discount-percent {
    display: none !important;
    visibility: hidden !important;
}

/* =================== */
/* 2. مخفی کردن باکس درصد تخفیف */
/* =================== */
.g_select-card-item .onsale-box,
.g_select-card-item .onsale,
.onsale-box,
.onsale {
    display: none !important;
    visibility: hidden !important;
}

/* =================== */
/* 3. تنظیم آخرین محصول تک‌مانده در موبایل */
/* =================== */

/* مخفی کردن باکس اعلانات در ابتدا - بدون !important برای display */


/* استایل برای باکس اعلانات در حالت نمایش */
@media only screen and (max-width: 767px) {
    .notif-box.show-notification {
        visibility: visible;
        opacity: 1;
        position: fixed;
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 20px;
        height: auto;
        width: auto;
        overflow: visible;
        z-index: 9999;
        max-width: 90%;
        margin: 0 auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        background-color: white;
        animation: slideUp 0.5s ease forwards;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* دکمه بستن */
    .notif-box .close-btn {
        position: absolute;
        top: 10px;
        left: 10px;
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: #666;
        z-index: 1;
    }
}
/* 5. تنظیم کارت محصول */
/* =================== */
.g_select-card-item {
    margin-bottom: 20px !important;
}

.g_select-card-name {
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal !important; /* تغییر از nowrap به normal */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    padding: 0 5px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    height: auto !important; /* اجازه می‌دهد ارتفاع متناسب با محتوا تنظیم شود */
}

/* =================== */
/* 6. تنظیم نمایش محصولات در موبایل */
/* =================== */
@media (max-width: 767px) {
	/* =================== */
/* 4. تنظیم دکمه افزودن به سبد خرید */
/* =================== */
a.addcart-button.button.product_type_simple.add_to_cart_button,
a.addcart-button.button.add_to_cart_button,
a.product_type_simple.add_to_cart_button,
a[class*="addcart-button"][class*="add_to_cart_button"],
body a.button.add_to_cart_button,
html body a.button.add_to_cart_button,
html body.woocommerce a.button.add_to_cart_button {
    min-width: 140px !important;
    max-width: 150px !important;
    width: auto !important;
    font-size: 9px !important;
    padding: 5px 8px !important;
    line-height: 1.2 !important;
    height: 30px !important;
    max-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

a.addcart-button.button.product_type_simple.add_to_cart_button p,
a.addcart-button.button.add_to_cart_button p,
a.product_type_simple.add_to_cart_button p,
a[class*="addcart-button"][class*="add_to_cart_button"] p,
body a.button.add_to_cart_button p,
html body a.button.add_to_cart_button p,
html body.woocommerce a.button.add_to_cart_button p {
    font-size: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
    /* کانتینر اصلی */
    div:has(> .g_select-card-item) {
        display: flex;
      
        justify-content: space-between;
    }
    
    /* هر آیتم محصول */
    .g_select-card-item {
        width: calc(50% - 5px) !important;
        margin: 0 0 10px 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }
    
    /* تنظیم عنوان محصول */
    .g_select-card-item .g_select-card-name {
        font-size: 12px !important;
        line-height: 1.3 !important;
        height: 32px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        transform: translateY(15px) !important;
    }
    
    /* تنظیم قیمت */
    .g_select-card-item .g_select-card-price {
        padding-top: 10px !important;
        font-size: 12px !important;
    }
}

/* =================== */
/* 7. تنظیم دکمه لاگین */
/* =================== */
a.lrm-login.button.addcart-button.digits-login-modal[type="1"] {
    padding: 12px 25px !important;
    font-size: 10px !important;
    min-width: 125px !important;
}

a.lrm-login.button.addcart-button.digits-login-modal[type="1"] span {
    font-size: 10px !important;
}

a.lrm-login.button.addcart-button.digits-login-modal[type="1"]:hover,
a.lrm-login.button.addcart-button.digits-login-modal[type="1"]:active,
a.lrm-login.button.addcart-button.digits-login-modal[type="1"]:focus {
    padding: 12px 25px !important;
    font-size: 10px !important; /* اصلاح شده از 10x به 10px */
}

/* =================== */
/* 8. تنظیمات اضافی برای موبایل */
/* =================== */
@media (max-width: 767px) {
    /* تنظیم قیمت دلاری */
    .g_select-card-item .g_doller_price {
        font-size: 11px !important;
        padding: 3px 5px !important;
    }
    
    /* تنظیم پیام اتمام موجودی */
    .g_select-card-item .payamnot {
        font-size: 11px !important;
        padding: 3px 5px !important;
    }
    
    /* تنظیم فیگور */
    .g_select-card-item figure {
        padding: 10px 5px !important;
        margin: 0 !important;
    }
    
    /* تنظیم فیگکپشن */
    .g_select-card-item figcaption {
        padding: 5px !important;
    }
}

/* =================== */
/* 9. تنظیمات برای صفحه‌نمایش‌های خیلی کوچک */
/* =================== */
@media (max-width: 359px) {
    .g_select-card-item .g_select-card-name {
        font-size: 10px !important;
    }
    
    .g_select-card-item .g_select-card-price {
        font-size: 10px !important;
    }
    
    .g_select-card-item .seepro-button p,
    .g_select-card-item .notif-button p {
        font-size: 10px !important;
    }
}

/* =================== */
/* 10. اصلاح موقعیت و عرض محتوا */
/* =================== */
.row.align-items-end {
    margin-right: -5px !important;
    margin-left: -5px !important;
    width: calc(100% + 20px) !important;
}

@media (max-width: 768px) {
    .row.align-items-end {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* =================== */
/* 11. بهبود نمایش محصولات */
/* =================== */
.g_select-card-item.archive-espbox {
    padding-left: 10px;
    padding-right: 15px;
}

/* =================== */
/* 12. اصلاح نوار مرتب‌سازی */
/* =================== */
.category-page__top-block {
    margin-left: 0px; /* اصلاح شده از px به 0px */
    margin-right: 5px;
}

/* =================== */
/* 13. جلوگیری از فلیکر هنگام بارگذاری */
/* =================== */
.no-js .swiper-sameproduct,
.no-js .giftcart-items,
.no-js .cat-description {
    visibility: hidden;
}

.js-loaded .swiper-sameproduct,
.js-loaded .giftcart-items,
.js-loaded .cat-description {
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* =================== */
/* 14. تنظیم دکمه لاگین در موبایل */
/* =================== */
@media only screen and (max-width: 576px) {
    a.lrm-login.button.addcart-button.digits-login-modal {
        max-width: 140px !important;
        width: auto !important;
        height: 25px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
        line-height: 25px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    a.lrm-login.button.addcart-button.digits-login-modal span,
    a.lrm-login.button.addcart-button.digits-login-modal span span {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
 /*استایل دهی به باکس اضافه کردن محصول در صحفه محصول ها*/
     /* استایل بهبود یافته برای دکمه‌های افزایش و کاهش تعداد محصول */
    
    /* استایل عمومی برای همه دستگاه‌ها */
    .qib-button-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 5px auto !important;
        border-radius: 8px !important;
        background-color: #f5f5f5 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        overflow: hidden !important;
        padding: 0 !important;
        max-width: 140px !important;
        height: 40px !important;
    }
    
    /* دکمه‌های + و - */
    .qib-button {
        width: 40px !important;
        height: 40px !important;
        border: none !important;
        background-color: transparent !important;
        color: #333 !important;
        font-size: 16px !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
        flex: 0 0 40px !important;
    }
    
    /* افکت هاور برای دکمه‌ها */
    .qib-button:hover {
        background-color: rgba(0, 0, 0, 0.05) !important;
    }
    
    /* افکت اکتیو برای دکمه‌ها */
    .qib-button:active {
        background-color: rgba(0, 0, 0, 0.1) !important;
        transform: scale(0.97) !important;
    }
    
    /* فیلد ورودی تعداد */
    .qib-button-wrapper .quantity {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* اینپوت تعداد */
    .qib-button-wrapper .quantity .qty {
        width: 100% !important;
        height: 40px !important;
        border: none !important;
        background-color: transparent !important;
        color: #333 !important;
        font-size: 15px !important;
        font-weight: bold !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 30px !important;
        box-shadow: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: textfield !important;
    }
    
    /* حذف دکمه‌های افزایش و کاهش پیش‌فرض مرورگر */
    .qib-button-wrapper .quantity .qty::-webkit-outer-spin-button,
    .qib-button-wrapper .quantity .qty::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }
    
    /* استایل برای حالت غیرفعال دکمه‌ها */
    .qib-button.disabled,
    .qib-button:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
    }
    
    /* استایل خاص برای موبایل */
    @media only screen and (max-width: 767px) {
        .qib-button-wrapper {
            height: 36px !important;
            max-width: 120px !important;
            border-radius: 18px !important;
            background-color: #f0f0f0 !important;
        }
        
        .qib-button {
            width: 36px !important;
            height: 36px !important;
            font-size: 15px !important;
            flex: 0 0 36px !important;
        }
        
        .qib-button-wrapper .quantity .qty {
            height: 36px !important;
            font-size: 14px !important;
        }
        
        /* استایل برای محصولات در سبد خرید */
        .woocommerce-cart .qib-button-wrapper {
            margin: 5px auto !important;
        }
        
        /* استایل برای صفحه محصول */
        .single-product .qib-button-wrapper {
            margin: 10px 0 !important;
        }
        
        /* استایل برای محصولات مرتبط و پیشنهادی */
        .related .qib-button-wrapper,
        .upsells .qib-button-wrapper {
            margin: 5px auto !important;
            max-width: 100px !important;
            height: 30px !important;
        }
        
        .related .qib-button,
        .upsells .qib-button {
            width: 30px !important;
            height: 30px !important;
            font-size: 14px !important;
            flex: 0 0 30px !important;
        }
        
        .related .qib-button-wrapper .quantity .qty,
        .upsells .qib-button-wrapper .quantity .qty {
            height: 30px !important;
            font-size: 13px !important;
        }
    }
    
    /* استایل خاص برای سبد خرید شناور */
    .order-fish-box .qib-button-wrapper {
        background-color: #333 !important;
        border-radius: 4px !important;
        height: 32px !important;
        max-width: 100px !important;
    }
    
    .order-fish-box .qib-button {
        width: 32px !important;
        height: 32px !important;
        color: #fff !important;
        font-size: 14px !important;
        flex: 0 0 32px !important;
    }
    
    .order-fish-box .qib-button:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .order-fish-box .qib-button:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    .order-fish-box .qib-button-wrapper .quantity .qty {
        height: 32px !important;
        color: #fff !important;
        font-size: 14px !important;
    }
    
    /* تم تیره برای سبد خرید */
    .woocommerce-cart .qib-button-wrapper {
        background-color: #f5f5f5 !important;
    }
    
    /* استایل برای حالت تبلت */
    @media only screen and (min-width: 768px) and (max-width: 1024px) {
        .qib-button-wrapper {
            height: 38px !important;
            max-width: 130px !important;
        }
        
        .qib-button {
            width: 38px !important;
            height: 38px !important;
        }
        
        .qib-button-wrapper .quantity .qty {
            height: 38px !important;
        }
    }
    
    
    /* تغییر رنگ دکمه‌های + و - به رنگ تیره */
.qib-button-wrapper .qib-button {
    background-color: #333333 !important; /* رنگ پس‌زمینه تیره */
    color: #ffffff !important; /* رنگ متن سفید */
    border-color: #222222 !important; /* رنگ حاشیه تیره */
}

/* تغییر رنگ دکمه‌ها در حالت هاور */
.qib-button-wrapper .qib-button:hover {
    background-color: #555555 !important; /* رنگ پس‌زمینه تیره‌تر در حالت هاور */
}

/* تغییر رنگ عدد نمایش داده شده */
.qib-button-wrapper .quantity input.qty {
    color: #333333 !important; /* رنگ متن تیره */
    background-color: #f5f5f5 !important; /* رنگ پس‌زمینه روشن */
    border-color: #333333 !important; /* رنگ حاشیه تیره */
}

/* تغییر رنگ کل باکس تعداد */
.product-quantity .qib-button-wrapper {
    border-color: #444444 !important; /* رنگ حاشیه تیره برای کل باکس */
}
/* تیره کردن عدد وسط (مقدار تعداد) */
.qib-button-wrapper .quantity input.qty,
.wqpmb_quantity input[type="number"],
.wqpmb_input_text {
    color: #000000 !important; /* رنگ متن سیاه */
    font-weight: bold !important; /* ضخیم کردن متن */
    background-color: #ffffff !important; /* پس‌زمینه سفید */

}

/* اطمینان از اعمال استایل با اولویت بالاتر */
.product-quantity .quantity input.qty {
    color: #000000 !important;
    font-weight: bold !important;
}

/* استایل برای حالت غیرفعال (readonly) */
.qib-button-wrapper .quantity input.qty[readonly],
.wqpmb_quantity input[readonly] {
    color: #000000 !important;
    opacity: 1 !important; /* جلوگیری از کم‌رنگ شدن در حالت غیرفعال */
}

  /* استایل دکمه برگشت */
.menu-back-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 1050;
  transition: background-color 0.3s;
}

.menu-back-button:hover {
  background-color: #e0e0e0;
}

/* استایل مسیر منو */
.menu-path {
  padding: 10px 15px;
  font-weight: bold;
  display: none;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
}

/* انیمیشن برای تغییر منوها */
.nav-menu-category {
  transition: all 0.3s ease;
}

  
  /* جلوگیری از اسکرول body وقتی مودال باز است */
  body.modal-open {
    overflow: hidden;
    /* اضافه کردن پدینگ به اندازه عرض اسکرول‌بار برای جلوگیری از پرش */
    padding-right: 0 !important; /* بوت‌استرپ پدینگ اضافه می‌کند، ما آن را صفر می‌کنیم */
  }
  





    @media (max-width: 767px) {

      .g_select-card-item.archive-espbox {
        left: auto !important;
      }
    }
/* کاهش ارتفاع کلی بخش last-change */
.last-change {
    padding-top:20px !important;
    padding-bottom: 0px !important;
}

.g_select-card-name{
	margin-top:50px !important :
}

.onsale-box{
	display:none;
}

/* بالا بردن فقط تصاویر محصول داخل باکس giftcart-items در صفحه جستجو */
body.search .giftcart-items .g_nosale_item img.wp-post-image,
body.search .giftcart-items .g_nosale_item img.g_dark_withe,
body.search-results .giftcart-items .g_nosale_item img.wp-post-image,
body.search-results .giftcart-items .g_nosale_item img.g_dark_withe,
body.search .swiper-wrapper.giftcart-items img.wp-post-image,
body.search .swiper-wrapper.giftcart-items img.g_dark_withe,
body.search-results .swiper-wrapper.giftcart-items img.wp-post-image,
body.search-results .swiper-wrapper.giftcart-items img.g_dark_withe {
    margin-top: 210px !important;


}


/* بالا آوردن payamnot در صفحه جستجو */
.payamnot {
    margin-top: -40px !important;
}

/* بالا آوردن دکمه با استفاده از margin منفی */
.btn.btn-success {
    margin-top: -20px !important;
    position: relative !important;
    z-index: 2 !important;
}




.box-img-pro .g_select-card-item {
    margin-left: -4px !important;
}

/* If the above doesn't work, try this alternative */
.box-img-pro > .g_select-card-item {
    transform: translateX(-4px) !important;
}

/* Or try targeting the figure element directly */
.box-img-pro .g_nosale_item {
    margin-left: -4px !important;
}

/* If product info needs to be aligned as well */
.product-info-desktop {
    margin-left: -4px !important;
}


@media (max-width: 767px) {
    /* تنظیم container برای افزایش عرض کلی */
    .container {
        max-width: 100% !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
    
    /* تنظیم row برای نمایش بهتر */
    .row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    /* تنظیم عرض برای نمایش دو محصول در هر ردیف */
    .g_select-card-item.archive-espbox {
        flex: 0 0 49% !important;
        width: 49% !important;
        max-width: 49% !important;
        padding: 0 px !important;
        margin-bottom: 880px !important;
    }
    

    
    .g_select-card-item img {
        width: 60% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* بهینه‌سازی فاصله‌ها برای افزایش عرض مفید */
    .g_select-card-content {
        padding: 0 5px !important;
    }
	.g_select-card-name{
		margin-top:10px;
	}
}



.g_select-card-name {
    font-size: 14px !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: none !important;
    display: block !important;
}

/* برای موبایل */
@media (max-width: 767px) {
    .g_select-card-name {
        font-size: 10px !important;
			
    }
	.g_select-card-item figcaption h3.g_select-card-name:not(.single-product .g_select-card-item figcaption h3.g_select-card-name) {
    margin-top:0px !important;
    font-size: 10px !important;
    position: relative !important;
    top: 10px !important;
}
}
/* Force the product info box to move left and add space above it */
.product-info-desktop {
    position: relative !important;
    left: -16px !important;
    display: block !important;
    margin-top: 20px !important;
    clear: both !important;
}

/* Alternative approach using transform */
.product-info-desktop {
    transform: translateX(-4px) !important;
    margin-top: 20px !important;
    display: block !important;
}


/* If you need more space, increase this value */
.box-img-pro {
    margin-bottom: 10px !important;
}

/* استایل هر آیتم اطلاعاتی */
.product-info-box .info {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0px 11px;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hover effect */
.product-info-box .info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Add a subtle glow effect on hover */
.product-info-box .info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.product-info-box .info:hover::before {
    transform: translateX(100%);
}

/* Make text elements slightly more prominent on hover */
.product-info-box .info:hover .question {
    transform: scale(1.05);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.product-info-box .info:hover .answer {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Add transition for child elements */
.product-info-box .info .question,
.product-info-box .info .answer {
    transition: all 0.3s ease;
}

/* Optional: Add a subtle border animation */
.product-info-box .info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: width 0.3s ease, left 0.3s ease;
}

.product-info-box .info:hover::after {
    width: 100%;
    left: 0;
}

/* If you need even more specificity */
.box-img-pro .g_select-card-item figure.g_nosale_item .payamnot {
    top:100px !important;
}


/* استایل سوال‌ها */
.product-info-box .question {
    font-size: 13px !important;
    color: #ffffff !important;
    margin-bottom: 5px !important;
    display: block !important;
    width: 120% !important;
    text-align: center !important;
}


/* مخفی کردن فیلد منبع قیمت */
.form-field._price_source_field {
    display: none !important;
}


         /* استایل‌های اصلاحی برای موبایل */
        @media only screen and (max-width:456px) {

               
            .woocommerce-cart-form__cart-item.cart_item td:first-child p {
                font-size: 11px !important;
							left:-30px;
            }
  
            /* دکمه حذف - گوشه بالا سمت چپ */
            .woocommerce-cart-form__cart-item.cart_item .product-remove {
                position: absolute !important;
                top: -5px !important;
                left:55% !important;
         
            }
 
            /* اصلاح استایل دکمه‌های افزایش و کاهش */
            .qib-button-wrapper {
                display: inline-flex !important;
                background: #f5f5f5 !important;
                border-radius: 0px !important;
					width:600%

            }
        }
     @media only screen and (max-width: 767px) {
            /* تبدیل جدول به بلوک عادی */
            .woocommerce-cart-form__contents,
            .woocommerce-cart-form__contents tbody {
                display: block !important;
                width: 100% !important;
            }

            /* قیمت محصول - سمت راست */
            .woocommerce-cart-form__cart-item.cart_item td:nth-child(2) {
                width:33% !important;
							padding:0px 10px 0px 20px !important;
            }
			 
            }


         @media only screen and (max-width: 767px) {
            /* کانتینر اصلی - چیدمان افقی */
            .count.d-flex {
                display: flex !important;
                flex-direction: row !important;
                justify-content: flex-end !important; /* همه چیز به سمت راست */
                align-items: center !important;
                background-color: #f8f8f8 !important;
                padding: 1px 0px  0px  0px !important;
                margin: 8px 0 !important;
               
                overflow: hidden !important;
            }
            
            /* عنوان "کل مبلغ" */
            .count.d-flex > div:first-child {
                font-size: 14px !important;
                color: #555 !important;
                margin-left: 6px !important;
                white-space: nowrap !important;
                background-color: #efefef !important;
                padding: 2px 5px !important;
                border-radius: 3px !important;
							                margin-right: 6px !important;

            }
            
            /* بخش نمایش مبلغ */
            .count.d-flex > div:nth-child(2) {
                margin-left: 89px !important;
                white-space: nowrap !important;
                background-color: #f0f8f0 !important;
                padding: 2px 5px !important;
                border-radius: 0px !important;
                        margin-right: 10px !important;

            }
            
   
            
            /* استایل واحد پول */
            .count.d-flex .woocommerce-Price-currencySymbol {
                font-size: 13px !important;
                margin-right: 6px !important;
                color: #777 !important;
            }

.count.d-flex #cartTimer { order: 1 !important; }
.count.d-flex > div:first-child { order: 2 !important; }
.count.d-flex > div:nth-child(2) { order: 3 !important; }
					 .g_cart_timer{
						 display:none !important;
					 }
            

            
            /* اصلاح برای صفحه‌های خیلی کوچک */
            @media only screen and (max-width: 360px) {
                .count.d-flex > div:first-child {
                    font-size: 12px !important;
                    padding: 3px 55px !important;
                }
                
                .count.d-flex .woocommerce-Price-amount {
                    font-size: 11px !important;
                }
                
                .count.d-flex > div:nth-child(2) {
                    max-width: 70px !important;
                    padding: 1px 3px !important;
                }
             
            }
        

/* استایل جواب‌ها */
.product-info-box .answer,
.product-info-box .info .answer,
.product-info-box span.answer,
.product-info-box strong.answer {
    font-size: 12px !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    display: flex !important; /* Changed from block to flex */
    justify-content: center !important; /* Horizontal centering */
    align-items: center !important; /* Vertical centering */
    width: 120% !important;
    height: 50% !important; /* Ensure it takes full height of parent */
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}



    
/* تغییر عرض دکمه افزودن به سبد خرید به 100% در دسکتاپ */
            @media (min-width: 768px) {
                .single_add_to_cart_button.button.alt {
                    width: 100% !important;
                }
            }
    /* تنظیمات خاص برای موبایل */
    @media only screen and (max-width: 767px) {
        .g_suggestion-item-name {
            font-size: 13px !important; /* سایز فونت کوچکتر برای موبایل */
            line-height: 1. !important; /* ارتفاع خط کمتر برای موبایل */
        }
    }
    
    /* اطمینان از نمایش ایموجی‌ها در همان خط */
    .g_suggestion-item-name img.emoji,
    .g_suggestion-item-name span.emoji,
    .g_suggestion-item-name i {
        display: inline !important;
        vertical-align: middle !important;
        line-height: inherit !important;
        font-size: inherit !important;
    }











/* تنظیم عنوان محصول در یک خط */
        .product_title.entry-title {
	
            white-space: nowrap !important; /* جلوگیری از شکست خط */
            text-overflow: ellipsis !important; /* 
            display: block !important; /* اطمینان از نمایش بلوکی */
            direction: rtl !important; /* تنظیم جهت متن برای فارسی */
            text-align: right !important; /* تراز متن به راست */
            padding-left: 10px !important; /* فضای اضافی در سمت چپ برای سه نقطه */
        }
/* استایل ریسپانسیو بهینه‌شده و خواناتر برای موبایل */
@media only screen and (max-width: 767px) {
    /* تغییر ساختار جدول برای موبایل */
    #my-cards-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-bottom: 0;
    }
    
    /* مخفی کردن هدر جدول */
    #my-cards-table thead {
        display: none;
    }
    
    /* تبدیل هر ردیف به یک کارت مستقل */
    #my-cards-table tbody tr {
        display: block;
padding:6px       
    }
    

    
    /* استایل برای سلول شماره کارت */
    #my-cards-table td:first-child {
        background: #F3F4F6;
        padding: 15px;
			height:20px;

        border-bottom: 1px solid #E5E7EB;
    }
    
    /* استایل برای شماره کارت */
    #my-cards-table td[style="direction: ltr;"] {
        font-family: 'Vazir', monospace !important;
        font-size: 16px !important;
        font-weight:400 !important;
        color: #1F2937 !important;
        background: #F3F4F6 !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
        direction: ltr !important;
        letter-spacing: 0.5px !important;
        display: block !important;
        width: 100% !important;
			margin-top:10px  !important;
    }
    
    /* استایل برای سلول وضعیت */
    #my-cards-table td:nth-child(2) {
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* اضافه کردن برچسب برای وضعیت */
    #my-cards-table td:nth-child(2):before {
        content: 'وضعیت:';
        font-weight: 600;
        color: #4B5563;
    }
    
    /* استایل برای بج وضعیت */
    #my-cards-table .badge-success {
        background: #10B981;
        color: white;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        display: inline-block;
    }
    
    /* استایل برای ردیف آخر (افزودن کارت) */
    #my-cards-table tbody tr:last-child {
        background: #F9FAFB;
        text-align: center;
        padding: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #my-cards-table tbody tr:last-child td {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    /* استایل برای دکمه افزودن */
    #my-cards-table .btn-success {
        background: #10B981;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        box-shadow: 0 2px 5px rgba(16, 185, 129, 0.2);
    }
    
    #my-cards-table .btn-success:hover {
        background: #059669;
    }
    
    #my-cards-table .btn-success i {
        font-size: 18px;
    }
    
    /* استایل برای نمایش شماره کارت در موبایل */
    .card-number-mobile-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .card-number-mobile-container:before {
        content: '💳';
        font-size: 20px;
        margin-bottom: 8px;
        opacity: 0.7;
    }
    
    /* استایل برای شماره کارت در موبایل‌های کوچک */
    @media only screen and (max-width: 380px) {
        #my-cards-table td[style="direction: ltr;"] {
            font-size: 14px !important;
            word-spacing: -2px;
        }
    }
}

/* اضافه کردن فونت‌های فارسی */
@font-face {
    font-family: 'Vazir';
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSans';
    font-weight: normal;
    font-style: normal;
}

/* استایل جدید و شیک برای بخش سبد خرید */
.g_cart-buy {
    font-family: 'Vazir', 'IRANSans', tahoma, sans-serif;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid #eaeaea;
}

/* استایل دکمه بروزرسانی سبد خرید */
.g_cart-update button {
    font-family: 'Vazir', 'IRANSans', tahoma, sans-serif;
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 30px;
    letter-spacing: 0.5px;
}

.g_cart-update button:hover:not(:disabled) {
    background: linear-gradient(45deg, #4F46E5, #7C3AED);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.g_cart-update button:disabled {
    background: linear-gradient(45deg, #9CA3AF, #D1D5DB);
    cursor: not-allowed;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* استایل جدول کارت‌ها - طراحی لوکس و مدرن */
#my-cards-table {
    font-family: 'Vazir', 'IRANSans', tahoma, sans-serif;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 35px;
    background: white;
    border: none;
}

#my-cards-table thead {
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    color: white;
}

#my-cards-table th {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: none;
    text-align: center;
}

#my-cards-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    background-color: white;
}

#my-cards-table tbody tr:last-child {
    border-bottom: none;
}

#my-cards-table td {
    padding: 18px 20px;
    font-size: 15px;
    vertical-align: middle;
    border: none;
    text-align: center;
}

#my-cards-table tbody tr:hover {
    background-color: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* استایل شماره کارت در جدول */
#my-cards-table td[style="direction: ltr;"] {
    font-family: 'Vazir', monospace;
    font-weight: 500;
    letter-spacing: 1px;
    color: #374151;
    background: linear-gradient(to right, #F3F4F6, #FFFFFF);
    padding: 12px 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* استایل وضعیت کارت */
#my-cards-table .badge-success {
    background: linear-gradient(45deg, #10B981, #34D399);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    display: inline-block;
    letter-spacing: 0.5px;
}

/* استایل دکمه افزودن کارت جدید */
#my-cards-table .btn-success {
    background: linear-gradient(45deg, #10B981, #34D399);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

#my-cards-table .btn-success:hover {
    background: linear-gradient(45deg, #059669, #10B981);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.4);
}

#my-cards-table .btn-success i {
    font-size: 18px;
}

/* استایل باکس کارت بانکی */
#bank-card-box {
    font-family: 'Vazir', 'IRANSans', tahoma, sans-serif;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 35px;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.credit-card-container {
    max-width: 100%;
}

.payment-title h1 {
    font-family: 'Vazir', 'IRANSans', tahoma, sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #374151;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.payment-title h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #6366F1, #8B5CF6);
    border-radius: 3px;
}

/* استایل کارت اعتباری */
.creditcard {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 35px;
    perspective: 1000px;
    transition: transform 0.5s ease-in-out;
    cursor: pointer;
}

.creditcard .front,
.creditcard .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    transition: transform 0.5s ease-in-out;
}

.creditcard .back {
    transform: rotateY(180deg);
}

.creditcard svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* استایل فرم شماره کارت */
.form-container {
    max-width: 420px;
    margin: 0 auto;
}

.field-container {
    position: relative;
    margin-bottom: 25px;
}

.field-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.field-container input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    text-align: left;
    direction: ltr;
    background-color: #F9FAFB;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Vazir', monospace;
    letter-spacing: 1px;
}


    outline: none;
    background-color: white;
}

/* استایل برای بخش کارت اعتباری */
.lightcolor {
    fill: #F3F3F6;
}

.darkcolor {
    fill: #6366F1;
}

.st2 {
    fill: #FFFFFF;
}

.st3 {
    font-family: 'Vazir', monospace;
    font-weight: 600;
}

.st4 {
    font-size: 27px;
}

.st5 {
    font-family: 'Vazir', monospace;
}

.st6 {
    font-size: 18px;
}

.st7 {
    opacity: 0.6;
    fill: #FFFFFF;
}

.st8 {
    font-size: 15px;
}

.st9 {
    fill: #FFFFFF;
    stroke: #F3F4F6;
    stroke-width: 1.5;
    stroke-miterlimit: 10;
}

.st11 {
    fill: #FFFFFF;
    stroke: #374151;
    stroke-width: 1.5;
    stroke-miterlimit: 10;
}

.st12 {
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 1.5;
    stroke-miterlimit: 10;
}

.st13 {
    font-family: 'Vazir', monospace;
    font-weight: 400;
}

.ccicon {
    height: 30px;
    position: absolute;
    right: 15px;
    top: 45px;
    width: 60px;
}

/* انیمیشن برای نمایش جدول کارت‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#my-cards-table {
    animation: fadeInUp 0.5s ease-out forwards;
}

#my-cards-table tbody tr {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
}

#my-cards-table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

#my-cards-table tbody tr:nth-child(2) {
    animation-delay: 0.2s;
}

#my-cards-table tbody tr:nth-child(3) {
    animation-delay: 0.3s;
}

#my-cards-table tbody tr:nth-child(4) {
    animation-delay: 0.4s;
}

#my-cards-table tbody tr:nth-child(5) {
    animation-delay: 0.5s;
}
/* تغییر رنگ متن شماره کارت به آبی - با انتخابگر دقیق‌تر */
#my-cards-table td[style="direction: ltr;"],
#my-cards-table td[style="direction: ltr;"] * {
    color: #0369A1 !important; /* آبی تیره */
    font-weight: 600;
}

/* استایل کلی سلول شماره کارت */
#my-cards-table td[style="direction: ltr;"] {
    background-color: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* اطمینان از اعمال استایل به همه عناصر داخلی */
#my-cards-table td[style="direction: ltr;"] span,
#my-cards-table td[style="direction: ltr;"] div {
    color: #0369A1 !important;
}

/* استایل اسپینر بارگذاری */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
    /* فقط برای بخش "کل مبلغ" */
    .hold .count {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        flex-direction: column !important;
    }
    
    /* برای عناصر داخل بخش "کل مبلغ" */
    .hold .count > div {
        width: 99% !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }
    
    /* برای بخش قیمت */
    .hold .count .woocommerce-Price-amount {
        display: block !important;
        width: 100% !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
    /* استایل‌های خاص فقط برای باکس مبلغ کل */
    .hold .count {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex-basis: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 10px !important;
        display: block !important;
        
        /* حذف تمام خصوصیات flex که ممکن است مشکل ایجاد کنند */
        flex: none !important;
        flex-direction: initial !important;
        flex-wrap: initial !important;
        justify-content: initial !important;
        align-items: initial !important;
    }
    
    /* برای اطمینان از اینکه هیچ محدودیت عرضی وجود ندارد */
    .hold .count * {
        max-width: none !important;
    }
    
    /* اگر می‌خواهید عرض بیشتر از 100% باشد */
    .hold .count {
        width: 110% !important;
        margin-left: -5% !important;
    }
    
    /* باکس کد تخفیف هم همان استایل‌ها را داشته باشد */
    .hold .free {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 10px !important;
    }
    
    /* اگر می‌خواهید عرض بیشتر از 100% باشد */
    .hold .free {
        width: 110% !important;
        margin-left: -5% !important;
    }
}


/* استایل بهینه شده برای نمایش عناصر کنار هم در موبایل و تبلت */
@media screen and (max-width: 991px) {
    /* تنظیم کلی ردیف */
    .woocommerce-cart-form__cart-item.cart_item {
        display: block !important;
        width:100% !important;
        padding:0px !important;
        border-bottom: 1px solid #e2e2e2 !important;
        position: relative !important;
    }
    
    /* سلول نام محصول */
    .woocommerce-cart-form__cart-item.cart_item td:first-child {
        display: block !important;
        width: 100% !important;
        text-align: right !important;
        padding: 3px 0 8px 0 !important;
        border: none !important;
    }
    
    /* کانتینر برای قیمت، تعداد و حذف */
    .woocommerce-cart-form__cart-item.cart_item td:not(:first-child) {
        display: inline-block !important;
        vertical-align: middle !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;

    }
    
    /* قیمت */
    .woocommerce-cart-form__cart-item.cart_item td:nth-child(2) {
        float: right !important;
        width: auto !important;
			        width: 79% !important;

        text-align: right !important;
        margin-left: -22px !important;
    }
    

    /* تعداد */
    .woocommerce-cart-form__cart-item.cart_item td.product-quantity {
        float: right !important;
        width: auto !important;
        margin-left: px !important;
    }
    
    /* کوچک کردن دکمه‌های افزایش/کاهش تعداد */
    .woocommerce-cart-form__cart-item.cart_item .qib-button-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        transform: scale(0.8) !important;
        transform-origin: right center !important;
    }
    
    .woocommerce-cart-form__cart-item.cart_item .qib-button {
        height: 20px !important;
        width: 25px !important;
        line-height: 20px !important;
        font-size: 20px !important;
        padding: 0 !important;
        min-width: 10px !important;
        min-height: 330px !important;
    }
    
    .woocommerce-cart-form__cart-item.cart_item .wqpmb_quantity input {
        height: 20px !important;
        width: 22px !important;
        font-size: 10px !important;
        padding: 0 !important;
        text-align: center !important;
        min-width: 22px !important;
        min-height: 20px !important;
    }
    
    /* دکمه حذف */
    .woocommerce-cart-form__cart-item.cart_item td.product-remove {
        float: right !important;
        width: auto !important;
        text-align: left !important;
    }
    
    /* استایل دکمه حذف */
    .woocommerce-cart-form__cart-item.cart_item .product-remove .trash {
        display: block !important;
        width:22px !important;
        height: 25px !important;
        min-width: 22px !important;
        min-height: 32px !important;
        transform: scale(1.2) !important;
        transform-origin: right center !important;
    }
    

    

    
    /* حذف حاشیه‌های اضافی */
    .woocommerce-cart-form__cart-item.cart_item td,
    .woocommerce-cart-form__cart-item.cart_item p {
        margin: 0 !important;
    }

    

}

/* تنظیمات خاص برای موبایل‌های کوچک */
@media screen and (max-width: 480px) {
    /* کوچک‌تر کردن بیشتر عناصر */
    .woocommerce-cart-form__cart-item.cart_item .qib-button-wrapper {
        transform: scale(0.8) !important;
    }
    
    .woocommerce-cart-form__cart-item.cart_item .product-remove .trash {
        transform: scale(0.8) !important;
    }
    
    .woocommerce-cart-form__cart-item.cart_item .woocommerce-Price-amount {
        font-size: 14px !important;
			height:34px;
			border-radius:none !important:
    }
	    .woocommerce-cart-form__cart-item.cart_item td:nth-child(2) {
        float: right !important;
        width: auto !important;
			        width: 25% !important;

        text-align: right !important;
        margin-left: 0px !important;
    }
    
}


  /* استایل برای عرض 100% در تبلت و دسکتاپ */
@media screen and (min-width: 968px) {
    .woocommerce-cart-form__cart-item {
        width: 580%;
        display: table-row;
    }
    
    .woocommerce-cart-form__cart-item td {
        display: table-cell;
    }
    
    /* تنظیم عرض ستون‌ها */
    .woocommerce-cart-form__cart-item td:first-child {
        width: 50%; /* ستون نام محصول */
    }
    
    .woocommerce-cart-form__cart-item td:nth-child(2) {
        width:30%; /* ستون قیمت */
    }
    
    .woocommerce-cart-form__cart-item td:nth-child(3) {
        width: 30%; /* ستون تعداد */
    }
    
    .woocommerce-cart-form__cart-item td:nth-child(4) {
        width: 100%; /* ستون حذف */
    }
    
    /* اطمینان از اینکه جدول کامل نمایش داده می‌شود */
    .woocommerce-cart-form__contents {
        table-layout: fixed;
    }
}







/* انتقال قیمت فعلی به سمت چپ با سلکتورهای قوی‌تر */
@media (max-width: 767px) {
  /* سلکتور 1 - هدف قرار دادن مستقیم ins */
  .home .g_select-card-price .price ins {
    margin-left: 20px !important;
    padding-left: 60px !important;
    position: relative !important;
    left: -30px !important;
    float: left !important;
    clear: both !important;
    display: block !important;
  }
  
  /* سلکتور 2 - هدف قرار دادن مستقیم قیمت داخل ins */
  .home .g_select-card-price .price ins .woocommerce-Price-amount {
    margin-left: 20px !important;
    position: relative !important;
    left: 20px !important;
  }
  
  /* سلکتور 3 - تغییر ساختار کلی قیمت */
  .home .g_select-card-price .price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  /* سلکتور 4 - اضافه کردن فاصله بین قیمت اصلی و فعلی */
  .home .g_select-card-price .price del {
    margin-bottom: 5px !important;
  }
}


/* انتقال عنوان محصول 3px پایین‌تر - فقط در صفحه اصلی */
.home .g_select-card-item figure figcaption h3.g_select-card-name,
.home h3.g_select-card-name,
.home .g_select-card-name,
.home .g_item figure figcaption h3.g_select-card-name,
.home .g_nosale_item figure figcaption h3.g_select-card-name,
.home .g_sale_item figure figcaption h3.g_select-card-name {
  transform: translateY(33px) !important; /* افزایش 3px به مقدار قبلی (30px + 3px) */
  position: relative !important;
  top: 5px !important; /* انتقال اضافی به پایین */
}

/* برای موبایل سایز کوچکتر - فقط صفحه اصلی */
@media (max-width: 767px) {
  .home .g_select-card-item figure figcaption h3.g_select-card-name,
  .home h3.g_select-card-name,
  .home .g_select-card-name,
  .home .g_item figure figcaption h3.g_select-card-name,
  .home .g_nosale_item figure figcaption h3.g_select-card-name,
  .home .g_sale_item figure figcaption h3.g_select-card-name {
    transform: translateY(28px) !important; /* افزایش 3px به مقدار قبلی (25px + 3px) */
    top: 6px !important;
  }
}






/* انتقال قیمت محصول 5px پایین‌تر - فقط در صفحه اصلی */
.home .g_select-card-price,
.home div.g_select-card-price,
.home figure.g_nosale_item .g_select-card-price,
.home figure.g_item .g_select-card-price,
.home figure.g_sale_item .g_select-card-price,
.home .g_select-card-item figure .g_select-card-price {
  margin-top: 5px !important; /* افزودن فاصله از بالا */
  padding-top: 18px !important; /* حفظ پدینگ موجود */
  position: relative !important; /* برای اطمینان از اعمال تغییرات */
  top: 5px !important; /* انتقال به پایین */
}

/* تنظیم اجباری موقعیت لیبل تخفیف (ooffer2) - فقط در صفحه اصلی */
.home .ooffer2,
.home div.ooffer2,
.home .g_select-card-item figure .ooffer2,
.home figure .ooffer2,
.home figure.g_nosale_item .ooffer2,
.home figure.g_item .ooffer2,
.home figure.g_sale_item .ooffer2 {
  position: absolute !important;
  bottom: 80px !important; /* تنظیم فاصله از پایین */
  left: 10px !important; /* تنظیم فاصله از چپ */
  z-index: 99 !important; /* اولویت بالا برای نمایش */
  top: auto !important; /* حذف موقعیت بالا */
  right: auto !important; /* حذف موقعیت راست */
}

/* برای موبایل سایز کوچکتر - فقط در صفحه اصلی */
@media (max-width: 457px) {
  .home .ooffer2,
  .home div.ooffer2,
  .home .g_select-card-item figure .ooffer2,
  .home figure .ooffer2,
  .home figure.g_nosale_item .ooffer2,
  .home figure.g_item .ooffer2,
  .home figure.g_sale_item .ooffer2 {
    bottom: 100px !important;
    left: 5px !important;
  }
}

/* برای موبایل سایز کوچکتر - فقط صفحه اصلی */
@media (max-width: 767px) {
  .home .g_select-card-item figure figcaption h3.g_select-card-name,
  .home h3.g_select-card-name,
  .home .g_select-card-name,
  .home .g_item figure figcaption h3.g_select-card-name,
  .home .g_nosale_item figure figcaption h3.g_select-card-name,
  .home .g_sale_item figure figcaption h3.g_select-card-name {
    font-size: 12px !important;
    transform: translateY(25px) !important;
    line-height: 1.5 !important; /* فاصله خطوط در موبایل */
    max-height: 38px !important; /* تنظیم ارتفاع حداکثر برای موبایل */
  }
}



.special-sale-badge {
		margin-top:-20px;
		margin-left:-0px;
  }
/* کوچک کردن بج فروش ویژه در موبایل */
@media (max-width: 767px) {
  .special-sale-badge {
		margin-top:-20px;
		margin-left:-10px;
  }
  
  .special-sale-badge .top-text {
    font-size: 12px !important; /* کاهش سایز متن "فروش" */
    padding: 3px 5px !important; /* کاهش پدینگ */
  }
  
  .special-sale-badge .main-text {
    font-size: 14px !important; /* کاهش سایز متن "ویژه" */
  }
}

/* برای موبایل‌های کوچک‌تر، بیشتر کوچک می‌کنیم */
@media (max-width: 480px) {
  .special-sale-badge {
    transform: scale(0.87) !important; /* کوچک کردن بیشتر در موبایل‌های کوچک */
  }
  .special-sale-badge {
    transform: scale(0.87) rotate(-9deg) !important; /* کوچک کردن و چرخش در موبایل‌های کوچک */
  }
  .special-sale-badge .top-text {
    font-size: 9px !important;
  }
  
  .special-sale-badge .main-text {
    font-size: 11px !important;
  }
}





/* تنظیم موقعیت و سایز عنوان محصول فقط برای صفحه اصلی */
.home .g_select-card-item figure figcaption h3.g_select-card-name,
.home h3.g_select-card-name,
.home .g_select-card-name,
.home .g_item figure figcaption h3.g_select-card-name,
.home .g_nosale_item figure figcaption h3.g_select-card-name,
.home .g_sale_item figure figcaption h3.g_select-card-name {
  transform: translateY(30px) !important;
  font-size: 13px !important;
  line-height: 1.0 !important;
  margin-top: 0 !important;
  margin-bottom: 5px !important;
  display: block !important;
  height: auto !important;
  max-height: 34px !important;
  overflow: hidden !important;
}

/* برای موبایل سایز کوچکتر - فقط صفحه اصلی */
@media (max-width: 767px) {
  .home .g_select-card-item figure figcaption h3.g_select-card-name,
  .home h3.g_select-card-name,
  .home .g_select-card-name,
  .home .g_item figure figcaption h3.g_select-card-name,
  .home .g_nosale_item figure figcaption h3.g_select-card-name,
  .home .g_sale_item figure figcaption h3.g_select-card-name {
    font-size: 12px !important;
    transform: translateY(25px) !important;
  }
}

/* کاهش ارتفاع figure محصولات - فقط صفحه اصلی */
.home figure.g_nosale_item,
.home figure.g_item,
.home figure.g_sale_item,
.home .g_select-card-item figure {
  height: calc(100% - 10px) !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* تنظیم فاصله‌های داخلی - فقط صفحه اصلی */
.home figure.g_nosale_item figcaption,
.home figure.g_item figcaption,
.home figure.g_sale_item figcaption,
.home .g_select-card-item figure figcaption {
  padding-top: 0 !important;
  padding-bottom: 5px !important;
}

/* کاهش فاصله بین عناصر داخلی - فقط صفحه اصلی */
.home figure.g_nosale_item .g_select-card-name,
.home figure.g_item .g_select-card-name,
.home figure.g_sale_item .g_select-card-name,
.home .g_select-card-item figure .g_select-card-name {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}

.home figure.g_nosale_item .g_select-card-price,
.home figure.g_item .g_select-card-price,
.home figure.g_sale_item .g_select-card-price,
.home .g_select-card-item figure .g_select-card-price {
  margin-bottom: 5px !important;
}

.home figure.g_nosale_item .g_select-card-links,
.home figure.g_item .g_select-card-links,
.home figure.g_sale_item .g_select-card-links,
.home .g_select-card-item figure .g_select-card-links {
  margin-top: 5px !important;
}

/* اطمینان از اعمال استایل‌ها برای کاربران لاگین شده و نشده - فقط صفحه اصلی */
.home body.logged-in .g_select-card-name,
.home body:not(.logged-in) .g_select-card-name {
  transform: translateY(30px) !important;
  font-size: 13px !important;
  line-height: 1.0 !important;
}

@media (max-width: 767px) {
  .home body.logged-in .g_select-card-name,
  .home body:not(.logged-in) .g_select-card-name {
    font-size: 12px !important;
    transform: translateY(25px) !important;
  }
}






/* تغییرات فقط برای دسکتاپ */
@media screen and (min-width: 992px) {
    /* تنظیم info-box با عرض کمتر */
    #cartSection .info-box {
        width: 80% !important; /* عرض کمتر - می‌توانید این مقدار را تنظیم کنید */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        margin-left: auto !important; /* قرار دادن در سمت چپ (برای RTL) */
			margin-right:16px
    }
    
    /* تنظیم استایل برای هر باکس داخل info-box */
    #cartSection .info-box > div {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* کوچک‌تر کردن متن‌ها برای فضای کمتر */
    #cartSection .info-box p {
        margin: 0 3px !important;
        white-space: nowrap !important;
        font-size: 0.85em !important; /* اندازه فونت کوچک‌تر */
    }
    
    /* تنظیم استایل برای kind-box */
    #cartSection .kind-box {
        display: flex !important;
        align-items: center !important;
    }
    
    #cartSection .kind-box > div {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    /* کوچک‌تر کردن آیکون‌ها */
    #cartSection .circle-i {
        transform: scale(0.9) !important;
    }
    
    /* استایل اسکرول‌بار */
    #cartSection .info-box::-webkit-scrollbar {
        height: 3px !important;
    }
    
    #cartSection .info-box::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 10px !important;
    }
    
    #cartSection .info-box::-webkit-scrollbar-thumb {
        background: #ff405e !important;
        border-radius: 10px !important;
    }
    
    /* اضافه کردن سایه برای زیبایی بیشتر */
    #cartSection .info-box {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        border-radius: 5px !important;
        padding: 8px 12px !important;
    }
}






















/* افکت شیک‌تر با خط مرزی درخشان */
@keyframes elegant-pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 64, 94, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 10px 3px rgba(255, 64, 94, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.7);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(255, 64, 94, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

.phone-box {
    animation: elegant-pulse 3s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ff405eeb, #ff405e);
    transition: all 0.5s ease;
}
/* افکت مدرن و شیک */
.phone-box {
    position: relative;
    background: #ff405eeb;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 64, 94, 0.3);
    transition: all 0.3s ease;
}

.phone-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes subtle-pulse {
    0% { box-shadow: 0 0 15px rgba(255, 64, 94, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 64, 94, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 64, 94, 0.3); }
}

.phone-box {
    animation: subtle-pulse 2s infinite ease-in-out;
}


/* استایل‌ها فقط برای دسکتاپ (صفحه نمایش با عرض بیشتر از 992px) */
@media screen and (min-width: 992px) {
    .phone-box {
        margin-top: -90px !important; /* باکس تلفن را 80px بالاتر می‌برد */
    }
    
    /* برای همه محتوای زیر باکس تلفن */

    
    /* اضافه کردن فضای بیشتر برای جلوگیری از همپوشانی المان‌ها پس از تغییر اندازه */
    .order-fish-box .d-flex {
        gap: 5px; /* افزایش فاصله بین المان‌های flex */
    }
    
    /* تنظیم اندازه متن‌ها برای خوانایی بهتر پس از کوچک شدن باکس‌ها */
    .order-fish-box .title-holder h3,
    .order-fish-box .info-box p,
    .order-fish-box table th,
    .order-fish-box table td,
    .order-fish-box .woocommerce-Price-amount,
    .order-fish-box .cart-product-title,
    .order-fish-box .cart-product-info {
        font-size: 0.95em; /* کمی کاهش اندازه فونت برای تناسب بهتر با باکس‌های کوچکتر */
    }
    
    .order-fish-box {
        transform: scale(0.9);
        transform-origin: top center;
        width: 111.11%; /* برای جبران کوچک شدن عرض (100% ÷ 0.9 = 111.11%) */
        margin-left: auto;
        margin-right: auto;
    }
}
/* فقط info-box را افقی می‌کند */
#cartSection .info-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

/* تنظیم استایل برای هر باکس داخل info-box */
#cartSection .info-box > div {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* تنظیم اندازه متن‌ها برای فضای کمتر */
#cartSection .info-box p {
    margin:5px !important;
    font-size: 0.9em !important;
}

/* تنظیم استایل برای kind-box */

/* پاسخگویی برای صفحات کوچک‌تر */

    


/* تنظیم اندازه دقیق */
    .special-sale-badge {
        width: 50px !important;  /* عرض دلخواه */
        height: 50px !important;  /* ارتفاع دلخواه */
    }
    /* تنظیم اندازه متن */
    .special-sale-badge .top-text, 
    .special-sale-badge .main-text {
        font-size: 12px !important;  /* اندازه فونت دلخواه */
    }

.special-sale-badge {
    top: 50px !important;
    position: absolute !important;
}

/* اطمینان از اینکه عنصر والد دارای position: relative است */
.special-sale-badge:parent {
    position: relative !important;
}

/* یا اگر می‌دانید عنصر والد چیست، مستقیماً آن را هدف قرار دهید */
figure.g_nosale_item {
    position: relative !important;
}


/* روش 1: استفاده از position و right */

/* یا روش 2: استفاده از transform */
.items-4i {
    transform: translateX(500px) !important;
}

/* یا روش 3: استفاده از margin-right */
.items-4i {
    margin-right: 280px !important;
}

/* کاهش ارتفاع باکس محصول با تنظیم محتوا */
.box-img-pro .g_select-card-item figure {
    min-height: 400px !important;
    max-height: 400px !important;
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* تنظیم تصویر محصول */
.box-img-pro .g_select-card-item figure img {
    max-height: 150px !important;
    object-fit: contain !important;
}

/* تنظیم بخش متنی محصول */


/* ریسپانسیو سبد پرداخت  در دستگتاپ به پایان رسید */

/* کاهش ارتفاع باکس محصول */
/* کاهش ارتفاع باکس محصول - برای صفحات غیر اصلی */
body:not(.home) .ch-item {
    min-height: 0px;
    padding: 3px 5px;
    margin-top: -20px;
}

/* کاهش ارتفاع تصویر - برای صفحات غیر اصلی */
body:not(.home) .ch-img {
    width: 50px;
    height: 80px;
}

/* استایل پایه برای المان changes-title */
.changes-title {
    /* استایل‌های موجود حفظ می‌شوند */
}

.changes-title p {
    /* استایل‌های موجود حفظ می‌شوند */
}

/* کاهش ارتفاع و اندازه متن در موبایل */
@media (max-width: 768px) {
    .changes-title {
        padding: 8px 10px !important; /* کاهش پدینگ */
        min-height: auto !important; /* حذف حداقل ارتفاع */
        height: auto !important; /* ارتفاع خودکار */
        margin-bottom: 10px !important; /* کاهش فاصله از پایین */
    }
} 
 
	/* برای موبایل */
@media (max-width: 767px) {
    .g_select-card-name {
        font-size: 10px !important;
    }
}

/* استایل هر آیتم اطلاعاتی */
.product-info-box .info {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0px 11px;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* استایل جواب‌ها */
.product-info-box .answer,
.product-info-box .info .answer,
.product-info-box span.answer,
.product-info-box strong.answer {
    font-size: 12px !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 120% !important;
    height: 50% !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.seepro-button{
	        font-size: 14px !important;
        padding-top: 10px !important;
}
    /* کوچک‌تر کردن تصویر محصول */
    figure img.wp-post-image {
        width: 100px !important;
        height: 100px !important;
        object-fit: contain;
    }
    
    /* تنظیم اندازه عنوان محصول */
    figure h3.g_select-card-name {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
        transform: translateY(20px) !important;
    }
    
    /* تنظیم اندازه قیمت */
    figure .g_select-card-price {
        font-size: 14px !important;
        padding-top: 10px !important;
    }
    
 /* مخفی کردن المان خاص با کلاس یا آیدی مشخص */
.element-to-hide {
    display: none !important;
}
.g_cart_timer{
	display:none;
}
/* تغییر رنگ متن دکمه مشاهده محصول به خاکستری */
        .seepro-button p {
            color: #555555 !important; /* خاکستری تیره */
        }
        
        /* تغییر رنگ متن به سفید در حالت hover */
        .seepro-button:hover p {
            color: #ffffff !important; /* سفید */
        }

  

    /* تنظیم فاصله‌ها */
    figure figcaption {
        padding: 5px !important;
    }
    

    



/* انتقال اجباری بخش عنوان گیفت کارت‌ها و تمام محتوای بعد از آن به بالا در موبایل */
@media screen and (max-width: 767px) {
  /* انتقال عنوان گیفت کارت‌ها به بالا */
  .g_select-card-title-first {
    position: relative !important;
    top: -41px !important;
    margin-top: -15px !important;
    margin-bottom: -15px !important;
    z-index: 10 !important;
  }
  
  /* انتقال تمام محتوای بعد از عنوان گیفت کارت‌ها به بالا */
  .g_select-card-title-first ~ * {
    position: relative !important;
    top: -38px !important;
    margin-top: 0 !important;
  }
  
  /* اگر محتوا در یک container مشترک با عنوان قرار دارد */
  .g_select-card-title-first:parent > *:not(.g_select-card-title-first) {
    position: relative !important;
    top: -38px !important;
    margin-top: 0 !important;
  }
  
  /* اطمینان از اینکه container اصلی overflow: visible دارد */
  .g_select-card-title-first:parent {
    overflow: visible !important;
  }
}

  /* اطمینان از اینکه محتوای زیر این عنصر نیز بالا می‌آید */
  .g_select-card-title-first + * {
    position: relative !important;
    margin-top: -8px !important;
  }
  
  /* اگر عنصر والد دارای overflow: hidden است، آن را اصلاح می‌کنیم */
  .g_select-card-title-first,
  .g_select-card-title-first + * {
    overflow: visible !important;
  }
  
  /* اطمینان از اینکه والد این عنصر نیز overflow: visible دارد */
  .g_select-card-title-first {
    overflow: visible !important;
  }
  
  .g_select-card-title-first:parent {
    overflow: visible !important;
  }


/* تغییرات فقط برای نمای موبایل */
@media screen and (max-width: 767px) {
  /* انتقال بخش محصولات شگفت انگیز به 15px بالاتر در موبایل */
  section.g_suggestion.speciall-section {
    position: relative !important;
    margin-top: -15px !important;
    z-index: 1;
  }
  
  /* انتقال بخش ویژگی‌های گیفت مکس به 15px بالاتر در موبایل */
  .modern-features {
    position: relative !important;
    margin-top: -15px !important;
    z-index: 1;
  }
  
  /* انتقال بخش عنوان گیفت کارت‌ها به 15px بالاتر در موبایل */
  .g_select-card-title-first {
    position: relative !important;
    margin-top: -15px !important;
    z-index: 1;
  }
}

/* انتقال بخش ویژگی‌های گیفت مکس به 15px بالاتر */
.modern-features {
  position: relative !important;
  margin-top: -55px !important;
  z-index: 1; /* اطمینان از اینکه روی عناصر دیگر قرار نگیرد */
}

/* اطمینان از اینکه محتوای داخلی به درستی نمایش داده می‌شود */
.modern-features .container {
  position: relative !important;
}


/* انتقال کل بخش g_select-brand به 15px بالاتر */
section.g_select-brand#payamcat {
  position: relative !important;
  margin-top: -13px !important;
}
/* انتقال بخش last-change به 15px بالاتر */
section.last-change {
  position: relative !important;
  margin-top: -1px !important;
}
/* انتقال بخش محصولات شگفت انگیز به 15px بالاتر */
section.g_suggestion.speciall-section {
  position: relative !important;
  margin-top: -65px !important;
  z-index: 1; /* اطمینان از اینکه روی عناصر دیگر قرار نگیرد */
}

/* اطمینان از اینکه محتوای داخلی به درستی نمایش داده می‌شود */
section.g_suggestion.speciall-section .content.container {
  position: relative !important;
}

/* اطمینان از اینکه محتوای داخلی به درستی نمایش داده می‌شود */
section.last-change .last-holder {
  position: relative !important;
}

/* اطمینان از اینکه محتوای داخلی نیز به درستی نمایش داده می‌شود */
section.g_select-brand#payamcat .content {
  position: relative !important;
}


  .cat-description .btn-success {

    top: 15px !important; /* بالای باکس */

  }

    @media (max-width: 767px) {

      .g_select-card-item.archive-espbox {
        left: auto !important;
      }
    }
/* کاهش ارتفاع کلی بخش last-change */
.last-change {
    padding-top:20px !important;
    padding-bottom: 0px !important;
}

.g_select-card-name{
	margin-top:50px !important :
}

.onsale-box{
	display:none;
}
  .login-to-purchase-message {
            margin: 20px 0;
            text-align: center;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .login-to-purchase-message p {
            font-size: 16px;
            margin-bottom: 15px;
            color: #333;
            font-weight: bold;
        }
        
        .login-button {
            display: inline-block !important;
            width: 100% !important;
            max-width: 300px !important;
            padding: 12px 24px !important;
            font-size: 16px !important;
            font-weight: bold !important;
            text-align: center !important;
            text-decoration: none !important;
            color: white !important;
            background: linear-gradient(to right, #2ecc71, #27ae60) !important;
            border: none !important;
            border-radius: 6px !important;
            box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3) !important;
            transition: all 0.3s ease !important;
            cursor: pointer !important;
        }
        
        .login-button:hover {
            background: linear-gradient(to right, #27ae60, #219653) !important;
            box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4) !important;
            transform: translateY(-2px) !important;
        }
        
        .login-button:active {
            transform: translateY(1px) !important;
            box-shadow: 0 2px 5px rgba(39, 174, 96, 0.4) !important;
        }
                @media screen and (max-width: 767px) {
            .phone-box p {
                line-height: 1.8 !important;
                letter-spacing: 0.3px !important;
                padding: 5px !important;
                font-size: 13px !important;
                text-align: right !important;
            }
            
            .phone-box {
                padding: 10px !important;
                width: 90% !important;
            }
        }


        /* انتقال باکس تلفن به 20 پیکسل بالاتر فقط در دستکتاپ */
@media screen and (min-width: 768px) {
    .phone-box {
        margin-top: -70px !important;
        position: relative;
        z-index: 1;
    }
	/* حذف استایل‌های نامناسب از آخرین آیتم */
.g_select-card-item[style*="position: relative; left: -25%; float: none; clear: both;"] {
    position: static !important;
    left: auto !important;
    float: left !important;
    clear: none !important;
}
}
/* اصلاح نمایش متن‌ها در باکس فقط برای موبایل */
@media only screen and (max-width: 767px) {
    div[style*="display: inline-block; font-size: 95%; max-width: calc(100% - 120px); overflow: hidden;"] {
        white-space: normal;
        overflow: visible !important;
        max-width: 100% !important;
        width: 100%;
    }
    
    /* اصلاح لینک‌ها در باکس */
    div[style*="display: inline-block; font-size: 95%; max-width: calc(100% - 120px); overflow: hidden;"] a {
        display: inline !important;
        margin: 0 2px;
    }
}

/* تغییر موقعیت دکمه "مطالعه کامل" به بالای سمت چپ باکس در نمای دسکتاپ */
@media screen and (min-width: 768px) {
  .cat-description {
    position: relative !important;
    padding-bottom: 40px !important; /* فضا برای دکمه */
    min-height: 100px !important; /* حداقل ارتفاع برای باکس */
  }
  
  .cat-description .btn-success {
    position: absolute !important;
    left: 0 !important;
    bottom:0 !important; /* پایین باکس */
    margin: 24px !important;
  }
}
      @media screen and (min-width: 768px) {
            .phone-box {
                margin-top: -70px !important;
                position: relative;
                z-index: 1;
            }
        }

    /* استایل برای باکس اطلاعات تماس در منو */
    .contact-box-menu {
      display: none; /* پنهان در موبایل */
    }

    /* نمایش فقط در دسکتاپ */
    @media screen and (min-width: 992px) {
      /* تنظیمات کلی منو */
      .g_menu {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 76% !important;
      }
      
   
      
      /* استایل باکس تماس */
      .contact-box-menu {
        display: block !important;
        margin-right: auto !important; /* برای RTL، این باکس را به سمت چپ می‌برد */
        margin-left: 20px !important; /* فاصله از لبه سمت چپ */
      }
      
      .contact-box-menu .box {
        background-color: #ffffff !important;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
        border: 2px solid #e9ecef !important;
        border-radius: 10px !important;
        padding: 8px 15px !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
      }
      
      /* افکت هاور شیک */
      .contact-box-menu .box:hover {
        box-shadow: 0 5px 20px rgba(52, 152, 219, 0.15) !important;
        border-color: #3498db !important;
        transform: translateY(-2px) !important;
      }
      
      .contact-box-menu .line {
        width: 1px !important;
        height: 25px !important;
        background-color: #e0e0e0 !important;
        margin: 0 10px !important;
      }
      
      .contact-box-menu .number a {
        text-decoration: none !important;
        color: #3498db !important;
        font-size: 0.9rem !important;
        font-weight: bold !important;
        transition: all 0.3s ease !important;
      }
      
  
      .contact-box-menu .text-light {
        font-size: 0.8rem !important;
        margin-right: 8px !important;
      }
      
      .contact-box-menu .text-light b {
        font-size: 0.9rem !important;
        color: #333 !important;
        display: block !important;
      }
      
      /* تنظیم اندازه آیکون */
      .contact-box-menu i {
        font-size: 1.2rem !important;
        color: #3498db !important;
        margin-left: 5px !important;
      }
    }
    
@media (max-width: 768px) {
    /* فقط در صفحه محصول */
    .single-product .box-img-pro {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 30px 0px 0px 190px !important;
        box-sizing: border-box !important;
    }

    .product {
        position: relative !important;
        top: 5px !important;
        margin-top: -20px !important;
    }
}
/* استایل برای آیکون + */
.menu-expand-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
}

/* استایل برای هدر زیرمنو */
.submenu-header {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    background-color: #f9f9f9;
}

.back-button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #333;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.back-button svg {
    margin-left: 5px;
}

.current-menu-title {
    margin-right: 15px;
    font-weight: bold;
    font-size: 16px;
}

/* استایل برای breadcrumb */
.menu-breadcrumb {
    padding: 10px 15px;
    background-color: #f5f5f5;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.breadcrumb-item {
    cursor: pointer;
    color: #0066cc;
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.menu-breadcrumb .current {
    font-weight: bold;
    color: #333;
}

/* کانتینر زیرمنو */
.submenu-container {
    width: 100%;
}

/* نمایش زیرمنو در صفحه جدید */
.submenu-container .sub-menu {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.submenu-container .sub-menu li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.submenu-container .sub-menu li a {
    display: block;
    color: #333;
    text-decoration: none;
    padding-left: 30px; /* فضا برای آیکون + */
}

/* استایل برای آیتم‌هایی که زیرمنو دارند */
.has-submenu-mobile {
    position: relative;
}

.submenu-icon {
    left: 10px;
    width: 20px;
    height: 20px;
    font-size: 16px;
}

/* اطمینان از نمایش آیکون + */
.menu-item-has-children .menu-expand-icon,
.hhas-sub-menu .menu-expand-icon,
.has-submenu-mobile .menu-expand-icon {
    display: flex !important;
}

/* اصلاح استایل برای آیتم‌های منو */
.offcanvas-body li.menu-item {
    position: relative;
}
  @media (max-width: 767px) {
            /* برای باکس‌های شگفت‌انگیز */
            .swiper-slide .g_suggestion-item .product-box-countdown {
                order: -1; /* قرار دادن در ابتدای فلکس باکس */
                margin-top: -1000px !important;
                margin-bottom: 130px !important;
                position: relative;
                z-index: 10;
            }

        }
         .product-box-countdown {
            background: linear-gradient(135deg, #ff416c, #ff4b2b);
            color: white;
            text-align: center;
            padding: 3px 5px;
            border-radius: 5px;
            font-size: 10px;
            margin-top: 3px;
            margin-bottom: 3px;
            box-shadow: 0 2px 5px rgba(255, 65, 108, 0.3);
            direction: ltr;
            width: 90%;
            box-sizing: border-box;
            position: relative;
            z-index: 5;
            transition: all 0.3s ease;
        }
        
        .product-box-countdown-badge {
            font-weight: bold;
            margin-bottom: 2px;
            font-size: 9px;
            direction: rtl;
        }
        
        .product-box-countdown-timer {
            font-weight: bold;
            font-size: 14px; /* اینجا اندازه اعداد را تغییر دهید */
            letter-spacing: 0.5px;
        }
        
        .product-box-countdown-timer span {
            display: inline-block;
            min-width: 18px;
            margin: 0 1px;
            transition: all 0.3s ease;
        }
        
        /* استایل برای باکس محصول در صفحه اصلی */
        .g_suggestion-item .product-box-countdown {
            margin: 3px auto;
            max-width: 90%;
        }
        
        /* استایل برای باکس محصول در صفحه دسته‌بندی */
        .g_select-card-item .product-box-countdown {
            margin: 3px auto;
            max-width: 90%;
        }
        
        /* افکت هاور برای شمارش معکوس */
        .g_suggestion-item:hover .product-box-countdown,
        .g_select-card-item:hover .product-box-countdown {
            background: linear-gradient(135deg, #ff4b2b, #ff416c);
            box-shadow: 0 4px 10px rgba(255, 65, 108, 0.5);
            transform: translateY(-2px);
        }
        
        /* افکت هاور برای اعداد شمارش معکوس */
        .g_suggestion-item:hover .product-box-countdown-timer span,
        .g_select-card-item:hover .product-box-countdown-timer span {
            transform: scale(1.1);
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
        }
        
        /* استایل‌های اضافی برای موبایل */
        @media (max-width: 767px) {
            /* استایل پایه برای همه محصولات در موبایل */
            .product-box-countdown {
                margin: 3px auto !important;
                width: 80% !important;
                max-width: 80% !important;
                position: absolute !important;
                bottom: 14px !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                z-index: 100 !important; /* z-index بالاتر */
            }
            
            /* استایل اختصاصی برای محصولات ناموجود در موبایل */
            .g_nosale_item .product-box-countdown,
            .g_suggestion-item.g_nosale_item .product-box-countdown,
            .g_select-card-item.g_nosale_item .product-box-countdown,
            .product-box-countdown.out-of-stock {
                bottom: 15px !important; /* موقعیت بالاتر برای محصولات ناموجود */
            }            
            /* اضافه کردن فضای خالی در انتهای باکس محصول برای شمارش معکوس */
            .g_suggestion-item, 
            .g_select-card-item {
                padding-bottom: 35px !important;
                position: relative !important;
                margin-bottom: 10px !important;
            }
            
            /* فضای بیشتر برای محصولات ناموجود */
            .g_suggestion-item.g_nosale_item, 
            .g_select-card-item.g_nosale_item,
            .g_nosale_item {
                padding-bottom: 35px !important;
                margin-bottom: 45px !important;
            }
            
            /* اصلاح افکت هاور برای موبایل */
            .g_suggestion-item:hover .product-box-countdown,
            .g_select-card-item:hover .product-box-countdown {
                transform: translateX(-50%) translateY(-2px) !important;
            }
            
            /* فاصله برای دکمه ناموجود در موبایل */
            .g_nosale_item .notif-button,
            .g_nosale_item .g_nosale {
                margin-bottom: 15px !important;
            }
        }       .product-countdown-container {
            margin: 20px 0;
        }
        
        .product-countdown-box {
            background: linear-gradient(135deg, #ff416c, #ff4b2b);
            border-radius: 10px;
            padding: 20px;
            color: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
        }
        
        .product-countdown-box::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: rgba(255, 255, 255, 0.1);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }
        
        .countdown-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
        }
        
        .countdown-badge {
            background-color: rgba(255, 255, 255, 0.2);
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 10px;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        }
        
        .countdown-title {
            font-size: 18px;
            font-weight: bold;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
            text-align: center;
        }
        
        .countdown-timer {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px 0;
            position: relative;
            z-index: 1;
        }
        
        .countdown-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0 5px;
        }
        
        .countdown-value {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 10px;
            min-width: 50px;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .countdown-label {
            margin-top: 5px;
            font-size: 12px;
        }
        
        .countdown-separator {
            font-size: 24px;
            font-weight: bold;
            margin-top: -10px;
        }
        
        .countdown-message {
            text-align: center;
            font-size: 16px;
            font-weight: bold;
            position: relative;
            z-index: 1;
            padding: 10px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
        }
        
        .pulse-icon {
            display: inline-block;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.3);
            }
            100% {
                transform: scale(1);
            }
        }
        
        @keyframes shine {
            0% {
                opacity: 0;
                transform: translateX(-100%) rotate(45deg);
            }
                20% {
                opacity: 0.5;
            }
            100% {
                opacity: 0;
                transform: translateX(100%) rotate(45deg);
            }
        }
        
        /* واکنش‌گرایی برای موبایل */
        @media (max-width: 768px) {
            .countdown-value {
                font-size: 20px;
                min-width: 40px;
                padding: 8px;
            }
            
            .countdown-label {
                font-size: 10px;
            }
            
            .countdown-separator {
                font-size: 20px;
            }
            
            .countdown-title {
                font-size: 16px;
            }
            
            .countdown-message {
                font-size: 14px;
            }
        }
      @media (max-width: 767px) {
            .endd {
                margin-top: -30px !important;
            }
        }
       @media only screen and (max-width: 767px) {
            .swiper-spec .swiper-slide .product-box-countdown {
                transform: translateY(-36px) !important;
                left: 10% !important;
                z-index: 10;
            }
        }
/* استایل برای فلش منوی موبایل */
.menu-item-has-children .sub-menu-toggle {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-item-has-children .sub-menu-toggle a {
    flex-grow: 1;
    text-decoration: none;
}

.menu-item-has-children .arrow-toggle {
    width: 36px;
    height: 36px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    left: 0;
}

.menu-item-has-children .arrow-toggle::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

/* چرخش فلش وقتی منو باز است */
.menu-item-has-children.open > .sub-menu-toggle .arrow-toggle::after {
    transform: rotate(45deg);
}

/* تنظیم فاصله متن از سمت چپ برای جا دادن فلش */
.menu-item-has-children .sub-menu-toggle a {
    padding-left: 50px !important;
}
/* استایل کلی نگهدارنده سفارشات */
.last-order-holder {
    max-width: 100%;
    margin: 20px auto;
    direction: rtl;
    font-family: 'IRANSans', Tahoma, Arial, sans-serif;
}

.last-order-holder h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    padding: 10px 0;
    border-bottom: 2px solid #f0f0f0;
}

/* استایل اسلایدر */
.latest-orders-slider-container {
    overflow: hidden;
    padding: 10px 0;
    position: relative;
}

.latest-orders-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.latest-orders-slider-slide {
    flex: 0 0 280px;
    margin: 0 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
}

/* استایل آیتم سفارش */
.order-item {
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.order-item p {
    margin: 5px 0;
    font-size: 12px;
}

.order-item strong {
    color: #555;
}

/* استایل محصول */
.order-product {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.order-product img.product-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 10px;
}

.order-product p {
    margin: 2px 0;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* استایل دکمه مشاهده سفارش */
.seepro-button {
    display: block;
    text-align: center;
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    margin: 10px auto 5px;
    width: 80%;
    transition: background-color 0.3s;
}

.seepro-button:hover {
    background-color: #45a049;
}

.seepro-button p {
    margin: 0;
    color: white;
}

/* استایل دکمه‌های اسلایدر */
.latest-orders-slider-button-next,
.latest-orders-slider-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.latest-orders-slider-button-next {
    left: 5px;
}

.latest-orders-slider-button-prev {
    right: 5px;
}
/* اصلاح استایل محصول */
.order-product {
    display: block; /* تغییر از flex به block */
    margin: 10px 0;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 6px;
    overflow: hidden; /* اضافه شده برای جلوگیری از سرریز محتوا */
}

.order-product img.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    float: right; /* برای قرار دادن تصویر در سمت راست */
    margin-left: 10px;
    margin-bottom: 5px;
}
.seepro-button {
    text-align: center !important;
}

.seepro-button p {
    text-align: center !important;
    margin: 0 auto !important;
}

.order-product p {
    margin: 5px 0;
    font-size: 11px;
    clear: none; /* اجازه می‌دهد متن در کنار تصویر قرار گیرد */
    text-align: right;
    white-space: normal; /* اجازه شکستن خط */
    overflow: visible;
}

/* اضافه کردن clearfix برای حل مشکل float */
.order-product:after {
    content: "";
    display: table;
    clear: both;
}

/* تنظیم اندازه متن‌ها */
.order-product p strong {
    font-size: 11px;
    font-weight: bold;
    color: #555;
}

.woocommerce-Price-amount {
    font-weight: bold;
    color: #4CAF50;
}

/* استایل برای نمایش در موبایل */
@media (max-width: 768px) {
    .latest-orders-slider-slide {
        flex: 0 0 260px;
    }
    
    .order-item p {
        font-size: 11px;
    }
    
    .order-product {
        flex-direction: column;
        text-align: center;
    }
    
    .order-product img.product-image {
        margin: 0 auto 8px;
        width: 50px;
        height: 50px;
    }
}
    /* کانتینر برای جدول شماره کارت‌ها */
        .card-table-wrapper {
            max-height: 270px; /* ارتفاع برای نمایش حدود 3 ردیف */
            overflow-y: auto;
            margin-bottom: 10px;
        }
        
        /* استایل برای اسکرول‌بار */
        .card-table-wrapper::-webkit-scrollbar {
            width: 6px;
        }
                    @media (min-width: 768px) {
                /* استایل اصلی باکس */
                .count.d-flex {
                    display: flex !important;
                    flex-direction: row !important;
                    align-items: center !important;
                    justify-content: space-between !important;
                    background: #ffffff !important;
                    border: 1px solid #e0e0e0 !important;
                    border-left: 4px solid #607d8b !important;
                    border-radius: 8px !important;
                    padding: 18px 25px !important;
                    margin: 25px 0 !important;
                    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
                    min-height: 75px !important;
                    position: relative !important;
                    overflow: hidden !important;
                    transition: all 0.3s ease !important;
                }
                
                /* عنوان "کل مبلغ" */
                .count.d-flex > div:first-child {
                    font-size: 18px !important;
                    font-weight: bold !important;
                    color: #455a64 !important;
                    margin-right: 20px !important;
                    white-space: nowrap !important;
                    flex: 0 0 auto !important;
                    z-index: 10 !important;
                    position: relative !important;
                    padding: 8px 15px !important;
                    background-color: #f5f5f5 !important;
                    border-radius: 5px !important;
                    border-bottom: 2px solid #607d8b !important;
                }
                
                /* مقدار قیمت */
                .count.d-flex > div:nth-child(2) {
                    flex: 1 1 auto !important;
                    text-align: center !important;
                    z-index: 10 !important;
                    position: relative !important;
                }
                
                .count.d-flex .woocommerce-Price-amount {
                    font-size: 26px !important;
                    font-weight: 700 !important;
                    color: #2e7d32 !important; /* رنگ سبز برای مبلغ */
                    direction: rtl !important;
                    display: inline-block !important;
                    position: relative !important;
                    padding: 8px 15px !important;
                    background: transparent !important; /* بدون بکگراند */
                    border: 1px solid #d0d0d0 !important; /* بوردر خاکستری */
                    border-radius: 6px !important;
                }
                
                .count.d-flex .woocommerce-Price-currencySymbol {
                    font-size: 16px !important;
                    margin-right: 5px !important;
                    color: #607d8b !important;
                }
                
                /* بخش تایمر */
                .count.d-flex #cartTimer {
                    flex: 0 0 auto !important;
                    margin-left: 20px !important;
                    z-index: 10 !important;
                    background-color: #eceff1 !important;
                    padding: 8px 15px !important;
                    border-radius: 5px !important;
                    border-right: 2px solid #607d8b !important;
                }
                
                /* تغییر استایل عناصر داخل تایمر */
                .count.d-flex #cartTimer .timer-i {
                    color: #455a64 !important;
                    font-size: 14px !important;
                    margin-right: 5px !important;
                }
                
                .count.d-flex #cartTimer .timer-main {
                    color: #455a64 !important;
                    font-size: 14px !important;
                    font-weight: bold !important;
                }
                
                /* حذف افکت‌های گرادیانت کناری اصلی */
                .count.d-flex #custom-left-mask-t2ufwa4zy,
                .count.d-flex #custom-right-mask-omy17hcyj {
                    display: none !important;
                }
                
                /* اضافه کردن افکت hover */
                .count.d-flex:hover {
                    box-shadow: 0 5px 20px rgba(96, 125, 139, 0.15) !important;
                    border-left-width: 6px !important;
                    background-color: #fafafa !important;
                }
                
                .count.d-flex:hover .woocommerce-Price-amount {
                    border-color: #aaaaaa !important;
                    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
                    transition: all 0.3s ease !important;
                }
                
                /* افکت‌های تزئینی */
                .count.d-flex:before {
                    content: "" !important;
                    position: absolute !important;
                    top: 0 !important;
                    right: 0 !important;
                    width: 40px !important;
                    height: 40px !important;
                    background-color: #f5f5f5 !important;
                    border-bottom-left-radius: 40px !important;
                    z-index: 1 !important;
                }
                
                .count.d-flex:after {
                    content: "" !important;
                    position: absolute !important;
                    bottom: 0 !important;
                    left: 50px !important;
                    width: 70px !important;
                    height: 2px !important;
                    background-color: #e0e0e0 !important;
                    z-index: 1 !important;
                }
                
               
                    .count.d-flex #cartTimer {
                        padding: 10px 18px !important;
                    }
                    
                    .count.d-flex #cartTimer .timer-i,
                    .count.d-flex #cartTimer .timer-main {
                        font-size: 19px !important;
                    }
                }
            
     /* مخفی کردن کامل مودال سبد خرید */
        .xoo-cp-modal,
        .xoo-cp-modal.xoo-cp-active {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
            z-index: -9999 !important;
            position: absolute !important;
            left: -9999px !important;
            height: 0 !important;
            width: 0 !important;
            overflow: hidden !important;
        }
        
        /* مخفی کردن پس‌زمینه مودال */
        .xoo-cp-opac,
        .xoo-cp-cont-opac {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }
        
        /* جلوگیری از اجرای اسکریپت‌های مرتبط */
        body.xoo-cp-active {
            overflow: auto !important;
        }
        
/* استایل‌های اصلاحی برای موبایل */
        @media only screen and (max-width:456px) {

               
            .woocommerce-cart-form__cart-item.cart_item td:first-child p {
                font-size: 11px !important;
							left:-30px;
            }
  
            /* دکمه حذف - گوشه بالا سمت چپ */
            .woocommerce-cart-form__cart-item.cart_item .product-remove {
                position: absolute !important;
                top: -5px !important;
                left:55% !important;
         
            }
 
            /* اصلاح استایل دکمه‌های افزایش و کاهش */
            .qib-button-wrapper {
                display: inline-flex !important;
                background: #f5f5f5 !important;
                border-radius: 0px !important;
					width:600%

            }
        }
     @media only screen and (max-width: 767px) {
            /* تبدیل جدول به بلوک عادی */
            .woocommerce-cart-form__contents,
            .woocommerce-cart-form__contents tbody {
                display: block !important;
                width: 100% !important;
            }

            /* قیمت محصول - سمت راست */
            .woocommerce-cart-form__cart-item.cart_item td:nth-child(2) {
                width:33% !important;
							padding:0px 10px 0px 20px !important;
            }
			 
            }


         @media only screen and (max-width: 456px) {
            /* کانتینر اصلی - چیدمان افقی */
            .count.d-flex {
                display: flex !important;
                flex-direction: row !important;
                justify-content: flex-end !important; /* همه چیز به سمت راست */
                align-items: center !important;
                background-color: #f8f8f8 !important;
                padding: 1px 0px  0px  0px !important;
                margin: 8px 0 !important;
               
                overflow: hidden !important;
            }
            
            /* عنوان "کل مبلغ" */
            .count.d-flex > div:first-child {
                font-size: 14px !important;
                color: #555 !important;
                margin-left: 6px !important;
                white-space: nowrap !important;
                background-color: #efefef !important;
                padding: 2px 5px !important;
                border-radius: 3px !important;
							                margin-right: 6px !important;

            }
            
            /* بخش نمایش مبلغ */
            .count.d-flex > div:nth-child(2) {
                margin-left: 89px !important;
                white-space: nowrap !important;
                background-color: #f0f8f0 !important;
                padding: 2px 5px !important;
                border-radius: 0px !important;
                        margin-right: 10px !important;

            }
            
   
            
            /* استایل واحد پول */
            .count.d-flex .woocommerce-Price-currencySymbol {
                font-size: 13px !important;
                margin-right: 6px !important;
                color: #777 !important;
            }

.count.d-flex #cartTimer { order: 1 !important; }
.count.d-flex > div:first-child { order: 2 !important; }
.count.d-flex > div:nth-child(2) { order: 3 !important; }
					 .g_cart_timer{
						 display:none !important;
					 }
            
					  }
            
            /* اصلاح برای صفحه‌های خیلی کوچک */
            @media only screen and (max-width: 360px) {
                .count.d-flex > div:first-child {
                    font-size: 12px !important;
                    padding: 3px 55px !important;
                }
                
                .count.d-flex .woocommerce-Price-amount {
                    font-size: 11px !important;
                }
                
                .count.d-flex > div:nth-child(2) {
                    max-width: 70px !important;
                    padding: 1px 3px !important;
                }
             
            }
        /* Desktop-only styles */
@media screen and (min-width: 992px) {
    .g_select-card-item .ooffer2 {
        top: -10px !important; /* موقعیت بالاتر */
        left: -15px;
    }
    
    .box-img-pro .g_select-card-item .ooffer2 {
        top: -20px !important; /* موقعیت بالاتر */
        left: 209px !important;
        position: absolute !important;
    }
}

/* استایل‌های منوی موبایل */
.offcanvas-bottom .offcanvas-body {
    overflow-y: auto;
    max-height: 70vh;
    padding-bottom: 50px;
    padding-top: 0; /* حذف پدینگ بالا برای هدر */
}

/* استایل آیتم‌های منو */
.nav-menu-category li {
    position: relative;
    transition: all 0.3s ease;
}

/* استایل زیرمنوها */
.nav-menu-category .sub-menu {
    list-style: none;
    padding-right: 15px !important;
    margin-right: 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: none; /* مخفی کردن زیرمنوها به صورت پیش‌فرض */
}

/* استایل هدر زیرمنو */
.submenu-header {
    background-color: #f0f0f0;
    border-radius: 10px 10px 0 0;
    margin-bottom: -10px;
    position: sticky;
    top: 1;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.current-menu-title {
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    flex-grow: 1;
    text-align: center;
}

/* استایل دکمه برگشت */
.back-button {
    background-color: #4a90e2;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

.back-button:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent #4a90e2 transparent transparent;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.back-button:hover {
    background-color: #3a80d2;
    transform: scale(1.1);
}

.back-button:active {
    transform: scale(0.95);
}

/* استایل آیتم‌های قابل کلیک */
.has-submenu > .sub-menu-toggle {
    position: relative;
    cursor: pointer;
}

.has-submenu > .sub-menu-toggle:after {
    content: '\f104'; /* آیکون فلش فونت‌آوسام */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a90e2;
    font-size: 18px;
    pointer-events: none; /* اجازه کلیک روی عناصر زیرین */
}

/* استایل متن لینک */
.menu-text {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 5;
    color: #333;
}

.menu-text:hover {
    background-color: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
}

/* استایل آیتم فعال */
.active-parent-menu > .sub-menu-toggle > a {
    color: #4a90e2 !important;
}

/* انیمیشن‌ها */
.nav-menu-category .sub-menu {
    transition: all 0.3s ease;
}

/* استایل لینک‌ها */
.nav-menu-category .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    width: 100%;
    position: relative;
}

/* استایل آیتم‌های منو در حالت هاور */
.nav-menu-category .nav-link:hover,
.has-submenu > .sub-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* استایل کانتینر منو */
.sub-menu-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding-left: 30px; /* فضا برای آیکون */
}

/* نشانگر آیتم‌های دارای زیرمنو */
.has-submenu > .sub-menu-toggle {
    background-image: linear-gradient(to left, rgba(74, 144, 226, 0.1), transparent 30%);
    border-right: 3px solid #4a90e2;
}

/* استایل برای موبایل */
@media (max-width: 767px) {
    .back-button {
        width: 32px;
        height: 32px;
    }
    
    .has-submenu > .sub-menu-toggle:after {
        font-size: 16px;
    }
}
/* استایل برای مبلغ در باکس خاص */
.d-flex.justify-content-center.align-items-center .woocommerce-Price-amount.amount,
.d-flex.justify-content-center.align-items-center .woocommerce-Price-amount.amount bdi {
    color: #ffffff !important;
}

/* استایل متفاوت برای نماد "تومان" در باکس خاص */
.d-flex.justify-content-center.align-items-center .woocommerce-Price-currencySymbol {
    color: #a3ffb0 !important; /* رنگ سبز روشن */
    font-size: 0.85em !important;
    opacity: 0.9 !important;
    margin-right: 3px !important;
}

/* Card Table Styling */
.card-table-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    padding: 0;
    direction: rtl;
}

#my-cards-table {
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
    font-family: 'IRANSans', 'Vazir', 'Tahoma', sans-serif;
}

#my-cards-table thead {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: white;
}

#my-cards-table th {
    padding: 1.2rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

#my-cards-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

#my-cards-table tbody tr:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

#my-cards-table td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 1rem;
    border-top: none;
}

#my-cards-table td[style="direction: ltr;"] {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #424242;
}

/* Fix for the badge styling */
.badge-pill.badge-success {
    background-color: #43a047 !important;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 5px rgba(67, 160, 71, 0.3) !important;
    display: inline-block !important;
    font-weight: 500 !important;
}

/* Last row with button styling */
#my-cards-table tbody tr:last-child td {
    padding: 1.5rem 0;
}

/* Improved button styling */
#my-cards-table .btn-success {
    background: linear-gradient(135deg, #43a047, #2e7d32) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.4) !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important; /* Center the button */
    position: relative !important;
    z-index: 2 !important;
}

#my-cards-table .btn-success:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.5) !important;
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
}

#my-cards-table .btn-success:active {
    transform: translateY(1px) !important;
    box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3) !important;
}

#my-cards-table .btn-success i {
    font-size: 1.5rem !important;
    color: white !important;
}

/* Add a subtle glow effect to the button */
#my-cards-table .btn-success::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(76, 175, 80, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#my-cards-table .btn-success:hover::after {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-table-wrapper {
        margin: 1rem;
        border-radius: 8px;
    }
    
    #my-cards-table th,
    #my-cards-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    #my-cards-table td[style="direction: ltr;"] {
        font-size: 0.85rem;
    }
    
    .badge-pill.badge-success {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    #my-cards-table .btn-success {
        width: 48px !important;
        height: 48px !important;
    }
}



    @media only screen and (min-width: 768px) {
        /* استایل قیمت */
        .latest-orders-slider-slide .woocommerce-Price-amount.amount {
            color: #28a745;
            font-weight: 600;
        }
        
        /* استایل نماد تومان */
        .latest-orders-slider-slide .woocommerce-Price-currencySymbol {
            color: #6c757d;
            font-size: 0.85em;
            margin-right: 3px;
        }
     .disabled-shopping-message{
	height:48px !important;
}   
        /* استایل عنوان‌های پررنگ */
        .latest-orders-slider-slide strong {
            color: #495057;
            font-weight: 600;
            font-size: 12px;
        }
    }
        @media only screen and (max-width: 767px) {
            /* Center the disabled shopping message box */
            .g_select-card-links .g_select-card-addcart.replaced-with-message {
                margin: 0 auto !important;
                width: 100% !important;
                max-width: 245.99px !important;
                text-align: center !important;
            }
            
            /* Improve text readability by making it smaller and allowing wrapping if needed */
            .g_select-card-links .disabled-shopping-message p {
                font-size: 12px !important; /* کوچکتر کردن سایز فونت */
                padding: 0 5px !important;
                line-height: 1.3 !important; /* بهبود فاصله خطوط */
                /* white-space: nowrap را حذف کردیم */
                margin: 0 !important; /* حذف حاشیه‌های اضافی */
            }
            
            /* Make the entire links container flex with center alignment */
            .g_select-card-links {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
            }

        }
/* کاهش ارتفاع کل بخش */
.last-holder.container {
    max-height: 160px; /* ارتفاع کلی را کاهش می‌دهیم - مقدار را می‌توانید تنظیم کنید */
}




.phone-box p {
    margin: 3px 0 !important;
    width: 100%;
    text-align: center;
    font-size: 24px;
}

.phone-box p:last-child {
    font-weight: bold;
    direction: ltr; /* Ensure numbers display correctly */
    font-size: 16px;
}



/* Ensure the "ثبت و تایید" button remains visible */

.g_select-card-name{
	        transform: translateY(10px) !important;
        margin-top: 10px !important;
        position: relative !important;
        top: 10px !important;
}                                
    .g_select-card-price {
        margin-top: 0px !important;
        position: relative !important;
        top: 10px !important;
    }

a[href*="my-account/"], 
        a[href*="g_cart"], 
        a[href*="action=logout"] {
            position: relative;
            display: inline-block;
        }
        
        /* رنگ قرمز برای آیکون خروج (همیشه) - روش ساده‌تر */
        a[href*="action=logout"] img {
            filter: brightness(0) saturate(100%);
            /* ابتدا تصویر را سیاه می‌کنیم */
            opacity: 0.8;
        }
  
/* فقط در باکس g_search-account اعمال شود */
.g_search-account a[href*="my-account/"]:after,
.g_search-account a[href*="g_cart"]:after,
.g_search-account a[href*="action=logout"]:after {
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    background-color: #000;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    visibility: hidden;
}

/* نمایش متن هنگام هاور فقط در این باکس */
.g_search-account a[href*="my-account/"]:hover:after,
.g_search-account a[href*="g_cart"]:hover:after,
.g_search-account a[href*="action=logout"]:hover:after {
    opacity: 1;
    visibility: visible;
}

/* متن‌ها فقط برای این باکس */
.g_search-account a[href*="my-account/"]:after {
    content: "حساب کاربری";
}

.g_search-account a[href*="g_cart"]:after {
    content: "سبد خرید";
}

.g_search-account a[href*="action=logout"]:after {
    content: "خروج";
}

/* اطمینان از position relative برای parent */
.g_search-account a {
    position: relative;
}
.woocommerce-table .product-name img[src*="flagcdn.com"] {
    display: none !important;
}

        .latest-orders-slider-slide .seepro-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(45deg, #3949ab, #5e35b1) !important;
    color: white !important;
    font-family: 'IRANSans', 'Vazir', 'Tahoma', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(94, 53, 177, 0.3) !important;
    text-decoration: none !important;
    margin-top: 10px !important;
    position: relative !important;
    width: calc(100% - 40px) !important;
    height: auto !important;
}

.latest-orders-slider-slide .seepro-button p {
    margin: 0 !important;
    padding: 0 !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* حذف تمام افکت‌های هاور برای این دکمه‌های خاص */
.latest-orders-slider-slide .seepro-button:hover {
    background: linear-gradient(45deg, #3949ab, #5e35b1) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(94, 53, 177, 0.3) !important;
    transform: none !important;
}

.latest-orders-slider-slide .seepro-button:hover p {
    color: white !important;
}

/* حذف تمام افکت‌های before و after که ممکن است برای هاور استفاده شوند */
.latest-orders-slider-slide .seepro-button:before,
.latest-orders-slider-slide .seepro-button:after,
.latest-orders-slider-slide .seepro-button::before,
.latest-orders-slider-slide .seepro-button::after {
    display: none !important;
} 
/* استایل جدید برای باکس سفارش */
.woocommerce-order-details {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: 30px 0;
    direction: rtl;
    max-width: 100%;
    overflow-x: auto;
}

.woocommerce-order-details__title {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    text-align: right;
    font-weight: 700;
}

.woocommerce-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table th,
.woocommerce-table td {
    padding: 15px;
    text-align: right;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-table thead th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    font-size: 16px;
}

.woocommerce-table__product-name {
    width: 70%;
}

.woocommerce-table__product-total {
    width: 30%;
    text-align: left;
}

.woocommerce-table tfoot th {
    font-weight: 600;
    color: #555;
}

.woocommerce-table tfoot tr:last-child {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

.woocommerce-table tfoot tr:last-child td {
    color: #2e7d32;
}

.product-quantity {
    background-color: #f1f8e9;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 5px;
    color: #558b2f;
    font-size: 14px;
}

.woocommerce-Price-amount {
    font-weight: 700;
    color: #2e7d32;
}

/* استایل اصلاح شده برای فرم تایید تلفن ثابت */
#landline-verification-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#landline-verification-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* اصلاح استایل گروه ورودی */
#landline-verification-box .input-group {
    display: block;
    margin-bottom: 20px;
    width: 100%;
}

/* استایل برای اینپوت‌ها */
#landline-verification-box input {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    box-sizing: border-box;
    display: block;
}

#landline-verification-box input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
    outline: none;
}

/* استایل برای دکمه‌ها با افکت‌های جذاب */
#landline-verification-box button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: block;
}

/* افکت موج برای دکمه‌ها */
#landline-verification-box button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
    z-index: -1;
}

#landline-verification-box button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* رنگ‌های دکمه‌ها */
#landline-verification-box .btn-primary {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

#landline-verification-box .btn-primary:hover {
    background: linear-gradient(135deg, #3367d6, #2a56c6);
    box-shadow: 0 6px 15px rgba(66, 133, 244, 0.4);
    transform: translateY(-2px);
}

#landline-verification-box .btn-success {
    background: linear-gradient(135deg, #0f9d58, #0b8043);
    color: white;
    box-shadow: 0 4px 10px rgba(15, 157, 88, 0.3);
}

#landline-verification-box .btn-success:hover {
    background: linear-gradient(135deg, #0b8043, #097138);
    box-shadow: 0 6px 15px rgba(15, 157, 88, 0.4);
    transform: translateY(-2px);
}

/* استایل برای متن راهنما */
#landline-verification-box .input-group-text {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

/* استایل برای گروه کد تایید */
#landline-code-input-group {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

/* خط جداکننده */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 20px 0;
}

/* استایل‌های واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .woocommerce-order-details {
        padding: 15px;
        border-radius: 8px;
    }
    
    .woocommerce-order-details__title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .woocommerce-table th,
    .woocommerce-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .woocommerce-table__product-name {
        width: 60%;
    }
    
    .woocommerce-table__product-total {
        width: 40%;
    }
    
    .product-quantity {
        padding: 2px 5px;
        font-size: 12px;
    }
    
    #landline-verification-box {
        padding: 15px;
    }
    
    #landline-verification-box input {
        padding: 10px;
        font-size: 14px;
    }
    
    #landline-verification-box button {
        padding: 10px 15px;
        font-size: 14px;
    }
}
/* More specific selector to hide "View Product" button */
body.single-product div.mainholder-product .g_select-card-item figure figcaption .g_select-card-links a.seepro-button {
    display: none !important;
}
/* Adjust countdown boxes on mobile without position: relative */
@media (max-width: 467px) {
    /* Base styles for all countdown boxes */
    .product-box-countdown {
        scale: 0.85 !important;
        margin-left: -8px !important;
        max-height: 50px !important;
        z-index: 10 !important;
    }
    
    /* Specific styles for countdown boxes on single product pages */
    .single-product .product-box-countdown {
        margin-top: 17px !important;
    }

    /* Add padding to parent container on category pages */
    .tax-product_cat .product-box-countdown-container,
    .tax-product_cat .products .product,
    .woocommerce-shop .product-box-countdown-container,
    .woocommerce-shop .products .product,
    .archive .product-box-countdown-container,
    .archive .products .product {
        padding-top: 20px !important;
    }
    
    /* Adjust the timer text for better fit */
    .product-box-countdown .product-box-countdown-timer,
    .product-box-countdown .product-box-countdown-timer span {
        font-size: 13px !important;
    }
    
    /* Adjust the badge */
    .product-box-countdown .product-box-countdown-badge {
        font-size: 11px !important;
    }
}

     .count .d-flex .woocommerce-Price-amount {
        background-color: #00a65a; /* سبز پررنگ */
        padding: 3px 6px; /* اضافه کردن فاصله داخلی برای زیبایی بیشتر */
        border-radius: 4px; /* گرد کردن گوشه‌ها */
        display: inline-block; /* برای اعمال صحیح پدینگ */
        color: white; /* رنگ متن سفید برای خوانایی بهتر */
    }
    /* اضافه کردن فاصله 50 پیکسلی به پایین المان last-holder */

/* مخفی کردن بخش تخفیفات در پنل کاربری */
body.woocommerce-account .last-holder.container,
.woocommerce-account .last-holder.container,
.woocommerce-MyAccount-content .last-holder.container,
.my-account .last-holder.container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* بهبود نمایش جدول سفارش در موبایل */
@media only screen and (max-width: 768px) {
    /* تغییر ساختار جدول برای نمایش بهتر در موبایل */
    .woocommerce-order-details .woocommerce-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        border-radius: 5px;
    }
    
    .woocommerce-order-details .woocommerce-table thead {
        display: none; /* مخفی کردن هدر جدول در موبایل */
    }
    
    .woocommerce-order-details .woocommerce-table tbody,
    .woocommerce-order-details .woocommerce-table tr,
    .woocommerce-order-details .woocommerce-table td,
    .woocommerce-order-details .woocommerce-table th,
    .woocommerce-order-details .woocommerce-table tfoot {
        display: block;
        width: 100%;
        text-align: right;
    }
    
    /* نمایش هر سطر به صورت کارت */
    .woocommerce-order-details .woocommerce-table__line-item {
        margin-bottom: 20px;
        border: 1px solid #e5e5e5;
        border-radius: 5px;
        padding: 10px;
    }
    
    /* تنظیم سلول‌های محصول و قیمت */
    .woocommerce-order-details .woocommerce-table__product-name {
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .woocommerce-order-details .woocommerce-table__product-total {
        font-weight: bold;
        text-align: left;
    }
    
    /* تنظیم فوتر جدول */
    .woocommerce-order-details .woocommerce-table tfoot tr {
        border-top: 1px solid #e5e5e5;
        padding: 8px 0;
    }
    
    .woocommerce-order-details .woocommerce-table tfoot th {
        font-weight: normal;
        padding: 5px 0;
    }
    
    .woocommerce-order-details .woocommerce-table tfoot td {
        font-weight: bold;
        text-align: left;
        padding: 5px 0;
    }
    
    /* تنظیم فرم تایید تلفن ثابت */
    #landline-verification-box {
        width: 100%;
        padding: 0;
    }
    
    #landline-verification-box .input-group {
        display: flex;
        flex-direction: column;
    }
    
    #landline-verification-box .btn {
        margin-top: 5px;
        width: 100%;
    }
    
    /* جلوگیری از اسکرول افقی */
    .woocommerce-order-details {
        max-width: 100%;
        overflow-x: hidden !important;
    }
    
    /* تنظیم اندازه متن */
    .woocommerce-order-details {
        font-size: 14px;
    }
    
    /* مطمئن شوید که هیچ عنصری از عرض صفحه بیشتر نشود */
    .woocommerce-order-details * {
        max-width: 100%;
        word-break: break-word;
    }
}

/* جلوگیری از اسکرول افقی در تمام اندازه‌ها */
.woocommerce-order-details {
    overflow-x: hidden !important;
}

.woocommerce-order-details table {
    table-layout: fixed;
    width: 100%;
}
.ch-txt h4 a{ 
	font-size:14px !important;
}


  /* استایل‌های موبایل برای اسلایدر سفارشات اخیر - نسخه بازنویسی شده */
@media only screen and (max-width: 767px) {
    /* تغییر نمایش اسلایدر به حالت عمودی */
    .latest-orders-slider-wrapper,
    .latest-orders-slider,
    .swiper-container {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    
 
    
    /* استایل هر سفارش */
    .order-item {
        background-color: #f9f9f9 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        padding: 15px !important;
        position: relative !important;
        border: 1px solid #e0e0e0 !important;
        direction: rtl !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* مخفی کردن محصولات در حالت عادی */
    .order-product {
        display: none !important;
    }
 
    
    /* دکمه جدید مشاهده سفارش */
    .mobile-view-order-btn {
        background-color: #4CAF50 !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        padding: 10px 15px !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 10px !important;
        cursor: pointer !important;
        font-weight: bold !important;
        font-size: 14px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
        display: block !important;
    }
    
    .mobile-view-order-btn:hover {
        background-color: #45a049 !important;
    }
    
    /* استایل پاپ‌آپ */
    .order-popup {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(0,0,0,0.7) !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
    }
    
    /* محتوای پاپ‌آپ */
    .popup-content {
        background-color: white !important;
        width: 90% !important;
        max-width: 500px !important;
        margin: 50px auto !important;
        padding: 20px !important;
        border-radius: 8px !important;
        position: relative !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        direction: rtl !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    }
    
    /* دکمه بستن پاپ‌آپ */
    .close-popup {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        font-size: 24px !important;
        cursor: pointer !important;
        color: #777 !important;
        z-index: 10 !important;
        width: 30px !important;
        height: 30px !important;
        text-align: center !important;
        line-height: 30px !important;
    }
    
    /* عنوان پاپ‌آپ */
    .popup-content h3 {
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        color: #333 !important;
        font-size: 18px !important;
        border-bottom: 1px solid #eee !important;
        padding-bottom: 10px !important;
    }
    
    .popup-content h4 {
        margin-top: 15px !important;
        margin-bottom: 10px !important;
        color: #555 !important;
        font-size: 16px !important;
    }
    
    /* اطلاعات سفارش در پاپ‌آپ */
    .popup-order-info {
        background-color: #f5f5f5 !important;
        padding: 10px !important;
        border-radius: 4px !important;
        margin-bottom: 15px !important;
    }
    
    .popup-order-info p {
        margin: 5px 0 !important;
        font-size: 14px !important;
    }
    
    /* استایل محصولات در پاپ‌آپ */
    .popup-product {
        display: flex !important;
        align-items: center !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .popup-product:last-child {
        border-bottom: none !important;
    }
    
    .popup-product img {
        width: 60px !important;
        height: 60px !important;
        object-fit: cover !important;
        border-radius: 4px !important;
        margin-left: 10px !important;
        border: 1px solid #ddd !important;
    }
}
  .order-item .order-product:nth-child(n+5) {
    display: none;
  }
  
  .order-item.show-all .order-product {
    display: block !important;
  }
  
  .toggle-products {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
  }
  
  .toggle-products:hover {
    background-color: #e9e9e9;
  }
  /* Target the social-footer-section specifically */
.social-footer-section.container {
  /* Remove it from normal flow */
  position: relative;
  /* Move it to an earlier position in the visual order */
  z-index: 100;
  /* Ensure it's visible and not hidden by other elements */
  background-color: #fff; /* Match your site background */
}

/* Move the section to after a specific element */
/* For example, after the header or another specific section */
@media (min-width: 768px) {
  /* Desktop version */
  .social-footer-section.container {
    margin-top: -140px; /* Adjust this value as needed */    margin-bottom: 70px;
  }
  
}
/* Complete fix for horizontal scrolling in mobile view for latest orders section - ONLY FOR USER PANEL */
@media (max-width: 767px) {
  /* Target only user panel pages */
  body.woocommerce-account .woocommerce-MyAccount-content .last-order-holder,
  .page-template-user-panel .last-order-holder,
  .user-panel-page .last-order-holder {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Force swiper container to be contained - only on user panel */
  body.woocommerce-account .latest-orders-slider-container,
  .page-template-user-panel .latest-orders-slider-container,
  .user-panel-page .latest-orders-slider-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Force swiper wrapper to be contained - only on user panel */
  body.woocommerce-account .latest-orders-slider-wrapper,
  .page-template-user-panel .latest-orders-slider-wrapper,
  .user-panel-page .latest-orders-slider-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    transform: none !important;
  }
  
  /* Convert to vertical stacking instead of horizontal sliding on mobile - only on user panel */
  body.woocommerce-account .latest-orders-slider-slide,
  .page-template-user-panel .latest-orders-slider-slide,
  .user-panel-page .latest-orders-slider-slide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    float: none !important;
    display: block !important;
  }
  
  /* Hide swiper navigation on mobile - only on user panel */
  body.woocommerce-account .latest-orders-slider-button-next,
  body.woocommerce-account .latest-orders-slider-button-prev,
  body.woocommerce-account #custom-left-mask-ph38gi9ni,
  body.woocommerce-account #custom-right-mask-q5es3jorn,
  .page-template-user-panel .latest-orders-slider-button-next,
  .page-template-user-panel .latest-orders-slider-button-prev,
  .page-template-user-panel #custom-left-mask-ph38gi9ni,
  .page-template-user-panel #custom-right-mask-q5es3jorn,
  .user-panel-page .latest-orders-slider-button-next,
  .user-panel-page .latest-orders-slider-button-prev,
  .user-panel-page #custom-left-mask-ph38gi9ni,
  .user-panel-page #custom-right-mask-q5es3jorn {
    display: none !important;
  }
  
  /* Make order items fit within container - only on user panel */
  body.woocommerce-account .order-item,
  .page-template-user-panel .order-item,
  .user-panel-page .order-item {
    width: 90% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding: 20px !important;
  }
  
  /* Ensure all content fits within container - only on user panel */
  body.woocommerce-account .order-item p,
  body.woocommerce-account .order-product p,
  .page-template-user-panel .order-item p,
  .page-template-user-panel .order-product p,
  .user-panel-page .order-item p,
  .user-panel-page .order-product p {
    width: 100% !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
  
  /* Adjust product images - only on user panel */
  body.woocommerce-account .order-product img,
  .page-template-user-panel .order-product img,
  .user-panel-page .order-product img {
    max-width: 50px !important;
    height: auto !important;
  }
  
  /* Make buttons fit within container - only on user panel */
  body.woocommerce-account .seepro-button,
  .page-template-user-panel .seepro-button,
  .user-panel-page .seepro-button {
    display: block !important;
    width: 90% !important;
    margin: 5px auto !important;
    box-sizing: border-box !important;
  }
  
  /* Show only first 5 orders on mobile to improve performance - only on user panel */
  body.woocommerce-account .latest-orders-slider-slide:nth-child(n+6),
  .page-template-user-panel .latest-orders-slider-slide:nth-child(n+6),
  .user-panel-page .latest-orders-slider-slide:nth-child(n+6) {
    display: none !important;
  }
  
  /* Force body and html to not scroll horizontally - only when on user panel pages */
  body.woocommerce-account,
  body.page-template-user-panel,
  body.user-panel-page {
    max-width: 100%;
    overflow-x: hidden !important;
  }
}
@media only screen and (max-width: 767px) {
    .phone-box.d-flex {
        font-size: 11px; /* Make all text smaller */
        margin-right: 10px; /* Move to the right */
        transform: scale(0.85); /* Make the entire element smaller */
        transform-origin: right center; /* Scale from the right side */
        justify-content: flex-end; /* Align content to the right */
        text-align: right; /* Ensure text aligns right */
    }
    
    .phone-box.d-flex p {
        margin: 0 2px; /* Reduce spacing between paragraphs */
        font-size: 11px !important; /* Force the text size to be smaller */
    }
    
    /* Target the second p tag which contains the phone number */
    .phone-box.d-flex p:nth-child(2) {
        font-size: 11px !important; /* Make sure the phone number is also smaller */
        font-weight: bold; /* Make it stand out */
    }
}


    @media screen and (max-width: 991px) {
            h3.g_suggestion-item-name {
                font-size: 11px !important;
							content:center !important;
							left:-11px;
            }
        }
                .cart .single_add_to_cart_button.button.alt {
            background-color: #7eb742 !important; /* Green color */
            color: white !important;
            margin: 0px 0px 12px 0px !important;
            display: block !important;
            text-align: center !important;
        }
        
        /* Fix form positioning */
        form.cart {
            margin: 0 !important;
            padding: 0 !important;
            text-align: center !important;
            display: inline-block !important;
        }
                .box-img-pro .ooffer2 {
            display: none !important;
        }
        
        /* Show and position ooffer2 on mobile devices */
        @media only screen and (max-width: 767px) {
            body.single-product .box-img-pro .ooffer2,
            .box-img-pro .ooffer2 {
                display: block !important;
                position: absolute !important;
                top: -15px !important; /* Move it higher up */
            }
        }
        /* مخفی کردن باکس countdown در صفحه دسته‌بندی playstation-giftcard */
.product-category-playstation-giftcard .product-box-countdown {
    display: none !important;
}


/* فقط برای صفحه فروشگاه و دسته‌بندی‌ها */
.woocommerce-shop .price,
.tax-product_cat .price {
    transform: translateY(-10px);
}

/* یا اگر می‌خواید با margin کار کنید */
.woocommerce-shop .price,
.tax-product_cat .price {
    margin-top: -10px;
}

/* اگر کلاس‌های بالا کار نکرد، این رو امتحان کنید */
body.post-type-archive-product .price,
body.tax-product_cat .price {
    transform: translateY(-10px);
}
.disabled-shopping-message p {
    font-size: 13px !important;
}

.disabled-shopping-message {
    max-height: 40px !important;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .disabled-shopping-message {
        max-width: 250px;
        max-height: 35px !important;
    }
    
    .disabled-shopping-message p {
        font-size: 11px !important;
    }
}

.g_suggestion-timer {
    display: none !important;
}
.woocommerce-table .product-name {
    text-align: center !important;
}
.social-footer-section {
    margin-top: 0px !important;
}
.social-footer-section {
    background-color: rgba(0, 0, 0, 0.0) !important;
}
