﻿.cart {

    background: var(--panel);

    border-left: 1px solid var(--border);

    overflow: hidden;

    display: grid;

    grid-template-rows: auto 1fr auto;

}

.cart-top {

    padding: 16px;

    border-bottom: 1px solid var(--border);

}

.client-card {

    display: grid;

    grid-template-columns: 44px 1fr 34px;

    gap: 10px;

    align-items: center;

    background: #fafafa;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 10px;

    margin-bottom: 12px;

}

.client-avatar {

    width: 44px;

    height: 44px;

    border-radius: 12px;

    background: #111;

    color: white;

    display: grid;

    place-items: center;

    font-weight: 800;

}

.client-name {

    font-weight: 800;

}

.client-meta {

    font-size: 12px;

    color: var(--muted);

    line-height: 1.2;

}

.client-dd {

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 16px;

    color: var(--muted);

}

.schedule-card {

    display: grid;

    grid-template-columns: 1fr 34px;

    gap: 10px;

    align-items: center;

    margin-top: 10px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 10px 12px;

    background: #fafafa;

}

.schedule-label {

    color: var(--muted);

    font-size: 12px;

}

.schedule-value {

    font-weight: 700;

    margin-top: 2px;

}

.schedule-dd {

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 16px;

    color: var(--muted);

}

.payment-card {

    display: grid;

    grid-template-columns: 1fr 34px;

    gap: 10px;

    align-items: center;

    margin-top: 10px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 10px 12px;

    background: #fafafa;

}

.payment-label {

    color: var(--muted);

    font-size: 12px;

}

.payment-value {

    font-weight: 700;

    margin-top: 2px;

}

.payment-dd {

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 16px;

    color: var(--muted);

}

.cart-title {

    margin-top: 14px;

    font-weight: 800;

}

.cart-items {

    overflow: auto;

    padding: 16px;

}

.cart-item {

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 10px;

    display: grid;

    grid-template-columns: 64px minmax(0, 1fr) 28px;

    gap: 10px;

    align-items: start;

}

.cart-item-img {

    width: 64px;

    height: 64px;

    border-radius: 12px;

    object-fit: cover;

    background: #eee;

}

.cart-item-name {

    font-weight: 800;

    margin-bottom: 6px;

}

.cart-item-meta {

    font-size: 12px;

    color: var(--muted);

    line-height: 1.35;

    margin-bottom: 10px;

}

.qty-row {

    display: flex;

    align-items: center;

    gap: 10px;

}

.qty-btn {

    width: 28px;

    height: 28px;

    border-radius: 8px;

    border: 1px solid var(--border);

    background: #fff;

    cursor: pointer;

}

.qty {

    min-width: 18px;

    text-align: center;

    font-weight: 800;

}

.line-price {

    margin: 0 10px;

    font-weight: 800;

}

.remove {

    border: 0;

    background: transparent;

    cursor: pointer;

    color: var(--muted);

    font-size: 14px;

}

.cart-footer {

    border-top: 1px solid var(--border);

    padding: 14px 16px 16px;

    background: var(--panel);

    position: sticky;

    bottom: 0;

}

.totals {

    margin-bottom: 12px;

}

.total-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 8px 0;

    color: #111;

}

.total-row.grand {

    font-size: 16px;

    font-weight: 900;

}

.link-btn {

    border: 0;

    background: transparent;

    cursor: pointer;

    color: #111;

    font-weight: 700;

    text-decoration: underline;

}

.checkout-btn {

    width: 100%;

    border: 0;

    border-radius: 12px;

    padding: 14px 12px;

    font-weight: 800;

    display: grid;

    gap: 4px;

    text-align: center;

    color: #fff;

}

.checkout-btn:disabled {

    background: #3f3f46;

    cursor: not-allowed;

    opacity: .7;

}

.checkout-btn:not(:disabled) {

    background: #111;

    cursor: pointer;

}


.checkout-btn small {

    font-weight: 600;

    color: rgba(255,255,255,.8);

}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra vertical */

    justify-content: center;
    gap: 8px;
    height: 100%;
    padding: 24px 12px;
    text-align: center;
    color: var(--muted, #6b7280);
    font-size: 14px;
}
