/* ==========================================
   File: assets/css/modules/cart.css
   ========================================== */

.cart-container { padding: 15px; padding-bottom: 100px; }

.cart-item {
    background: #fff; 
    border-radius: 12px; /* کمی انحنای کمتر برای ظاهر مدرن‌تر */
    padding: 10px 12px; /* کاهش فاصله داخلی */
    margin-bottom: 10px; /* کاهش فاصله بین کارت‌ها */
    box-shadow: var(--shadow-soft); 
    display: flex; 
    flex-direction: column; 
    gap: 6px; /* کاهش فاصله بین نام غذا و بخش توضیحات/دکمه‌ها */
    border: 1px solid #f3f4f6; /* اضافه شدن حاشیه نامحسوس */
}

.cart-row-main { display: flex; justify-content: space-between; align-items: center; }

.cart-food-name { font-weight: 800; font-size: 14px; color: #111827; } /* رنگ تیره‌تر و سایز کمی بهینه‌تر */
.cart-food-var { font-size: 11px; color: #888; }

.cart-ctrl {
    display: flex; align-items: center; background: var(--bg-gray); border-radius: 8px; padding: 2px;
}
.ctrl-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; }
.ctrl-val { width: 24px; text-align: center; font-size: 13px; font-weight: bold; }

.cart-desc-box {
    width: 100%; padding: 8px 10px; background: var(--bg-gray); border: 1px solid var(--border-color);
    border-radius: 8px; font-family: inherit; font-size: 12px; min-height: 45px; resize: none;
}

.cart-summary {
    background: #fff; padding: 15px 20px; border-radius: 20px 20px 0 0;
    position: fixed; bottom: 70px; left: 0; right: 0; /* Above nav */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05); z-index: 40;
}
@media (min-width: 480px) { .cart-summary { position: absolute; } }

.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: #555; }
.summary-total { font-weight: 900; color: #000; font-size: 16px; border-top: 1px solid #eee; padding-top: 10px; margin-top: 5px; }

.btn-checkout {
    width: 100%; background: #000; color: #fff; padding: 14px; border-radius: 12px;
    font-weight: 900; font-size: 15px; margin-top: 12px; cursor: pointer;
}
