/* ===== PANEL ===== */

.cart-panel {
    position: fixed;
    right: -420px;
    top: 0;
    width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: -15px 0 40px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.cart-panel.active {
    right: 0;
}

/* ===== HEADER ===== */

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.cart-header > span{
    cursor: pointer;
}

/* ===== BODY ===== */

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ===== ITEM ===== */

.cart-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 8px;
}

.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-title {
    font-size: 15px;
    font-weight: 600;
}

.cart-price {
    font-size: 14px;
    font-weight: bold;
    color: #e53935;
    margin-top: 6px;
}

/* ===== CANTIDAD ===== */

.cart-quantity {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #111;
    color: white;
}

.qty-number {
    width: 35px;
    text-align: center;
    font-weight: 600;
}

/* ===== ELIMINAR ===== */

.cart-delete {
    background: none;
    border: none;
    font-size: 18px;
    color: #bbb;
    cursor: pointer;
    transition: 0.2s;
}

.cart-delete:hover {
    color: #e53935;
}

/* ===== FOOTER ===== */

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 15px;
}

/* ===== BOTON ===== */

.btn-checkout {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    background: #1d4ed8;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: #111;
}
