body.my-cart-no-scroll {
    overflow: hidden !important;
}

/* پس‌زمینه تیره و بلور */
#my-cart-overlay.my-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#my-cart-overlay.my-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* کشوی کناری از سمت راست (حالت بسته: کاملاً مخفی و بدون سایه) */
#my-cart-popup.my-cart-popup {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(to bottom, #1b100b 0%, #120a07 55%, #070403 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none; /* در حالت بسته هیچ سایه‌ای به صفحه نمی‌اندازد */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    direction: ltr;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    box-sizing: border-box;
    transform: translateX(100%);
    visibility: hidden; /* جلوگیری کامل از نشت تصویر و سایه */
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.45s ease, 
                box-shadow 0.45s ease;
}

#my-cart-popup *,
#my-cart-popup *::before,
#my-cart-popup *::after {
    box-sizing: border-box;
}

/* حالت باز شده: سایه فعال می‌شود */
#my-cart-popup.my-cart-popup.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85); /* فقط وقتی باز شد سایه می‌زند */
}

/* هدر کشو */
#my-cart-popup .my-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 28px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

#my-cart-popup .my-cart-eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #d6b18d;
    margin-bottom: 6px;
}

#my-cart-popup .my-cart-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: #ffffff;
    line-height: 1.05;
}

#my-cart-popup .my-cart-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #d6b18d;
    margin-left: 4px;
}

/* دکمه بستن دایره‌ای (قفل شده در برابر استایل صورتی Hello Elementor) */
#my-cart-popup button.my-cart-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 9999px !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#my-cart-popup button.my-cart-close:hover {
    color: #d6b18d !important;
    border-color: #d6b18d !important;
    transform: rotate(90deg);
}

/* بدنه اصلی */
#my-cart-popup .my-cart-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* لیست اسکرول‌خور محصولات */
#my-cart-popup .muge-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 28px;
}

#my-cart-popup .muge-cart-items::-webkit-scrollbar {
    width: 4px;
}
#my-cart-popup .muge-cart-items::-webkit-scrollbar-track {
    background: transparent;
}
#my-cart-popup .muge-cart-items::-webkit-scrollbar-thumb {
    background: rgba(214, 177, 141, 0.3);
}

/* ردیف هر محصول */
#my-cart-popup .muge-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#my-cart-popup .muge-cart-item:last-child {
    border-bottom: none;
}

/* تصویر کوچک و شیک 3:4 */
#my-cart-popup .muge-item-thumb {
    width: 72px;
    height: 92px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #180f0c;
    overflow: hidden;
}

#my-cart-popup .muge-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

#my-cart-popup .muge-item-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

/* عنوان و قیمت محصول */
#my-cart-popup .muge-item-details {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

#my-cart-popup a.muge-item-title,
#my-cart-popup span.muge-item-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.94) !important;
    text-decoration: none !important;
    margin-bottom: 8px;
    transition: color 0.25s ease;
}

#my-cart-popup a.muge-item-title:hover {
    color: #d6b18d !important;
}

#my-cart-popup .muge-item-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

#my-cart-popup .muge-item-meta dl {
    margin: 0;
}

#my-cart-popup .muge-item-meta dt,
#my-cart-popup .muge-item-meta dd {
    display: inline;
    margin: 0 4px 0 0;
}

#my-cart-popup .muge-item-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

#my-cart-popup .muge-item-qty {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
}

#my-cart-popup .muge-item-price,
#my-cart-popup .muge-item-price .woocommerce-Price-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 400;
    color: #d6b18d;
    letter-spacing: 0.03em;
}

/* دکمه حذف محصول */
#my-cart-popup a.muge-item-remove {
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin-top: 2px;
    transition: all 0.25s ease;
}

#my-cart-popup a.muge-item-remove:hover {
    border-color: #d6b18d !important;
    color: #d6b18d !important;
    transform: rotate(90deg);
}

/* فوتر ثابت پایین کشو */
#my-cart-popup .muge-cart-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 20px 28px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 4, 3, 0.78);
}

#my-cart-popup .muge-cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

#my-cart-popup .muge-subtotal-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.65);
}

#my-cart-popup .muge-subtotal-value,
#my-cart-popup .muge-subtotal-value .woocommerce-Price-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-weight: 400;
    color: #d6b18d;
    letter-spacing: 0.03em;
}

/* دکمه‌های فوتر */
#my-cart-popup .muge-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#my-cart-popup a.muge-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 15px 20px !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

#my-cart-popup a.muge-btn-gold {
    background: #d6b18d !important;
    color: #000000 !important;
    border: 1px solid #d6b18d !important;
    font-weight: 500 !important;
}

#my-cart-popup a.muge-btn-gold:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 28px rgba(214, 177, 141, 0.35) !important;
}

#my-cart-popup a.muge-btn-outline {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    font-weight: 400 !important;
}

#my-cart-popup a.muge-btn-outline:hover {
    border-color: #d6b18d !important;
    color: #d6b18d !important;
    background: rgba(214, 177, 141, 0.05) !important;
}

/* سبد خرید خالی */
#my-cart-popup .muge-cart-empty {
    margin: auto;
    padding: 40px 28px;
    text-align: center;
}

#my-cart-popup .muge-empty-icon {
    color: rgba(214, 177, 141, 0.5);
    margin-bottom: 16px;
}

#my-cart-popup .muge-empty-title {
    margin: 0 0 8px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

#my-cart-popup .muge-empty-sub {
    display: block;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}