/* استایل های جدید برای سبد خرید کوچک */
.cart-dropdown-container {
    position: relative;
    display: inline-block;
    /* ناحیه ماوس را بزرگتر می کند تا شامل دکمه و سبد شود */
    padding-bottom: 10px;
}

.mini-cart-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    width: 350px;
    background-color: white;
    /* فاصله عمودی را حذف کنید تا دقیقاً زیر دکمه قرار گیرد */
    transform: translateY(0px);
    padding-top: 10px; /* این پدینگ در بالا باعث می شود ماوس در ناحیه هاور باقی بماند */
}

/* نمایش سبد خرید هنگام هاور کردن روی container */
.cart-dropdown-container:hover .mini-cart-content {
    display: block;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #dc3545;
    font-weight: bold;
}

.cart-item-row { border-bottom: 1px solid #eee; padding: 10px 0; align-items: center; }
.item-name { font-weight: bold; }
.cart-summary { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 12px; padding: 20px; }
#empty-cart-message { height: 200px; display: flex; align-items: center; justify-content: center; }

.cart-item-row { border-bottom: 1px solid #eee; padding: 15px 0; align-items: center; }
.item-image { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.quantity-input { width: 70px; text-align: center; }
.total-price { font-size: 1.5rem; font-weight: bold; color: #28a745; }
.form-section-box { border: 1px solid #ddd; border-radius: 12px; padding: 20px; margin-top: 20px; background: #fff; }
#cart-summary { position: sticky; top: 20px; z-index: 100; }
.header-row { background: #f1f3f5; font-weight: bold; }