.elementor-255 .elementor-element.elementor-element-62663f4a{--display:flex;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}/* Start custom CSS for container, class: .elementor-element-62663f4a *//* --- تنظیمات پایه --- */
.wp-block-woocommerce-cart {
    font-family: 'Vazirmatn', sans-serif !important;
    max-width: 1200px;
    margin: 0 auto !important; /* وسط‌چین کردن کل باکس در صفحه */
    padding: 20px 15px;
}

/* --- عنوان صفحه --- */
.woocommerce-cart .entry-title {
    font-size: 36px;
    font-weight: 900;
    color: #1e293b;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.woocommerce-cart .entry-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 6px;
    margin: 15px auto 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #6D28D9, #8b5cf6);
}

/* --- ساختار اصلی گرید (دسکتاپ) --- */
@media (min-width: 992px) {
    .wc-block-cart {
        display: grid !important;
        grid-template-columns: 2fr 1fr !important; /* دو سوم برای محصولات، یک سوم برای فاکتور */
        gap: 40px !important;
        align-items: start !important;
    }
}

/* --- استایل باکس‌ها (کانتینر محصولات و فاکتور) --- */
.wc-block-cart__main,
.wc-block-cart__sidebar {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(109, 40, 217, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    padding: 30px;
    width: 100% !important;
    box-sizing: border-box;
}

/* ==================================================
   جدول محصولات
================================================== */
.wc-block-cart-items__header {
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 15px;
}
.wc-block-cart-items__header th {
    color: #475569;
    font-weight: 800;
    font-size: 14px;
    padding: 15px 20px !important;
    border: none !important;
    text-align: right !important;
}

/* ردیف هر محصول */
.wc-block-cart-items__row {
    transition: all 0.3s ease;
    border-bottom: 1px dashed #e2e8f0;
    padding: 15px 0;
}
.wc-block-cart-items__row:last-child {
    border-bottom: none;
}
.wc-block-cart-items__row:hover {
    background: #faf5ff;
    border-radius: 16px;
    padding: 15px;
}

/* تصویر و متن محصول */
.wc-block-cart-item__image img {
    border-radius: 16px;
    border: 1px solid rgba(109, 40, 217, 0.1);
    padding: 5px;
    background: #fff;
}
.wc-block-components-product-name {
    color: #1e293b !important;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none !important;
}
.wc-block-components-product-name:hover {
    color: #6D28D9 !important;
}

/* قیمت */
.wc-block-components-product-price__value {
    color: #6D28D9;
    font-weight: 800;
    font-size: 18px;
}

/* ==================================================
   باکس تعداد و دکمه حذف
================================================== */
.wc-block-components-quantity-.elementor-255 .elementor-element.elementor-element-62663f4a {
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}
.wc-block-components-quantity-.elementor-255 .elementor-element.elementor-element-62663f4a__input {
    background: transparent !important;
    border: none !important;
    font-weight: 700;
}
.wc-block-components-quantity-.elementor-255 .elementor-element.elementor-element-62663f4a__button:hover {
    background: #ede9fe;
    color: #6D28D9;
}

/* دکمه حذف */
.wc-block-cart-item__remove-link {
    color: #ef4444 !important;
    background: #fef2f2;
    border-radius: 10px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.wc-block-cart-item__remove-link:hover {
    background: #ef4444;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* ==================================================
   سایدبار (فاکتور پرداخت)
================================================== */
.wc-block-cart__totals-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

/* جمع کل */
.wc-block-components-totals-footer-item {
    border-top: 2px dashed #e2e8f0;
    padding-top: 20px !important;
    margin-top: 15px;
}
.wc-block-components-totals-item__value {
    color: #6D28D9;
    font-size: 24px;
    font-weight: 900;
}

/* دکمه نهایی تسویه حساب */
.wc-block-cart__submit-button {
    background: linear-gradient(135deg, #6D28D9, #8b5cf6) !important;
    height: 60px !important;
    border: none !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
    margin-top: 20px;
}
.wc-block-cart__submit-button:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(109, 40, 217, 0.4);
}
/* ==================================================
   LUMENA - WooCommerce Cart Page (Mobile / Phone)
================================================== */
@media (max-width: 767px) {
    /* چیدمان زیر هم (تغییر از گرید به فلکس) */
    .wc-block-cart {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }

    /* یکپارچه‌سازی و کاهش پدینگ باکس‌ها برای موبایل */
    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        padding: 20px 15px !important;
        border-radius: 20px !important;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03) !important;
    }

    /* مخفی‌سازی هدر جدول که در موبایل فضای اضافی می‌گیرد */
    .wc-block-cart-items__header {
        display: none !important;
    }

    /* استایل اختصاصی کارت هر محصول در موبایل */
    .wc-block-cart-items__row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 15px !important;
        gap: 15px !important;
        background: #f8fafc !important;
        border-radius: 16px !important;
        margin-bottom: 20px !important;
        border: 1px solid rgba(109, 40, 217, 0.05) !important;
    }

    /* وسط‌چین کردن نام محصول */
    .wc-block-components-product-name {
        font-size: 16px !important;
        text-align: center !important;
        display: block !important;
    }

    /* تمام‌عرض کردن دکمه حذف برای کلیک راحت‌تر */
    .wc-block-cart-item__remove-link {
        width: 100% !important;
        margin-top: 10px !important;
        padding: 12px !important;
    }

    /* ==================================================
       بخش کوپن (کد تخفیف) در موبایل
    ================================================== */
    .wc-block-components-totals-coupon__form {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* تمام‌عرض کردن فیلد ورودی و دکمه اعمال تخفیف */
    .wc-block-components-totals-coupon__form .wc-block-components-text-input,
    .wc-block-components-totals-coupon__button {
        width: 100% !important;
        height: 50px !important; /* افزایش ارتفاع برای تاچ راحت‌تر */
    }

    .wc-block-components-totals-coupon__button {
        margin: 0 !important;
    }

    /* تنظیم ارتفاع دکمه نهایی تسویه حساب */
    .wc-block-cart__submit-button {
        height: 55px !important;
        font-size: 16px !important;
    }
    
    /* اصلاح سایز فونت عنوان صفحه در گوشی */
    .woocommerce-cart .entry-title {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }
}
/* ==================================================
   بخش کد تخفیف (کوپن)
================================================== */
.wc-block-components-totals-coupon__form .wc-block-components-text-input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    transition: all 0.3s ease !important;
}

.wc-block-components-totals-coupon__form .wc-block-components-text-input.is-active,
.wc-block-components-totals-coupon__form .wc-block-components-text-input:focus-within {
    border-color: #6D28D9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1) !important;
}

.wc-block-components-totals-coupon__form .wc-block-components-text-input input {
    color: #1e293b !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 500;
}

.wc-block-components-totals-coupon__button {
    background: #f3e8ff !important;
    color: #6D28D9 !important;
    border: 1px solid rgba(109, 40, 217, 0.3) !important;
    border-radius: 12px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    padding: 0 20px !important;
}

.wc-block-components-totals-coupon__button:hover {
    background: #6D28D9 !important;
    color: #ffffff !important;
    border-color: #6D28D9 !important;
}/* End custom CSS */
/* Start custom CSS */.woocommerce-cart .entry-title {
    margin-bottom: 30px;
    position: relative;
    margin-top: 40px;
}/* End custom CSS */