:root{--page-title-display:none;}/* Start custom CSS *//* ریشه سبد خرید */
.mazhan-cart-root {
    max-width: 650px;
    margin: 15px auto;
    padding: 0 16px 120px 16px;
    box-sizing: border-box;
}

/* هدر */
.mazhan-sticky-header {
    position: sticky;
    top: 15px;
    z-index: 99;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 30px !important;
    padding: 10px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}
.mazhan-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mazhan-header-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}
.mazhan-site-name {
    font-weight: 800;
    font-size: 16px;
    color: #1A91DD;
    text-decoration: none;
}
.mazhan-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mazhan-btn-header-support {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1A91DD !important;
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 6px 12px;
    border-radius: 10px;
    background: #1a91dd24;
}
.mazhan-btn-header-back {
    background: #0000000f;
    border: none;
    cursor: pointer;
    color: #444!important;
    padding: 5px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mazhan-btn-header-back:hover {
    background: #e9ecf0;
}

/* استیپ بار */
.mazhan-steps-roadmap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}
.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f3f6;
    color: #8a92a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}
.step-node.active .step-num {
    background: #1A91DD;
    color: #fff;
}
.step-text {
    font-size: 12px;
    color: #8a92a0;
    font-weight: 600;
}
.step-node.active .step-text {
    color: #1A91DD;
}
.step-line {
    flex: 0 0 50px;
    height: 2px;
    background: #e8ecf1;
    margin-top: 14px;
}

h4.card-title {
    margin: 0;
}

/* کارت محصولات و دکمه‌ها */
.mazhan-items-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.mazhan-cart-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 12px;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.card-thumb {
    flex: 0 0 115px;
    width: 115px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.card-title a {
    text-decoration: none;
    color: #2b2b2b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* بخش استایل قیمت‌ها و بچ درصد تخفیف */
.card-pricing-box {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: 4px;
}
.price-top-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.price-top-row .old-price del {
    color: #9aa0a6;
    font-size: 11px;
}
.discount-badge {
    background: #FF3B3B;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 5px 1px;
    border-radius: 6px;
    line-height: 1.4;
}
.price-main-row .current-price {
    font-size: 16px;
    font-weight: 800;
    color: #1A91DD;
}

/* ردیف دکمه‌های کنترل تعداد و حذف */
.card-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.mazhan-qty-controller {
    display: inline-flex;
    align-items: center;
    background: #f4f6f8;
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}
.btn-qty-action {
    background: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333!important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background 0.15s;
}
.btn-qty-action:hover {
    background: #eef2f5;
}
.input-qty-val {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #222;
}
.btn-remove-card {
    background: #fff0f0;
    border: none;
    color: #FF3B3B;
    padding: 4px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-remove-card:hover {
    background: #ffe2e2;
}

/* باکس خلاصه فاکتور و مجموع تخفیف */
.mazhan-summary-block {
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 16px;
}
.summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.summary-head h3 {
    margin: 0;
    font-family: 'iransans | ایران‌سنس';
    font-size: 15px;
    font-weight: 800;
}
.summary-count {
    font-size: 12px;
    color: #8c8c8c;
}
.shipping-info-badge {
    background: #eef7fc;
    color: #1A91DD;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}
.summary-line.discount-line {
    color: #10b981;
    font-weight: 700;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #e8ecf1;
}
.discount-amount {
    color: #10b981;
}

/* آکاردئون کد تخفیف */
.mazhan-coupon-wrapper {
    border-top: 1px dashed #e8ecf1;
    margin-top: 12px;
    padding-top: 12px;
}
.coupon-toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}
.coupon-toggle-btn.open svg {
    transform: rotate(180deg);
}
.coupon-expandable-box {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.coupon-expandable-box.is-open {
    max-height: 120px;
    opacity: 1;
    margin-top: 10px;
}
.coupon-input-group {
    display: flex;
    gap: 8px;
}
.coupon-input-group input {
    flex: 1;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}
.coupon-input-group button {
    background: #1A91DD;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 700;
    cursor: pointer;
}

/* نوار پرداخت چسبان پایین */
.mazhan-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #edf0f5;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    z-index: 999;
}
.sticky-bar-inner {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.order-final-price .label {
    font-size: 11px;
    color: #8a92a0;
    display: block;
}
.order-final-price .val {
    font-size: 17px;
    font-weight: 800;
    color: #1A91DD !important;
}
.btn-proceed-checkout {
    background: #1A91DD;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* لودینگ ایجکس */
.mazhan-cart-loading {
    opacity: 0.5;
    pointer-events: none;
}
/* استایل بخش سبد خرید خالی */
.mazhan-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 20px;
    padding: 45px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.mazhan-empty-cart .empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: #f8fafc;
    border-radius: 50%;
    margin-bottom: 18px;
}

.mazhan-empty-cart h3 {
    font-family: 'iransans | ایران‌سنس', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #333333;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* استایل دکمه مشاهده فروشگاه */
.mazhan-btn-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #1A91DD !important;
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 22px;
    border-radius: 12px;
    background: #1a91dd24;
    transition: all 0.2s ease;
}

.mazhan-btn-shop:hover {
    background: #1A91DD;
    color: #ffffff !important;
}/* End custom CSS */