.elementor-3900 .elementor-element.elementor-element-59a91d2{--display:flex;}.elementor-3900 .elementor-element.elementor-element-242c61f{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-3900 .elementor-element.elementor-element-0995db4 .elementor-heading-title{font-family:"iranyekanwebregular", Sans-serif;font-size:32px;font-weight:600;color:var( --e-global-color-c29b211 );}.elementor-3900 .elementor-element.elementor-element-0cfd7e4{--display:flex;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--align-items:center;--gap:15px 15px;--row-gap:15px;--column-gap:15px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-3900 .elementor-element.elementor-element-b8625d7.elementor-element{--align-self:flex-start;}.elementor-3900 .elementor-element.elementor-element-b8625d7 .elementor-heading-title{font-family:"iranyekanwebmedium", Sans-serif;font-size:16px;font-weight:400;color:#1A1A1A;}.elementor-widget-icon.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-primary );}.elementor-widget-icon.elementor-view-framed .elementor-icon, .elementor-widget-icon.elementor-view-default .elementor-icon{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-widget-icon.elementor-view-framed .elementor-icon, .elementor-widget-icon.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-primary );}.elementor-3900 .elementor-element.elementor-element-9ad4cc5 .elementor-icon-wrapper{text-align:center;}.elementor-3900 .elementor-element.elementor-element-9ad4cc5.elementor-view-stacked .elementor-icon{background-color:#000000;}.elementor-3900 .elementor-element.elementor-element-9ad4cc5.elementor-view-framed .elementor-icon, .elementor-3900 .elementor-element.elementor-element-9ad4cc5.elementor-view-default .elementor-icon{color:#000000;border-color:#000000;}.elementor-3900 .elementor-element.elementor-element-9ad4cc5.elementor-view-framed .elementor-icon, .elementor-3900 .elementor-element.elementor-element-9ad4cc5.elementor-view-default .elementor-icon svg{fill:#000000;}.elementor-3900 .elementor-element.elementor-element-9ad4cc5 .elementor-icon{font-size:5px;}.elementor-3900 .elementor-element.elementor-element-9ad4cc5 .elementor-icon svg{height:5px;}.elementor-3900 .elementor-element.elementor-element-4272c0c .elementor-heading-title{font-family:"iranyekanwebmedium", Sans-serif;font-size:16px;font-weight:400;color:#7F7F7F;}.elementor-3900 .elementor-element.elementor-element-a229faf .elementor-icon-wrapper{text-align:center;}.elementor-3900 .elementor-element.elementor-element-a229faf.elementor-view-stacked .elementor-icon{background-color:#000000;}.elementor-3900 .elementor-element.elementor-element-a229faf.elementor-view-framed .elementor-icon, .elementor-3900 .elementor-element.elementor-element-a229faf.elementor-view-default .elementor-icon{color:#000000;border-color:#000000;}.elementor-3900 .elementor-element.elementor-element-a229faf.elementor-view-framed .elementor-icon, .elementor-3900 .elementor-element.elementor-element-a229faf.elementor-view-default .elementor-icon svg{fill:#000000;}.elementor-3900 .elementor-element.elementor-element-a229faf .elementor-icon{font-size:5px;}.elementor-3900 .elementor-element.elementor-element-a229faf .elementor-icon svg{height:5px;}.elementor-3900 .elementor-element.elementor-element-386523b .elementor-heading-title{font-family:"iranyekanwebmedium", Sans-serif;font-size:16px;font-weight:400;color:#7F7F7F;}@media(max-width:767px){.elementor-3900 .elementor-element.elementor-element-0995db4 .elementor-heading-title{font-size:21px;}.elementor-3900 .elementor-element.elementor-element-0cfd7e4{--align-items:center;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );}.elementor-3900 .elementor-element.elementor-element-b8625d7 .elementor-heading-title{font-size:12px;}.elementor-3900 .elementor-element.elementor-element-9ad4cc5 .elementor-icon{font-size:3px;}.elementor-3900 .elementor-element.elementor-element-9ad4cc5 .elementor-icon svg{height:3px;}.elementor-3900 .elementor-element.elementor-element-4272c0c .elementor-heading-title{font-size:12px;}.elementor-3900 .elementor-element.elementor-element-a229faf .elementor-icon{font-size:3px;}.elementor-3900 .elementor-element.elementor-element-a229faf .elementor-icon svg{height:3px;}.elementor-3900 .elementor-element.elementor-element-386523b .elementor-heading-title{font-size:12px;}}/* Start custom CSS for shortcode, class: .elementor-element-aa8d9dc *//* =========================================
   1. تنظیمات عمومی و دسکتاپ
   ========================================= */
:root {
    --mbs-font-reg: 'iranyekanwebregular_Fanum', Tahoma, sans-serif;
    --mbs-font-med: 'iranyekanwebmedium_Fanum', Tahoma, sans-serif;
    --mbs-bg-color: #f5f5f7;
    --mbs-card-bg: #ffffff;
    --mbs-primary: #1d1d1f;
    --mbs-green: #008a00;
    --mbs-border-light: #e5e5e5;
    --mbs-border-hover: #86868b;
}

.mbs-cart-container {
    font-family: var(--mbs-font-reg);
    direction: rtl;
    max-width: 1350px;
    margin: 40px auto;
    padding: 0 20px;
}

.mbs-grid-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ستون محصولات */
.mbs-cart-items-column { flex: 1; }

.mbs-column-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.mbs-column-header h3 {
    margin: 0;
    font-family: var(--mbs-font-med);
    font-size: 28px;
    font-weight: 700;
    color: var(--mbs-primary);
}
.count-badge {
    background: #e8e8ed;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.mbs-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* کارت محصول */
.mbs-cart-row {
    background: var(--mbs-card-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); 
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}
.mbs-cart-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

/* تصاویر */
.mbs-col-image {
    width: 150px;
    margin-left: 20px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mbs-col-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    box-shadow: none !important;
    filter: none !important;
}

/* جزئیات */
.mbs-col-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}
.product-title-link {
    display: block;
    font-family: var(--mbs-font-med);
    font-size: 16px;
    color: var(--mbs-primary);
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 1.4;
}

/* بولت رنگی */
.mbs-color-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    display: inline-block;
}
.color-text {
    font-size: 13px;
    color: #555;
    font-family: var(--mbs-font-med);
}

.product-meta {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 12px;
}
.product-meta dt:contains("رنگ"), .product-meta dd:has(p:contains("رنگ")) {
    display: none;
}

.single-price {
    font-size: 14px;
    color: #6e6e73;
}
.single-price .woocommerce-Price-amount {
    color: var(--mbs-primary);
    font-weight: 500;
}

/* اکشن‌ها */
.mbs-col-actions {
    border-right: 1px solid rgba(0,0,0,0.06);
    padding-right: 30px;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    min-width: 180px;
    height: 100px;
}

.price-total-row {
    font-family: var(--mbs-font-med);
    font-size: 20px;
    color: var(--mbs-primary);
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* شمارنده */
.product-quantity-style {
    display: flex;
    align-items: center;
    height: 34px;
    border: 1px solid var(--mbs-border-light);
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}
.product-quantity-style:hover {
    border-color: var(--mbs-border-hover);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.product-quantity-style .quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 32px;
    padding: 0;
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: 400;
    font-family: var(--mbs-font-med);
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}
.product-quantity-style .quantity-button:hover { background-color: #f5f5f7; color: #000; }
.quantity-minus-style { border-left: 1px solid transparent; }
.quantity-plus-style { border-right: 1px solid transparent; }
.product-quantity-style:hover .quantity-minus-style { border-left-color: #f0f0f0; }
.product-quantity-style:hover .quantity-plus-style { border-right-color: #f0f0f0; }
.product-quantity-style .quantity-input {
    width: 35px; padding: 0; height: 100%; text-align: center; border: none !important; outline: none; font-size: 15px; background-color: transparent; color: #333; font-family: var(--mbs-font-med); -moz-appearance: textfield;
}
.product-quantity-style .quantity-input::-webkit-outer-spin-button, 
.product-quantity-style .quantity-input::-webkit-inner-spin-button { 
    -webkit-appearance: none; margin: 0; 
}

/* سطل زباله (ثابت در همه جا) */
.mbs-remove-trigger {
    display: flex; align-items: center; justify-content: center; padding: 5px; border-radius: 50%; transition: all 0.2s ease; cursor: pointer; background-color: transparent !important;
}
.custom-trash-icon-img {
    width: 20px; height: 20px; display: block; opacity: 0.6; transition: all 0.2s ease; filter: none;
}
.mbs-remove-trigger:hover .custom-trash-icon-img {
    transform: scale(1.1); opacity: 1; filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

/* سایدبار */
.mbs-cart-sidebar {
    width: 400px;
    position: sticky;
    top: 40px;
}
.mbs-invoice-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.invoice-header {
    font-family: var(--mbs-font-med); font-size: 20px; font-weight: 700; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px dashed rgba(0,0,0,0.1); color: var(--mbs-primary); text-align: center;
}
.invoice-row {
    display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 15px; color: #555;
}
.price-data { color: var(--mbs-primary); font-weight: 700; font-size: 16px; }
.total-mode { margin-top: 25px; align-items: center; }
.total-amount { font-size: 24px !important; color: var(--mbs-primary) !important; font-weight: 900; }
.divider-line { height: 1px; background: #f0f0f0; margin: 25px 0; }

/* کوپن */
.coupon-section { margin: 25px 0; }
.coupon-group {
    position: relative; display: flex; align-items: center; background: #f5f5f7; border-radius: 50px; padding: 5px; border: 1px solid transparent;
}
.coupon-group input {
    border: none; background: transparent; padding: 12px 15px 12px 50px; flex: 1; font-family: var(--mbs-font-reg); font-size: 14px; outline: none; color: #333;
}
.coupon-submit-btn {
    position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background-color: #000; border: 1px solid #000; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.coupon-submit-btn svg { transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.coupon-submit-btn:hover { background-color: transparent; border-color: transparent; color: #000; }
.coupon-submit-btn:hover svg { transform: translateX(-4px); }

/* تضمین */
.guarantee-text {
    font-size: 13px; color: var(--mbs-green); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; margin-top: 10px; font-weight: 500;
}
.btn-checkout-primary {
    display: flex; justify-content: center; align-items: center; width: 100%; background: #000; color: #fff; padding: 18px; border-radius: 16px; text-decoration: none; font-family: var(--mbs-font-med); font-size: 17px; font-weight: 600; border: 1px solid #000; transition: all 0.3s ease;
}
.btn-checkout-primary:hover { background: transparent; color: #000; box-shadow: none; }
.woocommerce-cart-form.processing, .mbs-cart-items-column.processing { opacity: 1 !important; position: static !important; }
.blockUI.blockOverlay { display: none !important; visibility: hidden !important; opacity: 0 !important; }


/* =========================================
   2. تبلت (Responsive - 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .mbs-grid-layout {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .mbs-cart-items-column { width: 100%; }
    .mbs-cart-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-top: 20px;
    }
    .mbs-cart-row { padding: 25px 30px; }
    .mbs-invoice-box { display: flex; flex-direction: column; padding: 30px 40px; }
}

/* =========================================
   3. موبایل (Responsive - 767px)
   کامل فیکس شده طبق دستور: همه چیز کوچک و جمع‌وجور
   ========================================= */
@media (max-width: 767px) {
    
    .mbs-cart-container { margin: 20px auto; padding: 0 15px; }
    .mbs-column-header h3 { font-size: 22px; }

    .mbs-cart-row {
        display: grid;
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto; 
        grid-template-areas: 
            "img details"
            "actions actions";
        align-items: center;
        gap: 12px;
        padding: 15px; /* پدینگ کلی کارت کمتر شد */
    }

    .mbs-col-image {
        grid-area: img;
        margin: 0; 
        width: 90px; /* عکس متناسب */
        height: 90px;
        justify-content: center;
    }

    .mbs-col-details {
        grid-area: details;
        width: 100%;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center; 
    }

    /* عنوان محصول: کوچک و جمع‌وجور */
    .product-title-link {
        font-size: 13px !important; /* کوچک شد */
        line-height: 1.4;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .single-price { display: none; }

    /* اکشن‌ها (پایین) */
    .mbs-col-actions {
        grid-area: actions;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-top: 1px dashed rgba(0,0,0,0.08);
        padding-top: 12px;
        margin-top: 5px;
        flex-direction: row-reverse;
        height: auto;
        align-items: center;
        justify-content: space-between;
    }

    .controls-row { gap: 10px; }

    /* شمارنده: بسیار جمع‌وجور */
    .product-quantity-style {
        height: 30px !important; /* ارتفاع کم شد */
    }
    .product-quantity-style .quantity-button {
        width: 30px !important; /* دکمه کوچک شد */
        font-size: 16px !important; /* فونت دکمه کوچک شد */
    }

    /* قیمت کل: سایز متعادل */
    .price-total-row {
        font-size: 15px !important; /* کوچک شد */
        font-weight: bold;
    }
    
    /* سطل زباله: کوچک شد */
    .mbs-remove-trigger { padding: 4px; }
    .custom-trash-icon-img {
        width: 17px !important; /* آیکون کوچک شد */
        height: 17px !important;
    }

    .mbs-invoice-box { padding: 25px; border-radius: 20px; margin-bottom: 60px; }
    .invoice-header { font-size: 18px; text-align: right; }
}
/* =================================================================== */
/* ====== 2. فشرده‌سازی سایدبار فاکتور (موبایل و تبلت) ====== */
/* =================================================================== */

@media (max-width: 1024px) {
    /* تغییرات کلی کانتینر در تبلت و موبایل */
    .mbs-invoice-box {
        padding: 20px !important; /* پدینگ کمتر */
        border-radius: 16px !important;
        /* حذف فاصله زیاد بالا */
        margin-top: 0 !important;
    }

    /* عنوان "مجموع فاکتور" */
    .invoice-header {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        padding-bottom: 12px !important;
        text-align: right !important; /* راست چین بهتره در موبایل */
    }

    /* ردیف‌های قیمت */
    .invoice-row {
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }
    .price-data {
        font-size: 14px !important;
    }

    /* اینپوت کوپن: فشرده‌تر */
    .coupon-section {
        margin: 15px 0 !important;
    }
    .coupon-group {
        padding: 3px !important; /* نازک‌تر */
    }
    .coupon-group input {
        padding: 8px 10px 8px 40px !important;
        font-size: 13px !important;
        height: 36px; /* ارتفاع فیکس */
    }
    .coupon-submit-btn {
        width: 32px !important;
        height: 32px !important;
        left: 4px !important;
    }
    .coupon-submit-btn svg {
        width: 16px;
        height: 16px;
    }

    /* خط جداکننده */
    .divider-line {
        margin: 15px 0 !important;
    }

    /* مبلغ نهایی */
    .total-mode {
        margin-top: 15px !important;
    }
    .total-mode span {
        font-size: 14px !important;
    }
    .total-amount {
        font-size: 18px !important; /* کوچک کردن قیمت نهایی */
    }
    /* فیکس کردن سایز فونت خود ووکامرس */
    .total-amount .woocommerce-Price-amount {
        font-size: 16px !important;
    }

    /* متن تضمین */
    .guarantee-text {
        font-size: 11px !important;
        margin-bottom: 15px !important;
        gap: 5px !important;
    }
    .guarantee-text svg {
        width: 14px;
        height: 14px;
    }

    /* دکمه تکمیل سفارش */
    .btn-checkout-primary {
        padding: 12px !important; /* دکمه باریک‌تر */
        font-size: 15px !important;
        border-radius: 12px !important;
        height: 45px; /* ارتفاع استاندارد لمسی */
    }
}/* End custom CSS */