/* --- اسکرول لیست وقتی محصولات زیاد می‌شن --- */
.widget_shopping_cart_content {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.widget_shopping_cart_content::-webkit-scrollbar {
    width: 5px;
}
.widget_shopping_cart_content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* --- ساختار هر ردیف محصول: عکس + محتوا در کنار هم --- */
.elementor-menu-cart__product {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}
.elementor-menu-cart__product:last-child {
    border-bottom: none;
}

.elementor-menu-cart__product-image,
.elementor-menu-cart__product-thumbnail {
    width: 60px !important;
    height: 60px !important;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    order: 1;
}
.elementor-menu-cart__product-image img,
.elementor-menu-cart__product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
}

/* ستون محتوا: نام + قیمت/تعداد زیر هم، با عرض محدود تا با دکمه‌ی حذف تداخل نکنه */
.elementor-menu-cart__product-name {
    order: 2;
    width: calc(100% - 60px - 12px - 26px);
    font-weight: 700;
    font-size: 13.5px;
    margin: 0 0 6px 0;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elementor-menu-cart__product-price {
    order: 3;
    width: calc(100% - 60px - 12px - 26px);
}

/* دکمه‌ی حذف: بالا-گوشه، جدا از جریان اصلی */
.elementor-menu-cart__product-remove {
    position: absolute !important;
    top: 14px;
    inset-inline-end: 0;
    z-index: 5;
    width: 22px;
    height: 22px;
}

/* --- ردیف قیمت + کنترل تعداد --- */
.shd-cart-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.shd-price-text {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}

.shd-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f4f4f5;
    border-radius: 999px;
    padding: 4px 10px;
}
.shd-qty-controls button {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
}
.shd-qty-controls button:hover {
    background: #ececec;
}
.shd-qty-controls button:active {
    transform: scale(0.9);
}
.shd-qty-controls button svg {
    width: 11px;
    height: 11px;
    display: block;
}
.shd-qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    font-family: inherit;
}

.elementor-menu-cart__product.shd-updating {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* --- شیک‌سازی کلی سبد --- */
.elementor-menu-cart__main {
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

/* --- دکمه‌ی حذف: قرمز، چه متن باشه چه آیکون SVG --- */
.elementor-menu-cart__product-remove,
.elementor-menu-cart__product-remove a {
    color: #dc2626 !important;
    fill: #dc2626 !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}
.elementor-menu-cart__product-remove svg,
.elementor-menu-cart__product-remove i,
.elementor-menu-cart__product-remove path {
    color: #dc2626 !important;
    fill: #dc2626 !important;
}
.elementor-menu-cart__product-remove a:hover {
    color: #b91c1c !important;
    fill: #b91c1c !important;
    transform: scale(1.15);
}

.elementor-menu-cart__close-button {
    transition: opacity 0.15s ease;
}
.elementor-menu-cart__close-button:hover {
    opacity: 0.6;
}
.elementor-menu-cart__subtotal {
    font-weight: 700;
    font-size: 15px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    margin-top: 6px;
}
.elementor-menu-cart__footer-buttons a {
    border-radius: 10px !important;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.elementor-menu-cart__footer-buttons a:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}