/* ═══════════════════════════════════════════════════════════
   UpMobile Theme - Unified Mini Cart Styles
   ═══════════════════════════════════════════════════════════ */

/* --- کانتینر اصلی --- */
.up-mini-cart-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- حالت خالی --- */
.up-cart-empty {
    text-align: center;
    padding: 30px 15px;
    color: #888;
}
.up-cart-empty svg {
    margin-bottom: 10px;
    stroke: #ccc;
}
.up-cart-empty p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
}

/* --- لیست محصولات --- */
.up-cart-items {
    max-height: 350px;
    overflow-y: auto;
    padding: 5px 0;
}

.up-cart-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f5;
    transition: background 0.2s;
    position: relative;
}
.up-cart-item:hover {
    background: #fafbfd;
}
.up-cart-item.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* تصویر */
.up-cart-item__img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f6f9;
    border: 1px solid #e8e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.up-cart-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* اطلاعات */
.up-cart-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.up-cart-item__title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.up-cart-item__title:hover {
    color: #4837F3;
}

.up-cart-item__price {
    font-size: 12px;
    font-weight: 700;
    color: #4837F3;
}

/* --- دکمه‌های عملیات (+ و - و حذف) --- */
.up-cart-item__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.up-cart-qty {
    display: inline-flex;
    align-items: center;
    background: #f7f8fc;
    border: 1px solid #e6e8f5;
    border-radius: 8px;
    overflow: hidden;
}

.up-cart-btn-minus,
.up-cart-btn-plus {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #4837F3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.up-cart-btn-minus:hover,
.up-cart-btn-plus:hover {
    background: #ede9ff;
}

.up-cart-qty-val {
    width: 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #222;
}

.up-cart-btn-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff5f5;
    color: #e63946;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.up-cart-btn-remove:hover {
    background: #e63946;
    color: #fff;
}

/* --- جمع کل --- */
.up-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 15px;
    border-top: 1px solid #f0f0f5;
    font-size: 13.5px;
    font-weight: 700;
    color: #333;
}
.up-cart-subtotal strong {
    font-size: 15px;
    color: #4837F3;
    font-weight: 900;
}

/* --- دکمه‌های اقدام --- */
.up-cart-buttons {
    display: flex;
    gap: 8px;
    padding: 12px 15px 15px;
}

.up-cart-btn-view,
.up-cart-btn-checkout {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.up-cart-btn-view {
    background: #f7f8fc;
    color: #4837F3 !important;
    border: 1.5px solid #e6e8f5;
}
.up-cart-btn-view:hover {
    background: #ede9ff;
    border-color: #4837F3;
}

.up-cart-btn-checkout {
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(72, 55, 243, 0.3);
}
.up-cart-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 55, 243, 0.4);
}